222
schangxiang@126.com
2025-09-02 80073b8cd70199dd9ff1d3718150019d8abe3969
222
已修改11个文件
417 ■■■■ 文件已修改
WMS/WMS/Service References/yunneiWCS/Reference.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WMS/WMS/Service References/yunneiWCS/item2.xsd 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WMS/WMS/UI/SynthesizeQuery/FrmMes.Designer.cs 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WMS/WMS/UI/SynthesizeQuery/FrmMes.resx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sql/DBScript/01_DDL/01_DDL_TABLE_YunNeiDongLi.sql 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wcs/yunneiWCS/yunneiWCS/ExtendFunction/SystemWarningMsg.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wcs/yunneiWCS/yunneiWCS/Form1.Designer.cs 184 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wcs/yunneiWCS/yunneiWCS/Form1.cs 99 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wcs/yunneiWCS/yunneiWCS/ORM/Wms_outInStockRecord_V2_Mes.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wcs/yunneiWCS/yunneiWCS/SystemInteraction/mes2/PushMesHandler.cs 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wcs/yunneiWCS/yunneiWCS/SystemInteraction/mes2/dto/MesRequest.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WMS/WMS/Service References/yunneiWCS/Reference.cs
@@ -2530,6 +2530,9 @@
        private string RemarkField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<int> SendToMesCountField;
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<System.DateTime> SendToMesTimeField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
@@ -2679,6 +2682,19 @@
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<int> SendToMesCount {
            get {
                return this.SendToMesCountField;
            }
            set {
                if ((this.SendToMesCountField.Equals(value) != true)) {
                    this.SendToMesCountField = value;
                    this.RaisePropertyChanged("SendToMesCount");
                }
            }
        }
        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<System.DateTime> SendToMesTime {
            get {
                return this.SendToMesTimeField;
WMS/WMS/Service References/yunneiWCS/item2.xsd
@@ -134,6 +134,7 @@
      <xs:element minOccurs="0" name="LastModifyTime" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="MesRet" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remark" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SendToMesCount" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="SendToMesTime" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="containerCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="isSendToMes" nillable="true" type="xs:int" />
WMS/WMS/UI/SynthesizeQuery/FrmMes.Designer.cs
@@ -71,6 +71,7 @@
            this.qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.createDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.isSendToMes = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.推送次数 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.备注 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.MES返回 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.推送时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -93,14 +94,14 @@
            // toolStripLabel5
            // 
            this.toolStripLabel5.Name = "toolStripLabel5";
            this.toolStripLabel5.Size = new System.Drawing.Size(13, 34);
            this.toolStripLabel5.Size = new System.Drawing.Size(13, 33);
            this.toolStripLabel5.Text = "/";
            // 
            // toolStripTextBox1
            // 
            this.toolStripTextBox1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
            this.toolStripTextBox1.Name = "toolStripTextBox1";
            this.toolStripTextBox1.Size = new System.Drawing.Size(38, 37);
            this.toolStripTextBox1.Size = new System.Drawing.Size(38, 36);
            this.toolStripTextBox1.Text = "1";
            this.toolStripTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.toolStripTextBox1_KeyDown);
            // 
@@ -108,14 +109,14 @@
            // 
            this.toolStripLabel2.BackColor = System.Drawing.Color.DodgerBlue;
            this.toolStripLabel2.Name = "toolStripLabel2";
            this.toolStripLabel2.Size = new System.Drawing.Size(44, 34);
            this.toolStripLabel2.Size = new System.Drawing.Size(44, 33);
            this.toolStripLabel2.Text = "下一页";
            this.toolStripLabel2.Click += new System.EventHandler(this.toolStripLabel2_Click);
            // 
            // toolStripLabel1
            // 
            this.toolStripLabel1.Name = "toolStripLabel1";
            this.toolStripLabel1.Size = new System.Drawing.Size(44, 34);
            this.toolStripLabel1.Size = new System.Drawing.Size(44, 33);
            this.toolStripLabel1.Text = "上一页";
            this.toolStripLabel1.Click += new System.EventHandler(this.toolStripLabel1_Click);
            // 
@@ -129,24 +130,24 @@
            "每页30条",
            "每页100条"});
            this.toolStripComboBox1.Name = "toolStripComboBox1";
            this.toolStripComboBox1.Size = new System.Drawing.Size(92, 37);
            this.toolStripComboBox1.Size = new System.Drawing.Size(92, 36);
            this.toolStripComboBox1.Text = "每页10条";
            this.toolStripComboBox1.SelectedIndexChanged += new System.EventHandler(this.toolStripComboBox1_SelectedIndexChanged);
            // 
            // bindingNavigatorSeparator2
            // 
            this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
            this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 37);
            this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 36);
            // 
            // bindingNavigatorSeparator1
            // 
            this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
            this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 37);
            this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 36);
            // 
            // bindingNavigatorSeparator
            // 
            this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
            this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 37);
            this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 36);
            // 
            // bindingNavigator1
            // 
