public ResultContext MonthProcessRequest(string BusinessID, string strProType, string ExecuteType, int OperatorType, string PrcessStatus) { ProcessController pc = new ProcessController(); //pc.BusinessID = BusinessID; //pc.ProType = strProType; //pc.ExecType = ExecuteType; //pc.OperatorType = OperatorType; try { //写入用户信息 HttpContext context = HttpContext.Current; SSOClaimsIdentity claimsIdentity = new SSOClaimsIdentity { UserName = WebHelper.GetCurrentLoginUser() }; SSOClaimsPrincipal claimsPrincipal = new SSOClaimsPrincipal(claimsIdentity); context.User = claimsPrincipal; //context.Items.Add("BusinessID", BusinessID); //context.Items.Add("ProType", strProType); //context.Items.Add("ExecType", ExecuteType); //context.Items.Add("OperatorType", OperatorType); //context.Items.Add("PrcessStatus", PrcessStatus); //HttpRequest Request = context.Request; pc.ProcessRequest(context); ////业务处理 //pc.DisposeBusinessData(); ////执行按钮事件的处理 //pc.ExecutionBusinessData(); return(new ResultContext()); } catch (Exception ex) { return(new ResultContext((int)StatusCodeEnum.isCatch, ex.ToString())); throw; } }
public ResultContext TargetPlanProcessRequest(string BusinessID, int OperatorType, string PrcessStatus) { LJTH.BusinessIndicators.Web.AjaxHander.TargetPlanProcessController tp = new LJTH.BusinessIndicators.Web.AjaxHander.TargetPlanProcessController(); try { HttpContext context = HttpContext.Current; SSOClaimsIdentity claimsIdentity = new SSOClaimsIdentity { UserName = WebHelper.GetCurrentLoginUser() }; SSOClaimsPrincipal claimsPrincipal = new SSOClaimsPrincipal(claimsIdentity); context.User = claimsPrincipal; tp.ProcessRequest(context); return(new ResultContext()); } catch (Exception ex) { return(new ResultContext((int)StatusCodeEnum.isCatch, ex.ToString())); throw; } }