chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace Education.Forms.自行登錄
|
||||
{
|
||||
public partial class 外部訓練登錄 : FormBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
FunctionName = "外部受訓紀錄登錄";
|
||||
|
||||
Form_View = FV;
|
||||
Grid_View = GV;
|
||||
FormView_DataSource = dsForm;
|
||||
GridView_DataSource = dsGrid;
|
||||
|
||||
AddTabButton(MultiView1, View查詢, Tab查詢);
|
||||
AddTabButton(MultiView1, View處理, Tab處理);
|
||||
|
||||
if (IsPostBack)
|
||||
{
|
||||
Grid_View.DataBind();
|
||||
Form_View.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
ActivateTab(MultiView1, View處理);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void FormView_InsertDataBound(object sender, EventArgs e)
|
||||
{
|
||||
base.FormView_InsertDataBound(sender, e);
|
||||
FindControl<ITextControl>(Form_View, "txt員工編號").Text = UserId;
|
||||
FindControl<ITextControl>(Form_View, "txt員工編號X").Text = UserName;
|
||||
}
|
||||
|
||||
protected void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
txt訓練名稱_Search.Text = "";
|
||||
txt訓練年度_Search.Text = "";
|
||||
txt訓練單位_Search.Text = "";
|
||||
dd實施單位_Search.SelectedValue = "";
|
||||
dd課程類別_Search.SelectedValue = "";
|
||||
}
|
||||
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
Grid_View.PageIndex = 0;
|
||||
Grid_View.DataBind();
|
||||
|
||||
if (Grid_View.Rows.Count > 0)
|
||||
{
|
||||
ActivateTab(MultiView1, View處理);
|
||||
}
|
||||
else
|
||||
{
|
||||
lbMessage.Text = "沒有資料,請以其他查詢條件查詢!";
|
||||
}
|
||||
}
|
||||
|
||||
protected void dsGrid_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
|
||||
{
|
||||
e.InputParameters["員工編號"] = UserId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user