public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     string UserState = "Audit";
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             break;
     }
     if (InfoObj.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
     {
         UserState = "Submit";
     }
     InfoObj.CHECKSTATE = state;
     wssc.UpdateWelfareStandardAsync(InfoObj, welfareDetailList, UserState);
 }
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     strXmlObjectSource = Utility.ObjListToXml<T_OA_SATISFACTIONDISTRIBUTE>(_survey, "OA");
     Utility.SetAuditEntity(entity, "T_OA_SATISFACTIONDISTRIBUTE", _survey.SATISFACTIONDISTRIBUTEID, strXmlObjectSource);
 }
Esempio n. 3
0
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     Dictionary<string, string> parameters = new Dictionary<string, string>();
     parameters.Add("BorrowMoney", fbCtr.GetParamenter().BorrowMoney.ToString());
     strXmlObjectSource = Utility.ObjListToXmlForTravel<T_OA_CONSERVATIONRECORD>(conserVation, "OA", parameters);
     Utility.SetAuditEntity(entity, "T_OA_CONSERVATIONRECORD", conserVation.CONSERVATIONRECORDID, strXmlObjectSource);
 }
Esempio n. 4
0
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     string UserState = string.Empty;
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             break;
     }
     if (vehicleDispatch.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
     {
         UserState = "Submit";
     }
     vehicleDispatch.CHECKSTATE = state;
     isSubmitFlow = true;
     //_VM.UpdateVehicleDispatchAndDetailAsync(vehicleDispatch, null, UserState);
     UpdatevehicleDispatchUpdateInfo(vehicleDispatch);
 }
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            string masterID = masterView.masterEntity.REQUIREMASTERID;
            string xmlObjectSource = Utility.ObjListToXml<T_OA_REQUIREMASTER>(masterView.masterEntity
                , "OA");
            Utility.SetAuditEntity(entity, "T_OA_REQUIREMASTER", masterID, xmlObjectSource);

        }
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string xmlSourcce = Utility.ObjListToXml<T_OA_REQUIREDISTRIBUTE>(distributeView.requiredistributeEntity, "OA");
     Utility.SetAuditEntity(entity, "T_OA_REQUIREDISTRIBUTE", key, xmlSourcce);
 }
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = string.Empty;
     switch (args)
     {
         case AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             break;
         case AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             break;
         case AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             break;
     }
     SaveSatisfactionMaster();
 }
Esempio n. 8
0
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            string state = "";
            Utility.InitFileLoad(FormTypes.Audit, uploadFile, Master_Golbal.BUSINESSTRIPID, false);
            switch (args)
            {
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing://审核中
                    state = Utility.GetCheckState(CheckStates.Approving);
                    if (Master_Golbal.CHARGEMONEY > 0)
                    {
                        fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.Approving); //审核中
                    }
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful://审核通过
                    state = Utility.GetCheckState(CheckStates.Approved);
                    formType = FormTypes.Audit;
                    if (Master_Golbal.CHARGEMONEY > 0)
                    {
                        fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.Approved); //审核通过
                    }
                    if (Master_Golbal.ISAGENT == "1")//如果启用代理
                    {
                        AddAgent(TraveDetailList_Golbal.Count() - 1);
                        OaCommonOfficeClient.AgentDataSetAddAsync(AgentDateSet);//插入代理
                    }
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail://审核未通过
                    state = Utility.GetCheckState(CheckStates.UnApproved);
                    if (Master_Golbal.CHARGEMONEY > 0)
                    {
                        fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.UnApproved); //审核不通过
                    }
                    break;
            }
            if (Master_Golbal.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
            {
                //UserState = "Submit";
            }
            if (formType == FormTypes.Resubmit || formType == FormTypes.New || formType == FormTypes.Edit)
            {
                SetTraveRequestMasterValue();
            }
            Master_Golbal.CHECKSTATE = state;
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (formType == FormTypes.Edit || formType == FormTypes.Resubmit)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }
            if (formType == FormTypes.Audit || formType == FormTypes.Browse)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }

            //approvalInfo.CHECKSTATE = state;
            RefreshUI(RefreshedTypes.AuditInfo);
            RefreshUI(RefreshedTypes.All);
            //Travelmanagement.UpdateTravelmanagementAsync(Businesstrip, buipList, actions.ToString(), UserState);
        }