@@ -174,7 +175,7 @@
            this.bindingNavigator1.MovePreviousItem = null;
            this.bindingNavigator1.Name = "bindingNavigator1";
            this.bindingNavigator1.PositionItem = null;
            this.bindingNavigator1.Size = new System.Drawing.Size(1443, 37);
            this.bindingNavigator1.Size = new System.Drawing.Size(1443, 36);
            this.bindingNavigator1.TabIndex = 0;
            this.bindingNavigator1.Text = "bindingNavigator1";
            // 
@@ -182,14 +183,14 @@
            // 
            this.toolStripLabel4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripLabel4.Image")));
            this.toolStripLabel4.Name = "toolStripLabel4";
            this.toolStripLabel4.Size = new System.Drawing.Size(20, 34);
            this.toolStripLabel4.Size = new System.Drawing.Size(20, 33);
            this.toolStripLabel4.Click += new System.EventHandler(this.toolStripLabel4_Click);
            // 
            // toolStripLabel3
            // 
            this.toolStripLabel3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripLabel3.Image")));
            this.toolStripLabel3.Name = "toolStripLabel3";
            this.toolStripLabel3.Size = new System.Drawing.Size(20, 34);
            this.toolStripLabel3.Size = new System.Drawing.Size(20, 33);
            this.toolStripLabel3.Click += new System.EventHandler(this.toolStripLabel3_Click);
            // 
            // splitContainer2
@@ -209,7 +210,7 @@
            // 
            this.splitContainer2.Panel2.Controls.Add(this.bindingNavigator1);
            this.splitContainer2.Size = new System.Drawing.Size(1443, 448);
            this.splitContainer2.SplitterDistance = 408;
            this.splitContainer2.SplitterDistance = 409;
            this.splitContainer2.SplitterWidth = 3;
            this.splitContainer2.TabIndex = 3;
            // 
@@ -220,7 +221,7 @@
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Margin = new System.Windows.Forms.Padding(2);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(1443, 408);
            this.panel2.Size = new System.Drawing.Size(1443, 409);
            this.panel2.TabIndex = 2;
            // 
            // dataGridView1
@@ -249,6 +250,7 @@
            this.qty,
            this.createDate,
            this.isSendToMes,
            this.推送次数,
            this.备注,
            this.MES返回,
            this.推送时间,
@@ -259,7 +261,7 @@
            this.dataGridView1.Margin = new System.Windows.Forms.Padding(2);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.RowTemplate.Height = 27;
            this.dataGridView1.Size = new System.Drawing.Size(1443, 408);
            this.dataGridView1.Size = new System.Drawing.Size(1443, 409);
            this.dataGridView1.TabIndex = 0;
            this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
            this.dataGridView1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dataGridView1_CellFormatting);
@@ -527,10 +529,9 @@
            // 
            this.ID.DataPropertyName = "ID";
            this.ID.FillWeight = 103.2058F;
            this.ID.HeaderText = "ID";
            this.ID.HeaderText = "标识符";
            this.ID.Name = "ID";
            this.ID.ReadOnly = true;
            this.ID.Visible = false;
            // 
            // Column1
            // 
@@ -601,6 +602,12 @@
            this.isSendToMes.HeaderText = "是否发送";
            this.isSendToMes.Name = "isSendToMes";
            this.isSendToMes.ReadOnly = true;
            //
            // 推送次数
            //
            this.推送次数.DataPropertyName = "SendToMesCount";
            this.推送次数.HeaderText = "推送次数";
            this.推送次数.Name = "推送次数";
            // 
            // 备注
            // 
@@ -701,6 +708,7 @@
        private System.Windows.Forms.DataGridViewTextBoxColumn qty;
        private System.Windows.Forms.DataGridViewTextBoxColumn createDate;
        private System.Windows.Forms.DataGridViewTextBoxColumn isSendToMes;
        private System.Windows.Forms.DataGridViewTextBoxColumn 推送次数;
        private System.Windows.Forms.DataGridViewTextBoxColumn 备注;
        private System.Windows.Forms.DataGridViewTextBoxColumn MES返回;
        private System.Windows.Forms.DataGridViewTextBoxColumn 推送时间;
WMS/WMS/UI/SynthesizeQuery/FrmMes.resx
@@ -182,6 +182,9 @@
  <metadata name="isSendToMes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <value>True</value>
  </metadata>
  <metadata name="推送次数.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <value>True</value>
  </metadata>
  <metadata name="备注.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <value>True</value>
  </metadata>
sql/DBScript/01_DDL/01_DDL_TABLE_YunNeiDongLi.sql
@@ -210,6 +210,7 @@
   qty  int    NULL , -- 数量
   
   isSendToMes  int    NULL , -- 是否推给MES
   SendToMesCount  int    NULL , -- 推给MES次数
   SendToMesTime datetime    null, -- 推给MES时间
   MesRet  NVARCHAR(128)    NULL , -- MES返回结果
   
