Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }