lu
2025-09-24 891658c2e6640d8c7631b9c892722ccc1eeaa31b
过站字体大小
已修改3个文件
120 ■■■■ 文件已修改
DevApp/Gs.DevApp/App.config 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.Designer.cs 98 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/App.config
@@ -37,8 +37,8 @@
    <appSettings>
        <!--<add key="webapiurl" value="http://localhost:5263/" />-->
        <!--<add key="WebApiUrl" value="http://192.168.1.145:8081/" />-->
        <add key="WebApiUrl" value="http://192.168.1.145:81/" />
        <add key="WebApiUrl" value="http://192.168.1.145:8081/" />
        <!--<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" />
DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.Designer.cs
@@ -84,16 +84,16 @@
            this.simpleButton3 = new DevExpress.XtraEditors.SimpleButton();
            this.prog1 = new DevExpress.XtraEditors.ProgressBarControl();
            this.panel3 = new System.Windows.Forms.Panel();
            this.lbSum4 = new System.Windows.Forms.Label();
            this.lbSum4 = new DevExpress.XtraEditors.SimpleButton();
            this.label6 = new System.Windows.Forms.Label();
            this.panel2 = new System.Windows.Forms.Panel();
            this.lbSum3 = new System.Windows.Forms.Label();
            this.lbSum3 = new DevExpress.XtraEditors.SimpleButton();
            this.label4 = new System.Windows.Forms.Label();
            this.panel4 = new System.Windows.Forms.Panel();
            this.lbSum2 = new System.Windows.Forms.Label();
            this.lbSum2 = new DevExpress.XtraEditors.SimpleButton();
            this.label8 = new System.Windows.Forms.Label();
            this.panel1 = new System.Windows.Forms.Panel();
            this.lbSum1 = new System.Windows.Forms.Label();
            this.lbSum1 = new DevExpress.XtraEditors.SimpleButton();
            this.label1 = new System.Windows.Forms.Label();
            this.tabMx = new DevExpress.XtraTab.XtraTabControl();
            this.tabMxPage1 = new DevExpress.XtraTab.XtraTabPage();
@@ -772,12 +772,15 @@
            // 
            // lbSum4
            // 
            this.lbSum4.AutoSize = true;
            this.lbSum4.Font = new System.Drawing.Font("Tahoma", 22F);
            this.lbSum4.Location = new System.Drawing.Point(30, 41);
            this.lbSum4.Appearance.BackColor = System.Drawing.SystemColors.Highlight;
            this.lbSum4.Appearance.BorderColor = System.Drawing.SystemColors.Highlight;
            this.lbSum4.Appearance.Options.UseBackColor = true;
            this.lbSum4.Appearance.Options.UseBorderColor = true;
            this.lbSum4.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.lbSum4.Location = new System.Drawing.Point(0, 42);
            this.lbSum4.Name = "lbSum4";
            this.lbSum4.Size = new System.Drawing.Size(40, 45);
            this.lbSum4.TabIndex = 1;
            this.lbSum4.Size = new System.Drawing.Size(99, 47);
            this.lbSum4.TabIndex = 3;
            this.lbSum4.Text = "0";
            // 
            // label6
@@ -802,12 +805,15 @@
            // 
            // lbSum3
            // 
            this.lbSum3.AutoSize = true;
            this.lbSum3.Font = new System.Drawing.Font("Tahoma", 22F);
            this.lbSum3.Location = new System.Drawing.Point(30, 41);
            this.lbSum3.Appearance.BackColor = System.Drawing.SystemColors.Highlight;
            this.lbSum3.Appearance.BorderColor = System.Drawing.SystemColors.Highlight;
            this.lbSum3.Appearance.Options.UseBackColor = true;
            this.lbSum3.Appearance.Options.UseBorderColor = true;
            this.lbSum3.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.lbSum3.Location = new System.Drawing.Point(0, 42);
            this.lbSum3.Name = "lbSum3";
            this.lbSum3.Size = new System.Drawing.Size(40, 45);
            this.lbSum3.TabIndex = 1;
            this.lbSum3.Size = new System.Drawing.Size(99, 47);
            this.lbSum3.TabIndex = 3;
            this.lbSum3.Text = "0";
            // 
            // label4
@@ -832,12 +838,15 @@
            // 
            // lbSum2
            // 
            this.lbSum2.AutoSize = true;
            this.lbSum2.Font = new System.Drawing.Font("Tahoma", 22F);
            this.lbSum2.Location = new System.Drawing.Point(34, 41);
            this.lbSum2.Appearance.BackColor = System.Drawing.SystemColors.Highlight;
            this.lbSum2.Appearance.BorderColor = System.Drawing.SystemColors.Highlight;
            this.lbSum2.Appearance.Options.UseBackColor = true;
            this.lbSum2.Appearance.Options.UseBorderColor = true;
            this.lbSum2.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.lbSum2.Location = new System.Drawing.Point(0, 42);
            this.lbSum2.Name = "lbSum2";
            this.lbSum2.Size = new System.Drawing.Size(40, 45);
            this.lbSum2.TabIndex = 1;
            this.lbSum2.Size = new System.Drawing.Size(110, 47);
            this.lbSum2.TabIndex = 3;
            this.lbSum2.Text = "0";
            // 
            // label8