wcs/yunneiWCS/yunneiWCS/ExtendFunction/SystemWarningMsg.cs
@@ -66,5 +66,10 @@
        /// MES数据推送线程消息
        /// </summary>
        public static string msg_mesDataTranffic = "";
        /// <summary>
        /// MES数据推送线程消息
        /// </summary>
        public static string msg_mesDataTranfficForRealMes = "";
    }
}
wcs/yunneiWCS/yunneiWCS/Form1.Designer.cs
@@ -59,6 +59,8 @@
            this.label3 = new System.Windows.Forms.Label();
            this.lbl_sendTask_errMsg = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.lbl_msg_mesDataTranffic_V2 = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
@@ -66,18 +68,20 @@
            // label_title
            // 
            this.label_title.Font = new System.Drawing.Font("宋体", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label_title.Location = new System.Drawing.Point(-3, 189);
            this.label_title.Location = new System.Drawing.Point(-2, 151);
            this.label_title.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label_title.Name = "label_title";
            this.label_title.Size = new System.Drawing.Size(476, 51);
            this.label_title.Size = new System.Drawing.Size(357, 41);
            this.label_title.TabIndex = 0;
            this.label_title.Text = "WCS服务正在启动";
            // 
            // label_PLC
            // 
            this.label_PLC.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label_PLC.Location = new System.Drawing.Point(0, 246);
            this.label_PLC.Location = new System.Drawing.Point(0, 197);
            this.label_PLC.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label_PLC.Name = "label_PLC";
            this.label_PLC.Size = new System.Drawing.Size(511, 29);
            this.label_PLC.Size = new System.Drawing.Size(383, 23);
            this.label_PLC.TabIndex = 1;
            this.label_PLC.Text = "PLC链接状态";
            // 
@@ -87,14 +91,16 @@
            this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
            this.pictureBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(1043, 186);
            this.pictureBox1.Size = new System.Drawing.Size(782, 149);
            this.pictureBox1.TabIndex = 2;
            this.pictureBox1.TabStop = false;
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.lbl_msg_mesDataTranffic_V2);
            this.panel1.Controls.Add(this.label2);
            this.panel1.Controls.Add(this.lbl_ClearDataMsg);
            this.panel1.Controls.Add(this.lbl_Thread_lbl_shouEntity_Srm);
            this.panel1.Controls.Add(this.label35);
@@ -122,19 +128,20 @@
            this.panel1.Controls.Add(this.lbl_sendTask_errMsg);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel1.Location = new System.Drawing.Point(0, 279);
            this.panel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
            this.panel1.Location = new System.Drawing.Point(0, 222);
            this.panel1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(1043, 460);
            this.panel1.Size = new System.Drawing.Size(782, 425);
            this.panel1.TabIndex = 3;
            // 
            // lbl_ClearDataMsg
            // 
            this.lbl_ClearDataMsg.AutoSize = true;
            this.lbl_ClearDataMsg.ForeColor = System.Drawing.Color.Red;
            this.lbl_ClearDataMsg.Location = new System.Drawing.Point(170, 419);
            this.lbl_ClearDataMsg.Location = new System.Drawing.Point(128, 335);
            this.lbl_ClearDataMsg.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_ClearDataMsg.Name = "lbl_ClearDataMsg";
            this.lbl_ClearDataMsg.Size = new System.Drawing.Size(67, 15);
            this.lbl_ClearDataMsg.Size = new System.Drawing.Size(53, 12);
            this.lbl_ClearDataMsg.TabIndex = 23;
            this.lbl_ClearDataMsg.Text = "错误消息";
            // 
@@ -142,27 +149,30 @@
            // 
            this.lbl_Thread_lbl_shouEntity_Srm.AutoSize = true;
            this.lbl_Thread_lbl_shouEntity_Srm.ForeColor = System.Drawing.Color.Red;
            this.lbl_Thread_lbl_shouEntity_Srm.Location = new System.Drawing.Point(170, 391);
            this.lbl_Thread_lbl_shouEntity_Srm.Location = new System.Drawing.Point(128, 313);
            this.lbl_Thread_lbl_shouEntity_Srm.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_Thread_lbl_shouEntity_Srm.Name = "lbl_Thread_lbl_shouEntity_Srm";
            this.lbl_Thread_lbl_shouEntity_Srm.Size = new System.Drawing.Size(67, 15);
            this.lbl_Thread_lbl_shouEntity_Srm.Size = new System.Drawing.Size(53, 12);
            this.lbl_Thread_lbl_shouEntity_Srm.TabIndex = 25;
            this.lbl_Thread_lbl_shouEntity_Srm.Text = "错误消息";
            // 
            // label35
            // 
            this.label35.AutoSize = true;
            this.label35.Location = new System.Drawing.Point(15, 419);
            this.label35.Location = new System.Drawing.Point(11, 335);
            this.label35.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(105, 15);
            this.label35.Size = new System.Drawing.Size(83, 12);
            this.label35.TabIndex = 22;
            this.label35.Text = "清除数据线程:";
            // 
            // label36
            // 
            this.label36.AutoSize = true;
            this.label36.Location = new System.Drawing.Point(5, 391);
            this.label36.Location = new System.Drawing.Point(4, 313);
            this.label36.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(150, 15);
            this.label36.Size = new System.Drawing.Size(119, 12);
            this.label36.TabIndex = 24;
            this.label36.Text = "堆垛机设备状态线程:";
            // 
