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,116 @@
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
{
private DAC_訓練效益 Dao訓練效益;
private DAC_訓練效益個人 Dao訓練效益個人;
protected void Page_Load(object sender, EventArgs e)
{
FunctionName = "教育訓練效益追蹤調查表";
Dao訓練效益 = new DAC_訓練效益(conn);
Dao訓練效益個人 = new DAC_訓練效益個人(conn);
Form_View = FormView1;
Grid_View = GridView1;
FormView_DataSource = ds調查表Form;
GridView_DataSource = ds調查表Grid;
Panel1.Visible = . > 0;
if (IsPostBack)
{
if (Panel1.Visible)
{
Grid_View.DataBind();
Form_View.DataBind();
}
}
}
protected void ds已上課_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
{
e.ObjectInstance = Dao訓練課程企劃;
}
protected void ds調查表Form_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
{
e.ObjectInstance = Dao訓練效益;
}
protected void ds調查表Grid_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
{
e.ObjectInstance = Dao訓練效益;
}
protected void ds調查表個人_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
{
e.ObjectInstance = Dao訓練效益個人;
}
protected void btn查詢1_Click(object sender, EventArgs e)
{
ds調查表Grid.DataBind();
}
protected override void FormView_ItemInserting(object sender, FormViewInsertEventArgs e)
{
base.FormView_ItemInserting(sender, e);
e.Values.Add("訓練課程企劃編號", .);
}
protected override void FormView_ReadOnlyDataBound(object sender, EventArgs e)
{
base.FormView_ReadOnlyDataBound(sender, e);
if (Form_View.SelectedValue != null)
{
List d = Dao訓練課程企劃.SelectOne(.);
1.ID = String.Format("{0}|{1}", Form_View.DataKey[0], Form_View.DataKey[1]);
1. = DAC.GetInt32(Form_View.DataKey[0]);
1.2 = DAC.GetInt32(Form_View.DataKey[1]);
1.ID格式 = String.Format("[{0}] {1}<br>{2} {3} {4}",
d[0].,
d[0].,
Dao站別.GetName((Form_View.DataItem as Education.).),
(Form_View.DataItem as Education.).,
(Form_View.DataItem as Education.).);
// 課程企劃的承辦人可送簽
1. = d[0]..CompareTo(UserId) == 0;
1.Refresh();
}
1.Visible = Form_View.SelectedValue != null;
}
protected override void FormView_InsertDataBound(object sender, EventArgs e)
{
base.FormView_InsertDataBound(sender, e);
(Form_View.FindControl("txt填表日期") as DateTextBox).Value = DateTime.UtcNow.AddHours(8).Date;
Form_View.FindControl("txt填表人").Focus();
1.Visible = false;
}
protected override void FormView_EditDataBound(object sender, EventArgs e)
{
base.FormView_EditDataBound(sender, e);
Form_View.FindControl("txt填表人").Focus();
1.Visible = false;
}
protected string Get站別(object )
{
NameValueList data = ds站別.Select() as NameValueList;
return data.GetName();
}
}
}