private void LoadDataSector(ComboBox obj)
 {
     data.baseDS.bizSectorDataTable sectorTbl = DataAccess.Libs.myBizSectorTbl;
     obj.DataSource = null;
     obj.Items.Clear();
     obj.DisplayMember = sectorTbl.description1Column.ColumnName;
     obj.ValueMember   = sectorTbl.codeColumn.ColumnName;
     obj.DataSource    = sectorTbl;
     if (sectorTbl.Count > 0)
     {
         obj.MaxDropDownItems = sectorTbl.Count;
         obj.SelectedIndex    = 0;
     }
 }
示例#2
0
 public data.baseDS.bizSectorDataTable GetBizSector()
 {
     data.baseDS.bizSectorDataTable tbl = new data.baseDS.bizSectorDataTable();
     DbAccess.LoadData(tbl);
     return(tbl);
 }
示例#3
0
 public data.baseDS.bizSectorDataTable GetBizSector()
 {
     data.baseDS.bizSectorDataTable tbl = new data.baseDS.bizSectorDataTable();
     DbAccess.LoadData(tbl);
     return tbl;
 }
示例#4
0
 public static void LoadData(data.baseDS.bizSectorDataTable tbl)
 {
     bizSectorTA.ClearBeforeFill = false;
     bizSectorTA.Fill(tbl);
 }