public void SeansEdit(SIS.Data.FormOpenType _FormOpenType, int _id, OperationProductType type) { SeansEdit _SeansEdit = new SeansEdit(); _SeansEdit._FormOpenType = _FormOpenType; _SeansEdit._operationType = type; if (_FormOpenType == Data.FormOpenType.New) { //_CustomerEdit.__dl_Customers = new Model.Models.GMP.Customer.CustomersDTO(); } else { _getValue.Id = _id; //_CustomerEdit.__dl_Customers = bl._repository.Run<CustomersService, CustomersDTO>(x => x.Get_Customers(_getValue)); } _SeansEdit.ShowDialog(); }
public void OperationAndProducEdit(SIS.Data.FormOpenType _FormOpenType, int _id, OperationProductType type) { OperationAndProducEdit _OperationAndProduc = new OperationAndProducEdit(); _OperationAndProduc._FormOpenType = _FormOpenType; _OperationAndProduc._operationType = type; if (_FormOpenType == Data.FormOpenType.New) { _OperationAndProduc._dll_ProductOperation = new ProductOperation(); _OperationAndProduc._dll_ProductOperation.RecordDate = DateTime.Now.Date; //_OperationAndProduc._dll_ProductOperation.RecordUser = AppMain. } else { _getValue.Id = _id; //_CustomerEdit.__dl_Customers = bl._repository.Run<CustomersService, CustomersDTO>(x => x.Get_Customers(_getValue)); } _OperationAndProduc.ShowDialog(); }