Exemplo n.º 1
0
 public AddTrainee(DsRsrc dsrsrc)
 {
     InitializeComponent();
     addDsrsrc = dsrsrc;
     this.txbPidNo.SetBinding(TextBox.TextProperty, new Binding("PidNo")
     {
         Source = addDsrsrc
     });
     txbUserName.SetBinding(TextBox.TextProperty, new Binding("Name")
     {
         Source = addDsrsrc
     });
     txbAddress.SetBinding(TextBox.TextProperty, new Binding("Address")
     {
         Source = addDsrsrc
     });
     myImage.SetBinding(Image.SourceProperty, new Binding("Photo")
     {
         Source = addDsrsrc
     });
     txbPidNo.Text    = "";
     txbUserName.Text = "";
     txbPhoneNo.Text  = "";
     txbAddress.Text  = "";
     bindSource();
 }
Exemplo n.º 2
0
 public BulkBooking(DsRsrc dsr)
 {
     dsrsrc = dsr;
     InitializeComponent();
     if (dsrsrc.trainMangeDataSet.DrvSchoolDataTable.Rows.Count > 0)
     {
         cboxSerDrv.ItemsSource = dsrsrc.trainMangeDataSet.DrvSchoolDataTable.DefaultView;
     }
     if (dsrsrc.TrainLicenseType != null)
     {
         this.cboxSerCarType.ItemsSource   = dsrsrc.TrainLicenseType;
         this.cboxSerCarType.SelectedIndex = 0;
     }
     cboxSubject.SelectedIndex = 0;
     if (dsrsrc.BillingMode != null)
     {
         cboxBillModeBook.ItemsSource = dsrsrc.BillingMode;
         if (dsrsrc.sBillingMode == "Tries")
         {
             cboxBillModeBook.SelectedIndex = 0;
         }
         else if (dsrsrc.sBillingMode == "Time")
         {
             cboxBillModeBook.SelectedIndex = 1;
         }
         else
         {
             cboxBillModeBook.SelectedIndex = 2;
         }
         sChargingMode = dsrsrc.sBillingMode;
     }
     cboxList.IsChecked          = true;
     cboxBillModeBook.IsEditable = false;
 }
Exemplo n.º 3
0
 public carInfo(DsRsrc dsr)
 {
     InitializeComponent();
     dsrsrc = dsr;
     dsrsrc.GetAllTrainer();
     dsrsrc.getAllTraCar();
     this.cboxCarType.ItemsSource = dsrsrc.TrainLicenseType;
     PopuTraCarPage();
 }
Exemplo n.º 4
0
 public settleMent(DsRsrc dsr)
 {
     InitializeComponent();
     dsrsrc = dsr;
     dsrsrc.getAllDrvSchool();
     cbxDevName.ItemsSource = dsrsrc.trainMangeDataSet.DrvSchoolDataTable.DefaultView;
     tbxSerPidNo.SetBinding(TextBox.TextProperty, new Binding("PidNo")
     {
         Source = dsrsrc
     });
 }
Exemplo n.º 5
0
 public stuManage(DsRsrc dsrsrcPara)
 {
     InitializeComponent();
     dsrsrc = dsrsrcPara;
     txbPidNo.SetBinding(TextBox.TextProperty, new Binding("PidNo")
     {
         Source = dsrsrc
     });
     dsrsrc.getAllDrvSchool();
     cboxSerDrv.ItemsSource = dsrsrc.trainMangeDataSet.DrvSchoolDataTable.DefaultView;
 }
Exemplo n.º 6
0
 public serTraResult(DsRsrc dsr)
 {
     InitializeComponent();
     dsrsrc = dsr;
     dsrsrc.getAllDrvSchool();
     dsrsrc.GetAllSetting();
     dsrsrc.GetAllTrainer();
     dsrsrc.getAllTraCar();
     CboxDrvName.ItemsSource         = dsrsrc.trainMangeDataSet.DrvSchoolDataTable.DefaultView;
     this.CboxSisCarType.ItemsSource = dsrsrc.TrainLicenseType;
     CboxSisCarType.SelectedIndex    = 0;
 }
Exemplo n.º 7
0
 public userInfo(DsRsrc dsr)
 {
     InitializeComponent();
     dsrsrc = dsr;
     PopuTraManagerPage();
 }
Exemplo n.º 8
0
 public trainerInfo(DsRsrc dsr)
 {
     InitializeComponent();
     dsrsrc = dsr;
     PopuTrainerPage();
 }
Exemplo n.º 9
0
 public drvInfo(DsRsrc dsr)
 {
     InitializeComponent();
     dsrsrc = dsr;
     PopuDrvPage();
 }
Exemplo n.º 10
0
 public Recharge(DsRsrc dsr)
 {
     InitializeComponent();
     dsrsrc = dsr;
 }