Esempio n. 9
0
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     strXmlObjectSource = Utility.ObjListToXml<T_OA_VEHICLEUSEAPP>(VehicleUsrApp, "OA");
     Utility.SetAuditEntity(entity, "T_OA_VEHICLEUSEAPP", VehicleUsrApp.VEHICLEUSEAPPID, strXmlObjectSource);
 }
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            Utility.InitFileLoad(FormTypes.Audit, uploadFile, TravelReimbursement_Golbal.TRAVELREIMBURSEMENTID, false);
            RefreshUI(RefreshedTypes.HideProgressBar);

            if (formType == FormTypes.Audit)
            {
                IsAudit = false;
            }
            if (formType == FormTypes.Resubmit)
            {
                Resubmit = false;
            }
            if (formType == FormTypes.New || formType == FormTypes.Edit || formType == FormTypes.Resubmit)
            {
                //MessageBox.Show("更新单号");
                //更新元数据单号
                AgentServicesClient clinet = new AgentServicesClient();
                clinet.UpdateEntityXMLAsync(TravelReimbursement_Golbal.TRAVELREIMBURSEMENTID
                    , "自动生成", TravelReimbursement_Golbal.NOBUDGETCLAIMS);
            }

            if (TravelReimbursement_Golbal.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString()
                || TravelReimbursement_Golbal.CHECKSTATE == Convert.ToInt32(CheckStates.UnApproved).ToString())
            {
                UserState = "Submit";
            }

            switch (args)
            {
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing://审核中
                    state = Utility.GetCheckState(CheckStates.Approving);//提示提交成功
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"),
                        Utility.GetResourceStr("SUCCESSSUBMITAUDIT"));
                    textStandards.Text = string.Empty;//清空报销标准说明
                    OaPersonOfficeClient.GetTravelReimbursementByIdAsync(travelReimbursementID);
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful://审核通过
                    state = Utility.GetCheckState(CheckStates.Approved);
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"),
                        Utility.GetResourceStr("SUCCESSAUDIT"));//提示审核成功
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail://审核未通过
                    state = Utility.GetCheckState(CheckStates.UnApproved);
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"),
                        Utility.GetResourceStr("SUCCESSAUDIT"));//提示审核成功
                    break;
            }
            TravelReimbursement_Golbal.CHECKSTATE = state;
            clickSubmit = false;
            RefreshUI(RefreshedTypes.AuditInfo);
            RefreshUI(RefreshedTypes.All);
            if (TravelReimbursement_Golbal.CHECKSTATE == Utility.GetCheckState(CheckStates.Approving))
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"));
            }
        }
