Esempio n. 1
0
        private void InitializeTabOverview()
        {
            List <RES_GetResByClientId_Result> oList = new List <RES_GetResByClientId_Result>();

            try {
                oList = BLReservations.GetResClient(_Client.CLIENT_ID);
                dataGridViewReservations.DataSource = oList;
                dataGridViewReservations.ReadOnly   = true;
            }
            catch (CustomError cEx) {
                MessageBox.Show(cEx.Message);
            }
            catch (Exception ex) {
                throw new CustomError(666);
            }
        }
Esempio n. 2
0
        // TAB MODIFIER VOL
        // Initialisation du tab des modifications avec les vols réservés
        private void InitializeTabModification()
        {
            List <RES_GetResByClientId_Result> oList = new List <RES_GetResByClientId_Result>();

            try {
                cmbListeVolsReserves.DataSource    = BLReservations.GetResClient(_Client.CLIENT_ID);
                cmbListeVolsReserves.ValueMember   = "RES_ID";
                cmbListeVolsReserves.DisplayMember = "VOL_CODE";
            }
            catch (CustomError cEx) {
                MessageBox.Show(cEx.Message);
            }
            catch (Exception ex) {
                CustomError Cex = new CustomError(666);
                MessageBox.Show(Cex.Message);
            }
        }
Esempio n. 3
0
        private void btnSupprimerReservation_Click(object sender, EventArgs e)
        {
            RES_GetResByClientId_Result oResult = (RES_GetResByClientId_Result)cmbListeVolsReserves.SelectedItem;
            int tmp = oResult.RES_ID;

            try {
                BLReservations.DeleteResId(oResult.RES_ID);
                MessageBox.Show("Réservation avec id " + tmp.ToString() + " effectuée");
                List <RES_GetResByClientId_Result> oList = BLReservations.GetResClient(_Client.CLIENT_ID);
                cmbListeVolsReserves.DataSource    = oList;
                cmbListeVolsReserves.ValueMember   = "RES_ID";
                cmbListeVolsReserves.DisplayMember = "VOL_CODE";
            }
            catch (CustomError cEx) {
                MessageBox.Show(cEx.Message);
            }
            catch (Exception ex) {
                CustomError crEx = new CustomError(666);
                MessageBox.Show(crEx.Message);
            }
        }