Exemplo n.º 1
0
        private void BindProcessForm()
        {
            if (!IsBeginTask)
            {
                ProcessForm      processForm = _formService.GetByInstanceId(IncidentId);
                FaArchiveTranfer entity      = _faProcessService.GetFaArchiveTranferByFormId(processForm.Id);
                ShenQingrenName.Text     = entity.ShenQingRenName;
                ShenQingrenAccount.Value = entity.ShenQingrenAccount;
                ShenQingrenDeptName.Text = entity.ShenQingRenBumenName;
                ShenQingrenId.Value      = entity.ShenQingRenId.ToString();
                ShenQingrenDeptId.Value  = entity.ShenQingRenBumenId.ToString();
                ShenQingRiqi.Text        = FormatHelper.GetIsoDateString(entity.ShenQingRiqi);
                JieyueYuanyin.InnerText  = entity.JieyueYuanyin;
                List <FaProcess> faProcesses = _faProcessService.GetFaProcesslstByTranferId(entity.Id);
                faArchiveInfoData.Value = _faReportInfoJsonService.GetArchiveInfosJson(faProcesses);
            }
            else
            {
                ShenQingrenName.Text     = EDoc2Helper.GetCurrentUserRealName();
                ShenQingrenAccount.Value = EDoc2Helper.GetCurrentUserAccount();
                ShenQingrenId.Value      = EDoc2Helper.GetCurrentUserId().ToString();
                ShenQingRiqi.Text        = DateTime.Now.ToString("yyyy-MM-dd");
                ShenQingrenDeptName.Text = EDoc2Helper.GetCurrentUserDeptName();
                ShenQingrenDeptId.Value  = EDoc2Helper.GetCurrentUserDeptId().ToString();
            }
            List <long> archiveIds = _faProcessService.GetAllJieyueArchiveIds();

            jieyueIds.Value = _faReportInfoJsonService.GetGetAllJieyueArchiveIdsJson(archiveIds);
            FaReportDetailsControl.JieyueIds = jieyueIds.Value;
        }
Exemplo n.º 2
0
        public ProcessForm SaveEntity()
        {
            var               faProcessService = new FaProcessService();
            ProcessForm       processForm      = ProcessFormService.GetByInstanceId(IncidentId);
            FaArchiveTranfer  faArchiveTranferentitynewEntity = GetFaArchiveTranfer();
            IList <FaProcess> newFaprocess           = GetFaProcess();
            FaArchiveTranfer  faArchiveTranferentity = faProcessService.GetFaArchiveTranferByFormId(processForm.Id);

            faArchiveTranferentity.JieyueYuanyin = faArchiveTranferentitynewEntity.JieyueYuanyin;
            faArchiveTranferentity.FaProcesses.Clear();
            faArchiveTranferentity.FaProcesses.AddRange(newFaprocess);
            faProcessService.SaveFaArchiveTranfer(faArchiveTranferentity);
            return(processForm);
        }
Exemplo n.º 3
0
 protected void AbortProcessButton_Click(object sender, EventArgs e)
 {
     try
     {
         ProcessForm      processForm      = ProcessFormService.GetByInstanceId(IncidentId);
         FaArchiveTranfer faArchiveTranfer = FaProcessService.GetFaArchiveTranferByFormId(processForm.Id);
         _faProcessService.UpdateLiuchengzhuangtai(faArchiveTranfer, LiuchengZhuangtaiEnum.YiChexiao);
         AbortIncident();
     }
     catch (Exception ex)
     {
         Edoc2LogHelper.WriteProcessSubmitExceptionLog(ex);
         Dialog("出现异常,请联系管理员。");
     }
 }
Exemplo n.º 4
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("出现异常,请联系管理员。");
     }
 }