xiaojiao
2026-03-23 f02d3a8ffc05a10a64859b2a16d5d43c8abb0fb9
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/Container/Partial/VV_ContainerInfoService.cs
@@ -202,12 +202,35 @@
        public WebResponseContent BoxOutboundByManual(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            WebResponseContent content2 = new WebResponseContent();
            try
            {
                if (saveModel.DelKeys.Count > 0)
                {
                    content2 = WCSApi.GetInboundLineCurrentModel(saveModel);
                    var contianerList = saveModel.DelKeys;
                    string workStation = saveModel.MainData["workStation"].ToString();
                    if (content2.Status)
                    {
                        Dictionary<string, string> returndic = JsonConvert.DeserializeObject<Dictionary<string, string>>(content2.Data.ToString());
                        var controlModel = returndic["controlModel"]; // å…¥åº“区的模式
                        var modelResult = returndic["modelResult"]; // å‡ºåº“区域的模式
                        if (workStation == "20101")
                        {
                            if (controlModel!= "联机控制")
                            {
                                return content.Error($"入库区域当前不处于【联机模式】");
                            }
                        }
                        else if (modelResult != "联机控制")
                        {
                            return content.Error($"出库区域当前不处于【联机模式】");
                        }
                    }
                    //if (workStation != "入库口")
                    //    throw new Exception("::Error::=> å‡ºåº“线体还在安装中,无法新建!");
@@ -285,6 +308,20 @@
                          CommonFunction.ChangeLocationState(locationinfo, locationState);
                          Dt_taskinfo taskinfo = new Dt_taskinfo();
                          //表示将轴承出到入库口
                          try
                          {
                              if (item.containerdtl_goodsCode != null && item.containerdtl_goodsCode != "")
                              {
                                  taskinfo.task_sn = item.containerdtl_goodsCode;
                              }
                          }
                          catch (Exception)
                          {
                              throw;
                          }
                          if (workStation == "20101")
                          {
                              string target = CommonFunction.GetOutboundAddress(general_Info, locationinfo.location_layer);
@@ -307,6 +344,7 @@
                              taskinfo.task_createtime = DateTime.Now;
                              taskinfo.task_materielType = item.containerdtl_type;
                              taskinfo.task_weight = item.containerdtl_goodsWeight;
                          }
                          else
                          {
@@ -824,6 +862,11 @@
                        locationinfo.location_state = LocationState.LocationState_Box_Measure_Out_Wait_Executing.ToString();
                        Dt_locationinfoRepository.Instance.Update(locationinfo, true);
                        // æ›´æ”¹æµ‹é‡å‡ºåº“的状态为为测量
                        //Dt_container_detail dt_container_detail = Dt_container_detailRepository.Instance.FindFirst(x => x.containerdtl_barcode == containerInfo.containerdtl_barcode);
                        //dt_container_detail.containerdtl_text1 = "未测量";
                        //Dt_container_detailRepository.Instance.Update(dt_container_detail, true);
                        string target = CommonFunction.GetInboundAddress(general_Info, locationinfo.location_layer);
                        //生成WMS任务
                        Dt_taskinfo taskinfo = new Dt_taskinfo();