@@ -862,12 +871,15 @@
            // 
            // lbSum1
            // 
            this.lbSum1.AutoSize = true;
            this.lbSum1.Font = new System.Drawing.Font("Tahoma", 22F);
            this.lbSum1.Location = new System.Drawing.Point(31, 41);
            this.lbSum1.Appearance.BackColor = System.Drawing.SystemColors.Highlight;
            this.lbSum1.Appearance.BorderColor = System.Drawing.SystemColors.Highlight;
            this.lbSum1.Appearance.Options.UseBackColor = true;
            this.lbSum1.Appearance.Options.UseBorderColor = true;
            this.lbSum1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.lbSum1.Location = new System.Drawing.Point(0, 42);
            this.lbSum1.Name = "lbSum1";
            this.lbSum1.Size = new System.Drawing.Size(40, 45);
            this.lbSum1.TabIndex = 1;
            this.lbSum1.Size = new System.Drawing.Size(99, 47);
            this.lbSum1.TabIndex = 4;
            this.lbSum1.Text = "0";
            // 
            // label1
@@ -1050,8 +1062,6 @@
            this.gridColumn14.MinWidth = 25;
            this.gridColumn14.Name = "gridColumn14";
            this.gridColumn14.OptionsColumn.ReadOnly = true;
            this.gridColumn14.Visible = true;
            this.gridColumn14.VisibleIndex = 6;
            this.gridColumn14.Width = 94;
            // 
            // gridColumn15
@@ -1061,8 +1071,6 @@
            this.gridColumn15.MinWidth = 25;
            this.gridColumn15.Name = "gridColumn15";
            this.gridColumn15.OptionsColumn.ReadOnly = true;
            this.gridColumn15.Visible = true;
            this.gridColumn15.VisibleIndex = 7;
            this.gridColumn15.Width = 94;
            // 
            // gridColumn24
@@ -1073,7 +1081,7 @@
            this.gridColumn24.Name = "gridColumn24";
            this.gridColumn24.OptionsColumn.ReadOnly = true;
            this.gridColumn24.Visible = true;
            this.gridColumn24.VisibleIndex = 8;
            this.gridColumn24.VisibleIndex = 6;
            this.gridColumn24.Width = 94;
            // 
            // tabMxPage2
@@ -1136,8 +1144,6 @@
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.OptionsColumn.ReadOnly = true;
            this.gridColumn8.Tag = "query_a.status";
            this.gridColumn8.Visible = true;
            this.gridColumn8.VisibleIndex = 0;
            this.gridColumn8.Width = 50;
            // 
            // gridColumn9
@@ -1148,7 +1154,7 @@
            this.gridColumn9.OptionsColumn.ReadOnly = true;
            this.gridColumn9.Tag = "query_a.pbill_no";
            this.gridColumn9.Visible = true;
            this.gridColumn9.VisibleIndex = 1;
            this.gridColumn9.VisibleIndex = 0;
            this.gridColumn9.Width = 94;
            // 
            // gridColumn10
@@ -1159,7 +1165,7 @@
            this.gridColumn10.OptionsColumn.ReadOnly = true;
            this.gridColumn10.Tag = "query_a.item_no";
            this.gridColumn10.Visible = true;
            this.gridColumn10.VisibleIndex = 2;
            this.gridColumn10.VisibleIndex = 1;
            this.gridColumn10.Width = 94;
            // 
            // gridColumn11
@@ -1169,7 +1175,7 @@
            this.gridColumn11.Name = "gridColumn11";
            this.gridColumn11.OptionsColumn.ReadOnly = true;
            this.gridColumn11.Visible = true;
            this.gridColumn11.VisibleIndex = 3;
            this.gridColumn11.VisibleIndex = 2;
            this.gridColumn11.Width = 94;
            // 
            // gridColumn13
@@ -1178,8 +1184,6 @@
            this.gridColumn13.FieldName = "itemModel";
            this.gridColumn13.Name = "gridColumn13";
            this.gridColumn13.OptionsColumn.ReadOnly = true;
            this.gridColumn13.Visible = true;
            this.gridColumn13.VisibleIndex = 4;
            this.gridColumn13.Width = 94;
            // 
            // gridColumn16
@@ -1190,7 +1194,7 @@
            this.gridColumn16.Name = "gridColumn16";
            this.gridColumn16.OptionsColumn.ReadOnly = true;
            this.gridColumn16.Visible = true;
            this.gridColumn16.VisibleIndex = 6;
            this.gridColumn16.VisibleIndex = 4;
            this.gridColumn16.Width = 94;
            // 
            // gridColumn17
@@ -1201,7 +1205,7 @@
            this.gridColumn17.OptionsColumn.ReadOnly = true;
            this.gridColumn17.Tag = "query_a.tl_qty";
            this.gridColumn17.Visible = true;
            this.gridColumn17.VisibleIndex = 5;
            this.gridColumn17.VisibleIndex = 3;
            this.gridColumn17.Width = 94;
            // 
            // gridColumn18
