From 770c671fb4ad9bf3691b1250bc10f9c4087edf97 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期五, 06 十二月 2024 08:25:13 +0800 Subject: [PATCH] 修改进度条 --- DevApp/Gs.DevApp/DevFrm/FrmMain.cs | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/FrmMain.cs b/DevApp/Gs.DevApp/DevFrm/FrmMain.cs index c00981d..3126b9e 100644 --- a/DevApp/Gs.DevApp/DevFrm/FrmMain.cs +++ b/DevApp/Gs.DevApp/DevFrm/FrmMain.cs @@ -15,10 +15,8 @@ using Gs.DevApp.DevFrm.User; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; -using Gs.DevApp.UserControl; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using static DevExpress.XtraReports.Design.XtraTabControl; namespace Gs.DevApp.DevFrm { @@ -144,9 +142,9 @@ getTree(); } - private async void getTree() + private void getTree() { - UcLoading _loading = new UcLoading(); + toolTime.Text = "鐧诲綍鏃堕棿" + LoginInfoModel.CurrentUser.LoginTime; var _obj = new { @@ -155,11 +153,11 @@ }; try { - var strJson = await UtilityHelper.HttpPostAsync("", + var strJson = UtilityHelper.HttpPost("", "User/GetUserLoginInfo", JsonConvert.SerializeObject(_obj)); + DevExpress.Utils.WaitDialogForm wdf = new DevExpress.Utils.WaitDialogForm("鎷煎懡鍔犺浇涓紝璇风◢鍚�......", "鍙嬫儏鎻愮ず"); var _job = JObject.Parse(strJson); var rtnCode = _job["rtnCode"].ToString(); - _loading.Stop(); if (int.Parse(rtnCode) > 0) { acrd.Clear(); @@ -176,6 +174,7 @@ int gdx = 0, idx = 0; foreach (var _dy in drGrp) { + wdf.SetCaption("鍔犺浇杩涘害:" + _dy["name"].ToString()); var _grp = acrd.AddGroup(); _grp.ImageOptions.Image = UtilityHelper.GetImgFromResource( @@ -221,13 +220,15 @@ { MsgHelper.ShowError("鎻愮ず锛氬垵濮嬪寲澶辫触锛岃鑱旂郴绠$悊鍛橈紒"); } + wdf.SetCaption("鍔犺浇杩涘害锛�90/100锛�"); + wdf.Close(); } catch (Exception ex) { - _loading.Stop(); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } - + } /// <summary> -- Gitblit v1.9.3