@@ -170,18 +180,20 @@
            // 
            this.lbl_Thread_HandleOutStockList_Msg.AutoSize = true;
            this.lbl_Thread_HandleOutStockList_Msg.ForeColor = System.Drawing.Color.Red;
            this.lbl_Thread_HandleOutStockList_Msg.Location = new System.Drawing.Point(161, 354);
            this.lbl_Thread_HandleOutStockList_Msg.Location = new System.Drawing.Point(121, 283);
            this.lbl_Thread_HandleOutStockList_Msg.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_Thread_HandleOutStockList_Msg.Name = "lbl_Thread_HandleOutStockList_Msg";
            this.lbl_Thread_HandleOutStockList_Msg.Size = new System.Drawing.Size(67, 15);
            this.lbl_Thread_HandleOutStockList_Msg.Size = new System.Drawing.Size(53, 12);
            this.lbl_Thread_HandleOutStockList_Msg.TabIndex = 21;
            this.lbl_Thread_HandleOutStockList_Msg.Text = "错误消息";
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(5, 354);
            this.label12.Location = new System.Drawing.Point(4, 283);
            this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(150, 15);
            this.label12.Size = new System.Drawing.Size(119, 12);
            this.label12.TabIndex = 20;
            this.label12.Text = "处理新建的出库表单:";
            // 
@@ -189,18 +201,20 @@
            // 
            this.lbl_inStockCodeToTask_errMsg.AutoSize = true;
            this.lbl_inStockCodeToTask_errMsg.ForeColor = System.Drawing.Color.Red;
            this.lbl_inStockCodeToTask_errMsg.Location = new System.Drawing.Point(243, 15);
            this.lbl_inStockCodeToTask_errMsg.Location = new System.Drawing.Point(182, 12);
            this.lbl_inStockCodeToTask_errMsg.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_inStockCodeToTask_errMsg.Name = "lbl_inStockCodeToTask_errMsg";
            this.lbl_inStockCodeToTask_errMsg.Size = new System.Drawing.Size(67, 15);
            this.lbl_inStockCodeToTask_errMsg.Size = new System.Drawing.Size(53, 12);
            this.lbl_inStockCodeToTask_errMsg.TabIndex = 19;
            this.lbl_inStockCodeToTask_errMsg.Text = "错误消息";
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(12, 15);
            this.label11.Location = new System.Drawing.Point(9, 12);
            this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(225, 15);
            this.label11.Size = new System.Drawing.Size(179, 12);
            this.label11.TabIndex = 18;
            this.label11.Text = "组盘下发后,生成下线入库任务:";
            // 
@@ -208,18 +222,20 @@
            // 
            this.lbl_sendTaskForPick_ErrMsg.AutoSize = true;
            this.lbl_sendTaskForPick_ErrMsg.ForeColor = System.Drawing.Color.Red;
            this.lbl_sendTaskForPick_ErrMsg.Location = new System.Drawing.Point(209, 187);
            this.lbl_sendTaskForPick_ErrMsg.Location = new System.Drawing.Point(157, 150);
            this.lbl_sendTaskForPick_ErrMsg.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_sendTaskForPick_ErrMsg.Name = "lbl_sendTaskForPick_ErrMsg";
            this.lbl_sendTaskForPick_ErrMsg.Size = new System.Drawing.Size(67, 15);
            this.lbl_sendTaskForPick_ErrMsg.Size = new System.Drawing.Size(53, 12);
            this.lbl_sendTaskForPick_ErrMsg.TabIndex = 17;
            this.lbl_sendTaskForPick_ErrMsg.Text = "错误消息";
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(15, 187);
            this.label10.Location = new System.Drawing.Point(11, 150);
            this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(180, 15);
            this.label10.Size = new System.Drawing.Size(143, 12);
            this.label10.TabIndex = 16;
            this.label10.Text = "处理分拣完成的任务处理:";
            // 
