111
schangxiang@126.com
2024-12-13 75ca84b7570d7a6a805c27164c3f17c1f2158423
111
已修改6个文件
452 ■■■■■ 文件已修改
CC/iWareCC_ASRS/FormCC.Designer.cs 331 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CC/iWareCC_ASRS/FormCC.cs 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CC/iWareCC_ASRS/ThreadService/01_BZ01工位(清灰,洗板后工位)/DataProcess_BZ01.cs 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CC/iWareCC_ASRS/ThreadService/02_BZ39工位(补板后工位)/Inbound/1、DataProcess_BZ39.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CC/iWareCC_ASRS/ThreadService/03_BZ12(机器人码包工位)/1、DataProcess_BZ12.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CC/iWareSql/DataAccess/TaskHandler.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CC/iWareCC_ASRS/FormCC.Designer.cs
@@ -103,22 +103,23 @@
            this.btn_TongJi = new System.Windows.Forms.Button();
            this.button5 = new System.Windows.Forms.Button();
            this.tabDevice = new System.Windows.Forms.TabPage();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.lbl_Mode_FJ = new System.Windows.Forms.Label();
            this.lbl_XinTiao_FJ = new System.Windows.Forms.Label();
            this.lbl_Warning_FJ = new System.Windows.Forms.Label();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.lbl_Warning_MB = new System.Windows.Forms.Label();
            this.lbl_XinTiao_MB = new System.Windows.Forms.Label();
            this.lbl_Mode_MB = new System.Windows.Forms.Label();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.lbl_Warning_HB = new System.Windows.Forms.Label();
            this.lbl_XinTiao_HB = new System.Windows.Forms.Label();
            this.lbl_Mode_HB = new System.Windows.Forms.Label();
            this.groupBox5 = new System.Windows.Forms.GroupBox();
            this.lbl_Warning_FX = new System.Windows.Forms.Label();
            this.lbl_XinTiao_FX = new System.Windows.Forms.Label();
            this.lbl_Mode_FX = new System.Windows.Forms.Label();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.lbl_Warning_HB = new System.Windows.Forms.Label();
            this.lbl_XinTiao_HB = new System.Windows.Forms.Label();
            this.lbl_Mode_HB = new System.Windows.Forms.Label();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.lbl_Warning_MB = new System.Windows.Forms.Label();
            this.lbl_XinTiao_MB = new System.Windows.Forms.Label();
            this.lbl_Mode_MB = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.lbl_Warning_FJ = new System.Windows.Forms.Label();
            this.lbl_XinTiao_FJ = new System.Windows.Forms.Label();
            this.lbl_Mode_FJ = new System.Windows.Forms.Label();
            this.button1 = new System.Windows.Forms.Button();
            this.tabControl1.SuspendLayout();
            this.tPModeChoice.SuspendLayout();
            this.panel_Model.SuspendLayout();
@@ -127,10 +128,10 @@
            this.groupBox1.SuspendLayout();
            this.tabPage3.SuspendLayout();
            this.tabDevice.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox5.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.SuspendLayout();
            // 
            // tabControl1
@@ -851,6 +852,7 @@
            // 
            // tabPage3
            // 
            this.tabPage3.Controls.Add(this.button1);
            this.tabPage3.Controls.Add(this.button25);
            this.tabPage3.Controls.Add(this.button24);
            this.tabPage3.Controls.Add(this.tb_PackageCode);
