コード例 #1
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////

        internal void UserControl_Loaded()
        {
            try {
                UIComboBox.yesNoForSelect(customerManager.comboBox_active_filter);
                customerManager.DataTable = new DataTable();
                customerManager.DataTable.Columns.Add("ID", typeof(int));
                customerManager.DataTable.Columns.Add("Name", typeof(String));
                customerManager.DataTable.Columns.Add("Address", typeof(String));
                customerManager.DataTable.Columns.Add("Telephone", typeof(String));
                customerManager.DataTable.Columns.Add("Account Balance", typeof(String));
                customerManager.DataTable.Columns.Add("Is Active", typeof(String));

                customerManager.DataGridFooter   = new DataGridFooter();
                customerManager.dataGrid.IFooter = customerManager.DataGridFooter;
                customerManager.grid_footer.Children.Add(customerManager.DataGridFooter);
                customerManager.dataGrid.DataContext = customerManager.DataTable.DefaultView;

                customerManager.Pagination        = new Pagination();
                customerManager.Pagination.Filter = customerManager;
                customerManager.grid_pagination.Children.Add(customerManager.Pagination);

                setRowsCount();
            } catch (Exception) {
            }
        }
コード例 #2
0
        //////////////////////////////////////////////////////////////////////////////////////////////
        //////////////////////////////////////////////////////////////////////////////////////////////
        //////////////////////////////////////////////////////////////////////////////////////////////


        internal void UserControl_Loaded()
        {
            try {
                itemManager.Pagination        = new Pagination();
                itemManager.Pagination.Filter = itemManager;
                itemManager.grid_pagination.Children.Add(itemManager.Pagination);
                itemManager.textBox_category_basicDetails.ListBox = itemManager.listBox_category_basicDetails;
                itemManager.textBox_company_basicDetails.ListBox  = itemManager.listBox_company_basicDetails;

                UIComboBox.unitsForAddItem(itemManager.comboBox_unit_sellingDetails);
                UIListBox.loadCategories(itemManager.listBox_category_basicDetails, null);
                UIListBox.loadCompanies(itemManager.listBox_company_basicDetails, null);

                UIComboBox.categoriesForSelect(itemManager.comboBox_category_filter);
                UIComboBox.companiesForSelect(itemManager.comboBox_company_filter);
                UIComboBox.yesNoForSelect(itemManager.comboBox_sip_filter);
                UIComboBox.unitsForFilter(itemManager.comboBox_unit_filter);
                UIComboBox.yesNoForSelect(itemManager.comboBox_isActive_filter);

                itemManager.DataTable = new DataTable();
                itemManager.DataTable.Columns.Add("ID", typeof(int));
                itemManager.DataTable.Columns.Add("Category", typeof(String));
                itemManager.DataTable.Columns.Add("Company", typeof(String));
                itemManager.DataTable.Columns.Add("Name", typeof(String));
                itemManager.DataTable.Columns.Add("Unit", typeof(String));
                itemManager.DataTable.Columns.Add("Item Code", typeof(String));
                itemManager.DataTable.Columns.Add("Barcode", typeof(String));
                itemManager.DataTable.Columns.Add("POS Name", typeof(String));
                itemManager.DataTable.Columns.Add("QTY Per Pack", typeof(String));
                itemManager.DataTable.Columns.Add("Pack Name", typeof(String));
                itemManager.DataTable.Columns.Add("RO Level", typeof(String));
                itemManager.dataGrid_items_items.DataContext = itemManager.DataTable.DefaultView;
                checkBox_sip_sellingDetails_Click();
                setRowsCount();
                if (Session.Permission["canAddCategory"] == 0)
                {
                    itemManager.button_addCategory.IsEnabled = false;
                }
                if (Session.Permission["canAddCompany"] == 0)
                {
                    itemManager.button_addCompany.IsEnabled = false;
                }
                itemManager.AddCategory = new AddCategory(null);
                itemManager.AddCompany  = new AddCompany(null);
            } catch (Exception) {
            }
        }
コード例 #3
0
        ///////////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////////

        internal void UserControl_Loaded()
        {
            try {
                UIComboBox.yesNoForSelect(userManager.comboBox_active_filter);
                userManager.DataTable = new DataTable();
                userManager.DataTable.Columns.Add("ID", typeof(int));
                userManager.DataTable.Columns.Add("User Name", typeof(String));
                userManager.DataTable.Columns.Add("First Name", typeof(String));
                userManager.DataTable.Columns.Add("Last Name", typeof(String));
                userManager.DataTable.Columns.Add("Is Active", typeof(String));
                userManager.dataGrid.DataContext = userManager.DataTable.DefaultView;

                userManager.Pagination        = new Pagination();
                userManager.Pagination.Filter = userManager;
                userManager.grid_pagination.Children.Add(userManager.Pagination);

                setRowsCount();
            } catch (Exception) {
            }
        }