@@ -1212,7 +1216,7 @@
            this.gridColumn18.Name = "gridColumn18";
            this.gridColumn18.OptionsColumn.ReadOnly = true;
            this.gridColumn18.Visible = true;
            this.gridColumn18.VisibleIndex = 7;
            this.gridColumn18.VisibleIndex = 5;
            this.gridColumn18.Width = 94;
            // 
            // gridColumn19
@@ -1223,7 +1227,7 @@
            this.gridColumn19.Name = "gridColumn19";
            this.gridColumn19.OptionsColumn.ReadOnly = true;
            this.gridColumn19.Visible = true;
            this.gridColumn19.VisibleIndex = 8;
            this.gridColumn19.VisibleIndex = 6;
            this.gridColumn19.Width = 94;
            // 
            // gridColumn20
@@ -1234,7 +1238,7 @@
            this.gridColumn20.Name = "gridColumn20";
            this.gridColumn20.OptionsColumn.ReadOnly = true;
            this.gridColumn20.Visible = true;
            this.gridColumn20.VisibleIndex = 9;
            this.gridColumn20.VisibleIndex = 7;
            this.gridColumn20.Width = 94;
            // 
            // gridColumn21
@@ -1245,7 +1249,7 @@
            this.gridColumn21.Name = "gridColumn21";
            this.gridColumn21.OptionsColumn.ReadOnly = true;
            this.gridColumn21.Visible = true;
            this.gridColumn21.VisibleIndex = 10;
            this.gridColumn21.VisibleIndex = 8;
            this.gridColumn21.Width = 94;
            // 
            // gridColumn22
@@ -1256,7 +1260,7 @@
            this.gridColumn22.Name = "gridColumn22";
            this.gridColumn22.OptionsColumn.ReadOnly = true;
            this.gridColumn22.Visible = true;
            this.gridColumn22.VisibleIndex = 11;
            this.gridColumn22.VisibleIndex = 9;
            this.gridColumn22.Width = 94;
            // 
            // gridColumn23
@@ -1400,16 +1404,12 @@
        private DevExpress.XtraEditors.SimpleButton btnGood;
        private DevExpress.XtraEditors.SimpleButton btnBad;
        private System.Windows.Forms.Panel panel3;
        private System.Windows.Forms.Label lbSum4;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Panel panel2;
        private System.Windows.Forms.Label lbSum3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Panel panel4;
        private System.Windows.Forms.Label lbSum2;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Label lbSum1;
        private System.Windows.Forms.Label label1;
        private DevExpress.XtraEditors.SimpleButton simpleButton7;
        private DevExpress.XtraEditors.SimpleButton simpleButton6;
@@ -1452,5 +1452,9 @@
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
        private DevExpress.XtraLayout.LayoutControlItem layDianJian;
        private DevExpress.XtraEditors.SimpleButton lbSum4;
        private DevExpress.XtraEditors.SimpleButton lbSum3;
        private DevExpress.XtraEditors.SimpleButton lbSum2;
        private DevExpress.XtraEditors.SimpleButton lbSum1;
    }
}
DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs
@@ -1,10 +1,8 @@
using DevExpress.Office.Utils;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraLayout.Utils;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Gs.DevApp.UserControl;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NModbus;
@@ -47,11 +45,11 @@
        public Frm_Work01(string _fGx, string _fBc, string _strinOther, int chkWater = 0)
        {
            InitializeComponent();
            System.Drawing.Font ft1 = new System.Drawing.Font("宋体", 35F);
            System.Drawing.Font ft2 = new System.Drawing.Font("宋体", 25F);
            System.Drawing.Font ft3 = new System.Drawing.Font("宋体", 20F);
            System.Drawing.Font ft4 = new System.Drawing.Font("宋体", 15F);
            System.Drawing.Font ft5 = new System.Drawing.Font("宋体", 12F);
            System.Drawing.Font ft1 = new System.Drawing.Font("宋体", 35F);//大按钮
            System.Drawing.Font ft2 = new System.Drawing.Font("宋体", 25F);//中按钮
            System.Drawing.Font ft3 = new System.Drawing.Font("宋体", 15F);//grid
            System.Drawing.Font ft4 = new System.Drawing.Font("宋体", 12F);//head
            System.Drawing.Font ft5 = new System.Drawing.Font("宋体", 12F);//表头
            //设置字体大小 
            this.btnGood.Appearance.Font = ft1;
            this.btnBad.Appearance.Font = ft1;
@@ -60,6 +58,10 @@
            this.simpleButton5.Appearance.Font =ft2;
            this.simpleButton4.Appearance.Font =ft2;
            this.simpleButton6.Appearance.Font =ft2;
            this.lbSum1.Appearance.Font = ft2;
            this.lbSum2.Appearance.Font = ft2;
            this.lbSum3.Appearance.Font = ft2;
            this.lbSum4.Appearance.Font = ft2;
            this.gvMx1.Appearance.Row.Font = ft3;
            this.gvMx2.Appearance.Row.Font = ft3;
            this.layoutControlItem1.AppearanceItemCaption.Font = ft4;