@@ -227,18 +243,20 @@
            // 
            this.lbl_SrmfinishConfirm_Msg.AutoSize = true;
            this.lbl_SrmfinishConfirm_Msg.ForeColor = System.Drawing.Color.Red;
            this.lbl_SrmfinishConfirm_Msg.Location = new System.Drawing.Point(192, 155);
            this.lbl_SrmfinishConfirm_Msg.Location = new System.Drawing.Point(144, 124);
            this.lbl_SrmfinishConfirm_Msg.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_SrmfinishConfirm_Msg.Name = "lbl_SrmfinishConfirm_Msg";
            this.lbl_SrmfinishConfirm_Msg.Size = new System.Drawing.Size(67, 15);
            this.lbl_SrmfinishConfirm_Msg.Size = new System.Drawing.Size(53, 12);
            this.lbl_SrmfinishConfirm_Msg.TabIndex = 15;
            this.lbl_SrmfinishConfirm_Msg.Text = "错误消息";
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(15, 155);
            this.label9.Location = new System.Drawing.Point(11, 124);
            this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(150, 15);
            this.label9.Size = new System.Drawing.Size(119, 12);
            this.label9.TabIndex = 14;
            this.label9.Text = "堆垛机完成信号处理:";
            // 
@@ -246,18 +264,20 @@
            // 
            this.lbl_NoIssueTaskMsg_GG.AutoSize = true;
            this.lbl_NoIssueTaskMsg_GG.ForeColor = System.Drawing.Color.Red;
            this.lbl_NoIssueTaskMsg_GG.Location = new System.Drawing.Point(244, 114);
            this.lbl_NoIssueTaskMsg_GG.Location = new System.Drawing.Point(183, 91);
            this.lbl_NoIssueTaskMsg_GG.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_NoIssueTaskMsg_GG.Name = "lbl_NoIssueTaskMsg_GG";
            this.lbl_NoIssueTaskMsg_GG.Size = new System.Drawing.Size(67, 15);
            this.lbl_NoIssueTaskMsg_GG.Size = new System.Drawing.Size(53, 12);
            this.lbl_NoIssueTaskMsg_GG.TabIndex = 13;
            this.lbl_NoIssueTaskMsg_GG.Text = "错误消息";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(15, 114);
            this.label8.Location = new System.Drawing.Point(11, 91);
            this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(211, 15);
            this.label8.Size = new System.Drawing.Size(167, 12);
            this.label8.TabIndex = 12;
            this.label8.Text = "(缸盖)消费未下发的任务线程:";
            // 
@@ -265,18 +285,20 @@
            // 
            this.lbl_NoIssueTaskMsg_GT.AutoSize = true;
            this.lbl_NoIssueTaskMsg_GT.ForeColor = System.Drawing.Color.Red;
            this.lbl_NoIssueTaskMsg_GT.Location = new System.Drawing.Point(252, 84);
            this.lbl_NoIssueTaskMsg_GT.Location = new System.Drawing.Point(189, 67);
            this.lbl_NoIssueTaskMsg_GT.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_NoIssueTaskMsg_GT.Name = "lbl_NoIssueTaskMsg_GT";
            this.lbl_NoIssueTaskMsg_GT.Size = new System.Drawing.Size(67, 15);
            this.lbl_NoIssueTaskMsg_GT.Size = new System.Drawing.Size(53, 12);
            this.lbl_NoIssueTaskMsg_GT.TabIndex = 11;
            this.lbl_NoIssueTaskMsg_GT.Text = "错误消息";
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(15, 84);
            this.label7.Location = new System.Drawing.Point(11, 67);
            this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(211, 15);
            this.label7.Size = new System.Drawing.Size(167, 12);
            this.label7.TabIndex = 10;
            this.label7.Text = "(缸体)消费未下发的任务线程:";
            // 
@@ -284,18 +306,20 @@
            // 
            this.lbl_msg_mesDataTranffic.AutoSize = true;
            this.lbl_msg_mesDataTranffic.ForeColor = System.Drawing.Color.Red;
            this.lbl_msg_mesDataTranffic.Location = new System.Drawing.Point(152, 322);
            this.lbl_msg_mesDataTranffic.Location = new System.Drawing.Point(114, 258);
            this.lbl_msg_mesDataTranffic.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_msg_mesDataTranffic.Name = "lbl_msg_mesDataTranffic";
            this.lbl_msg_mesDataTranffic.Size = new System.Drawing.Size(67, 15);
            this.lbl_msg_mesDataTranffic.Size = new System.Drawing.Size(53, 12);
            this.lbl_msg_mesDataTranffic.TabIndex = 9;
            this.lbl_msg_mesDataTranffic.Text = "错误消息";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(3, 322);
            this.label6.Location = new System.Drawing.Point(2, 258);
            this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(114, 15);
            this.label6.Size = new System.Drawing.Size(89, 12);
            this.label6.TabIndex = 8;
            this.label6.Text = "推送给MES数据:";
            // 