@@ -1051,107 +1053,56 @@
            this.tabDevice.Text = "设备状态";
            this.tabDevice.UseVisualStyleBackColor = true;
            // 
            // groupBox2
            // groupBox5
            // 
            this.groupBox2.Controls.Add(this.lbl_Warning_FJ);
            this.groupBox2.Controls.Add(this.lbl_XinTiao_FJ);
            this.groupBox2.Controls.Add(this.lbl_Mode_FJ);
            this.groupBox2.Location = new System.Drawing.Point(50, 49);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(333, 189);
            this.groupBox2.TabIndex = 0;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "分拣区域";
            this.groupBox5.Controls.Add(this.lbl_Warning_FX);
            this.groupBox5.Controls.Add(this.lbl_XinTiao_FX);
            this.groupBox5.Controls.Add(this.lbl_Mode_FX);
            this.groupBox5.Location = new System.Drawing.Point(523, 321);
            this.groupBox5.Name = "groupBox5";
            this.groupBox5.Size = new System.Drawing.Size(333, 189);
            this.groupBox5.TabIndex = 3;
            this.groupBox5.TabStop = false;
            this.groupBox5.Text = "封箱区域";
            // 
            // lbl_Mode_FJ
            // lbl_Warning_FX
            // 
            this.lbl_Mode_FJ.AutoSize = true;
            this.lbl_Mode_FJ.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Mode_FJ.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Mode_FJ.Location = new System.Drawing.Point(16, 33);
            this.lbl_Mode_FJ.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Mode_FJ.Name = "lbl_Mode_FJ";
            this.lbl_Mode_FJ.Size = new System.Drawing.Size(91, 24);
            this.lbl_Mode_FJ.TabIndex = 37;
            this.lbl_Mode_FJ.Text = "设备模式: ";
            this.lbl_Mode_FJ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.lbl_Warning_FX.AutoSize = true;
            this.lbl_Warning_FX.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Warning_FX.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Warning_FX.Location = new System.Drawing.Point(16, 129);
            this.lbl_Warning_FX.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Warning_FX.Name = "lbl_Warning_FX";
            this.lbl_Warning_FX.Size = new System.Drawing.Size(91, 24);
            this.lbl_Warning_FX.TabIndex = 39;
            this.lbl_Warning_FX.Text = "报警类型: ";
            this.lbl_Warning_FX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // lbl_XinTiao_FJ
            // lbl_XinTiao_FX
            // 
            this.lbl_XinTiao_FJ.AutoSize = true;
            this.lbl_XinTiao_FJ.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_XinTiao_FJ.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_XinTiao_FJ.Location = new System.Drawing.Point(16, 81);
            this.lbl_XinTiao_FJ.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_XinTiao_FJ.Name = "lbl_XinTiao_FJ";
            this.lbl_XinTiao_FJ.Size = new System.Drawing.Size(55, 24);
            this.lbl_XinTiao_FJ.TabIndex = 38;
            this.lbl_XinTiao_FJ.Text = "心跳: ";
            this.lbl_XinTiao_FJ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.lbl_XinTiao_FX.AutoSize = true;
            this.lbl_XinTiao_FX.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_XinTiao_FX.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_XinTiao_FX.Location = new System.Drawing.Point(16, 81);
            this.lbl_XinTiao_FX.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_XinTiao_FX.Name = "lbl_XinTiao_FX";
            this.lbl_XinTiao_FX.Size = new System.Drawing.Size(55, 24);
            this.lbl_XinTiao_FX.TabIndex = 38;
            this.lbl_XinTiao_FX.Text = "心跳: ";
            this.lbl_XinTiao_FX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // lbl_Warning_FJ
            // lbl_Mode_FX
            // 
            this.lbl_Warning_FJ.AutoSize = true;
            this.lbl_Warning_FJ.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Warning_FJ.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Warning_FJ.Location = new System.Drawing.Point(16, 129);
            this.lbl_Warning_FJ.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Warning_FJ.Name = "lbl_Warning_FJ";
            this.lbl_Warning_FJ.Size = new System.Drawing.Size(91, 24);
            this.lbl_Warning_FJ.TabIndex = 39;
            this.lbl_Warning_FJ.Text = "报警类型: ";
            this.lbl_Warning_FJ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // groupBox3
            //
            this.groupBox3.Controls.Add(this.lbl_Warning_MB);
            this.groupBox3.Controls.Add(this.lbl_XinTiao_MB);
            this.groupBox3.Controls.Add(this.lbl_Mode_MB);
            this.groupBox3.Location = new System.Drawing.Point(523, 49);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(333, 189);
            this.groupBox3.TabIndex = 1;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "码包区域";
            //
            // lbl_Warning_MB
            //
            this.lbl_Warning_MB.AutoSize = true;
            this.lbl_Warning_MB.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Warning_MB.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Warning_MB.Location = new System.Drawing.Point(16, 129);
            this.lbl_Warning_MB.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Warning_MB.Name = "lbl_Warning_MB";
            this.lbl_Warning_MB.Size = new System.Drawing.Size(91, 24);
            this.lbl_Warning_MB.TabIndex = 39;
            this.lbl_Warning_MB.Text = "报警类型: ";
            this.lbl_Warning_MB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // lbl_XinTiao_MB
            //
            this.lbl_XinTiao_MB.AutoSize = true;
            this.lbl_XinTiao_MB.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_XinTiao_MB.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_XinTiao_MB.Location = new System.Drawing.Point(16, 81);
            this.lbl_XinTiao_MB.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_XinTiao_MB.Name = "lbl_XinTiao_MB";
            this.lbl_XinTiao_MB.Size = new System.Drawing.Size(55, 24);
            this.lbl_XinTiao_MB.TabIndex = 38;
            this.lbl_XinTiao_MB.Text = "心跳: ";
            this.lbl_XinTiao_MB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // lbl_Mode_MB
            //
            this.lbl_Mode_MB.AutoSize = true;
            this.lbl_Mode_MB.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Mode_MB.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Mode_MB.Location = new System.Drawing.Point(16, 33);
            this.lbl_Mode_MB.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Mode_MB.Name = "lbl_Mode_MB";
            this.lbl_Mode_MB.Size = new System.Drawing.Size(91, 24);
            this.lbl_Mode_MB.TabIndex = 37;
            this.lbl_Mode_MB.Text = "设备模式: ";
            this.lbl_Mode_MB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.lbl_Mode_FX.AutoSize = true;
            this.lbl_Mode_FX.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Mode_FX.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Mode_FX.Location = new System.Drawing.Point(16, 33);
            this.lbl_Mode_FX.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Mode_FX.Name = "lbl_Mode_FX";
            this.lbl_Mode_FX.Size = new System.Drawing.Size(91, 24);
            this.lbl_Mode_FX.TabIndex = 37;
            this.lbl_Mode_FX.Text = "设备模式: ";
            this.lbl_Mode_FX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // groupBox4
            // 
