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


C# RefreshedTypes类代码示例

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


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

示例1: RefreshUI

 public void RefreshUI(RefreshedTypes type)
 {
     if (OnUIRefreshed != null)
     {
         UIRefreshedEventArgs args = new UIRefreshedEventArgs();
         args.RefreshedType = type;
         OnUIRefreshed(this, args);
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:9,代码来源:CalculateEmployeeAttendanceYearlyForm.xaml.cs

示例2: RefreshFormType

 /// <summary>
 /// 设置当前页面状态
 /// </summary>
 private void RefreshFormType(FormTypes formtype, RefreshedTypes refreshedType)
 {
     EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
     entBrowser.FormType = formtype;
     types = formtype;
     FormTypesAction = formtype;
     RefreshUI(refreshedType);
     RefreshUI(RefreshedTypes.All);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:12,代码来源:ImportChargeApply.xaml.cs

示例3: RefreshUI

 public void RefreshUI(RefreshedTypes type)
 {
     if (type == RefreshedTypes.ShowProgressBar)
     {
         ShowProgressBasePage();
     }
     if (type == RefreshedTypes.HideProgressBar)
     {
         HideProgressBasePage();
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:11,代码来源:BasePage.cs

示例4: DoAction

 public void DoAction(string actionType)
 {
     switch (actionType)
     {
         case "0":
             RefreshType = RefreshedTypes.All;
             AddToClose();
             break;
         case "1":
             RefreshType = RefreshedTypes.CloseAndReloadData;
             AddToClose();
             break;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:14,代码来源:SysMenuForms.xaml.cs

示例5: DoAction

 public void DoAction(string actionType)
 {
     //RefreshUI(RefreshedTypes.ShowProgressBar);
     switch (actionType)
     {
         case "0": saveType = RefreshedTypes.All;
             if (vehicleInfo != null)
                 UpdateInfo(vehicleInfo);
             break;
         case "1":
             saveType = RefreshedTypes.CloseAndReloadData;
             if (vehicleInfo != null)
                 UpdateInfo(vehicleInfo);
             break;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:16,代码来源:VehicleInfo_upd.xaml.cs

示例6: Upd_ESurveyAppCompleted

 void Upd_ESurveyAppCompleted(object sender, Upd_ESurveyAppCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Error != null && e.Error.Message != "")
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         return;
     }
     if (e.Result > 0)
     {
         if (e.UserState.ToString() == "Edit")
         {
             Utility.ShowMessageBox("UPDATE", isSubmitFlow, true);
             if (isSubmitFlow)
                 saveType = RefreshedTypes.CloseAndReloadData;
             RefreshUI(saveType);
         }
         else if (e.UserState.ToString() == "Audit")
         {
             Utility.ShowMessageBox("SUCCESSAUDIT", isSubmitFlow, true);//审核成功
             RefreshUI(RefreshedTypes.CloseAndReloadData);
         }
         else if (e.UserState.ToString() == "Submit")
         {
             Utility.ShowMessageBox("SUCCESSSUBMITAUDIT", isSubmitFlow, true);//提交成功
             RefreshUI(RefreshedTypes.CloseAndReloadData);
         }
         RefreshUI(RefreshedTypes.All);
     }
     else
     {
         if (e.UserState.ToString() == "Edit")
         {
             Utility.ShowMessageBox("UPDATE", isSubmitFlow, false);//修改失败
         }
         else
         {
             Utility.ShowMessageBox("AUDITFAILURE", isSubmitFlow, false);//提交审核失败
         }
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:41,代码来源:EmployeeSurveyApp_upd.xaml.cs

示例7: DoAction

        public void DoAction(string actionType)
        {
            switch (actionType)
            {
                case "0":
                    saveType = RefreshedTypes.LeftMenu;
                    Save();
                    break;                
                //case "2":
                //    AddIssuanObj();
                //    break;
                //case "1":
                //    ShowPreviewSendDoc();
                //    break;

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

示例8: Upd_ESurveyCompleted

 // //先更新方案成功后, 添加 和修改题目、答案
 void Upd_ESurveyCompleted(object sender, Upd_ESurveyCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Result > 0)
     {
         Utility.ShowMessageBox("UPDATE", isFlow, true);
         if (isFlow)
             saveType = RefreshedTypes.CloseAndReloadData;
         foreach (V_EmployeeSurveySubject v in _osub)  //新增的数据保存后再执行删除操作时 判断
             v.IsAdd = false;
         RefreshUI(saveType);
     }
     else
     {
         Utility.ShowMessageBox("UPDATE", isFlow, false);
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:18,代码来源:EmployeeSurvey_add.xaml.cs

示例9: DoAction

 public void DoAction(string actionType)
 {
     switch (actionType)
     {
         case "0":
             refreshType = RefreshedTypes.All;
             Save();
             break;
         case "1":
             refreshType = RefreshedTypes.CloseAndReloadData;
             Save();
             break;
         case "2":
             Select();
             break;
         case "3":
             refreshType = RefreshedTypes.CloseAndReloadData;
             SumbitAudit();
             break;
         case "4"://入住操作
             Save();
             break;
         case "5"://退房
             Save();
             break;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:27,代码来源:HouseHireAppForm.xaml.cs

示例10: DoAction

 public void DoAction(string actionType)
 {
     switch (actionType)
     {
         case "0":
             Save();
             break;
         case "1":
             refreshType = RefreshedTypes.CloseAndReloadData;
             Cancel();
             break;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:13,代码来源:SelectWelfarePaymentRecords.xaml.cs

示例11: DoAction

        public void DoAction(string actionType)
        {
            switch (actionType)
            {
                case "0":
                    saveType = RefreshedTypes.All;
                    Save();
                    break;
                case "1":
                    Save();
                    break;
                case "2":
                    UploadFilesFunction();
                    break;

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

示例12: Close

 public void Close()
 {
     saveType = "1";
     RefreshType = RefreshedTypes.CloseAndReloadData;
     RefreshUI(RefreshedTypes.All);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:6,代码来源:SysMenuForms.xaml.cs

示例13: DoAction

 public void DoAction(string actionType)
 {
     if (actionType.ToInt32() == 2)
         sel_vUseApp();
     else if (actionType.ToInt32() == 3)
         sel_vDipatch();
     else
     {
         if (!Check()) return;
         RefreshUI(RefreshedTypes.ShowProgressBar);
         switch (actionType)
         {
             case "0":
                 isSubmitFlow = false;
                 saveType = RefreshedTypes.All;
                 Save();
                 break;
             case "1":
                 saveType = RefreshedTypes.CloseAndReloadData;
                 Save();
                 break;
         }
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:24,代码来源:VehicleDispatchForm_upd.xaml.cs

示例14: client_AddBorrowApplyMasterAndDetailCompleted

        //增加借款数据后的完成事件
        void client_AddBorrowApplyMasterAndDetailCompleted(object sender, AddBorrowApplyMasterAndDetailCompletedEventArgs e)
        {
            try
            {
                RefreshUI(RefreshedTypes.HideProgressBar);
                if (e.Error == null)
                {
                    if (e.Result)
                    {
                        isAdd = false;
                        Utility.ShowMessageBox("ADD", isSubmitFlow, true);
                        Utility.ShowMessageBox("ADD", isSubmitFlow, true);
                        if (isSubmitFlow)
                        {
                            saveType = RefreshedTypes.CloseAndReloadData;
                            RefreshUI(saveType);
                            return;
                        }
                        //ctrFile.FormID = BorrowMasterEntity.BORROWAPPLYMASTERID;
                        //ctrFile.Save();

                        RefreshFormType(FormTypes.Edit, RefreshedTypes.AuditInfo);

                        if (needsubmit == true)  //add zl //如果点击提交按钮则调用引擎提交审核
                        {
                            EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
                            entBrowser.ManualSubmit();
                            IsEnabledByFormtype();
                            SetForms();
                            needsubmit = false;
                        }
                    }
                    else
                    {
                        Utility.ShowMessageBox("ADD", isSubmitFlow, false);
                    }
                }
                else
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                    return;
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:49,代码来源:BorrowAppForm.xaml.cs

示例15: DocDistrbuteInfoUpdateCompleted

 //发布完成事件
 void DocDistrbuteInfoUpdateCompleted(object sender, DocDistrbuteInfoUpdateCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result)
         {
             distributeLists.Clear();
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("WERESUCCESSFULLYRELEASED"));
             if (isSubmitFlow)
                 saveType = RefreshedTypes.CloseAndReloadData;
         }
         else
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("PUBLISHEDINVESTIGATIONSFAILED"));
     }
     else
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr("PUBLISHEDINVESTIGATIONSFAILED"));
     RefreshUI(saveType);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:19,代码来源:SatisfactionDistribute_add.xaml.cs


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