@@ -303,18 +327,20 @@
            // 
            this.lbl_agvSendStatu2.AutoSize = true;
            this.lbl_agvSendStatu2.ForeColor = System.Drawing.Color.Red;
            this.lbl_agvSendStatu2.Location = new System.Drawing.Point(152, 295);
            this.lbl_agvSendStatu2.Location = new System.Drawing.Point(114, 236);
            this.lbl_agvSendStatu2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_agvSendStatu2.Name = "lbl_agvSendStatu2";
            this.lbl_agvSendStatu2.Size = new System.Drawing.Size(67, 15);
            this.lbl_agvSendStatu2.Size = new System.Drawing.Size(53, 12);
            this.lbl_agvSendStatu2.TabIndex = 7;
            this.lbl_agvSendStatu2.Text = "错误消息";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(3, 295);
            this.label5.Location = new System.Drawing.Point(2, 236);
            this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(143, 15);
            this.label5.Size = new System.Drawing.Size(107, 12);
            this.label5.TabIndex = 6;
            this.label5.Text = "agvSendStatus[1]:";
            // 
@@ -322,18 +348,20 @@
            // 
            this.lbl_agvSendStatus1.AutoSize = true;
            this.lbl_agvSendStatus1.ForeColor = System.Drawing.Color.Red;
            this.lbl_agvSendStatus1.Location = new System.Drawing.Point(152, 266);
            this.lbl_agvSendStatus1.Location = new System.Drawing.Point(114, 213);
            this.lbl_agvSendStatus1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_agvSendStatus1.Name = "lbl_agvSendStatus1";
            this.lbl_agvSendStatus1.Size = new System.Drawing.Size(67, 15);
            this.lbl_agvSendStatus1.Size = new System.Drawing.Size(53, 12);
            this.lbl_agvSendStatus1.TabIndex = 5;
            this.lbl_agvSendStatus1.Text = "错误消息";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(3, 266);
            this.label4.Location = new System.Drawing.Point(2, 213);
            this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(143, 15);
            this.label4.Size = new System.Drawing.Size(107, 12);
            this.label4.TabIndex = 4;
            this.label4.Text = "agvSendStatus[0]:";
            // 
@@ -341,18 +369,20 @@
            // 
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.AutoSize = true;
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.ForeColor = System.Drawing.Color.Red;
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.Location = new System.Drawing.Point(235, 237);
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.Location = new System.Drawing.Point(176, 190);
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.Name = "lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg";
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.Size = new System.Drawing.Size(67, 15);
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.Size = new System.Drawing.Size(53, 12);
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.TabIndex = 3;
            this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.Text = "错误消息";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(3, 237);
            this.label3.Location = new System.Drawing.Point(2, 190);
            this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(226, 15);
            this.label3.Size = new System.Drawing.Size(179, 12);
            this.label3.TabIndex = 2;
            this.label3.Text = "消费任务线程(直达上线点专用):";
            // 
@@ -360,27 +390,50 @@
            // 
            this.lbl_sendTask_errMsg.AutoSize = true;
            this.lbl_sendTask_errMsg.ForeColor = System.Drawing.Color.Red;
            this.lbl_sendTask_errMsg.Location = new System.Drawing.Point(192, 48);
            this.lbl_sendTask_errMsg.Location = new System.Drawing.Point(144, 38);
            this.lbl_sendTask_errMsg.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_sendTask_errMsg.Name = "lbl_sendTask_errMsg";
            this.lbl_sendTask_errMsg.Size = new System.Drawing.Size(67, 15);
            this.lbl_sendTask_errMsg.Size = new System.Drawing.Size(53, 12);
            this.lbl_sendTask_errMsg.TabIndex = 1;
            this.lbl_sendTask_errMsg.Text = "错误消息";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 48);
            this.label1.Location = new System.Drawing.Point(9, 38);
            this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(165, 15);
            this.label1.Size = new System.Drawing.Size(131, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "消费已下发的任务线程:";
            // 
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(9, 365);
            this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(113, 12);
            this.label2.TabIndex = 26;
            this.label2.Text = "推送给MES数据(V2):";
            //
            // lbl_msg_mesDataTranffic_V2
            //
            this.lbl_msg_mesDataTranffic_V2.AutoSize = true;
            this.lbl_msg_mesDataTranffic_V2.ForeColor = System.Drawing.Color.Red;
            this.lbl_msg_mesDataTranffic_V2.Location = new System.Drawing.Point(135, 365);
            this.lbl_msg_mesDataTranffic_V2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lbl_msg_mesDataTranffic_V2.Name = "lbl_msg_mesDataTranffic_V2";
            this.lbl_msg_mesDataTranffic_V2.Size = new System.Drawing.Size(53, 12);
            this.lbl_msg_mesDataTranffic_V2.TabIndex = 27;
            this.lbl_msg_mesDataTranffic_V2.Text = "错误消息";
            //
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.SystemColors.Control;
            this.ClientSize = new System.Drawing.Size(1043, 739);
            this.ClientSize = new System.Drawing.Size(782, 647);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.pictureBox1);
            this.Controls.Add(this.label_PLC);
