| | |
| | | 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 |
| | | { |
| | |
| | | getTree(); |
| | | } |
| | | |
| | | private async void getTree() |
| | | private void getTree() |
| | | { |
| | | UcLoading _loading = new UcLoading(); |
| | | |
| | | toolTime.Text = "登录时间" + LoginInfoModel.CurrentUser.LoginTime; |
| | | var _obj = new |
| | | { |
| | |
| | | }; |
| | | 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(); |
| | |
| | | int gdx = 0, idx = 0; |
| | | foreach (var _dy in drGrp) |
| | | { |
| | | wdf.SetCaption("加载进度:" + _dy["name"].ToString()); |
| | | var _grp = acrd.AddGroup(); |
| | | _grp.ImageOptions.Image = |
| | | UtilityHelper.GetImgFromResource( |
| | |
| | | _itm.Name = _dy2["guid"].ToString(); |
| | | _itm.Style = ElementStyle.Item; |
| | | _itm.Text = _dy2["name"].ToString(); |
| | | wdf.SetCaption("加载进度:" + _dy2["name"].ToString()); |
| | | _itm.Appearance.Normal.Font = |
| | | new Font("Tahoma", 10F); |
| | | _itm.Tag = _dy2["formPath"].ToString(); //存路径,类名 |
| | |
| | | { |
| | | MsgHelper.ShowError("提示:初始化失败,请联系管理员!"); |
| | | } |
| | | wdf.SetCaption("加载进度(90/100)"); |
| | | wdf.Close(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | _loading.Stop(); |
| | | |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |