Exemple #1
0
 public object[] ApplyMaster(DataTable dtM, RDFNew.Module.DALEntity.Sys_Log la)
 {
     DataTable dtDetail = null;
     if (dtM.Rows[0].RowState ==DataRowState.Deleted || (la != null && la.Action.ToUpper() == "DELETE"))
     {
         dtDetail = new RDFNew.Module.Admin.Flow.Flow_ToDoD().GetDataByParent(
             dtM.Rows[0]["ToDoMID", DataRowVersion.Original].ToString())[1] as DataTable;
         for (int i = 0; i < dtDetail.Rows.Count; i++)
             dtDetail.Rows[i].Delete();
     }
     return ApplyMaster(dtM, dtDetail,null, la);
 }
Exemple #2
0
 protected override void LoadDetail()
 {
     DataTable dt;
     dt = App_Com.Helper.GetSession(B_DetailSessionKey, false) as DataTable;
     if (dt == null)
     {
         RDFNew.Module.Admin.Flow.Flow_ToDoD da = new RDFNew.Module.Admin.Flow.Flow_ToDoD();
         dt = da.GetDataByParent(B_Keyword)[1] as DataTable;
         App_Com.Helper.SetSession(B_DetailSessionKey, dt);
     }
     this.Grid1.DataSource = dt;
     this.Grid1.DataBind();
 }