@@ -388,7 +441,7 @@
            this.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
            this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
            this.Name = "Form1";
            this.Text = "伟本智能WCS";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
@@ -432,7 +485,8 @@
        private System.Windows.Forms.Label label35;
        private System.Windows.Forms.Label lbl_Thread_lbl_shouEntity_Srm;
        private System.Windows.Forms.Label label36;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label lbl_msg_mesDataTranffic_V2;
    }
}
wcs/yunneiWCS/yunneiWCS/Form1.cs
@@ -27,6 +27,7 @@
using yunneiWCS.Common;
using yunneiWCS.SystemInteraction.tianyong;
using yunneiWCS.PLC.Srm;
using yunneiWCS.SystemInteraction.mes2.dto;
namespace yunneiWCS
{
@@ -2333,6 +2334,103 @@
            }
        }
        /// <summary>
        /// MES数据推送 [Editby shaocx,2025-09-02]
        /// </summary>
        public void mesDataTranfficForRealMes()
        {
            while (true)
            {
                SystemWarningMsg.msg_mesDataTranfficForRealMes = "";
                try
                {
                    Thread.Sleep(5000);
                    using (dbmodel mod = new dbmodel())
                    {
                        List<Wms_outInStockRecord_V2_Mes> sendMesData = mod.Wms_outInStockRecord_V2_Mes.Where(x => x.isSendToMes == 0).ToList();
                        if (sendMesData.Count > 0)
                        {
                            foreach (var itemTask in sendMesData)
                            {
                                try
                                {
                                    mesMsg res = null;
                                    if (isvirtual)
                                    {//模拟环境
                                        res = new mesMsg();
                                        res.ErrorCode = 0;
                                        res.ErrorMsg = "模拟环境下,模拟发送";
                                    }
                                    else
                                    {//正式环境
                                        //获取信息明细
                                        var details = mod.Wms_outInStockRecord_Details_V2_Mes.Where(x => x.mainId == itemTask.ID).ToList();
                                        List<InboundStockInfoToMes> pushData = new List<InboundStockInfoToMes>();
                                        foreach (var de in details)
                                        {
                                            pushData.Add(new InboundStockInfoToMes()
                                            {
                                                containerCode = itemTask.containerCode,
                                                createTime = itemTask.CreateTime?.ToString("yyyy-MM-dd HH:mm:ss"),
                                                materialCode = de.productCode,
                                                materialName = de.productName,
                                                positionName = itemTask.sourcePlace,
                                                productName = itemTask.materialName,
                                                serialNumber = de.serialNumber,
                                                supplier = itemTask.supplier,
                                                version = itemTask.version,
                                            });
                                        }
                                        ApiResponse<object> ret = null;
                                        switch (itemTask.outInFlag)
                                        {
                                            case (int)OutInFlag.入库:
                                                ret = PushMesHandler.Mes_InStockSend(pushData, itemTask.ID.ToString());
                                                break;
                                            case (int)OutInFlag.出库:
                                                ret = PushMesHandler.Mes_OutStockSend(pushData, itemTask.ID.ToString());
                                                break;
                                            default:
                                                break;
                                        }
                                        if (ret.Success)
                                        {
                                            itemTask.isSendToMes = 1;
                                        }
                                        else
                                        {
                                            itemTask.isSendToMes = 0;
                                        }
                                        itemTask.SendToMesTime = DateTime.Now;
                                        itemTask.MesRet = ret.Message;
                                        itemTask.SendToMesCount = (itemTask.SendToMesCount ?? 0) + 1;
                                        mod.SaveChanges();
                                    }
                                }
                                catch (Exception ex)
                                {
                                    SystemWarningMsg.msg_mesDataTranfficForRealMes = "推送给MES数据异常:" + JsonConvert.SerializeObject(ex);
                                    WZ.Useful.Commons.LogTextHelper.WriteLine("Form1", "mesDataTranffic", SystemWarningMsg.msg_mesDataTranffic);
                                }
                            }
                        }
                        else
                        {
                            SystemWarningMsg.msg_mesDataTranfficForRealMes = "没有数据要推送给MES!";
                        }
                    }
                }
                catch (Exception ex)
                {
                    SystemWarningMsg.msg_mesDataTranfficForRealMes = "数据要推送给MES出现异常:" + ex.Message;
                    WZ.Useful.Commons.LogTextHelper.WriteLine("Form1", "mesDataTranffic数据要推送给MES出现异常:", SystemWarningMsg.msg_mesDataTranfficForRealMes + "," + JsonConvert.SerializeObject(ex));
                }
            }
        }
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            Environment.Exit(0);//退出本进程所有线程
@@ -2824,6 +2922,7 @@
                    this.lbl_Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg.Text = showNowTime + SystemWarningMsg.Thread_HandleTaskForNoIssuedForDirectOnLinePoint__ErrMsg;
                    this.lbl_msg_mesDataTranffic.Text = showNowTime + SystemWarningMsg.msg_mesDataTranffic;
                    this.lbl_msg_mesDataTranffic_V2.Text = showNowTime + SystemWarningMsg.msg_mesDataTranfficForRealMes;
                    this.lbl_sendTaskForPick_ErrMsg.Text = showNowTime + SystemWarningMsg.Thread_sendTaskForPick_ErrMsg;
                    this.lbl_ClearDataMsg.Text = showNowTime + SystemWarningMsg.Thread_lbl_ClearDataMsg;
