Exemple #1
0
        private void ChooseOperationForm_Load(object sender, EventArgs e)
        {
            IList <Model.Employee> roles = employeeManager.Select(Book.UI.Settings.BasicData.Employees.EmployeeParameters.BUSINESS);

            foreach (Model.Employee role in roles)
            {
                this.comboBoxRole.Properties.Items.Add(role);
            }
        }
        public SearcharInvoiceXSForm()
        {
            InitializeComponent();

            this.newChooseCustom.Choose     = new Settings.BasicData.Customs.ChooseCustoms();
            this.newChooseXOcustomer.Choose = new Settings.BasicData.Customs.ChooseCustoms();
            IList <Model.Employee> roles = employeeManager.Select(Book.UI.Settings.BasicData.Employees.EmployeeParameters.BUSINESS);

            this.dateEdit1.DateTime = DateTime.Now.Date.AddMonths(-3);
            this.dateEdit2.DateTime = DateTime.Now;
            foreach (Model.Employee role in roles)
            {
                this.cbo_bussiness.Properties.Items.Add(role);
            }
            this.StartPosition = FormStartPosition.CenterParent;

            this.bindingSourceCustomer.DataSource = new BL.CustomerManager().Select();
            this.bindingSourceEmployee.DataSource = employeeManager.Select();
        }
Exemple #3
0
 public EditForm()
 {
     InitializeComponent();
     this.requireValueExceptions.Add(Model.StockCheck.PROPERTY_STOCKCHECKID, new AA(Properties.Resources.NewNumbers, this.textEditStockCheckId));
     this.requireValueExceptions.Add(Model.StockCheck.PROPERTY_EMPLOYEE0ID, new AA(Properties.Resources.SelectEmployee, this.newChooseEmployee));
     this.requireValueExceptions.Add(Model.StockCheck.PROPERTY_DEPOTID, new AA(Properties.Resources.RequiredDataOfDepot, this.lookUpEditDepot));
     this.requireValueExceptions.Add(Model.StockCheckDetail.PROPERTY_DEPOTPOSITIONID, new AA(Properties.Resources.StockCheckQutyIsNull, this.gridControl1));
     this.action = "insert";
     this.newChooseEmployee.Choose                = new ChooseEmployee();
     this.newChooseContorlAuditEmp.Choose         = new ChooseEmployee();
     this.bindingSourceDepot.DataSource           = depotManager.Select();
     this.bindingSourceEmployee.DataSource        = employeeManager.Select();
     this.bindingSourceId.DataSource              = this.productManager.GetProduct();
     this.bindingSourceProductCategory.DataSource = this._productCategoryManager.Select();
 }