Esempio n. 11
0
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            if (formType == FormTypes.Edit || formType == FormTypes.Resubmit)
            {
                if (Master_Golbal.CHECKSTATE == "0" || Master_Golbal.CHECKSTATE == "3")
                {
                    EntityBrowser browser = this.FindParentByType<EntityBrowser>();
                    browser.AuditCtrl.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(AuditCtrl_Auditing);
                }
            }
            string strXmlObjectSource = string.Empty;
            entity.SystemCode = "OA";
            if (!string.IsNullOrEmpty(entity.BusinessObjectDefineXML))
                strXmlObjectSource = GetXmlString(Master_Golbal, entity.BusinessObjectDefineXML);

            Dictionary<string, string> paraIDs = new Dictionary<string, string>();
            paraIDs.Add("CreateUserID", Master_Golbal.OWNERID);
            paraIDs.Add("CreatePostID", Master_Golbal.OWNERPOSTID);
            paraIDs.Add("CreateDepartmentID", Master_Golbal.OWNERDEPARTMENTID);
            paraIDs.Add("CreateCompanyID", Master_Golbal.OWNERCOMPANYID);
            paraIDs.Add("OWNERNAME", Master_Golbal.OWNERNAME);

            if (Master_Golbal.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
            {
                Utility.SetAuditEntity(entity, "T_OA_BUSINESSTRIP", Master_Golbal.BUSINESSTRIPID, strXmlObjectSource, paraIDs);
            }
            else
            {
                Utility.SetAuditEntity(entity, "T_OA_BUSINESSTRIP", Master_Golbal.BUSINESSTRIPID, strXmlObjectSource);
            }
        }
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            if (formType == FormTypes.Edit || formType == FormTypes.Resubmit)
            {
                EntityBrowser browser = this.FindParentByType<EntityBrowser>();
                browser.AuditCtrl.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(AuditCtrl_Auditing);
            }
            string strXmlObjectSource = string.Empty;
            Dictionary<string, string> parameters = new Dictionary<string, string>();
            parameters.Add("REIMBURSEMENTOFCOSTS", fbCtr.Order.TOTALMONEY.ToString());
            parameters.Add("POSTLEVEL", EmployeePostLevel);
            parameters.Add("DEPARTMENTNAME", depName);
            parameters.Add("BUSINESSTRIPID", businesstrID);

            if (TravelReimbursement_Golbal != null)
            {
                entity.SystemCode = "OA";
                if (!string.IsNullOrEmpty(entity.BusinessObjectDefineXML))
                {
                    strXmlObjectSource = GetXmlString(TravelReimbursement_Golbal, entity.BusinessObjectDefineXML);
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("出差报销表单数据不能为空!"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                if (clickSubmit == true)
                {
                    RefreshUI(RefreshedTypes.All);
                    clickSubmit = false;
                }
                return;
            }
            Dictionary<string, string> paraIDs = new Dictionary<string, string>();
            paraIDs.Add("CreateUserID", TravelReimbursement_Golbal.OWNERID);
            paraIDs.Add("CreatePostID", TravelReimbursement_Golbal.OWNERPOSTID);
            paraIDs.Add("CreateDepartmentID", TravelReimbursement_Golbal.OWNERDEPARTMENTID);
            paraIDs.Add("CreateCompanyID", TravelReimbursement_Golbal.OWNERCOMPANYID);

            if (TravelReimbursement_Golbal.REIMBURSEMENTOFCOSTS > 0 || fbCtr.Order.TOTALMONEY > 0)
            {
                if (TravelReimbursement_Golbal.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
                {
                    Utility.SetAuditEntity(entity, "T_OA_TRAVELREIMBURSEMENT", TravelReimbursement_Golbal.TRAVELREIMBURSEMENTID, strXmlObjectSource, paraIDs);
                }
                else
                {
                    Utility.SetAuditEntity(entity, "T_OA_TRAVELREIMBURSEMENT", TravelReimbursement_Golbal.TRAVELREIMBURSEMENTID, strXmlObjectSource);
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("出差报销费用不能为零,请填写报销费用!"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                if (clickSubmit == true)
                {
                    RefreshUI(RefreshedTypes.All);
                    clickSubmit = false;
                }
                return;
            }
        }
Esempio n. 13
0
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     throw new NotImplementedException();
 }
Esempio n. 14
0
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     throw new NotImplementedException();
 }
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     strXmlObjectSource = Utility.ObjListToXml<T_OA_CONTRACTAPP>(CtappObj, "OA");
     Utility.SetAuditEntity(entity, "T_OA_CONTRACTAPP", CtappObj.CONTRACTAPPID, strXmlObjectSource);
 }
Esempio n. 16
0
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     strXmlObjectSource = Utility.ObjListToXml<T_OA_VEHICLEDISPATCHRECORD>(_record, "OA");
     Utility.SetAuditEntity(entity, "T_OA_VEHICLEDISPATCHRECORD", _record.VEHICLEDISPATCHRECORDID, strXmlObjectSource);
 }
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     string UserState = "Audit";
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             break;
     }
     if (ctappObj.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
     {
         UserState = "Submit";
     }
     ctappObj.CHECKSTATE = state;
     cmsfc.UpdateContraApprovalAsync(ctappObj, UserState);
 }
Esempio n. 18
0
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     strXmlObjectSource = Utility.ObjListToXml<T_OA_REQUIREMASTER>(_survey.RequireMaster, "OA");
     Utility.SetAuditEntity(entity, "T_OA_REQUIREMASTER", _survey.RequireMaster.REQUIREMASTERID, strXmlObjectSource);
 }
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string xmlSource = string.Empty;
     xmlSource = Utility.ObjListToXml<T_OA_SATISFACTIONMASTER>(masterEntity, "OA");
     Utility.SetAuditEntity(entity, "T_OA_SATISFACTIONMASTER", xmlSource);
 }
Esempio n. 20
0
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     string UserState = string.Empty;
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
             break;
     }
     if (vehicleDispatchRecord.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
     {
         UserState = "Submit";
     }
     vehicleDispatchRecord.CHECKSTATE = state;
     isSubmitFlow = true;
     ObservableCollection<T_OA_VEHICLEDISPATCHRECORD> o = new ObservableCollection<T_OA_VEHICLEDISPATCHRECORD>();
     o.Add(vehicleDispatchRecord);
     _VM.Upd_VDRecordAsync(o, UserState);
 }
Esempio n. 21
0
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     strXmlObjectSource = Utility.ObjListToXml<T_OA_VEHICLEDISPATCH>(vehicleDispatch, "OA");
     Utility.SetAuditEntity(entity, "T_OA_VEHICLEDISPATCH", vehicleDispatch.VEHICLEDISPATCHID, strXmlObjectSource);
 }
Esempio n. 22
0
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     strXmlObjectSource = Utility.ObjListToXml<T_OA_REQUIRE>(_survey, "OA");
     Utility.SetAuditEntity(entity, "T_OA_REQUIRE", requireId, strXmlObjectSource);
 }
 void fbCtr_ItemSelectChange(object sender, FrameworkUI.FBControls.ChargeApplyControl.InitDataCompletedArgs e)
 {
     SetTravelDetailValueFromForm();
     //选择了费用后重新计算报销总额
     TravelAllowance(false);
 }
