public object AddTis(JObject paramJo) { try { List <string> userList = new List <string>(); //var bizData = paramJo["bizdata"].IsNullOrEmpty() == false ? (string)paramJo["bizdata"] : string.Empty; var users = paramJo["users"].IsNullOrEmpty() == false ? (string)paramJo["users"] : string.Empty; WorkFlowExecutionContext ec = new WorkFlowExecutionContext(); ec.LoadFormJson(paramJo); ec.IsMobile = true; if (string.IsNullOrEmpty(ec.Remark)) { ec.Remark = "加签"; } string[] str = users.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); userList.AddRange(str); //service.SaveMobileBizData(ec, bizData); service.ExecuteAddSubTasks(ec, userList); return(AppJsonHelper.ConvertResultToJson(true, string.Empty)); } catch (System.Exception ex) { return(DCHelper.ErrorMessage(ex.Message)); } }
public object Approve(JObject paramJo) { string jsonStr = string.Empty; try { //var bizdata = paramJo["bizdata"].IsNullOrEmpty() == false ? (string)paramJo["bizdata"] : string.Empty; WorkFlowExecutionContext ec = new WorkFlowExecutionContext(); ec.LoadFormJson(paramJo); ec.IsMobile = true; if (string.IsNullOrEmpty(ec.Remark)) { ec.Remark = "同意"; } //service.SaveMobileBizData(ec, bizdata); service.ExecuteTaskComplete(ec); return(AppJsonHelper.ConvertResultToJson(true, string.Empty)); } catch (System.Exception ex) { return(DCHelper.ErrorMessage(ex.Message)); } }
public object RollBack(JObject paramJo) { try { //var bizData = paramJo["bizdata"].IsNullOrEmpty() == false ? (string)paramJo["bizdata"] : string.Empty; WorkFlowExecutionContext ec = new WorkFlowExecutionContext(); ec.LoadFormJson(paramJo); if (string.IsNullOrEmpty(ec.RollBackNodeID)) { throw new Exception("未指定回退节点"); } ec.IsMobile = true; if (string.IsNullOrEmpty(ec.Remark)) { ec.Remark = "不同意"; } //service.SaveMobileBizData(ec, bizData); service.ExecuteRollBack(ec); return(AppJsonHelper.ConvertResultToJson(true, string.Empty)); } catch (System.Exception ex) { return(DCHelper.ErrorMessage(ex.Message)); } }
public object Transmit(JObject paramJo) { try { string newusercode = !paramJo["transmituser"].IsNullOrEmpty() ? (string)paramJo["transmituser"] : string.Empty; if (string.IsNullOrEmpty(newusercode)) { throw new Exception("未设置转签人员"); } WorkFlowExecutionContext ec = new WorkFlowExecutionContext(); ec.LoadFormJson(paramJo); if (string.IsNullOrEmpty(ec.Remark)) { ec.Remark = "转签"; } ec.IsMobile = true; service.ExecuteTaskReassign(ec, newusercode); return(AppJsonHelper.ConvertResultToJson(true, string.Empty)); } catch (System.Exception ex) { return(DCHelper.ErrorMessage(ex.Message)); } }
public object SaveBizDataByMobillApp(JObject paramJo) { string jsonStr = string.Empty; try { var bizdata = paramJo["bizdata"].IsNullOrEmpty() == false ? (string)paramJo["bizdata"] : string.Empty; WorkFlowExecutionContext ec = new WorkFlowExecutionContext(); ec.LoadFormJson(paramJo); ec.IsMobile = true; service.SaveMobileBizData(ec, bizdata); return(AppJsonHelper.ConvertResultToJson(true, string.Empty)); } catch (System.Exception ex) { return(DCHelper.ErrorMessage(ex.Message)); } }