chore: 首次簽入 Thinkyu ASP.NET 專案

- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
2026-09-10 09:42:37 +08:00
commit 577060bc78
2496 changed files with 501389 additions and 0 deletions
@@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebLib;
namespace Education.Forms.
{
public partial class : FormBase
{
protected DAC_心得報告 Dao心得報告;
protected DAC_心得報告討論 Dao心得報告討論;
protected int id;
protected void Page_Load(object sender, EventArgs e)
{
FunctionName = "課程心得報告討論";
Dao心得報告 = new DAC_心得報告(conn);
Dao心得報告討論 = new DAC_心得報告討論(conn);
id = DAC.GetInt32(Request["id"]);
List d1 = Dao心得報告.SelectOne(id);
if (d1.Count > 0)
{
lb樓主.Text = Get員工姓名(d1[0].);
lb心得內容.Text = d1[0]..Replace("\r\n", "<br>").Replace("\n", "<br>").Replace("\r", "<br>").Replace(" ", "&nbsp;");
List d2 = Dao訓練課程企劃.SelectOne(d1[0].);
if (d2.Count > 0)
{
lb訓練課程.Text = d2[0].;
. = d2[0].;
. = d2[0].;
.DataBind();
}
}
if (IsPostBack)
{
dl回覆.DataBind();
}
ClientScript.RegisterStartupScript(this.GetType(), "hfResponse", String.Format("var hfResponseId=\"{0}\";", hfResponse.ClientID), true);
}
protected void btnSave_Click(object sender, EventArgs e)
{
// 存檔
if (hfResponse.Value.Trim().Length == 0)
{
lbMessage.Text = "先說兩句再儲存好嗎?";
return;
}
newValue = new ();
newValue. = id;
newValue. = UserId;
newValue. = DateTime.UtcNow.AddHours(8);
newValue. = hfResponse.Value.Trim();
newValue.DB_CRUSR = UserId;
Dao心得報告討論.InsertOne(newValue);
lbMessage.Text = "儲存成功!";
dl回覆.DataBind();
}
}
}