lu
2024-12-06 770c671fb4ad9bf3691b1250bc10f9c4087edf97
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,10 +220,12 @@
                {
                    MsgHelper.ShowError("提示:初始化失败,请联系管理员!");
                }
                wdf.SetCaption("加载进度(90/100)");
                wdf.Close();
            }
            catch (Exception ex)
            {
                _loading.Stop();
                MsgHelper.ShowError("提示:" + ex.Message);
            }