Пример #1
0
        public void initialize()
        {
            _stockController    = new StockController();
            _providerController = new ProviderController();
            _storageController  = new StorageController();
            _productEntry       = new ProductEntryController();

            searchLookUpProvider.Properties.DataSource = _providerController.view3("");

            _storageController.List().ForEach(item => cmbStorage.Properties.Items.Add(item.Armazem));
            if (cmbStorage.Properties.Items.Count > 0)
            {
                cmbStorage.SelectedIndex = 0;
            }
        }
Пример #2
0
        public void initialize()
        {
            _stockController    = new StockController();
            _providerController = new ProviderController();
            _storageController  = new StorageController();
            _productEntry       = new ProductEntryController();

            searchLookUpProvider.Properties.DataSource = _providerController.view3("");

            _storageController.List().ForEach(item => cmbStorage.Properties.Items.Add(item.Armazem));
            if (cmbStorage.Properties.Items.Count > 0)
            {
                cmbStorage.SelectedIndex = 0;
            }

            _paymentController.ListALL().ForEach(item => MethodsTable.combosAdd(cmbPayment, item.Descricao));
            MethodsTable.itensCombosMaiorZeroSelect(cmbPayment);
            _currentAccountController.ListALL().ForEach(item => MethodsTable.combosAdd(cmbAccount, item.Descricao + " - " + item.NumeroConta));
            MethodsTable.itensCombosMaiorZeroSelect(cmbAccount);
            toGridEntryProducts();
        }