示例#1
0
文件: Screen.cs 项目: dogangsn/SIS
        public void CompanyEdit(SIS.Data.FormOpenType _FormOpenType, int _id)
        {
            CompanyEdit _CustomerEdit = new CompanyEdit();

            _CustomerEdit._FormOpenType = _FormOpenType;
            if (_FormOpenType == Data.FormOpenType.New)
            {
                _CustomerEdit.__company = new Model.Models.GMP.Definitions.CompanyDTO();
            }
            else
            {
                _getValue.Id = _id;
                //_CustomerEdit.__company = bl._repository.Run<DefinitionsService, CompanyDTO>(x => x.Get_Company(_getValue));
            }
            _CustomerEdit.ShowDialog();
        }
示例#2
0
文件: Screen.cs 项目: dogangsn/SIS
        public void CustomerEdit(SIS.Data.FormOpenType _FormOpenType, int _id)
        {
            CustomerEdit _CustomerEdit = new CustomerEdit();

            _CustomerEdit._FormOpenType = _FormOpenType;
            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));
            }
            _CustomerEdit.ShowDialog();
        }
示例#3
0
文件: Screen.cs 项目: dogangsn/SIS
        public void PersonelEdit(SIS.Data.FormOpenType _FormOpenType, int _id)
        {
            PersonelEdit _PersonelEdit = new PersonelEdit();

            _PersonelEdit._FormOpenType = _FormOpenType;
            if (_FormOpenType == Data.FormOpenType.New)
            {
                _PersonelEdit._personels = new Model.Models.GMP.Definitions.PersonelsDTO();
            }
            else
            {
                _getValue.Id = _id;
                //_PersonelEdit._personels = bl._repository.Run<DefinitionsService, PersonelsDTO>(x => x.Get_Personels(_getValue));
            }
            _PersonelEdit.ShowDialog();
        }
示例#4
0
文件: Screen.cs 项目: dogangsn/SIS
        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();
        }
示例#5
0
文件: Screen.cs 项目: dogangsn/SIS
        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();
        }