Exemple #1
0
 private void LoadDataSuperSector(ComboBox obj)
 {
     databases.baseDS.bizSuperSectorDataTable superSectorTbl = DataAccess.Libs.myBizSuperSectorTbl;
     obj.DataSource = null;
     obj.Items.Clear();
     obj.DisplayMember = superSectorTbl.description1Column.ColumnName;
     obj.ValueMember   = superSectorTbl.codeColumn.ColumnName;
     obj.DataSource    = superSectorTbl;
     if (superSectorTbl.Count > 0)
     {
         obj.MaxDropDownItems = superSectorTbl.Count;
         obj.SelectedIndex    = 0;
     }
 }
 public databases.baseDS.bizSuperSectorDataTable GetBizSuperSector()
 {
     try
     {
         databases.baseDS.bizSuperSectorDataTable tbl = new databases.baseDS.bizSuperSectorDataTable();
         databases.DbAccess.LoadData(tbl);
         return tbl;
     }
     catch (Exception ex)
     {
         WriteSysLogLocal("WS023", ex);
     }
     return null;
 }