chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Education.Forms.檢視UC
|
||||
{
|
||||
public partial class 滿意度分析View : UserControlBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Bindable(true)]
|
||||
public int 訓練課程企劃編號
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
protected void ds課程內容_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
|
||||
{
|
||||
e.InputParameters["訓練課程企劃編號"] = 訓練課程企劃編號;
|
||||
}
|
||||
|
||||
protected void dl課程內容_ItemDataBound(object sender, DataListItemEventArgs e)
|
||||
{
|
||||
HiddenField hf訓練課程企劃編號 = e.Item.FindControl("hf訓練課程企劃編號") as HiddenField;
|
||||
HiddenField hf課程序號 = e.Item.FindControl("hf課程序號") as HiddenField;
|
||||
ObjectDataSource ds滿意度分析 = e.Item.FindControl("ds滿意度分析") as ObjectDataSource;
|
||||
DataList dl滿意度分析 = e.Item.FindControl("dl滿意度分析") as DataList;
|
||||
|
||||
if (hf訓練課程企劃編號 != null && hf課程序號 != null && ds滿意度分析 != null && dl滿意度分析 != null)
|
||||
{
|
||||
ds滿意度分析.SelectParameters["訓練課程企劃編號"].DefaultValue = hf訓練課程企劃編號.Value;
|
||||
ds滿意度分析.SelectParameters["課程序號"].DefaultValue = hf課程序號.Value;
|
||||
dl滿意度分析.DataSource = ds滿意度分析;
|
||||
dl滿意度分析.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user