Exemple #1
0
        protected override void BindViews()
        {
            base.BindViews();

            mViewModel.BindView(BODataField.DATA_FIELD_NAME, lblDataFieldName, txtDataFieldName);
            mViewModel.BindView(BODataField.DATA_FIELD_TYPE, lblDataFieldType, cboDataFieldType);
            mViewModel.BindView(BODataField.PERSIST_OBJECT, btnOK);
        }
Exemple #2
0
        protected override void BindViews()
        {
            base.BindViews();

            mViewModel.BindView(BOGender.GENDER_ID, lblID, txtID);
            mViewModel.BindView(BOGender.DESCRIPTION, lblDescription, txtDescription);
            mViewModel.BindView(BusinessObject.PERSIST_OBJECT, btnOK);
        }
        protected override void BindViews()
        {
            cboRole.DataSource     = mApplicationController.FindAllAuthRoles();
            cboEmployee.DataSource = mApplicationController.FindAllEmployees();

            mViewModel.BindView(BOUser.USER_NAME, lblUsername, txtUsername);
            mViewModel.BindView(BOUser.USER_PASSWORD, lblPassword, txtPassword);
            mViewModel.BindView(BOUser.USER_ROLE, lblRole, cboRole);
            mViewModel.BindView(BOUser.USER_DESCRIPTION, lblDescription, cboEmployee);
        }
Exemple #4
0
        protected override void BindViews()
        {
            dgvAll.DataSource       = mModel.AllCards;
            dgvCustomers.DataSource = mModel.Customers;
            dgvSuppliers.DataSource = mModel.Suppliers;
            dgvEmployees.DataSource = mModel.Employees;

            mViewModel.BindView(BOListCard.ALL_CARDS_INFORMATION, lblCountAll);
            mViewModel.BindView(BOListCard.CUSTOMERS_INFORMATION, lblCountCustomers);
            mViewModel.BindView(BOListCard.SUPPLIERS_INFORMATION, lblCountSuppliers);
            mViewModel.BindView(BOListCard.EMPLOYEES_INFORMATION, lblCountEmployees);
        }
Exemple #5
0
        protected override void BindViews()
        {
            base.BindViews();

            dgvAll.DataSource = mModel.Lines;

            mViewModel.BindView(BOInventoryAdjustment.INVENTORY_JOURNAL_NUMBER, lblJournalNumber, txtJournalNumber);
            mViewModel.BindView(BOInventoryAdjustment.ADJUSTMENT_DATE, lblAdjustmentDate, dtpAdjustmentDate);
            mViewModel.BindView(BOInventoryAdjustment.MEMO, lblMemo, txtMemo);

            mViewModel.BindView(BOInventoryAdjustment.PERSIST_OBJECT, btnRecord);
        }
        protected override void BindViews()
        {
            base.BindViews();

            dgvAll.DataSource = mModel.Journals;

            cboItemSearchCriteria.DataSource = mApplicationController.FindAllItems();
            if (cboItemSearchCriteria.Items.Count != 0)
            {
                cboItemSearchCriteria.SelectedIndex = 0;
            }

            mViewModel.BindView(BOItemsRegister.START_DATE, lblStartDate, dtpStartDate);
            mViewModel.BindView(BOItemsRegister.END_DATE, lblEndDate, dtpEndDate);
            mViewModel.BindView(BOItemsRegister.ITEM, lblItemSearchCriteria, cboItemSearchCriteria);
            mViewModel.BindView(BOItemsRegister.ALL_ITEMS, chkAllItems);
        }