Esempio n. 24
0
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            if (operationType == FormTypes.Edit || operationType == FormTypes.Resubmit)
            {
                EntityBrowser browser = this.FindParentByType<EntityBrowser>();
                browser.AuditCtrl.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(AuditCtrl_Auditing);
            }
            //entity.ModelCode = "T_OA_APPROVALINFO";
            
            
            string strXmlObjectSource = string.Empty;
            Dictionary<string, string> parameters = new Dictionary<string, string>();
            parameters.Add("CHARGEMONEY", approvalInfo.CHARGEMONEY.ToString());
            parameters.Add("POSTLEVEL", postLevel);
            parameters.Add("DEPARTMENTNAME", depName);
            entity.SystemCode = "OA";
            if (!string.IsNullOrEmpty(entity.BusinessObjectDefineXML)) //返回的XML定义不为空时对业务对象进行填充
                strXmlObjectSource = this.GetXmlString(entity.BusinessObjectDefineXML, approvalInfo);
            //strXmlObjectSource = Utility.ObjListToXml<T_OA_APPROVALINFO>(approvalInfo, entity.BusinessObjectDefineXML);
            //strXmlObjectSource = Utility.ObjListToXml<T_OA_APPROVALINFO>(approvalInfo, parameters, "OA");
            //strXmlObjectSource = this.GetXmlString(entity.BusinessObjectDefineXML,approvalInfo);

            Dictionary<string, string> paraIDs = new Dictionary<string, string>();
            paraIDs.Add("CreateUserID", approvalInfo.OWNERID);
            paraIDs.Add("CreatePostID", approvalInfo.OWNERPOSTID);
            paraIDs.Add("CreateDepartmentID", approvalInfo.OWNERDEPARTMENTID);
            paraIDs.Add("CreateCompanyID", approvalInfo.OWNERCOMPANYID);


            if (approvalInfo.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString())
            {
                SMT.SaaS.FrameworkUI.Common.Utility.SetAuditEntity(entity, "T_OA_APPROVALINFO", approvalInfo.APPROVALID, strXmlObjectSource, paraIDs);
            }
            else
            {
                Utility.SetAuditEntity(entity, "T_OA_APPROVALINFO", approvalInfo.APPROVALID, strXmlObjectSource);
            }
        }
Esempio n. 25
0
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = string.Empty;
     switch (args)
     {
         case AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             break;
         case AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             break;
         case AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             break;
     }
     masterView.masterEntity.CHECKSTATE = state;
     SaveMasterData();
 }
Esempio n. 26
0
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            Utility.InitFileLoad(FormTypes.Audit, uploadFile,approvalInfo.APPROVALID,false);
            string state = "";
            SetControlsEnable();
            string UserState = "Audit";
            
            switch (args)
            {
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
                    state = Utility.GetCheckState(CheckStates.Approving);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
                    isAuditing = true;
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
                    state = Utility.GetCheckState(CheckStates.Approved);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
                    state = Utility.GetCheckState(CheckStates.UnApproved);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
                    break;
            }

            RefreshUI(RefreshedTypes.HideProgressBar);
            if (_flwResult == SMT.SaaS.FrameworkUI.CheckStates.Approving)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }
            if (_flwResult == SMT.SaaS.FrameworkUI.CheckStates.Approved)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }

            approvalInfo.CHECKSTATE = state;    
            RefreshUI(RefreshedTypes.AuditInfo);
            RefreshUI(saveType);

            
            //Logger.Current.Log("事项审批进入了状态修改", Category.Debug, Priority.Low);
            
            
        }
Esempio n. 27
0
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     string UserState = string.Empty;
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             break;
     }
     if (_survey.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
     {
         UserState = "Submit";
     }
     _survey.CHECKSTATE = state;
     isSubmitFlow = true;
     _VM.Upd_SSurveyResultAsync(_survey, UserState);
 }
Esempio n. 28
0
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             break;
     }
     _survey.CHECKSTATE = state;
     Save();
 }
Esempio n. 29
0
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
             break;
     }
     conserVation.CHECKSTATE = state;
     isSubmitFlow = true;
     Save();
 }
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     string strXmlObjectSource = string.Empty;
     strXmlObjectSource = Utility.ObjListToXml<T_OA_WELFAREMASERT>(InfoObj, "OA");
     Utility.SetAuditEntity(entity, "T_OA_WELFAREMASERT", InfoObj.WELFAREID, strXmlObjectSource);
 }