| | |
| | | using DevExpress.XtraBars; |
| | | using DevExpress.XtraBars.FluentDesignSystem; |
| | | using DevExpress.XtraBars.Navigation; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors.TextEditController; |
| | | using DevExpress.XtraLayout; |
| | | using DevExpress.XtraTab; |
| | | using DevExpress.XtraTab.ViewInfo; |
| | | using Gs.DevApp.DevFrm.User; |
| | |
| | | using System.Configuration; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.IO; |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Gs.DevApp.DevFrm |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | }; |
| | | |
| | | #region 加上底部提醒 |
| | | string _webApiUrl = ConfigurationManager.AppSettings["WebApiUrl"]; |
| | | string _autoUpdate = (ConfigurationManager.AppSettings["IsAutoUpdater"]); |
| | | string _version = ConfigurationManager.AppSettings["Version"]; |
| | | toolVersion.Text = "当前版本:" + _version + ",服务Api:" + _webApiUrl; |
| | | #endregion |
| | | } |
| | | /// <summary> |
| | | /// 显示右键菜单 |
| | |
| | | /// </summary> |
| | | private void getTree() |
| | | { |
| | | toolTime.Text = "登录时间" + LoginInfoModel.CurrentUser.LoginTime; |
| | | toolTime.Text = "登录时间:" + LoginInfoModel.CurrentUser.LoginTime; |
| | | var _obj = new |
| | | { |
| | | userGuid = LoginInfoModel.CurrentUser.LoginUserGuid, |
| | |
| | | newForm.Dock = DockStyle.Fill; |
| | | newForm.Visible = true; |
| | | shiXian(newForm, formName, InitializeVal); |
| | | #region 加上底部提醒 |
| | | string _strFont = Gs.DevApp.Properties.Settings.Default.fontSizeName; |
| | | string _ver = ""; |
| | | var _obj = new |
| | | { |
| | | formPath = formName, |
| | | }; |
| | | try |
| | | { |
| | | string strJson = UtilityHelper.HttpPost("", "Fm/GetModelByVersion", JsonConvert.SerializeObject(_obj)); |
| | | ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | _ver = _rtn.rtnData; |
| | | } |
| | | else |
| | | _ver = _rtn.rtnMsg; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | _ver = ex.Message; |
| | | } |
| | | toolFont.Text = (",字体:" + _strFont + ",窗体:" + formName + ",版面:" + _ver); |
| | | #endregion |
| | | return newForm; |
| | | } |
| | | catch (Exception) |
| | |
| | | private void GetOrg() |
| | | { |
| | | string userGuid = LoginInfoModel.CurrentUser.LoginUserGuid; |
| | | System.Text.StringBuilder sbSql= new System.Text.StringBuilder(); |
| | | 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='组织' ) "); |
| | | 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 |