Browse Source

10212

pjzs_starttask_update
506583276@qq.com 2 years ago
parent
commit
a0d49a78d2
  1. 2
      BBWY.Client/GlobalContext.cs
  2. 40
      BBWY.Client/ViewModels/QualityTask/QualityViewModel.cs

2
BBWY.Client/GlobalContext.cs

@ -13,7 +13,7 @@ namespace BBWY.Client
{ {
ShopServiceGroupList = new List<string>(); ShopServiceGroupList = new List<string>();
ShopServiceGroupLowerList = new List<string>(); ShopServiceGroupLowerList = new List<string>();
ClientVersion = "10211"; ClientVersion = "10212";
} }

40
BBWY.Client/ViewModels/QualityTask/QualityViewModel.cs

@ -535,29 +535,29 @@ namespace BBWY.Client.ViewModels
} }
request.BarcodeId = BarCodeModel.Id; request.BarcodeId = BarCodeModel.Id;
} }
IsNeedPrintCer = Need.; if (IsNeedPrintCer == Need.)
if (PurchaseSkuList != null && PurchaseSkuList.Count > 0 && purchaseSkuList.Any(p => p.IsNeedCer)) if (PurchaseSkuList != null && PurchaseSkuList.Count > 0 && purchaseSkuList.Any(p => p.IsNeedCer))
{
if (PurchaseSkuList.Where(p => p.IsSetCertificate).Count() > 0)
{ {
MessageBox.Show("存在未确认的合格证,请先完成确认!"); if (PurchaseSkuList.Where(p => p.IsSetCertificate).Count() > 0)
return; {
} MessageBox.Show("存在未确认的合格证,请先完成确认!");
return;
}
if (purchaseSkuList.Any(p => p.IsNeedCer && p.CerDTO == null)) if (purchaseSkuList.Any(p => p.IsNeedCer && p.CerDTO == null))
{ {
MessageBox.Show("有未设置的合格证,请设置完所有的合格证再保存"); MessageBox.Show("有未设置的合格证,请设置完所有的合格证再保存");
return; return;
} }
if (PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Count() <= 0) if (PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Count() <= 0)
{ {
MessageBox.Show("无可选的合格证打印!"); MessageBox.Show("无可选的合格证打印!");
return; return;
}
request.CerId = string.Join(",", PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Select(p => p.CerDTO.Id));
} }
request.CerId = string.Join(",", PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Select(p => p.CerDTO.Id));
IsNeedPrintCer = Need.;
}
try try
{ {

Loading…
Cancel
Save