| | |
| | | { |
| | | if (oMain.HProcID == 0 || oMain.HQty == 0 || string.IsNullOrEmpty(oMain.HProcExchBillNo) || oMain.HQty == 0 || string.IsNullOrEmpty(oMain.HBillNo)) |
| | | return new ApiResult { code = 1, msg = "参数不全" }; |
| | | var stationInList = YqnDal.GetStationInBillMailList(oMain.HICMOBillNo);//获得该流转卡所有进站单 |
| | | var stationInList = YqnDal.GetStationInBillMailList(oMain.HProcExchBillNo);//获得该流转卡所有进站单 |
| | | if (stationInList.Count > 0) |
| | | { |
| | | var stationOutList = YqnDal.GetStationOutBillMailList(oMain.HICMOBillNo);//获得该流转卡所有出站单 |
| | | var stationOutList = YqnDal.GetStationOutBillMailList(oMain.HProcExchBillNo);//获得该流转卡所有出站单 |
| | | var stationInModel = stationInList.OrderByDescending(a => a.HDate).First();//获取进站单最新进站工序 |
| | | if (stationOutList.Count == 0 && oMain.HProcID == stationInModel.HProcID) |
| | | return new ApiResult { code = -1, msg = "重复扫描" }; |