protected void Page_Load(object sender, EventArgs e) { switch (this.RequestAction) { case RequestActionEnum.Delete: ent = this.GetTargetData <UsrDoubleWelfare>(); ent.DoDelete(); break; default: if (RequestActionString == "batchdelete") { DoBatchDelete(); } else if (RequestActionString == "ckNotice") { CKSubmit(); } else if (RequestActionString == "Submit") { StartFlow(); } else if (RequestActionString == "AutoExecuteFlow") { AutoExecuteFlow(); } else { DoSelect(); } break; } }
protected void Page_Load(object sender, EventArgs e) { op = RequestData.Get <string>("op"); id = RequestData.Get <string>("id"); type = RequestData.Get <string>("type"); switch (this.RequestAction) { case RequestActionEnum.Update: ent = this.GetMergedData <UsrDoubleWelfare>(); ent.DoUpdate(); break; case RequestActionEnum.Insert: case RequestActionEnum.Create: ent = this.GetPostedData <UsrDoubleWelfare>(); ent.ApplyTime = DateTime.Now; string userid = ""; if (UserInfo != null) { userid = UserInfo.UserID; } else { userid = RequestData.Get <string>("userid"); } ent.NoticeId = RequestData.Get <string>("noticeid"); ent.CreateId = userid; ent.CreateName = ""; ent.CreateTime = DateTime.Now; ent.DoCreate(); break; case RequestActionEnum.Delete: ent = this.GetTargetData <UsrDoubleWelfare>(); ent.DoDelete(); return; default: if (RequestActionString == "GetWorkNo") { string UserID = RequestData.Get("UserID") + ""; ComUtility Ut = new ComUtility(); this.PageState.Add("WorkNo", Ut.GetWorkNo(UserID)); } else if (RequestActionString == "ckNotice") //通知检查 { CKSubmit(); } else if (RequestActionString == "Submit") //提交流程 { StartFlow(); } else if (RequestActionString == "AutoExecuteFlow") { AutoExecuteFlow(); } else if (RequestActionString == "submitfinish") { SubmitFinish(); } else if (RequestActionString == "GetNextUsers") { GetNextUsers(); } else { DoSelect(); } break; } }