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,51 @@
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組織類別;
protected void Page_Load(object sender, EventArgs e)
{
FunctionName = "職務類別處理";
Dao組織類別 = new DAC_組織類別(conn);
if (IsPostBack)
GridView1.DataBind();
else
ddl組織類別.DataBind();
}
protected void dsGrid_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
{
e.ObjectInstance = Dao職務;
}
protected void btnInsert_Click(object sender, EventArgs e)
{
newItem = new ();
newItem. = txt職務名稱.Text;
newItem.ID = ddl組織類別.SelectedItem.Value;
newItem. = cb主管.Value;
newItem.DB_CRUSR = UserId;
Dao職務.InsertOne(newItem);
GridView1.DataBind();
}
protected string Get組織類別名稱(object ID)
{
List d = Dao組織類別.SelectOne(DAC.GetInt32(ID));
if (d.Count > 0)
return d[0].;
else
return "";
}
}
}