|
@@ -7,7 +7,7 @@ using WCS.WorkEngineering.Worlds.Logs;
|
|
|
|
|
|
namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
{
|
|
|
- public class IwmsSApi
|
|
|
+ public class IwmsApi
|
|
|
{
|
|
|
private static string _IwmsUrl = null!;
|
|
|
|
|
@@ -27,27 +27,28 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //public static zhongTianIntoStockResponse 空轮入库(string matCode, string wbCode)
|
|
|
- //{
|
|
|
- // //return zhongTianIntoStock(matCode, )
|
|
|
- //}
|
|
|
+ public static zhongTianIntoStockResponse 满轮出库(string matCode, string wbCode)
|
|
|
+ {
|
|
|
+ return zhongTianIntoStock(matCode, wbCode, "1");
|
|
|
+ }
|
|
|
|
|
|
//public static zhongTianIntoStockResponse 余料入库(string matCode, string wbCode)
|
|
|
//{
|
|
|
// //return zhongTianIntoStock(matCode, )
|
|
|
//}
|
|
|
|
|
|
- public static zhongTianIntoStockResponse zhongTianIntoStock(string matCode, string wbCode)
|
|
|
+ public static zhongTianIntoStockResponse zhongTianIntoStock(string matCode, string wbCode, string inSpoolFull)
|
|
|
{
|
|
|
var res = APICaller.CallApi2<zhongTianIntoStockResponse>(IwmsUrl + "/databus/publish/zhongTianIntoStock", new zhongTianIntoStockRequest
|
|
|
{
|
|
|
matCode = matCode,
|
|
|
wbCode = wbCode,
|
|
|
+ inSpoolFull = inSpoolFull,
|
|
|
});
|
|
|
- //if (res.code != AgvResponseCode.Success)
|
|
|
- //{
|
|
|
- // throw new KnownException(res.message, LogLevelEnum.High);
|
|
|
- //}
|
|
|
+ if (res.code != AgvResponseCode.Success)
|
|
|
+ {
|
|
|
+ throw new KnownException(res.message, LogLevelEnum.High);
|
|
|
+ }
|
|
|
return res;
|
|
|
}
|
|
|
|