Files
thinkyu/branches/1150807/Forms/組織/組織類別處理.aspx.cs
T
sryang 577060bc78 chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
2026-09-10 09:42:37 +08:00

38 lines
952 B
C#

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();
}
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.DB_CRUSR = UserId;
Dao組織類別.InsertOne(newItem);
GridView1.DataBind();
}
}
}