protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     B_ModuleID = "Flow_ToDoListM";
     B_ModuleName = "流程列表";
     B_PageDetail = "Flow_ToDoListM.aspx";
     B_ToolBar1 = this.Toolbar1;
     B_Window1 = this.Window1;
     B_Grid1 = this.Grid1;
     B_IDAL = new RDFNew.Module.Admin.Flow.Flow_ToDoListM();
     B_TableKey = "Flow_ToDoListM.ToDoListMID";
     B_OrderBy = " Flow_ToDoListM.ToDoListMID Desc ";
 }
Esempio n. 2
0
        protected override string AddData()
        {
            RDFNew.Module.Admin.Flow.Flow_ToDoListM obj = new RDFNew.Module.Admin.Flow.Flow_ToDoListM();
            DataTable dt = RDFNew.Module.DALHelper.GetMasterEmpty(null, "Flow_ToDoListM");
            DataRow dr;
            dr = dt.NewRow();
            dr["ToDoListMID"] = App_Com.Helper.InputText(this.txtToDoListMID.Text, 500);
            dr["Description"] = App_Com.Helper.InputText(this.txtDescription.Text, 500);

            dr["CrtBy"] = App_Com.Sys_User.GetUserInfo("UserID");
            dr["CrtOn"] = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            dt.Rows.Add(dr);

            BuildDetail();
            DataTable dtDetail = App_Com.Helper.GetSession(B_DetailSessionKey, false) as DataTable;
            object[] data = obj.ApplyMaster(dt.GetChanges(DataRowState.Added),dtDetail,
                                        App_Com.Helper.BuildLog("Flow_ToDoListM", "add"));
            if (data[0].ToString() != "0") //正常
                throw data[1] as Exception;
            else
                return data[1].ToString();
        }
Esempio n. 3
0
        protected override string UpdateData()
        {
            RDFNew.Module.Admin.Flow.Flow_ToDoListM obj = new RDFNew.Module.Admin.Flow.Flow_ToDoListM();
            object[] data = obj.GetMaster(B_Keyword);
            if (data[0].ToString() == "0") //正常
            {
                DataTable dt = data[1] as DataTable;
                if (dt.Rows.Count > 0)
                {
                    DataRow dr;
                    dr = dt.Rows[0];

                    dr["Description"] = App_Com.Helper.InputText(this.txtDescription.Text, 500);

                    dr["ModBy"] = App_Com.Sys_User.GetUserInfo("UserID");
                    dr["ModOn"] = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

                    BuildDetail();
                    DataTable dtDetail = App_Com.Helper.GetSession(B_DetailSessionKey, false) as DataTable;
                    data = obj.ApplyMaster(dt.GetChanges(DataRowState.Modified),dtDetail,
                                            App_Com.Helper.BuildLog("Flow_ToDoListM", "edit"));
                    if (data[0].ToString() != "0") //正常
                        throw data[1] as Exception;
                    else
                        return data[1].ToString();
                }
                else
                {
                    throw new Exception("需要修改的记录已不存在,请刷新后再试.");
                }
            }
            else
            {
                throw data[1] as Exception;
            }
        }
Esempio n. 4
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            B_ModuleID = "Flow_ToDoListM";
            B_ModuleName = "流程列表";
            B_ToolBar1 = this.Toolbar1;
            B_IDAL = new RDFNew.Module.Admin.Flow.Flow_ToDoListM();

            B_Grid1 = this.Grid1;
            B_Window1 = this.Window1;

            B_DetailSessionKey = "Flow_ToDoListDAdd";
        }