Browse Source

10212

pjzs_starttask_update
506583276@qq.com 2 years ago
parent
commit
a0d49a78d2
  1. 2
      BBWY.Client/GlobalContext.cs
  2. 38
      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";
} }

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

@ -535,28 +535,28 @@ 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))
{
MessageBox.Show("有未设置的合格证,请设置完所有的合格证再保存");
return;
}
if (PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Count() <= 0)
{
MessageBox.Show("无可选的合格证打印!");
return;
}
request.CerId = string.Join(",", PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Select(p => p.CerDTO.Id));
if (purchaseSkuList.Any(p => p.IsNeedCer && p.CerDTO == null))
{
MessageBox.Show("有未设置的合格证,请设置完所有的合格证再保存");
return;
}
if (PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Count() <= 0)
{
MessageBox.Show("无可选的合格证打印!");
return;
} }
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