xiaojiao
2 天以前 b532ba8806996246ab7a0896bf34b884c47dee7e
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA.Services/Common/AddBoxContainer.cs
@@ -5,6 +5,7 @@
using WIDESEA.Core.ManageUser;
using WIDESEA.Entity.DomainModels;
using WIDESEA.Services.Repositories;
using static WIDESEA_Entity.CustomModels.RGVModel.RgvDeviceStatusModel;
namespace WIDESEA.Services.Services
{
@@ -42,7 +43,8 @@
                if (standars.weighing_isCompute == 1)
                {
                    //差异值  
                    decimal differencWeiging = standars.weighing_standard_value.GetValueOrDefault() - currentWeighing;
                    // decimal differencWeiging = standars.weighing_standard_value.GetValueOrDefault() - currentWeighing;
                    decimal differencWeiging = int.Parse(goodsInfo.mesInfo_bak_3) - currentWeighing; // è‚–佼修成
                    if (differencWeiging < 0)
                    {
                        if (standars.weighing_positive_value >= -differencWeiging)
@@ -56,6 +58,10 @@
                }
                else
                    weighingResult = 1;
            }
            else // è‚–佼加的否则判断
            {
                weighingResult = 1;
            }
            Dt_container_head conHead = new Dt_container_head();
@@ -82,11 +88,23 @@
            conDetail.containerdtl_madeUnit = goodsInfo.mesInfo_madeUnit;
            conDetail.containerdtl_number = goodsInfo.mesInfo_number;
            conDetail.containerdtl_goodsCode = goodsInfo.mesInfo_qrCode;
            conDetail.containerdtl_goodsWeight = ((decimal.Parse(taskInfo.task_weight) - decimal.Parse(dt_EmptyPallet.EmptyPallet_palletweight))
                + standars.weighing_addWeighing.GetValueOrDefault()).ToString();
            conDetail.Standard_value = goodsInfo.mesInfo_bak_3; // è‚–佼加上这个
            conDetail.containerdtl_goodsWeight = "0"; // è‚–佼加上了这个if 92 - 100行
            if (standars != null)
            {
                if (standars.weighing_isCompute == 1)
                {
                    conDetail.containerdtl_goodsWeight = ((decimal.Parse(taskInfo.task_weight) - decimal.Parse(dt_EmptyPallet.EmptyPallet_palletweight))
                    + standars.weighing_addWeighing.GetValueOrDefault()).ToString();
                }
            }
            conDetail.containerdtl_creator = taskInfo.task_creator;
            conDetail.containerdtl_createtime = DateTime.Now;
            conDetail.containerdtl_text1 = "未测量";
            conDetail.containerdtl_text3 = "未复检";
            //称重结果
            conDetail.containerdtl_standardResult = weighingResult;