xiaojiao
2026-01-12 c3b60d865c3457c35054446e81b352e93e00a696
ÏîÄ¿´úÂë/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::=> å‡ºåº“线体还在安装中,无法新建!");
@@ -824,6 +847,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();