public ViewModelSale(ISaleValidationRule saleValidationRule, IProductValidationRule productValidationRule, IMainWindowController mainWindowController, IFrontServiceClient frontServiceClient, Seller seller, User user) { this.validatablePropertyCollection.Add("Product"); this.validatablePropertyCollection.Add("Count"); this.validatablePropertyCollection.Add("Datetime"); this.saleValidationRule = saleValidationRule; this.productValidationRule = productValidationRule; this.mainWindowController = mainWindowController; this.frontServiceClient = frontServiceClient; this.seller = seller; this.user = user; }
public ViewModelProduct(IArrivedGoodsValidationRule arrivedGoodsValidationRule, IProductValidationRule productValidationRule, IMainWindowController mainWindowController, IFrontServiceClient frontServiceClient, ArrivedGoods arrivedGoods, Product product, Seller seller, User user, int id) { this.validatablePropertyCollection.Add("Unit"); this.validatablePropertyCollection.Add("Count"); this.validatablePropertyCollection.Add("Datetime"); this.validatablePropertyCollection.Add("ExpirationDate"); this.validatablePropertyCollection.Add("PurchasePrice"); this.validatablePropertyCollection.Add("SalesPrice"); this.validatablePropertyCollection.Add("ReturnedDate"); this.arrivedGoodsValidationRule = arrivedGoodsValidationRule; this.productValidationRule = productValidationRule; this.mainWindowController = mainWindowController; this.frontServiceClient = frontServiceClient; this.seller = seller; this.product = product; this.arrivedGoods = arrivedGoods; this.user = user; this.id = id; }
public EditProductGoodsValidationActivity(IArrivedGoodsValidationRule arrivedGoodsValidationRule, IProductValidationRule productValidationRule) { this.arrivedGoodsValidationRule = arrivedGoodsValidationRule; this.productValidationRule = productValidationRule; }