private void OnProductSetOutPutNumberCommand() { ProductWindow productWindow = new ProductWindow(ProductWindowType.SetOutPutNumber, ProductTypeEntityList, SelectProductEntity); productWindow.Closed += productWindow_Closed; productWindow.Show(); }
private void OnAddProductCommand() { AddProductEntity = new ProductEntity(); AddProductEntity.ProjectEntityDictionary = ProjectEntityDictionary; AddProductEntity.ManufactureNumber = SelectProjectEntity.ManufactureNumber; AddProductEntity.ProductIDCreateData = DateTime.Now; AddProductEntity.ProductTypeID = 1; AddProductEntity.Product = new ProductManager.Web.Model.product(); AddProductEntity.ProductEntityDictionary = ProductEntityDictionary; ProductWindow productWindow = new ProductWindow(ProductWindowType.ADD, ProductTypeEntityList, AddProductEntity); productWindow.Closed += AddProductClosed; productWindow.Show(); }
private void OnModifyProductCommand() { ProductWindow productWindow = new ProductWindow(ProductWindowType.Modify, ProductTypeEntityList, SelectProductEntity); productWindow.Closed += productWindow_Closed; productWindow.Show(); }
private void DoubleClickProductCommand() { if (SelectProductEntity != null) { ProductWindow productWindow = new ProductWindow(ProductWindowType.Modify, ProductTypeEntityList, SelectProductEntity); productWindow.Show(); } }