//#region 审批流程
        ///// <summary>
        ///// 提交审核完成
        ///// </summary>
        ///// <param name="sender"></param>
        ///// <param name="e"></param>
        //void audit_AuditCompleted(object sender, SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs e)
        //{
        //    auditResult = e.Result;
        //    switch (auditResult)
        //    {
        //        case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
        //            //todo 审核中
        //            SumbitCompleted();
        //            break;
        //        case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Cancel:
        //            //todo 取消
        //            Cancel();
        //            break;
        //        case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
        //            //todo 终审通过
        //            SumbitCompleted();
        //            break;
        //        case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
        //            //todo 审核不通过
        //            SumbitCompleted();
        //            break;
        //        case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Error:
        //            //todo 审核异常
        //            HandError();
        //            break;
        //    }
        //}
        //private void Cancel()
        //{
        //    RefreshUI(RefreshedTypes.Close);
        //}
        //private void HandError()
        //{
        //    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("AUDITFAILURE"));
        //    RefreshUI(RefreshedTypes.CloseAndReloadData);
        //}
        //private void SumbitCompleted()
        //{
        //    try
        //    {
        //        if (WelfarePaymentWithdrawalInfo != null)
        //        {
        //            WelfarePaymentWithdrawalInfo.UPDATEDATE = DateTime.Now;
        //            WelfarePaymentWithdrawalInfo.UPDATEUSERID = Common.CurrentLoginUserInfo.EmployeeID;
        //            WelfarePaymentWithdrawalInfo.UPDATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName;
        //            switch (auditResult)
        //            {
        //                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing://审核中
        //                    WelfarePaymentWithdrawalInfo.CHECKSTATE = Utility.GetCheckState(CheckStates.Approving);
        //                    break;
        //                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful://审核通过
        //                    WelfarePaymentWithdrawalInfo.CHECKSTATE = Utility.GetCheckState(CheckStates.Approved);
        //                    ssc.EmployeeAddSumByEmployeeIDDeleteAsync(delteWelfarePaymentDetail, Year, Month);//删除薪资中的相关福利发放数据
        //                    break;
        //                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail://审核未通过
        //                    WelfarePaymentWithdrawalInfo.CHECKSTATE = Utility.GetCheckState(CheckStates.UnApproved);
        //                    break;
        //            }
        //            BenefitsAdministration.UpdateWelfarePaymentWithdrawalAsync(WelfarePaymentWithdrawalInfo);
        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), ex.ToString());
        //    }
        //}
        //#endregion

        //#region 获取审核控件的值(InitAudit)
        //private void InitAudit()
        //{
        //    SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity;
        //    entity.ModelCode = "T_OA_WELFAREDISTRIBUTEUNDO";
        //    entity.FormID = InfoObj.WELFAREDISTRIBUTEUNDOID;
        //    entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
        //    entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
        //    entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID;
        //    entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID;
        //    entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName;
        //    entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID;
        //    entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName;
        //    audit.BindingData();
        //}
        //#endregion

        //#region 提交流程
        ///// <summary>
        ///// 提交流程
        ///// </summary>
        //private void SumbitFlow()
        //{
        //    if (InfoObj != null)
        //    {
        //        SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity;
        //        entity.ModelCode = "T_OA_WELFAREDISTRIBUTEUNDO";
        //        entity.FormID = InfoObj.WELFAREDISTRIBUTEUNDOID;
        //        entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
        //        entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
        //        entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID;
        //        entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID;
        //        entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName;
        //        entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID;
        //        entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName;
        //        audit.XmlObject = DataObjectToXml<T_OA_WELFAREDISTRIBUTEUNDO>.ObjListToXml(InfoObj, "OA");
        //        audit.Submit();
        //    }
        //}
        //#endregion

        #region IAudit
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            string strXmlObjectSource = string.Empty;

            strXmlObjectSource = Utility.ObjListToXml <T_OA_WELFAREDISTRIBUTEUNDO>(InfoObj, "OA");
            Utility.SetAuditEntity(entity, "T_OA_WELFAREDISTRIBUTEUNDO", InfoObj.WELFAREDISTRIBUTEUNDOID, strXmlObjectSource);
        }
Esempio n. 2
0
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            string strXmlObjectSource = string.Empty;

            strXmlObjectSource = Utility.ObjListToXml <T_OA_SATISFACTIONREQUIRE>(_survey, "OA");
            Utility.SetAuditEntity(entity, "T_OA_SATISFACTIONREQUIRE", _survey.SATISFACTIONREQUIREID, strXmlObjectSource);
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
        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. 5
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);
            }
        }
Esempio n. 6
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);
        }
Esempio n. 7
0
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            string strXmlObjectSource = string.Empty;

            strXmlObjectSource = Utility.ObjListToXml <T_OA_SATISFACTIONMASTER>(_survey.RequireMaster, "OA");
            Utility.SetAuditEntity(entity, "T_OA_SATISFACTIONMASTER", _survey.RequireMaster.SATISFACTIONMASTERID, strXmlObjectSource);
        }
Esempio n. 8
0
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            string strXmlObjectSource = string.Empty;

            strXmlObjectSource = Utility.ObjListToXml <T_OA_CONTRACTVIEW>(ContractViewObj, "OA");
            Utility.SetAuditEntity(entity, "T_OA_CONTRACTVIEW", ContractViewObj.CONTRACTVIEWID, strXmlObjectSource);
        }
Esempio n. 9
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);
        }
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            string XmlSourcce = string.Empty;

            XmlSourcce = Utility.ObjListToXml <T_OA_SATISFACTIONDISTRIBUTE>(distributeEntity, "OA");
            Utility.SetAuditEntity(entity, "T_OA_SATISFACTIONDISTRIBUTE", XmlSourcce);
        }
Esempio n. 11
0
        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);
        }
Esempio n. 12
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_MAINTENANCEAPP>(conserVation, "OA", parameters);
            Utility.SetAuditEntity(entity, "T_OA_MAINTENANCEAPP", conserVation.MAINTENANCEAPPID, strXmlObjectSource);
        }
Esempio n. 13
0
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            if (operationType == FormTypes.Edit)
            {
                EntityBrowser browser = this.FindParentByType <EntityBrowser>();
                browser.AuditCtrl.Auditing += new EventHandler <SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(AuditCtrl_Auditing);
            }
            string strXmlObjectSource = string.Empty;

            Utility.SetAuditEntity(entity, "T_SYS_ROLEAPP", roleInfo.ROLEID, strXmlObjectSource);
        }
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     //string xmlSourcce = string.Empty;
     //xmlSourcce = Utility.ObjListToXml<T_OA_SATISFACTIONREQUIRE>(requireEntity, "OA");
     //Utility.SetAuditEntity(entity, "T_OA_SATISFACTIONREQUIRE", xmlSourcce);
 }
        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. 16
0
 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     throw new NotImplementedException();
 }
        public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            string xmlSourcce = Utility.ObjListToXml <T_OA_REQUIRE>(appView.requireEntity, "OA");

            Utility.SetAuditEntity(entity, "T_OA_REQUIRE", key, xmlSourcce);
        }