@@ -1204,56 +1155,119 @@
            this.lbl_Mode_HB.Text = "设备模式: ";
            this.lbl_Mode_HB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // groupBox5
            // groupBox3
            // 
            this.groupBox5.Controls.Add(this.lbl_Warning_FX);
            this.groupBox5.Controls.Add(this.lbl_XinTiao_FX);
            this.groupBox5.Controls.Add(this.lbl_Mode_FX);
            this.groupBox5.Location = new System.Drawing.Point(523, 321);
            this.groupBox5.Name = "groupBox5";
            this.groupBox5.Size = new System.Drawing.Size(333, 189);
            this.groupBox5.TabIndex = 3;
            this.groupBox5.TabStop = false;
            this.groupBox5.Text = "封箱区域";
            this.groupBox3.Controls.Add(this.lbl_Warning_MB);
            this.groupBox3.Controls.Add(this.lbl_XinTiao_MB);
            this.groupBox3.Controls.Add(this.lbl_Mode_MB);
            this.groupBox3.Location = new System.Drawing.Point(523, 49);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(333, 189);
            this.groupBox3.TabIndex = 1;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "码包区域";
            // 
            // lbl_Warning_FX
            // lbl_Warning_MB
            // 
            this.lbl_Warning_FX.AutoSize = true;
            this.lbl_Warning_FX.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Warning_FX.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Warning_FX.Location = new System.Drawing.Point(16, 129);
            this.lbl_Warning_FX.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Warning_FX.Name = "lbl_Warning_FX";
            this.lbl_Warning_FX.Size = new System.Drawing.Size(91, 24);
            this.lbl_Warning_FX.TabIndex = 39;
            this.lbl_Warning_FX.Text = "报警类型: ";
            this.lbl_Warning_FX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.lbl_Warning_MB.AutoSize = true;
            this.lbl_Warning_MB.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Warning_MB.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Warning_MB.Location = new System.Drawing.Point(16, 129);
            this.lbl_Warning_MB.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Warning_MB.Name = "lbl_Warning_MB";
            this.lbl_Warning_MB.Size = new System.Drawing.Size(91, 24);
            this.lbl_Warning_MB.TabIndex = 39;
            this.lbl_Warning_MB.Text = "报警类型: ";
            this.lbl_Warning_MB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // lbl_XinTiao_FX
            // lbl_XinTiao_MB
            // 
            this.lbl_XinTiao_FX.AutoSize = true;
            this.lbl_XinTiao_FX.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_XinTiao_FX.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_XinTiao_FX.Location = new System.Drawing.Point(16, 81);
            this.lbl_XinTiao_FX.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_XinTiao_FX.Name = "lbl_XinTiao_FX";
            this.lbl_XinTiao_FX.Size = new System.Drawing.Size(55, 24);
            this.lbl_XinTiao_FX.TabIndex = 38;
            this.lbl_XinTiao_FX.Text = "心跳: ";
            this.lbl_XinTiao_FX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.lbl_XinTiao_MB.AutoSize = true;
            this.lbl_XinTiao_MB.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_XinTiao_MB.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_XinTiao_MB.Location = new System.Drawing.Point(16, 81);
            this.lbl_XinTiao_MB.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_XinTiao_MB.Name = "lbl_XinTiao_MB";
            this.lbl_XinTiao_MB.Size = new System.Drawing.Size(55, 24);
            this.lbl_XinTiao_MB.TabIndex = 38;
            this.lbl_XinTiao_MB.Text = "心跳: ";
            this.lbl_XinTiao_MB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // lbl_Mode_FX
            // lbl_Mode_MB
            // 
            this.lbl_Mode_FX.AutoSize = true;
            this.lbl_Mode_FX.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Mode_FX.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Mode_FX.Location = new System.Drawing.Point(16, 33);
            this.lbl_Mode_FX.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Mode_FX.Name = "lbl_Mode_FX";
            this.lbl_Mode_FX.Size = new System.Drawing.Size(91, 24);
            this.lbl_Mode_FX.TabIndex = 37;
            this.lbl_Mode_FX.Text = "设备模式: ";
            this.lbl_Mode_FX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.lbl_Mode_MB.AutoSize = true;
            this.lbl_Mode_MB.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Mode_MB.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Mode_MB.Location = new System.Drawing.Point(16, 33);
            this.lbl_Mode_MB.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Mode_MB.Name = "lbl_Mode_MB";
            this.lbl_Mode_MB.Size = new System.Drawing.Size(91, 24);
            this.lbl_Mode_MB.TabIndex = 37;
            this.lbl_Mode_MB.Text = "设备模式: ";
            this.lbl_Mode_MB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // groupBox2
            //
            this.groupBox2.Controls.Add(this.lbl_Warning_FJ);
            this.groupBox2.Controls.Add(this.lbl_XinTiao_FJ);
            this.groupBox2.Controls.Add(this.lbl_Mode_FJ);
            this.groupBox2.Location = new System.Drawing.Point(50, 49);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(333, 189);
            this.groupBox2.TabIndex = 0;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "分拣区域";
            //
            // lbl_Warning_FJ
            //
            this.lbl_Warning_FJ.AutoSize = true;
            this.lbl_Warning_FJ.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Warning_FJ.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Warning_FJ.Location = new System.Drawing.Point(16, 129);
            this.lbl_Warning_FJ.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Warning_FJ.Name = "lbl_Warning_FJ";
            this.lbl_Warning_FJ.Size = new System.Drawing.Size(91, 24);
            this.lbl_Warning_FJ.TabIndex = 39;
            this.lbl_Warning_FJ.Text = "报警类型: ";
            this.lbl_Warning_FJ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // lbl_XinTiao_FJ
            //
            this.lbl_XinTiao_FJ.AutoSize = true;
            this.lbl_XinTiao_FJ.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_XinTiao_FJ.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_XinTiao_FJ.Location = new System.Drawing.Point(16, 81);
            this.lbl_XinTiao_FJ.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_XinTiao_FJ.Name = "lbl_XinTiao_FJ";
            this.lbl_XinTiao_FJ.Size = new System.Drawing.Size(55, 24);
            this.lbl_XinTiao_FJ.TabIndex = 38;
            this.lbl_XinTiao_FJ.Text = "心跳: ";
            this.lbl_XinTiao_FJ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // lbl_Mode_FJ
            //
            this.lbl_Mode_FJ.AutoSize = true;
            this.lbl_Mode_FJ.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lbl_Mode_FJ.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(158)))), ((int)(((byte)(98)))));
            this.lbl_Mode_FJ.Location = new System.Drawing.Point(16, 33);
            this.lbl_Mode_FJ.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
            this.lbl_Mode_FJ.Name = "lbl_Mode_FJ";
            this.lbl_Mode_FJ.Size = new System.Drawing.Size(91, 24);
            this.lbl_Mode_FJ.TabIndex = 37;
            this.lbl_Mode_FJ.Text = "设备模式: ";
            this.lbl_Mode_FJ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // button1
            //
            this.button1.BackColor = System.Drawing.Color.Red;
            this.button1.Location = new System.Drawing.Point(817, 568);
            this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(238, 48);
            this.button1.TabIndex = 157;
            this.button1.Text = "一键初始化除立体库中的板件";
            this.button1.UseVisualStyleBackColor = false;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // FormCC
            // 
