|
|
@ -418,7 +418,7 @@ namespace MaterialTraceability.Business.Impl
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//下发禁止下料
|
|
|
|
//下发禁止下料
|
|
|
|
sendError(position);
|
|
|
|
//sendError(position);
|
|
|
|
//调用MES获取数量接口
|
|
|
|
//调用MES获取数量接口
|
|
|
|
string upMaterialEaValue = GetUpMaterialQty(position, shaftInfo.bindSfc, logStr);
|
|
|
|
string upMaterialEaValue = GetUpMaterialQty(position, shaftInfo.bindSfc, logStr);
|
|
|
|
|
|
|
|
|
|
|
@ -427,7 +427,7 @@ namespace MaterialTraceability.Business.Impl
|
|
|
|
LogRefreshEvent?.Invoke(LogType.MesLog, String.Format("通过MES获取收卷位{0}物料EA值为空", shaftInfo.bindSfc));
|
|
|
|
LogRefreshEvent?.Invoke(LogType.MesLog, String.Format("通过MES获取收卷位{0}物料EA值为空", shaftInfo.bindSfc));
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
downRecord.eaValue = int.Parse(upMaterialEaValue);
|
|
|
|
downRecord.eaValue = (int)float.Parse(upMaterialEaValue);
|
|
|
|
LogRefreshEvent?.Invoke(LogType.RfidLog, "收卷位物料EA:" + upMaterialEaValue);
|
|
|
|
LogRefreshEvent?.Invoke(LogType.RfidLog, "收卷位物料EA:" + upMaterialEaValue);
|
|
|
|
if (!SpiltAccount(position, shaftInfo, downRecord.eaValue, shaftInfo.bindSfc, new ProUpRecord(), downRecord).Result)
|
|
|
|
if (!SpiltAccount(position, shaftInfo, downRecord.eaValue, shaftInfo.bindSfc, new ProUpRecord(), downRecord).Result)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -552,7 +552,7 @@ namespace MaterialTraceability.Business.Impl
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
private string GetUpMaterialQty(int position,string bindSfc, string logStr)
|
|
|
|
private string GetUpMaterialQty(int position,string bindSfc, string logStr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LogHelper.Info(logStr + "通过MES接口获取放卷物料的EA值");
|
|
|
|
LogHelper.Info(logStr + "通过MES接口获取物料的EA值");
|
|
|
|
MiSFCQueryQtyServiceServiceParam sFCQueryQtyServiceServiceParam = new MiSFCQueryQtyServiceServiceParam()
|
|
|
|
MiSFCQueryQtyServiceServiceParam sFCQueryQtyServiceServiceParam = new MiSFCQueryQtyServiceServiceParam()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
url = inifile.IniReadValue("MiSFCQueryQtyServiceServiceParam", "url"),
|
|
|
|
url = inifile.IniReadValue("MiSFCQueryQtyServiceServiceParam", "url"),
|
|
|
@ -931,7 +931,7 @@ namespace MaterialTraceability.Business.Impl
|
|
|
|
{
|
|
|
|
{
|
|
|
|
url = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "url"),
|
|
|
|
url = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "url"),
|
|
|
|
site = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "site"),
|
|
|
|
site = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "site"),
|
|
|
|
resource = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "resource"),
|
|
|
|
resource = appConfig.resource,
|
|
|
|
operation = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "operation"),
|
|
|
|
operation = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "operation"),
|
|
|
|
barcodeId = epc,
|
|
|
|
barcodeId = epc,
|
|
|
|
barcodeType = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "barcodeType"),
|
|
|
|
barcodeType = inifile.IniReadValue("ResourceSlotConfigurationSetupForJITServiceParam", "barcodeType"),
|
|
|
|