chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
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 void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
FunctionName = "學員訓練記錄";
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
txt訓練年度_Search.Text = DateTime.UtcNow.AddHours(8).Date.ToString("yyyy");
|
||||
}
|
||||
else
|
||||
{
|
||||
GridView1.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSearch計畫別_Click(object sender, EventArgs e)
|
||||
{
|
||||
ddl計畫別_Search.DataSource = new DAC_BPAA().GetBpaaWithTY(DAC.GetInt32(txt訓練年度_Search.Text) - 1911, CompanyId);
|
||||
ddl計畫別_Search.DataValueField = "BPPYN";
|
||||
ddl計畫別_Search.DataTextField = "BPPYM";
|
||||
ddl計畫別_Search.DataBind();
|
||||
}
|
||||
|
||||
protected void dsGrid_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
|
||||
{
|
||||
e.ObjectInstance = Dao訓練課程企劃;
|
||||
}
|
||||
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
GridView1.PageIndex = 0;
|
||||
GridView1.DataBind();
|
||||
GridView1.Visible = GridView1.Rows.Count > 0;
|
||||
}
|
||||
|
||||
protected void ds訓練記錄_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
|
||||
{
|
||||
e.InputParameters["公司別"] = CompanyId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user