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