protected override void OnSubmit(string actionName, H3.SmartForm.SmartFormPostValue postValue, H3.SmartForm.SubmitSmartFormResponse response) { me.CurrentPostValue = postValue; string code = this.Request.ActivityCode; //活动节点编码 updatePR(code, actionName); if (code == ActivityRK && actionName == ActionSubmit) { dp.FillPerson(me, ProcessName); } if (code == ActivityXJ && actionName == ActionSubmit) { dp.FillPerson(me, ProcessName); } if (code == ActivitySJ && actionName == ActionSubmit) { me["工人"] = this.Request.ParticipantId; //this.Request.BizObject[F0000073]=this.Request.ParticipantId; } base.OnSubmit(actionName, postValue, response); //多阶段加工新方案升级机加工任务记录 UpdateRecordForm(actionName, code); if (code == ActivityJY && actionName == "Submit") { Salary slr = new Salary(me.Engine, me.PostValue("ID")); slr.Save(ProcessName, false); } //异常工步节点日志 abnormalStep(code, response); }
//派工 private void Dispatcher(string activityCode, string actionName) { if ((activityCode == ActivityRK) && actionName == "Submit") { dp.FillPerson(me, ProcessName, "四面光"); } if (activityCode == ActivityXJ && actionName == "Submit") { dp.FillPerson(me, ProcessName); } if ((activityCode == ActivitySJ) && actionName == "Submit") { me["工人"] = this.Request.ParticipantId; } if ((activityCode == ActivitySMGSJ) && actionName == "Submit") { me["工人"] = this.Request.ParticipantId; } }
protected override void OnSubmit(string actionName, H3.SmartForm.SmartFormPostValue postValue, H3.SmartForm.SubmitSmartFormResponse response) { me.CurrentPostValue = postValue; string activityCode = this.Request.ActivityCode; //活动节点编码 if (activityCode == ActivityRK && actionName == "Submit") { dp.FillPerson(me, ProcessName); } if (activityCode == ActivityXJ && actionName == "Submit") { dp.FillPerson(me, ProcessName); } if (activityCode == ActivitySJ && actionName == "Submit") { me["工人"] = this.Request.ParticipantId; } updatePR(activityCode, actionName); //发起异常 是 if (me["发起异常"] == "是") { me["OwnerId"] = this.Request.UserContext.UserId; } base.OnSubmit(actionName, postValue, response); //多阶段加工新方案升级机加工任务记录 UpdateRecordForm(actionName, activityCode); if (activityCode == ActivityJY && actionName == "Submit") { Salary slr = new Salary(me.Engine, me.PostValue("ID")); slr.Save(ProcessName, false); } abnormalStep(me, postValue, response); }