Пример #1
0
        private void LoadCarTraffic()
        {
            try
            {
                HPS.BLL.CarBLL.BLLCar_TFactory CarFactory = new HPS.BLL.CarBLL.BLLCar_TFactory();
                DataTable CarDataTable = new DataTable();
                CarFactory.GetByPlate(NumberPlate, ref CarDataTable);
                this.CarGridView.DataSource = CarDataTable;

                /*if (CarDataTable != null && CarDataTable.Rows.Count > 0)
                 *  for (int index = 0; index < CarDataTable.Rows.Count; index++)
                 *  {
                 *      if ((Int32)Hepsa.Core.Common.PersentationController.GetEntityValue(CarDataTable.Rows[index][this.colSerialPlate_nvc.DataPropertyName], TypeCode.Int32) == 15)
                 *      {
                 *          this.CarGridView.Rows[index].Selected = true;
                 *          break;
                 *      }
                 *  }
                 * this.CarGridView.Update();*/
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
        }
Пример #2
0
 public static void LoadData()
 {
     HPS.BLL.CarBLL.BLLCar_TFactory       CarFactory    = new HPS.BLL.CarBLL.BLLCar_TFactory();
     HPS.BLL.DriverBLL.BLLDriver_TFactory DriverFactory = new HPS.BLL.DriverBLL.BLLDriver_TFactory();
     try
     {
         if (_CarDataTable == null)
         {
             _CarDataTable = new DataTable();
         }
         CarFactory.GetByPlate(string.Empty, ref _CarDataTable);
         if (_DriverDataTable == null)
         {
             _DriverDataTable = new DataTable();
         }
         DriverFactory.GetByCardNumber(string.Empty, ref _DriverDataTable);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }