Browse Source

添加Grid汉化包

章政 7 years ago
parent
commit
c52cf7ed1b

+ 6 - 5
UAS_DeviceMonitor/Main.Designer.cs

@@ -373,6 +373,7 @@ namespace UAS_DeviceMonitor
             this.GridViewDeviceList.IndicatorWidth = 30;
             this.GridViewDeviceList.Name = "GridViewDeviceList";
             this.GridViewDeviceList.OptionsView.ShowGroupPanel = false;
+            this.GridViewDeviceList.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(this.GridViewDeviceList_RowCellClick);
             // 
             // de_id
             // 
@@ -1212,7 +1213,7 @@ namespace UAS_DeviceMonitor
             // 
             // ComboxDeviceStatusWC
             // 
-            this.ComboxDeviceStatusWC.Location = new System.Drawing.Point(50, 7);
+            this.ComboxDeviceStatusWC.Location = new System.Drawing.Point(61, 10);
             this.ComboxDeviceStatusWC.MenuManager = this.RibbonNav;
             this.ComboxDeviceStatusWC.Name = "ComboxDeviceStatusWC";
             this.ComboxDeviceStatusWC.Properties.Appearance.Font = new System.Drawing.Font("黑体", 11F);
@@ -1226,7 +1227,7 @@ namespace UAS_DeviceMonitor
             // 
             // ComboxDeviceStatusLC
             // 
-            this.ComboxDeviceStatusLC.Location = new System.Drawing.Point(202, 7);
+            this.ComboxDeviceStatusLC.Location = new System.Drawing.Point(213, 10);
             this.ComboxDeviceStatusLC.MenuManager = this.RibbonNav;
             this.ComboxDeviceStatusLC.Name = "ComboxDeviceStatusLC";
             this.ComboxDeviceStatusLC.Properties.Appearance.Font = new System.Drawing.Font("黑体", 11F);
@@ -1240,7 +1241,7 @@ namespace UAS_DeviceMonitor
             // 
             // CheckEditDeviceStatusEnable
             // 
-            this.CheckEditDeviceStatusEnable.Location = new System.Drawing.Point(321, 9);
+            this.CheckEditDeviceStatusEnable.Location = new System.Drawing.Point(332, 12);
             this.CheckEditDeviceStatusEnable.MenuManager = this.RibbonNav;
             this.CheckEditDeviceStatusEnable.Name = "CheckEditDeviceStatusEnable";
             this.CheckEditDeviceStatusEnable.Properties.Appearance.Font = new System.Drawing.Font("黑体", 10F);
@@ -1253,7 +1254,7 @@ namespace UAS_DeviceMonitor
             // ComboxDeviceStatusLC_label
             // 
             this.ComboxDeviceStatusLC_label.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.ComboxDeviceStatusLC_label.Location = new System.Drawing.Point(162, 10);
+            this.ComboxDeviceStatusLC_label.Location = new System.Drawing.Point(173, 13);
             this.ComboxDeviceStatusLC_label.Name = "ComboxDeviceStatusLC_label";
             this.ComboxDeviceStatusLC_label.Size = new System.Drawing.Size(32, 16);
             this.ComboxDeviceStatusLC_label.TabIndex = 4;
@@ -1262,7 +1263,7 @@ namespace UAS_DeviceMonitor
             // ComboxDeviceStatusWC_label
             // 
             this.ComboxDeviceStatusWC_label.Appearance.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.ComboxDeviceStatusWC_label.Location = new System.Drawing.Point(11, 10);
+            this.ComboxDeviceStatusWC_label.Location = new System.Drawing.Point(22, 13);
             this.ComboxDeviceStatusWC_label.Name = "ComboxDeviceStatusWC_label";
             this.ComboxDeviceStatusWC_label.Size = new System.Drawing.Size(32, 16);
             this.ComboxDeviceStatusWC_label.TabIndex = 2;

+ 9 - 2
UAS_DeviceMonitor/Main.cs