@@ -1282,14 +1296,14 @@
            this.tabPage3.ResumeLayout(false);
            this.tabPage3.PerformLayout();
            this.tabDevice.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox5.ResumeLayout(false);
            this.groupBox5.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.ResumeLayout(false);
        }
@@ -1385,6 +1399,7 @@
        private System.Windows.Forms.Label lbl_Warning_FX;
        private System.Windows.Forms.Label lbl_XinTiao_FX;
        private System.Windows.Forms.Label lbl_Mode_FX;
        private System.Windows.Forms.Button button1;
    }
}
CC/iWareCC_ASRS/FormCC.cs
@@ -1477,6 +1477,49 @@
                    item.UpiStatus = (int)UpiStatusEnum.初始;
                }
                //清空队列数据
                var list = db.mes_upi_linequeue.ToList();
                db.mes_upi_linequeue.RemoveRange(list);
                db.SaveChanges();
            }
            if (!string.IsNullOrEmpty(alertMsg))
            {
                MessageBox.Show("错误:" + alertMsg);
            }
            else
            {
                MessageBox.Show("已处理");
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            var alertMsg = "";
            using (WmsDBModel db = new WmsDBModel())
            {
                //查询立体库中的upi列表
                var quanList = db.wms_stock_quan.ToList().Select(x => x.Upi).ToList();
                var upiList = db.mes_batchOrderUPI_new.Where(x => !quanList.Contains(x.UPI)).ToList();
                foreach (var item in upiList)
                {
                    item.AreaCode = (int)AreaCodeEnum.无区域;
                    item.UpiStatus = (int)UpiStatusEnum.初始;
                }
                var packageCodeList = upiList.Select(x => x.PackageCode).ToList();
                var pList = db.mes_package_gather.Where(x => packageCodeList.Contains(x.PackageCode)).ToList();
                foreach (var item in pList)
                {
                    item.AreaCode = (int)AreaCodeEnum.无区域;
                    item.UpiStatus = (int)UpiStatusEnum.初始;
                }
                //清空队列数据
                var list = db.mes_upi_linequeue.ToList();
                db.mes_upi_linequeue.RemoveRange(list);
                db.SaveChanges();
            }
            if (!string.IsNullOrEmpty(alertMsg))
CC/iWareCC_ASRS/ThreadService/01_BZ01¹¤Î»£¨Çå»Ò£¬Ï´°åºó¹¤Î»£©/DataProcess_BZ01.cs
@@ -31,6 +31,7 @@
        {
            var alertMsg = "";
            LogType logType = LogType.DataProcess_BZ01;
            string lastUpi = "";//最后记录的UPI数据
            while (true)
            {
                Thread.Sleep(1000);//休眠2秒,将休眠写到前面,是为了下面的continue方法执行后不显示错误信息的提示!!!【EditBy shaocx,2022-05-24】
@@ -64,7 +65,14 @@
                                SystemWarningMsg._lbl_alert_DataProcess_BZ01 = $"{rgvLocation.ToString()}-请求了解码,但是结果是空的,此次循环结束";
                                continue;
                            }
                            if (lastUpi == result)
                            {
                                SystemWarningMsg._lbl_alert_DataProcess_BZ01 = $"{rgvLocation.ToString()}-重复的UPI{result}";
                                continue;
                            }
                            var upiCode = result;
                            lastUpi = upiCode;
                            var qitaoReault = false;//齐包结果
                            using (WmsDBModel wmsDB = new WmsDBModel())
                            {
@@ -119,6 +127,23 @@
                                        }
                                        else
                                        {
                                            var isJiXuValidate = true;
                                            if (upiObj.Shelf != 1)
                                            {
                                                var qianmianList = allList.Where(x => x.Shelf < upiObj.Shelf).ToList();
                                                //看以前的板在哪里,必须都在 ç åž›åŒºåŸŸ
                                                var yiqianQuyu = AreaCodeEnum.码垛区域;
                                                var count_MD = qianmianList.Where(x => x.AreaCode == (int)yiqianQuyu).Count();
                                                if (count_MD != qianmianList.Count())
                                                {
                                                    isJiXuValidate = false;
                                                    qitaoReault = false;
                                                    upiObj.AreaCode = (int)AreaCodeEnum.缓存分拣区;
                                                }
                                            }
                                            if (isJiXuValidate)
                                            {//是否继续验证
                                            //还需要验证在这些区域中,是否正确排队,如果没有正确排队,那么就认为不齐套 ã€Editby shaocx,2024-12-12】
                                            var queueList = wmsDB.mes_upi_linequeue.Where(x => x.PackageCode == upiObj.PackageCode && x.AreaCode == queryAreaCode)
                                                .OrderBy(x => x.Id).ToList();
@@ -143,10 +168,25 @@
                                                    if (i == 0)
                                                    {
                                                        temp_shelf = queueList[i].Shelf;
                                                            if (temp_shelf != upiObj.Shelf)
                                                            {
                                                                qitaoReault = false;
                                                                isLuanXuan = true;
                                                                upiObj.AreaCode = (int)AreaCodeEnum.缓存分拣区;
                                                                break;//跳出循环
                                                            }
                                                            if (queueList[i].Upi != upiObj.UPI)
                                                            {
                                                                qitaoReault = false;
                                                                isLuanXuan = true;
                                                                upiObj.AreaCode = (int)AreaCodeEnum.缓存分拣区;
                                                                break;//跳出循环
                                                            }
                                                    }
                                                    else
                                                    {
                                                        if ((temp_shelf + 1) != queueList[i].Shelf)
                                                            temp_shelf = temp_shelf + 1;
                                                            if (temp_shelf != queueList[i].Shelf)
                                                        {//认为乱序了
                                                            qitaoReault = false;
                                                            isLuanXuan = true;
@@ -163,12 +203,19 @@
                                                }
                                            }
                                        }
                                        }
                                        //注意:要删除该队列数据哦
                                        wmsDB.mes_upi_linequeue.Remove(lastUpiLineQueue);
                                    }
                                }
                                //if (qitaoReault == false) {
                                //    //临时
                                //    SystemWarningMsg._lbl_alert_DataProcess_BZ01 = $"模拟啊啊,暂停啊啊";
                                //    continue;
                                //}
                                using (StationServiceClient client = new StationServiceClient())
                                {
                                    var res = await client.WriteQiTaoInfoAsync((int)EDevice.Station, rgvLocation, qitaoReault);
CC/iWareCC_ASRS/ThreadService/02_BZ39¹¤Î»£¨²¹°åºó¹¤Î»£©/Inbound/1¡¢DataProcess_BZ39.cs
@@ -66,7 +66,7 @@
                                var isValidate = TaskHandler.ValidateIssueTaskForNoFinishTaskByUpi(wmsDB, upiCode);
                                if (!isValidate)
                                {
                                    SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-有‘未结束’的任务,不能处理,此次循环结束";
                                    SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}- upi:{upiCode}有‘未结束’的任务,不能处理,此次循环结束";
                                    continue;
                                }
                                //
