private void displayComboBox() { try { DataTable DTCategory = MainClass.POS.GetRoles(); if (DTCategory.Rows.Count > 0) { ListData.AutoSuggession_With_ComboBox(DTCategory, "RoleID", cbRoles, "RoleID", "RoleName"); } } catch (Exception ex) { JIMessageBox.ErrorMessage(ex.Message); } }
private void displayComboBox() { try { DataTable DTCategory = MainClass.POS.GetCategoryDISTINCT(); if (DTCategory.Rows.Count > 0) { ListData.AutoSuggession_With_ComboBox(DTCategory, "CategoryName", cbCategory, "CategoryName", "CategoryName"); } DataTable DTType = MainClass.POS.GetProductTypeDISTINCT(); if (DTType.Rows.Count > 0) { ListData.AutoSuggession_With_ComboBox(DTType, "ProductType", cbType, "ProductType", "ProductType"); } DataTable DTBrand = MainClass.POS.GetProductBrandDISTINCT(); if (DTBrand.Rows.Count > 0) { ListData.AutoSuggession_With_ComboBox(DTBrand, "ProductBrand", cbBrand, "ProductBrand", "ProductBrand"); } DataTable DTSize = MainClass.POS.GetProductSizeDISTINCT(); if (DTSize.Rows.Count > 0) { ListData.AutoSuggession_With_ComboBox(DTSize, "ProductSize", cbSize, "ProductSize", "ProductSize"); } DataTable DTColor = MainClass.POS.GetProductColorDISTINCT(); if (DTColor.Rows.Count > 0) { ListData.AutoSuggession_With_ComboBox(DTColor, "ProductColor", cbColor, "ProductColor", "ProductColor"); } DataTable DTSupplier = MainClass.POS.GetSupplier(); if (DTColor.Rows.Count > 0) { ListData.AutoSuggession_With_ComboBox(DTSupplier, "SupplierID", cbSupplier, "SupplierID", "SupplierName"); } } catch (Exception ex) { JIMessageBox.ErrorMessage(ex.Message); } }
private void displayComboBox() { bool Status = false; string StatusDetails = null; try { DataTable DTCategory = MainClass.POS.CategoryDisplayAll(out Status, out StatusDetails); if (Status) { ListData.AutoSuggession_With_ComboBox(DTCategory, "CategoryID", comboBocCategory, "CategoryID", "CategoryName"); } else { JIMessageBox.WarningMessage(StatusDetails); } } catch (Exception ex) { JIMessageBox.ErrorMessage(ex.Message); } }
private void displayComboBox() { bool Status = false; string StatusDetails = null; try { DataTable DTCategory = MainClass.POS.CategoryDisplayAll(out Status, out StatusDetails); DataTable DTType = MainClass.POS.ProductDisplayAll(out Status, out StatusDetails); DataTable DTBrand = MainClass.POS.ProductDisplayAll(out Status, out StatusDetails); DataTable DTSize = MainClass.POS.ProductDisplayAll(out Status, out StatusDetails); DataTable DTColor = MainClass.POS.ProductDisplayAll(out Status, out StatusDetails); if (Status) { //** PRODUCT **// #region ListData.AutoSuggession_With_ComboBox(DTCategory, "CategoryID", cbProductCategory, "CategoryID", "CategoryName"); ListData.AutoSuggession_With_ComboBox(DTType, "ProductID", cbProductType, "ProductID", "ProductType"); ListData.AutoSuggession_With_ComboBox(DTBrand, "ProductID", cbProductBrand, "ProductID", "ProductBrand"); ListData.AutoSuggession_With_ComboBox(DTSize, "ProductID", cbProductSize, "ProductID", "ProductSize"); ListData.AutoSuggession_With_ComboBox(DTColor, "ProductID", cbProductColour, "ProductID", "ProductColor"); #endregion //** PICTURE **// #region //ListData.AutoSuggession_With_ComboBox(DTCategory, "CategoryID", cbPicCategory, "CategoryID", "CategoryName"); #endregion } else { JIMessageBox.WarningMessage(StatusDetails); } } catch (Exception ex) { JIMessageBox.ErrorMessage(ex.Message); } }