cdk
2025-09-04 72dc506dbd884fac5011b38d94280bf3e807969a
DevApp/Gs.DevApp/DevFrm/FrmMain.cs
@@ -95,6 +95,13 @@
                    MsgHelper.Warning("提示:" + ex.Message);
                }
            };
            #region 加上底部提醒
            string _webApiUrl = ConfigurationManager.AppSettings["WebApiUrl"];
            string _autoUpdate = (ConfigurationManager.AppSettings["IsAutoUpdater"]);
            string _version = ConfigurationManager.AppSettings["Version"];
            toolVersion.Text = "当前版本:" + _version + ",服务地址:" + _webApiUrl;
            #endregion
        }
        /// <summary>
        /// 显示右键菜单
@@ -172,7 +179,7 @@
        /// </summary>
        private void getTree()
        {
            toolTime.Text = "登录时间" + LoginInfoModel.CurrentUser.LoginTime;
            toolTime.Text = "登录时间:" + LoginInfoModel.CurrentUser.LoginTime;
            var _obj = new
            {
                userGuid = LoginInfoModel.CurrentUser.LoginUserGuid,
@@ -335,15 +342,15 @@
            {
                if (item.Name == name)
                {
                    //后来加上,为了释放窗体资源beg
                    //foreach (Control control in item.Controls)
                    //{
                    //    if (control is Form)
                    //    {
                    //        Form myForm = control as Form;
                    //        myForm.Invoke((MethodInvoker)delegate { myForm.Dispose(); }); // 确保 UI 线程安全地释放资源
                    //    }
                    //}
                    //2025-08-08加上,为了释放窗体资源beg
                    foreach (Control control in item.Controls)
                    {
                        if (control is Form)
                        {
                            Form myForm = control as Form;
                            myForm.Invoke((MethodInvoker)delegate { myForm.Dispose(); }); // 确保 UI 线程安全地释放资源
                        }
                    }
                    //后来加上,为了释放窗体资源end
                    tabControl.TabPages.Remove(item);
                    item.Dispose();
@@ -485,7 +492,10 @@
        private void GetOrg()
        {
            string userGuid = LoginInfoModel.CurrentUser.LoginUserGuid;
            var pgq = new PageQueryModel(1, 999999, "FID", "asc", userGuid, " and IS_STATUS=1");
            System.Text.StringBuilder sbSql= new System.Text.StringBuilder();
            sbSql.Append(" and IS_STATUS=1");
            sbSql.Append(" and fid in( select org.FID from [dbo].[SYS_USER_BIND] b left join SYS_ORGANIZATION org on b.aboutGuid=org.FID where  userGuid='"+ LoginInfoModel.CurrentUser.LoginUserGuid + "' and fType='组织' ) ");
            var pgq = new PageQueryModel(1, 999999, "FID", "asc", userGuid, sbSql.ToString());
            var json = JsonConvert.SerializeObject(pgq);
            try
            {