using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using WebLib; namespace Education.Forms.檢視UC { public partial class 訓練檢討報告View : UserControlBase { int 課程企劃ID = 0; public override void DataBind() { base.DataBind(); 課程企劃ID = DAC.GetInt32(單號); ds訓練檢討報告.SelectParameters["訓練課程企劃編號"].DefaultValue = 單號; FormView1.DataBind(); } protected void ds訓練檢討報告_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new DAC_訓練檢討報告(ParentPage.conn); } protected void FormView1_DataBound(object sender, EventArgs e) { if (FormView1.CurrentMode == FormViewMode.ReadOnly && FormView1.FindControl("lb學員出席率") != null) { FindControl