Exemple #7
0
        protected override void BindViews()
        {
            base.BindViews();

            cboItem.DataSource     = mApplicationController.FindAllBoughtItems();
            cboTax.DataSource      = mApplicationController.FindAllTaxCodes();
            cboJob.DataSource      = mApplicationController.FindAllJobs();
            cboLocation.DataSource = mApplicationController.FindAllLocations();

            mViewModel.BindView(BOItemPurchaseLine.ITEM, lblItem, cboItem);
            mViewModel.BindView(BOItemPurchaseLine.RECEIVED, lblReceived, txtReceived);
            mViewModel.BindView(BOItemPurchaseLine.TAXCODE, lblTax, cboTax);
            mViewModel.BindView(BOItemPurchaseLine.JOB, lblJob, cboJob);
            mViewModel.BindView(BOItemPurchaseLine.LOCATION, lblLocation, cboLocation);
            mViewModel.BindView(BOItemPurchaseLine.PRICE, lblPrice, txtPrice);
            mViewModel.BindView(BOItemPurchaseLine.QUANTITY, lblQuantity, txtQuantity);
            mViewModel.BindView(BOItemPurchaseLine.DISCOUNT, lblDiscount, txtDiscount);
            mViewModel.BindView(BOItemPurchaseLine.PERSIST_OBJECT, btnOK);
        }
        protected override void BindViews()
        {
            base.BindViews();

            cboItem.DataSource    = mApplicationController.FindAllSoldItems();
            cboAccount.DataSource = mApplicationController.FindAllAccounts();
            cboJob.DataSource     = mApplicationController.FindAllJobs();

            mViewModel.BindView(BOInventoryAdjustmentLine.ITEM, lblItem, cboItem);
            mViewModel.BindView(BOInventoryAdjustmentLine.ACCOUNT, lblAccount, cboAccount);
            mViewModel.BindView(BOInventoryAdjustmentLine.JOB, lblJob, cboJob);
            mViewModel.BindView(BOInventoryAdjustmentLine.UNIT_COST, lblUnitCost, txtUnitCost);
            mViewModel.BindView(BOInventoryAdjustmentLine.QUANTITY, lblQuantity, txtQuantity);
            mViewModel.BindView(BOInventoryAdjustmentLine.MEMO, lblMemo, txtMemo);
            mViewModel.BindView(BOInventoryAdjustmentLine.PERSIST_OBJECT, btnOK);
            mViewModel.BindView(BOInventoryAdjustmentLine.AMOUNT, lblAmount, txtAmount);
        }
        protected override void BindViews()
        {
            string[] search_fields = new string[] { "ItemNumber", "ItemName", "ItemDescription" };
            cboSearchFieldName.DataSource = search_fields;

            dgvAll.DataSource         = mModel.AllItems;
            dgvSold.DataSource        = mModel.SoldItems;
            dgvBought.DataSource      = mModel.BoughtItems;
            dgvInventoried.DataSource = mModel.InventoriedItems;

            mViewModel.BindView(BOItemsList.ALL_ITEMS_INFORMATION, lblCountAll);
            mViewModel.BindView(BOItemsList.SOLD_ITEMS_INFORMATION, lblCountSold);
            mViewModel.BindView(BOItemsList.BOUGHT_ITEMS_INFORMATION, lblCountBought);
            mViewModel.BindView(BOItemsList.INVENTORIED_ITEMS_INFORMATION, lblCountInventoried);

            mViewModel.BindView(BOItemsList.SEARCH_FIELD, null, cboSearchFieldName);
            mViewModel.BindView(BOItemsList.SEARCH_VALUE, null, txtSearchFieldValue);
        }
Exemple #10
0
        protected override void BindViews()
        {
            dgvAll.DataSource         = mModel.AllPurchases;
            dgvQuote.DataSource       = mModel.Quotes;
            dgvOrder.DataSource       = mModel.Orders;
            dgvOpenBill.DataSource    = mModel.OpenBills;
            dgvClosedBill.DataSource  = mModel.ClosedBills;
            dgvDebitReturn.DataSource = mModel.DebitReturns;

            cboSupplierSearchCriteria.DataSource = mApplicationController.FindAllSuppliers();
            if (cboSupplierSearchCriteria.Items.Count != 0)
            {
                cboSupplierSearchCriteria.SelectedIndex = 0;
            }

            mViewModel.BindView(BOListPurchase.CREATE_QUOTE, btnCreateQuote);
            mViewModel.BindView(BOListPurchase.CREATE_ORDER, btnCreateOrder);
            mViewModel.BindView(BOListPurchase.DELETE_QUOTE, btnDelQuote);

            mViewModel.BindView(BOListPurchase.CHANGE_QUOTE_TO_ORDER, btnChangeQuote2Order);
            mViewModel.BindView(BOListPurchase.CHANGE_QUOTE_TO_BILL, btnChangeQuote2OpenBill);
            mViewModel.BindView(BOListPurchase.CHANGE_ORDER_TO_BILL, btnChangeOrder2OpenBill);

            mViewModel.BindView(BOListPurchase.START_DATE, lblStartDate, dtpStartDate);
            mViewModel.BindView(BOListPurchase.END_DATE, lblEndDate, dtpEndDate);
            mViewModel.BindView(BOListPurchase.SUPPLIER, lblSupplierSearchCriteria, cboSupplierSearchCriteria);
            mViewModel.BindView(BOListPurchase.ALL_SUPPLIERS, chkAllSuppliers);

            mViewModel.BindView(BOListPurchase.ALL_PURCHASES_INFORMATION, lblCountAll);
            mViewModel.BindView(BOListPurchase.QUOTES_INFORMATION, lblCountQuotes);
            mViewModel.BindView(BOListPurchase.ORDERS_INFORMATION, lblCountOrders);
            mViewModel.BindView(BOListPurchase.OPEN_BILLS_INFORMATION, lblCountOpenBills);
            mViewModel.BindView(BOListPurchase.CLOSED_BILLS_INFORMATION, lblCountClosedBills);
            mViewModel.BindView(BOListPurchase.DEBIT_RETURNS_INFORMATION, lblCountDebitReturns);
        }
