提交奥特佳物料绑定工位源码

master
CaesarBao 3 weeks ago
parent 9dff42b945
commit 859d097977

@ -13,9 +13,17 @@ namespace SlnMesnac.Repository.service.Impl
}
public T_RP_ProductChangeInfo GetProductType()
{
T_RP_ProductChangeInfo t_RP_Product = null;
t_RP_Product = _rep.GetFirst(x => x.id == 1);
return t_RP_Product;
try
{
T_RP_ProductChangeInfo t_RP_Product = null;
t_RP_Product = _rep.GetFirst(x => x.id == 1);
return t_RP_Product;
}
catch (Exception ex)
{
return null;
}
}
}
}

@ -977,7 +977,13 @@ namespace SlnMesnac.WPF.ViewModel.IndexPage
string MBarcoe = _stationQualityInfoService.GetNewMainBarcode();
//_logger.LogInformation(MBarcoe);
//查询型号
string productID = _ProductChangeInfoService.GetProductType().productid.ToString();
T_RP_ProductChangeInfo t_RP_ProductChangeInfo = _ProductChangeInfoService.GetProductType();
string productID = "";
if (t_RP_ProductChangeInfo != null)
{
productID = t_RP_ProductChangeInfo.productid.ToString();
}
//插入关系表
if (StationCode == "80_3")
{

@ -81,6 +81,6 @@
"ChangeTypeConfig": {
"ProductType": "E34F",
"KTProductType": "E34F",
"OpenFlag": "1"
"OpenFlag": "0"
}
}

Loading…
Cancel
Save