示例#1
0
        public void FillLocationCombobox()
        {
            DataTable dt = VSWebBL.DashboardBL.KeyMetricsBL.Ins.GetLocation();

            LocationComboBox.DataSource = dt;
            LocationComboBox.TextField  = "Location";
            LocationComboBox.DataBind();
            LocationComboBox.SelectedIndex = 0;
        }
        private void FillLocationComboBox()
        {
            DataTable LocationDataTable = VSWebBL.SecurityBL.LocationsBL.Ins.GetAllData();

            LocationComboBox.DataSource = LocationDataTable;
            LocationComboBox.TextField  = "Location";
            LocationComboBox.ValueField = "Location";
            LocationComboBox.DataBind();
        }
示例#3
0
 private void fillLocationComboBox()
 {
     //6/30/2014 NS added for VSPLUS-789
     try
     {
         DataTable LocationsTable = VSWebBL.SecurityBL.LocationsBL.Ins.GetAllData();
         if (LocationsTable.Rows.Count > 0)
         {
             LocationComboBox.DataSource = LocationsTable;
             LocationComboBox.TextField  = "Location";
             LocationComboBox.ValueField = "ID";
             LocationComboBox.DataBind();
         }
     }
     catch (Exception ex)
     {
         //6/27/2014 NS added for VSPLUS-634
         Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
     }
 }