|
|
@ -80,18 +80,18 @@ namespace SlnMesnac.Business
|
|
|
|
_mesProductOrderService = serviceProvider.GetRequiredService<IMesProductOrderService>();
|
|
|
|
_mesProductOrderService = serviceProvider.GetRequiredService<IMesProductOrderService>();
|
|
|
|
_baseMaterialInfoService = serviceProvider.GetRequiredService<IBaseMaterialInfoService>();
|
|
|
|
_baseMaterialInfoService = serviceProvider.GetRequiredService<IBaseMaterialInfoService>();
|
|
|
|
Init();
|
|
|
|
Init();
|
|
|
|
// test();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void test()
|
|
|
|
private void test()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// MesProductPlanDetail? mesProductPlanDetail = sqlSugarClient.AsTenant().GetConnection("mes").Queryable<MesProductPlanDetail>().First(x => x.PlanCode == "20240724144533JL001");
|
|
|
|
// MesProductPlanDetail? mesProductPlanDetail = sqlSugarClient.AsTenant().GetConnection("mes").Queryable<MesProductPlanDetail>().First(x => x.PlanCode == "20240724144533JL001");
|
|
|
|
sqlSugarClient.AsTenant().BeginTran();
|
|
|
|
//sqlSugarClient.AsTenant().BeginTran();
|
|
|
|
string epc = "A123456";
|
|
|
|
//string epc = "JYHB01010102";
|
|
|
|
_mesProductPlanService.GetStartedProdPlan(out MesProductPlanDto productPlanDto);
|
|
|
|
//_mesProductPlanService.GetStartedProdPlan(out MesProductPlanDto productPlanDto);
|
|
|
|
string bigCode = GenerateBigBarcode(productPlanDto, epc);
|
|
|
|
//string bigCode = GenerateBigBarcode(productPlanDto, epc);
|
|
|
|
BindingBarCode(bigCode, epc, productPlanDto);
|
|
|
|
//BindingBarCode(bigCode, epc, productPlanDto);
|
|
|
|
sqlSugarClient.AsTenant().BeginTran();
|
|
|
|
//sqlSugarClient.AsTenant().BeginTran();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -119,6 +119,7 @@ namespace SlnMesnac.Business
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public void checkPmStatus()
|
|
|
|
public void checkPmStatus()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
PmTryAmount++;
|
|
|
|
Task.Run(() =>
|
|
|
|
Task.Run(() =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
while (true)
|
|
|
|
while (true)
|
|
|
|