111
cjs
2025-06-17 84c580cccb118f5ec4a039d0009255935c3c2490
ams/Hanhe.iWCS.TaizhouGEMTwoProtocol/MESHelper.cs
@@ -249,10 +249,6 @@
                    int productTime = Convert.ToInt32(Completion(result[(i - 1) * 24 + 20]) + Completion(result[(i - 1) * 24 + 21]), 2);//生产日期
                    string timeCuoTwo = Convert.ToInt32(Completion(result[(i - 1) * 24 + 22]) + Completion(result[(i - 1) * 24 + 23]), 2).ToString(); //时间戳
                    //注意:这里赋值中间表参数请对照信息交互表具体通道值对应
                    //UpdateBuilder update = Update.Set("employeeId" + i.ToString(), empCode).Set("trayCode" + i.ToString(), trayCode).Set("packingMachineNumber" + i.ToString(), machineCode).Set("needWeight" + i.ToString(), needWeight)
                    //    .Set("oneWeight" + i.ToString(), oneWeight).Set("realWeight" + i.ToString(), readWeight).Set("FCWeight" + i.ToString(), fcWeight).Set("trayType" + i.ToString(), trayType)
                    //    .Set("isFold" + i.ToString(), addState).Set("bagNumber" + i.ToString(), bagNumber).Set("productData" + i.ToString(), productTime).Set("timeCuo" + i.ToString(), timeCuoTwo);
                    UpdateBuilder updateBuilder = Update.Set("employeeId" + i.ToString(), empCode).Set("trayCode" + i.ToString(), trayCode).Set("packingMachineNumber" + i.ToString(), machineCode).Set("needWeight" + i.ToString(), needWeight)
                                            .Set("oneWeight" + i.ToString(), oneWeight).Set("realWeight" + i.ToString(), readWeight).Set("FCWeight" + i.ToString(), fcWeight).Set("trayType" + i.ToString(), trayType)
                                            .Set("isFold" + i.ToString(), addState).Set("bagNumber" + i.ToString(), bagNumber).Set("productData" + i.ToString(), productTime).Set("timeCuo" + i.ToString(), timeCuoTwo);
