|
@ -281,19 +281,19 @@ namespace BBWY.Client.ViewModels |
|
|
string[] increates = new string[] { "气泡纸", "气泡袋", "POP袋", "折纸箱", "气泡纸封边", "彩盒", "剪胶", "剪彩带", "快递袋", "收纳盒", "纸箱子", "装纸箱", "封边", "胶带", "折彩盒" }; |
|
|
string[] increates = new string[] { "气泡纸", "气泡袋", "POP袋", "折纸箱", "气泡纸封边", "彩盒", "剪胶", "剪彩带", "快递袋", "收纳盒", "纸箱子", "装纸箱", "封边", "胶带", "折彩盒" }; |
|
|
|
|
|
|
|
|
PackPurchaseTaskService packPurchaseTaskService; |
|
|
PackPurchaseTaskService packPurchaseTaskService; |
|
|
|
|
|
PackTaskService packTaskService; |
|
|
ProductService productService; |
|
|
ProductService productService; |
|
|
GlobalContext globalContext; |
|
|
GlobalContext globalContext; |
|
|
private bool isLoading = false; |
|
|
private bool isLoading = false; |
|
|
public bool IsLoading { get => isLoading; set { Set(ref isLoading, value); } } |
|
|
public bool IsLoading { get => isLoading; set { Set(ref isLoading, value); } } |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
public QualityViewModel(ProductService productService, GlobalContext globalContext, PackPurchaseTaskService packPurchaseTaskService, PurchaseService purchaseService) |
|
|
public QualityViewModel(ProductService productService, GlobalContext globalContext, PackPurchaseTaskService packPurchaseTaskService, PurchaseService purchaseService, PackTaskService packTaskService) |
|
|
{ |
|
|
{ |
|
|
this.packPurchaseTaskService = packPurchaseTaskService; |
|
|
this.packPurchaseTaskService = packPurchaseTaskService; |
|
|
this.productService = productService; |
|
|
this.productService = productService; |
|
|
this.globalContext = globalContext; |
|
|
this.globalContext = globalContext; |
|
|
|
|
|
|
|
|
OpenSkuDetailCommand = new RelayCommand<object>(OpenSkuDetail); |
|
|
OpenSkuDetailCommand = new RelayCommand<object>(OpenSkuDetail); |
|
|
SetBarCodeCommand = new RelayCommand(SetBarCode); |
|
|
SetBarCodeCommand = new RelayCommand(SetBarCode); |
|
|
SetCertificateCommand = new RelayCommand<PurchaseSku>(SetCertificate); |
|
|
SetCertificateCommand = new RelayCommand<PurchaseSku>(SetCertificate); |
|
@ -311,6 +311,7 @@ namespace BBWY.Client.ViewModels |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.purchaseService = purchaseService; |
|
|
this.purchaseService = purchaseService; |
|
|
|
|
|
this.packTaskService = packTaskService; |
|
|
#if DEBUG
|
|
|
#if DEBUG
|
|
|
|
|
|
|
|
|
//Test();
|
|
|
//Test();
|
|
@ -364,7 +365,7 @@ namespace BBWY.Client.ViewModels |
|
|
BarCodeModel.BrandName = BrandName; |
|
|
BarCodeModel.BrandName = BrandName; |
|
|
|
|
|
|
|
|
SetBarCodeWindow setBarCodeWindow = new SetBarCodeWindow(); |
|
|
SetBarCodeWindow setBarCodeWindow = new SetBarCodeWindow(); |
|
|
setBarCodeWindow.LoadData(BarCodeModel, packPurchaseTaskService); |
|
|
setBarCodeWindow.LoadData(BarCodeModel, packTaskService); |
|
|
setBarCodeWindow.SaveResult = b => |
|
|
setBarCodeWindow.SaveResult = b => |
|
|
{ |
|
|
{ |
|
|
BarCodeModel = b; |
|
|
BarCodeModel = b; |
|
@ -413,7 +414,7 @@ namespace BBWY.Client.ViewModels |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
private void LookCer(string id) |
|
|
private void LookCer(string id) |
|
|
{ |
|
|
{ |
|
|
LookCerWindow lookCerWindow = new LookCerWindow(PurchaseSkuList.SingleOrDefault(p => p.PurchaseSkuId == id).CerDTO); |
|
|
QualityLookCerWindow lookCerWindow = new QualityLookCerWindow(PurchaseSkuList.SingleOrDefault(p => p.PurchaseSkuId == id).CerDTO); |
|
|
lookCerWindow.Show(); |
|
|
lookCerWindow.Show(); |
|
|
} |
|
|
} |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|