示例#1
0
 private void InitializeSales()
 {
     errorProvider = new ErrorProvider(this);
     InitializeComponent();
     customerController   = new CustomerController();
     saleController       = new SaleController();
     productController    = new ProductController();
     subProductController = new SubProductController();
     subProductForTransactionController = new SubProductForTransactionController();
 }
示例#2
0
 public Products()
 {
     errorProvider = new ErrorProvider(this);
     InitializeComponent();
     productController           = new ProductController();
     subProductController        = new SubProductController();
     partController              = new PartController();
     partForSubProductController = new PartForSubProductController();
     dgvProducts.DataSource      = productController.GetAll();
     cbParts.DataSource          = partController.GetAll();
 }
 private void InitializeQuotes()
 {
     errorProvider = new ErrorProvider(this);
     InitializeComponent();
     customerController   = new CustomerController();
     quoteController      = new QuoteController();
     productController    = new ProductController();
     subProductController = new SubProductController();
     subProductForTransactionController = new SubProductForTransactionController();
     saleController  = new SaleController();
     txtValidTo.Text = DateTime.Now.AddDays(30).ToShortDateString();
 }
示例#4
0
        private void pageInput_SelectOrder_Load(object sender, EventArgs e)
        {
            this.bttInput.Visible = false;

            SubProductController controllerSubProduct = new SubProductController();

            listSubProcess = controllerSubProduct.SearchSubProduct(productMainCode);
            foreach (SubProductProperty item in listSubProcess)
            {
                this.cmbSubProduct.Items.Add(item.PRODUCT_SUB_NAME);
            }
            //Declaration class OrderProperty & Conditionproperty
            _frmMain._order           = new OrderProperty();
            _frmMain._order.CONDITION = new ConditionProperty();
        }