| | |
| | | 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::=> åºåºçº¿ä½è¿å¨å®è£
ä¸ï¼æ æ³æ°å»ºï¼"); |
| | |
| | | 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(); |