当前位置: 首页>>代码示例>>C#>>正文


C# FrameworkUI类代码示例

本文整理汇总了C#中FrameworkUI的典型用法代码示例。如果您正苦于以下问题:C# FrameworkUI类的具体用法?C# FrameworkUI怎么用?C# FrameworkUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FrameworkUI类属于命名空间,在下文中一共展示了FrameworkUI类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnSubmitCompleted

 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);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:23,代码来源:BenefitsAdministrationChildWindows.xaml.cs

示例2: SetFlowRecordEntity

 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);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:6,代码来源:SatisfactionDistribute_upd.xaml.cs

示例3: SetFlowRecordEntity

 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);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:8,代码来源:ConserVationRecord_add.xaml.cs

示例4: OnSubmitCompleted

 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);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:25,代码来源:VehicleDispatchForm_upd.xaml.cs

示例5: SetFlowRecordEntity

        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);

        }
开发者ID:JuRogn,项目名称:OA,代码行数:8,代码来源:EmployeeSurveyChildWindow.xaml.cs

示例6: SetFlowRecordEntity

 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);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:5,代码来源:EmployeeSurveyDistributeChildWindow.xaml.cs

示例7: OnSubmitCompleted

 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();
 }
开发者ID:JuRogn,项目名称:OA,代码行数:17,代码来源:SatisfactionSurveyChildWindow.xaml.cs

示例8: OnSubmitCompleted

        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);
        }
开发者ID:JuRogn,项目名称:OA,代码行数:60,代码来源:TravelRequestForm_Audit.cs

示例9: SetFlowRecordEntity

 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);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:6,代码来源:VehicleUseAppForm.xaml.cs

示例10: OnSubmitCompleted

        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"));
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:57,代码来源:TravelReimbursementControl_Audit.cs

示例11: SetFlowRecordEntity

        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);
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:31,代码来源:TravelRequestForm_Audit.cs

示例12: SetFlowRecordEntity

        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;
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:60,代码来源:TravelReimbursementControl_Audit.cs

示例13: OnSubmitCompleted

 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     throw new NotImplementedException();
 }
开发者ID:JuRogn,项目名称:OA,代码行数:4,代码来源:SatisfactionsChildWindow.xaml.cs

示例14: SetFlowRecordEntity

 public void SetFlowRecordEntity(FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
 {
     throw new NotImplementedException();
 }
开发者ID:JuRogn,项目名称:OA,代码行数:4,代码来源:SatisfactionsChildWindow.xaml.cs

示例15: SetFlowRecordEntity

 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);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:6,代码来源:ApplicationsForContractsPages.xaml.cs


注:本文中的FrameworkUI类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。