Beispiel #1
0
        private void FillCombo()
        {
            try
            {
                HPS.BLL.BillBLL.BLLBill_TFactory BillID_intFactory = new HPS.BLL.BillBLL.BLLBill_TFactory();
                DataTable BillID_intDataTable = new DataTable();
                BillID_intFactory.GetAll(ref BillID_intDataTable);
                this.BillID_intComboBox.DisplayMember = HPS.BLL.BillBLL.BLLBill_T.Bill_TField.BillType_nvc.ToString();
                this.BillID_intComboBox.ValueMember   = HPS.BLL.BillBLL.BLLBill_T.Bill_TField.BillID_int.ToString();
                this.BillID_intComboBox.DataSource    = BillID_intDataTable;
                this.BillID_intComboBox.SelectedIndex = -1;

                HPS.BLL.SaloonBLL.BLLSaloon_TFactory Saloon_TFactory = new HPS.BLL.SaloonBLL.BLLSaloon_TFactory();
                DataTable Saloon_TDataTable = new DataTable();
                Saloon_TFactory.GetAll(ref Saloon_TDataTable);
                this.SaloonID_intComboBox.DisplayMember = HPS.BLL.SaloonBLL.BLLSaloon_T.Saloon_TField.Saloon_nvc.ToString();
                this.SaloonID_intComboBox.ValueMember   = HPS.BLL.SaloonBLL.BLLSaloon_T.Saloon_TField.SaloonID_int.ToString();
                this.SaloonID_intComboBox.DataSource    = Saloon_TDataTable;
                this.SaloonID_intComboBox.SelectedIndex = -1;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #2
0
 private void LoadSaloon()
 {
     try
     {
         HPS.BLL.SaloonBLL.BLLSaloon_TFactory SaloonFactory = new HPS.BLL.SaloonBLL.BLLSaloon_TFactory();
         DataTable SaloonDataTable = new DataTable();
         SaloonFactory.GetAll(ref SaloonDataTable);
         this.SaloonGridView.DataSource = SaloonDataTable;
     }
     catch (System.Exception ex)
     {
         throw Hepsa.Core.Exception.HandleException.ChangeExceptionLanguage(ex, this);
     }
 }