Exemplo n.º 1
0
 protected void SubmitProcessButton_Click(object sender, EventArgs e)
 {
     try
     {
         ProcessForm      processForm      = ProcessFormService.GetByInstanceId(IncidentId);
         FaArchiveTranfer faArchiveTranfer = FaProcessService.GetFaArchiveTranferByFormId(processForm.Id);
         IList <Jieyue>   jieyues          = Master.GetJieyues(faArchiveTranfer);
         _faProcessService.UpdateLiuchengzhuangtai(faArchiveTranfer, LiuchengZhuangtaiEnum.YiShenpi);
         _faProcessService.SaveJieyueInfo(jieyues);
         string desc = descText.Value;
         Submit(desc);
     }
     catch (Exception ex)
     {
         Edoc2LogHelper.WriteProcessSubmitExceptionLog(ex);
         Dialog("出现异常,请联系管理员。");
     }
 }
Exemplo n.º 2
0
 protected void StartProcessButton_Click(object sender, EventArgs e)
 {
     try
     {
         string            incidentId       = IncidentId;
         FaArchiveTranfer  faArchiveTranfer = Master.GetFaArchiveTranfer();
         IList <FaProcess> faProcesses      = Master.GetFaProcess();
         ProcessForm       processForm      = ProcessFormService.GetNewProcessForm(ProcessId, incidentId);
         processForm.FaArchiveTranfers.Add(faArchiveTranfer);
         faArchiveTranfer.FaProcesses.AddRange(faProcesses);
         ProcessFormService.Save(processForm);
         StartFa(ProcessId, incidentId, null);
     }
     catch (Exception ex)
     {
         Edoc2LogHelper.WriteProcessSubmitExceptionLog(ex);
         Dialog("出现异常,请联系管理员。");
     }
 }
Exemplo n.º 3
0
 public MasterPageBase()
 {
     EDoc2ProcessManager = new EDoc2ProcessManager();
     ProcessFormService  = new ProcessFormService();
 }
Exemplo n.º 4
0
 public PageBase()
 {
     EDoc2ProcessManager = new EDoc2ProcessManager();
     ProcessFormService  = new ProcessFormService();
     FaProcessService    = new FaProcessService();
 }