@@ -1135,201 +1131,51 @@
            /// <summary>
            /// 员工编号1
            /// </summary>
            public string employeeId1 { get; set; }
            public string employeeId { get; set; }
            /// <summary>
            /// 托盘码1
            /// </summary>
            public string trayCode1 { get; set; }
            public string trayCode { get; set; }
            /// <summary>
            /// 包装机号1
            /// </summary>
            public string packingMachineNumber1 { get; set; }
            public string packingMachineNumber { get; set; }
            /// <summary>
            /// 产品需求重量1:32位整数
            /// </summary>
            public int needWeight1 { get; set; }
            public int needWeight { get; set; }
            /// <summary>
            /// 单托毛重1:32位整数
            /// </summary>
            public int oneWeight1 { get; set; }
            public int oneWeight { get; set; }
            /// <summary>
            /// 单托实际重量1:32位整数
            /// </summary>
            public int realWeight1 { get; set; }
            public int realWeight { get; set; }
            /// <summary>
            /// 单托复称重量1:32位整数
            /// </summary>
            public int FCWeight1 { get; set; }
            public int FCWeight { get; set; }
            /// <summary>
            /// 托盘类型1
            /// </summary>
            public string trayType1 { get; set; }
            public string trayType { get; set; }
            /// <summary>
            /// 叠包层数1
            /// </summary>
            public int isFold1 { get; set; }
            public int isFold { get; set; }
            /// <summary>
            /// 本批次内袋号:(1,2,3……10) 整数1
            /// </summary>
            public int bagNumber1 { get; set; }
            public int bagNumber { get; set; }
            /// <summary>
            /// 生产日期(32位整数)1
            /// </summary>
            public string productData1 { get; set; }
            public string productData { get; set; }
            /// <summary>
            /// 单包下料时间戳
            /// </summary>
            public string timeCuo1 { get; set; }
            /// <summary>
            /// 员工编号2
            /// </summary>
            public string employeeId2 { get; set; }
            /// <summary>
            /// 托盘码2
            /// </summary>
            public string trayCode2 { get; set; }
            /// <summary>
            /// 包装机号2
            /// </summary>
            public string packingMachineNumber2 { get; set; }
            /// <summary>
            /// 产品需求重量2:32位整数
            /// </summary>
            public int needWeight2 { get; set; }
            /// <summary>
            /// 单托毛重2:32位整数
            /// </summary>
            public int oneWeight2 { get; set; }
            /// <summary>
            /// 单托实际重量2:32位整数
            /// </summary>
            public int realWeight2 { get; set; }
            /// <summary>
            /// 单托复称重量2:32位整数
            /// </summary>
            public int FCWeight2 { get; set; }
            /// <summary>
            /// 托盘类型2
            /// </summary>
            public string trayType2 { get; set; }
            /// <summary>
            /// 叠包层数2
            /// </summary>
            public int isFold2 { get; set; }
            /// <summary>
            /// 本批次内袋号:(1,2,3……20) 整数2
            /// </summary>
            public int bagNumber2 { get; set; }
            /// <summary>
            /// 生产日期(32位整数)2
            /// </summary>
            public string productData2 { get; set; }
            /// <summary>
            /// 单包下料时间戳
            /// </summary>
            public string timeCuo2 { get; set; }
            /// <summary>
            /// 员工编号3
            /// </summary>
            public string employeeId3 { get; set; }
            /// <summary>
            /// 托盘码3
            /// </summary>
            public string trayCode3 { get; set; }
            /// <summary>
            /// 包装机号3
            /// </summary>
            public string packingMachineNumber3 { get; set; }
            /// <summary>
            /// 产品需求重量3:33位整数
            /// </summary>
            public int needWeight3 { get; set; }
            /// <summary>
            /// 单托毛重3:32位整数
            /// </summary>
            public int oneWeight3 { get; set; }
            /// <summary>
            /// 单托实际重量3:32位整数
            /// </summary>
            public int realWeight3 { get; set; }
            /// <summary>
            /// 单托复称重量3:32位整数
            /// </summary>
            public int FCWeight3 { get; set; }
            /// <summary>
            /// 托盘类型3
            /// </summary>
            public string trayType3 { get; set; }
            /// <summary>
            /// 叠包层数3
            /// </summary>
            public int isFold3 { get; set; }
            /// <summary>
            /// 本批次内袋号:(1,2,3……30) 整数3
            /// </summary>
            public int bagNumber3 { get; set; }
            /// <summary>
            /// 生产日期(32位整数)3
            /// </summary>
            public string productData3 { get; set; }
            /// <summary>
            /// 单包下料时间戳
            /// </summary>
            public string timeCuo3 { get; set; }
            /// <summary>
            /// 员工编号4
            /// </summary>
            public string employeeId4 { get; set; }
            /// <summary>
            /// 托盘码4
            /// </summary>
            public string trayCode4 { get; set; }
            /// <summary>
            /// 包装机号4
            /// </summary>
            public string packingMachineNumber4 { get; set; }
            /// <summary>
            /// 产品需求重量4:32位整数
            /// </summary>
            public int needWeight4 { get; set; }
            /// <summary>
            /// 单托毛重4:32位整数
            /// </summary>
            public int oneWeight4 { get; set; }
            /// <summary>
            /// 单托实际重量4:32位整数
            /// </summary>
            public int realWeight4 { get; set; }
            /// <summary>
            /// 单托复称重量4:32位整数
            /// </summary>
            public int FCWeight4 { get; set; }
            /// <summary>
            /// 托盘类型4
            /// </summary>
            public string trayType4 { get; set; }
            /// <summary>
            /// 叠包层数4
            /// </summary>
            public int isFold4 { get; set; }
            /// <summary>
            /// 本批次内袋号:(1,2,3……40) 整数4
            /// </summary>
            public int bagNumber4 { get; set; }
            /// <summary>
            /// 生产日期(32位整数)4
            /// </summary>
            public string productData4 { get; set; }
            /// <summary>
            /// 单包下料时间戳
            /// </summary>
            public string timeCuo4 { get; set; }
            public string timeCuo { get; set; }
            /// <summary>
            /// 复称总重量
@@ -1359,6 +1205,7 @@
            /// 计量单位
            /// </summary>
            public string measurementUnit { get; set; }
            public DateTime createTime { get; set; }
        }
        /// <summary>