| | |
| | | <add key="ProductName" value="å¹¿æ·±ç§æ G-MES V2.0" /> |
| | | <add key="PageSize" value="50" /> |
| | | <add key="Version" value="0.1" /> |
| | | <add key="IsAutoUpdater" value="0" /> |
| | | <add key="IsAutoUpdater" value="1" /> |
| | | <add key="AutoUpdaterXml" value="https://dianbei.top/AutoUpdater/AutoUpdater.xml" /> |
| | | </appSettings> |
| | | <userSettings> |
| | |
| | | InitializeComponent(); |
| | | if (ConfigurationManager.AppSettings["IsAutoUpdater"] == "1") |
| | | _autoUpdate(); |
| | | else |
| | | _getRemember(); |
| | | _getRemember(); |
| | | Text = lbVersion.Text = ConfigurationManager.AppSettings["ProductName"]; |
| | | btnLogin.Click += BtnLogin_Click; |
| | | btnCancel.Click += BtnCancel_Click; |
| | |
| | | JObject _login = _rtn.rtnData; |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | Settings.Default.userName = ckRemember.Checked? txtUser.Text.Trim() : ""; |
| | | Settings.Default.userName = ckRemember.Checked ? txtUser.Text.Trim() : ""; |
| | | Settings.Default.userPwd = ckRemember.Checked ? txtPwd.Text.Trim() : ""; |
| | | Settings.Default.remember = ckRemember.Checked; |
| | | Settings.Default.Save(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <configuration> |
| | | <configSections> |
| | | <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System"> |
| | | <section name="DevExpress.LookAndFeel.Design.AppSettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
| | | </sectionGroup> |
| | | <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <section name="Gs.DevApp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> |
| | | </sectionGroup> |
| | | <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.23.1, Culture=neutral, PublicKeyToken=89b483f429c47342" /> |
| | | </configSections> |
| | | <applicationSettings> |
| | | <DevExpress.LookAndFeel.Design.AppSettings> |
| | | <setting name="DPIAwarenessMode" serializeAs="String"> |
| | | <value>System</value> |
| | | </setting> |
| | | <setting name="RegisterBonusSkins" serializeAs="String"> |
| | | <value>True</value> |
| | | </setting> |
| | | </DevExpress.LookAndFeel.Design.AppSettings> |
| | | </applicationSettings> |
| | | <startup> |
| | | <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> |
| | | </startup> |
| | | <runtime> |
| | | <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| | | <probing privatePath="x86" /> |
| | | </assemblyBinding> |
| | | <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| | | <dependentAssembly> |
| | | <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
| | | <bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" /> |
| | | </dependentAssembly> |
| | | </assemblyBinding> |
| | | <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| | | <dependentAssembly> |
| | | <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> |
| | | <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> |
| | | </dependentAssembly> |
| | | </assemblyBinding> |
| | | </runtime> |
| | | <appSettings> |
| | | <add key="WebApiUrl" value="http://192.168.1.145:81/" /> |
| | | <add key="LogPath" value="logs" /> |
| | | <add key="ProductName" value="å¹¿æ·±ç§æ G-MES V2.0" /> |
| | | <add key="PageSize" value="50" /> |
| | | <add key="Version" value="7.2.9" /> |
| | | <add key="IsAutoUpdater" value="1" /> |
| | | <add key="AutoUpdaterXml" value="https://dianbei.top/AutoUpdater/AutoUpdater.xml" /> |
| | | </appSettings> |
| | | <userSettings> |
| | | <Gs.DevApp.Properties.Settings> |
| | | <setting name="userName" serializeAs="String"> |
| | | <value /> |
| | | </setting> |
| | | <setting name="userPwd" serializeAs="String"> |
| | | <value /> |
| | | </setting> |
| | | <setting name="remember" serializeAs="String"> |
| | | <value>False</value> |
| | | </setting> |
| | | <setting name="fontSize" serializeAs="String"> |
| | | <value>10</value> |
| | | </setting> |
| | | <setting name="fontName" serializeAs="String"> |
| | | <value>Tahoma</value> |
| | | </setting> |
| | | </Gs.DevApp.Properties.Settings> |
| | | </userSettings> |
| | | <system.web> |
| | | <membership defaultProvider="ClientAuthenticationMembershipProvider"> |
| | | <providers> |
| | | <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" /> |
| | | </providers> |
| | | </membership> |
| | | <roleManager defaultProvider="ClientRoleProvider" enabled="true"> |
| | | <providers> |
| | | <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" /> |
| | | </providers> |
| | | </roleManager> |
| | | </system.web> |
| | | <system.data> |
| | | <DbProviderFactories> |
| | | <remove invariant="Oracle.ManagedDataAccess.Client" /> |
| | | <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.23.1, Culture=neutral, PublicKeyToken=89b483f429c47342" /> |
| | | </DbProviderFactories> |
| | | </system.data> |
| | | </configuration> |
| | |
| | | this.gv_operationTime.AppearanceCell.Options.UseFont = true; |
| | | this.gv_operationTime.Caption = "æä½æ¶é´"; |
| | | this.gv_operationTime.FieldName = "operationTime"; |
| | | this.gv_operationTime.MinWidth = 150; |
| | | this.gv_operationTime.MinWidth = 120; |
| | | this.gv_operationTime.Name = "gv_operationTime"; |
| | | this.gv_operationTime.OptionsColumn.ReadOnly = true; |
| | | this.gv_operationTime.ToolTip = "query_a.OPERATION_TIME"; |
| | | this.gv_operationTime.Visible = true; |
| | | this.gv_operationTime.VisibleIndex = 0; |
| | | this.gv_operationTime.Width = 150; |
| | | this.gv_operationTime.Width = 120; |
| | | // |
| | | // gv_operationTable |
| | | // |
| | |
| | | this.gv_operationTable.AppearanceCell.Options.UseFont = true; |
| | | this.gv_operationTable.Caption = "ç¸å
³è¡¨"; |
| | | this.gv_operationTable.FieldName = "operationTable"; |
| | | this.gv_operationTable.MinWidth = 80; |
| | | this.gv_operationTable.MinWidth = 50; |
| | | this.gv_operationTable.Name = "gv_operationTable"; |
| | | this.gv_operationTable.OptionsColumn.ReadOnly = true; |
| | | this.gv_operationTable.Tag = "query_a.OPERATION_TABLE"; |
| | |
| | | this.gv_userName.AppearanceCell.Options.UseFont = true; |
| | | this.gv_userName.Caption = "æä½äººå"; |
| | | this.gv_userName.FieldName = "userName"; |
| | | this.gv_userName.MinWidth = 80; |
| | | this.gv_userName.MinWidth = 40; |
| | | this.gv_userName.Name = "gv_userName"; |
| | | this.gv_userName.OptionsColumn.ReadOnly = true; |
| | | this.gv_userName.Tag = "query_a.USER_NAME"; |
| | |
| | | this.gv_msg.AppearanceCell.Options.UseFont = true; |
| | | this.gv_msg.Caption = "æä½è¯¦æ
"; |
| | | this.gv_msg.FieldName = "msg"; |
| | | this.gv_msg.MinWidth = 300; |
| | | this.gv_msg.MinWidth = 50; |
| | | this.gv_msg.Name = "gv_msg"; |
| | | this.gv_msg.OptionsColumn.ReadOnly = true; |
| | | this.gv_msg.Tag = "query_a.MSG"; |
| | |
| | | gcMain.BindingContext = new BindingContext(); |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | int dddd = dd.rtnData.pages;//æ»é¡µ |
| | | pageBar1.TotalPages = dddd; |
| | | pageBar1.RecordCount = dd.rtnData.total;//è®°å½æ»æ° |
| | | pageBar1.CurrentPage = curPage;//å½å页 |
| | | pageBar1.setTxt(); |
| | | } |
| | | else |
| | | { |
| | |
| | | this.gridColumn1.Caption = "ä»åºID"; |
| | | this.gridColumn1.FieldName = "depotId"; |
| | | this.gridColumn1.MaxWidth = 100; |
| | | this.gridColumn1.MinWidth = 80; |
| | | this.gridColumn1.Name = "gridColumn1"; |
| | | this.gridColumn1.UnboundDataType = typeof(string); |
| | | this.gridColumn1.Width = 80; |
| | |
| | | // |
| | | this.gridColumn2.Caption = "ä»åºç¼å·"; |
| | | this.gridColumn2.FieldName = "depotCode"; |
| | | this.gridColumn2.MinWidth = 80; |
| | | this.gridColumn2.Name = "gridColumn2"; |
| | | this.gridColumn2.UnboundDataType = typeof(string); |
| | | this.gridColumn2.Visible = true; |
| | |
| | | // |
| | | this.gridColumn3.Caption = "ä»åºåç§°"; |
| | | this.gridColumn3.FieldName = "depotName"; |
| | | this.gridColumn3.MinWidth = 100; |
| | | this.gridColumn3.Name = "gridColumn3"; |
| | | this.gridColumn3.Visible = true; |
| | | this.gridColumn3.VisibleIndex = 2; |
| | |
| | | string _keyWhere = ""; |
| | | if (!string.IsNullOrEmpty(orgId)) |
| | | _keyWhere = " and a.FSubsidiary ='" + orgId + "'"; |
| | | var pgq = new PageQueryModel(1, 999999, "depot_code", "asc", "", |
| | | var pgq = new PageQueryModel(1, 999999, "org.FNumber asc ,a.depot_code", "asc", "", |
| | | " and is_ng='A'"+_keyWhere); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | |
| | | lookSearchSupplier.Properties.DataSource = dt; |
| | | lookSearchSupplier.Properties.DisplayMember = "depotName"; |
| | | lookSearchSupplier.Properties.ValueMember = "depotId"; |
| | | lookSearchSupplier.ForceInitialize(); |
| | | lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | | { |
| | | e.Info.DisplayText = (e.RowHandle + 1).ToString(); |
| | | } |
| | | }; |
| | | gridView1.CustomDrawEmptyForeground += (s, e) => |
| | | { |
| | | string str = "ææªæ¥æ¾å°å¹é
çæ°æ®!"; |
| | | Font f = new Font("微软é
é»", 16); |
| | | Rectangle r = new Rectangle(gridView1.GridControl.Width / 2 - 100, e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5); |
| | | e.Graphics.DrawString(str, f, Brushes.Gray, r); |
| | | }; |
| | | } |
| | | private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | private void Frm_UpdateParent(object sender, UpdateParentEventArgs e) |
| | | { |
| | | _filterList = e.FilterList; |
| | | getPageList(1); |
| | | getPageList(1, pageBar1.RowsCount); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="curPage">第å 页</param> |
| | | /// <param name="pageSize">æ¯é¡µå æ¡</param> |
| | | private void getPageList(int curPage) |
| | | private async void getPageList(int curPage) |
| | | { |
| | | |
| | | UcLoading _loading = new UcLoading(); |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.create_date", |
| | | "asc", "", _sbSqlWhere.ToString()); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | | var strReturn = UtilityHelper.HttpPost("", |
| | | var strReturn = await UtilityHelper.HttpPostAsync("", |
| | | _webServiceName + "GetListPage", json); |
| | | var dd = UtilityHelper.ReturnToTablePage(strReturn); |
| | | if (dd.rtnCode > 0) |
| | |
| | | { |
| | | MsgHelper.Warning("æç¤ºï¼" + ex.Message); |
| | | } |
| | | |
| | | _loading.Stop(); |
| | | } |
| | | /// <summary> |
| | | /// |
| | |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | | { |
| | | e.Info.DisplayText = (e.RowHandle + 1).ToString(); |
| | | } |
| | | }; |
| | | gridView1.CustomDrawEmptyForeground += (s, e) => |
| | | { |
| | | string str = "ææªæ¥æ¾å°å¹é
çæ°æ®!"; |
| | | Font f = new Font("微软é
é»", 16); |
| | | Rectangle r = new Rectangle(gridView1.GridControl.Width / 2 - 100, e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5); |
| | | e.Graphics.DrawString(str, f, Brushes.Gray, r); |
| | | }; |
| | | } |
| | | private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="curPage">第å 页</param> |
| | | /// <param name="pageSize">æ¯é¡µå æ¡</param> |
| | | private void getPageList(int curPage) |
| | | private async void getPageList(int curPage) |
| | | { |
| | | |
| | | UcLoading _loading = new UcLoading(); |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString()); |
| | | string json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | | var strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json); |
| | | var strReturn = await UtilityHelper.HttpPostAsync("", _webServiceName + "GetListPage", json); |
| | | ReturnModel<PageListModel> dd = UtilityHelper.ReturnToTablePage(strReturn); |
| | | if (dd.rtnCode > 0) |
| | | { |
| | |
| | | { |
| | | ToolBox.MsgHelper.ShowError("æç¤ºï¼" + ex.Message); |
| | | } |
| | | |
| | | _loading.Stop(); |
| | | } |
| | | private void getModel(string strGuid, bool isEdit, int tabIdx) |
| | | { |