@@ -21,7 +21,7 @@ namespace UAS_DeviceMonitor
     {
 
         StringBuilder sql = new StringBuilder();
-
+        //用于设备状态查询界面SQL查看
         StringBuilder DeviceStatusQuerySQL = new StringBuilder();
         DataHelper dh;
         ModeBusTCPServer mbt = new ModeBusTCPServer();
@@ -77,7 +77,7 @@ namespace UAS_DeviceMonitor
         private void Main_Load(object sender, EventArgs e)
         {
             //设备列表
-            GridDeviceList.GetDataSQL = "select de_id,de_code,de_name,de_spec,de_indate,de_runstatus,de_address,de_wccode,de_vendcode,de_vendname from device".ToUpper();
+            GridDeviceList.GetDataSQL = "select de_id,de_code,de_name,de_spec,de_indate,de_runstatus,de_address,de_wccode,de_vendcode,de_vendname from device order by de_code".ToUpper();
             ToolPageControlDeviceList.Gridcontrol = GridDeviceList;
             //轮询业务
             //GridPolling.GetDataSQL = "select 0 CHECKEDCOLUMN,pl_id,pl_code,pl_name,pl_type,pl_dccode,pl_remark from polling".ToUpper();
@@ -119,6 +119,13 @@ namespace UAS_DeviceMonitor
         }
         #endregion
 
+        #region 设备列表界面
+        private void GridViewDeviceList_RowCellClick(object sender, RowCellClickEventArgs e)
+        {
+            XtraMessageBox.Show(e.RowHandle.ToString());
+        }
+        #endregion
+
         #region 界面通用事件
         /// <summary>
         /// 选项卡切换不同XPage

+ 1 - 0
UAS_DeviceMonitor/Program.cs

@@ -34,6 +34,7 @@ namespace UAS_DeviceMonitor
                 string sysdisc = Environment.GetEnvironmentVariable("windir").Substring(0, 1);
                 if (!Directory.Exists(SystemInf.LogFolder))
                     Directory.CreateDirectory(SystemInf.LogFolder);
+                System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CHS");
                 FileStream fs = new FileStream(SystemInf.LogFolder + DateTime.Now.ToString("yyyy-MM-dd") + ".txt", FileMode.OpenOrCreate, FileAccess.ReadWrite);
                 fs.Close();
                 //创建存储登录信息的文件

BIN
UAS_DeviceMonitor/Tool/zh-CHS/DevExpress.XtraGrid.v15.2.Design.resources.dll


BIN
UAS_DeviceMonitor/Tool/zh-CHS/DevExpress.XtraGrid.v15.2.resources.dll


+ 88 - 0
UAS_DeviceMonitor/UAS_DeviceMonitor.csproj

@@ -32,6 +32,10 @@
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <ItemGroup>
+    <Reference Include="DevExpress.Charts.Designer.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.Charts.Designer.v15.2.resources.dll</HintPath>
+    </Reference>
     <Reference Include="DevExpress.Charts.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
     <Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
     <Reference Include="DevExpress.Printing.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
@@ -44,12 +48,96 @@
     <Reference Include="DevExpress.XtraCharts.v15.2.UI, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
     <Reference Include="DevExpress.XtraCharts.v15.2.Wizard, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
     <Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
+    <Reference Include="DevExpress.XtraEditors.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraEditors.v15.2.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraGauges.v15.2.Core.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraGauges.v15.2.Core.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraGauges.v15.2.Presets.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraGauges.v15.2.Presets.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraGauges.v15.2.Win.resources">
+      <HintPath>Tool\zh-CHS\DevExpress.XtraGauges.v15.2.Win.resources.dll</HintPath>
+    </Reference>
     <Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
+    <Reference Include="DevExpress.XtraGrid.v15.2.Design.resources">
+      <HintPath>Tool\zh-CHS\DevExpress.XtraGrid.v15.2.Design.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraGrid.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraGrid.v15.2.resources.dll</HintPath>
+    </Reference>
     <Reference Include="DevExpress.XtraLayout.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
     <Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
+    <Reference Include="DevExpress.XtraReports.v15.2.Extensions.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraReports.v15.2.Extensions.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraReports.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraReports.v15.2.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraReports.v15.2.Web.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraReports.v15.2.Web.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraRichEdit.v15.2.Extensions.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraRichEdit.v15.2.Extensions.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraRichEdit.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraRichEdit.v15.2.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraScheduler.v15.2.Core.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraScheduler.v15.2.Core.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraScheduler.v15.2.Design.resources">
+      <HintPath>Tool\zh-CHS\DevExpress.XtraScheduler.v15.2.Design.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraScheduler.v15.2.Extensions.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraScheduler.v15.2.Extensions.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraScheduler.v15.2.Reporting.Extensions.resources">
+      <HintPath>Tool\zh-CHS\DevExpress.XtraScheduler.v15.2.Reporting.Extensions.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraScheduler.v15.2.Reporting.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraScheduler.v15.2.Reporting.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraScheduler.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraScheduler.v15.2.resources.dll</HintPath>
+    </Reference>
     <Reference Include="DevExpress.XtraSpellChecker.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
+    <Reference Include="DevExpress.XtraSpellChecker.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraSpellChecker.v15.2.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraSpreadsheet.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraSpreadsheet.v15.2.resources.dll</HintPath>
+    </Reference>
+    <Reference Include="DevExpress.XtraTreeList.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraTreeList.v15.2.resources.dll</HintPath>
+    </Reference>
     <Reference Include="DevExpress.XtraVerticalGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
+    <Reference Include="DevExpress.XtraVerticalGrid.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraVerticalGrid.v15.2.resources.dll</HintPath>
+    </Reference>
     <Reference Include="DevExpress.XtraWizard.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
+    <Reference Include="DevExpress.XtraWizard.v15.2.resources, Version=15.2.0.0, Culture=de, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>Tool\zh-CHS\DevExpress.XtraWizard.v15.2.resources.dll</HintPath>
+    </Reference>
     <Reference Include="Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=MSIL" />
     <Reference Include="System" />
     <Reference Include="System.Configuration" />