CC/iWareCC_ASRS/ThreadService/03_BZ12(»úÆ÷ÈËÂë°ü¹¤Î»)/1¡¢DataProcess_BZ12.cs
@@ -80,9 +80,17 @@
                                var isValidate = TaskHandler.ValidateIssueTaskForNoFinishTaskByUpi(wmsDB, result);
                                if (!isValidate)
                                {
                                    SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()}-有‘已下发’的任务,不能处理,此次循环结束";
                                    SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()}-upi:{result}有‘已下发’的任务,不能处理,此次循环结束";
                                    continue;
                                }
                                isValidate = TaskHandler.ValidateNoFinishOutTaskFor码板任务(wmsDB);
                                if (!isValidate)
                                {
                                    SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()}-有 æœªç»“束 çš„任务,不能处理,此次循环结束";
                                    continue;
                                }
                                var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault();
                                if (upiObj == null)
                                {
CC/iWareSql/DataAccess/TaskHandler.cs
@@ -143,6 +143,23 @@
            return true;
        }
        /// <summary>
        /// éªŒè¯ ç æ¿ä»»åŠ¡æ˜¯å¦å­˜åœ¨ æœªç»“束  çš„任务
        /// </summary>
        /// <param name="wmsDB"></param>
        /// <returns>true:不存在 false:存在</returns>
        public static bool ValidateNoFinishOutTaskFor码板任务(WmsDBModel.WmsDBModel wmsDB)
        {
            var isExist = wmsDB.wms_rbline_task.Where(x => x.TaskStatus != (int)TaskStatusEnum.已完成
                && x.TaskStatus != (int)TaskStatusEnum.已取消
                && x.RbTaskType == (int)RbTaskTypeEnum.码板任务
              ).ToList();
            if (isExist?.Count() > 0)
            {
                return false;
            }
            return true;
        }
    }
}