wcs/yunneiWCS/yunneiWCS/ORM/Wms_outInStockRecord_V2_Mes.cs
@@ -54,6 +54,8 @@
        public int? isSendToMes { get; set; }
        public int? SendToMesCount { get; set; }
        public DateTime? SendToMesTime { get; set; }
        [StringLength(128)]
wcs/yunneiWCS/yunneiWCS/SystemInteraction/mes2/PushMesHandler.cs
@@ -23,13 +23,14 @@
        /// </summary>
        /// <param name="pushData"></param>
        /// <returns></returns>
        public static ApiResponse<object> Mes_InStockSend(List<InboundStockInfoToMes> pushData)
        public static ApiResponse<object> Mes_InStockSend(List<InboundStockInfoToMes> pushData, string _identifier)
        {
            ApiResponse<object> res = null;
            try
            {
                MesRequest<List<InboundStockInfoToMes>> mesRequest = new MesRequest<List<InboundStockInfoToMes>>();
                mesRequest.data = pushData;
                mesRequest.identifier = _identifier;
                string paprm = JsonConvert.SerializeObject(mesRequest);
                Guid guid = System.Guid.NewGuid();
@@ -44,5 +45,62 @@
            return res;
        }
        /// <summary>
        /// 给MES推送出库信息
        /// </summary>
        /// <param name="pushData"></param>
        /// <returns></returns>
        public static ApiResponse<object> Mes_OutStockSend(List<InboundStockInfoToMes> pushData, string _identifier)
        {
            ApiResponse<object> res = null;
            try
            {
                MesRequest<List<InboundStockInfoToMes>> mesRequest = new MesRequest<List<InboundStockInfoToMes>>();
                mesRequest.data = pushData;
                mesRequest.identifier = _identifier;
                string paprm = JsonConvert.SerializeObject(mesRequest);
                Guid guid = System.Guid.NewGuid();
                res = JsonConvert.DeserializeObject<ApiResponse<object>>(mes_api.postContentForString("T_WMS_Outbound_Record", paprm, guid));
                WZ.Useful.Commons.LogTextHelper.WriteLine("PushMesHandler", "Mes_OutStockSend 返回状态码:", res.Code + " 返回信息:" + res.Message);
            }
            catch (Exception ex)
            {
                WZ.Useful.Commons.LogTextHelper.WriteLine("PushMesHandler", "Mes_OutStockSend ", " 发送异常:" + JsonConvert.SerializeObject(ex));
                res.Message = "发送异常:" + ex.Message;
            }
            return res;
        }
        /// <summary>
        /// 给MES推送库存信息
        /// </summary>
        /// <param name="pushData"></param>
        /// <returns></returns>
        public static ApiResponse<object> Mes_StockSend(List<InboundStockInfoToMes> pushData)
        {
            ApiResponse<object> res = null;
            try
            {
                MesRequest<List<InboundStockInfoToMes>> mesRequest = new MesRequest<List<InboundStockInfoToMes>>();
                mesRequest.data = pushData;
                string paprm = JsonConvert.SerializeObject(mesRequest);
                Guid guid = System.Guid.NewGuid();
                res = JsonConvert.DeserializeObject<ApiResponse<object>>(mes_api.postContentForString("T_WMS_Realtime_Data", paprm, guid));
                WZ.Useful.Commons.LogTextHelper.WriteLine("PushMesHandler", "Mes_OutStockSend 返回状态码:", res.Code + " 返回信息:" + res.Message);
            }
            catch (Exception ex)
            {
                WZ.Useful.Commons.LogTextHelper.WriteLine("PushMesHandler", "Mes_OutStockSend ", " 发送异常:" + JsonConvert.SerializeObject(ex));
                res.Message = "发送异常:" + ex.Message;
            }
            return res;
        }
    }
}
wcs/yunneiWCS/yunneiWCS/SystemInteraction/mes2/dto/MesRequest.cs
@@ -24,5 +24,11 @@
        /// 推送时间
        /// </summary>
        public string Timestamp { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");               // 时间戳,如 "2022-03-15 06:43:15"
        /// <summary>
        /// 唯一标识符
        /// </summary>
        public string identifier { get; set; }
    }
}