Exemple #11
0
        protected override void BindViews()
        {
            cboCustomer.DataSource  = mApplicationController.FindAllCustomers();
            cboParentJob.DataSource = mApplicationController.FindAllJobs();

            mViewModel.BindView(BOJob.JOB_NUMBER, lblJobNumber, txtJobNumber);
            mViewModel.BindView(BOJob.JOB_NAME, lblName, txtName);
            mViewModel.BindView(BOJob.MANAGER, lblManager, txtManager);
            mViewModel.BindView(BOJob.PERCENT_COMPLETED, lblPercentCompleted, txtPercentCompleted);
            mViewModel.BindView(BOJob.JOB_DESCRIPTION, lblJobDescription, txtJobDescription);
            mViewModel.BindView(BOJob.CONTACT_NAME, lblContactPerson, txtContactPerson);
            mViewModel.BindView(BOJob.IS_ACTIVE, chkActive);
            mViewModel.BindView(BOJob.IS_TRACKING_REIMBURSEABLE, chkIsTrackingReimburseable);
            mViewModel.BindView(BOJob.IS_HEADER, chkIsHeader);
            mViewModel.BindView(BOJob.CUSTOMER, lblCustomer, cboCustomer);
            mViewModel.BindView(BOJob.PARENT_JOB, lblParentJob, cboParentJob);
            mViewModel.BindView(BOJob.START_DATE, lblStartDate, dtpStartDate);
            mViewModel.BindView(BOJob.FINISH_DATE, lblFinishDate, dtpFinishDate);

            mViewModel.BindView(BOJob.PERSIST_OBJECT, btnRecord);
        }
        protected override void BindViews()
        {
            dgvAll.DataSource           = mModel.AllSales;
            dgvQuote.DataSource         = mModel.Quotes;
            dgvOrder.DataSource         = mModel.Orders;
            dgvOpenInvoice.DataSource   = mModel.OpenInvoices;
            dgvClosedInvoice.DataSource = mModel.ClosedInvoices;
            dgvCreditReturn.DataSource  = mModel.CreditReturns;

            cboCustomerSearchCriteria.DataSource = mApplicationController.FindAllCustomers();
            if (cboCustomerSearchCriteria.Items.Count != 0)
            {
                cboCustomerSearchCriteria.SelectedIndex = 0;
            }

            mViewModel.BindView(BOListSale.CREATE_QUOTE, btnCreateQuote);
            mViewModel.BindView(BOListSale.CREATE_ORDER, btnCreateOrder);
            mViewModel.BindView(BOListSale.DELETE_QUOTE, btnDelQuote);

            mViewModel.BindView(BOListSale.CHANGE_QUOTE_TO_ORDER, btnChangeQuote2Order);
            mViewModel.BindView(BOListSale.CHANGE_QUOTE_TO_INVOICE, btnChangeQuote2OpenInvoice);
            mViewModel.BindView(BOListSale.CHANGE_ORDER_TO_INVOICE, btnChangeOrder2OpenInvoice);

            mViewModel.BindView(BOListSale.START_DATE, lblStartDate, dtpStartDate);
            mViewModel.BindView(BOListSale.END_DATE, lblEndDate, dtpEndDate);
            mViewModel.BindView(BOListSale.CUSTOMER, lblCustomerSearchCriteria, cboCustomerSearchCriteria);
            mViewModel.BindView(BOListSale.ALL_CUSTOMERS, chkAllCustomers);

            mViewModel.BindView(BOListSale.ALL_SALES_INFORMATION, lblCountAll);
            mViewModel.BindView(BOListSale.QUOTES_INFORMATION, lblCountQuotes);
            mViewModel.BindView(BOListSale.ORDERS_INFORMATION, lblCountOrders);
            mViewModel.BindView(BOListSale.OPEN_INVOICES_INFORMATION, lblCountOpenInvoices);
            mViewModel.BindView(BOListSale.CLOSED_INVOICES_INFORMATION, lblCountClosedInvoices);
            mViewModel.BindView(BOListSale.CREDIT_RETURNS_INFORMATION, lblCountCreditReturns);
        }