示例#1
0
 public void Fill()
 {
     TA_DE.FillBy(DS_Master.DE);
     TA_CLIENT.Fill(DS_Master.CLIENT);
     TA_CHAMBRE.Fill(DS_Master.CHAMBRE);
     TA_RESERVATION.Fill(DS_Master.RESERVATION);
 }
示例#2
0
 public void Fill()
 {
     if (State != States.ADD)
     {
         TA_CLIENT.Fill(ds_master.CLIENT);
     }
 }
示例#3
0
        public void Fill()
        {
            string idArrive = null;

            if (BS_ARRIVE.Position >= 0)
            {
                try
                {
                    idArrive = dS_Master.Tables["ARRIVE"].Rows[BS_ARRIVE.Position]["IdArrive"].ToString();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }

            if (State == States.ADD)
            {
                TA_ARRIVE.FillBy(this.dS_Master.ARRIVE, DateTime.Today.ToString());
            }
            else
            {
                TA_ARRIVE.Fill(this.dS_Master.ARRIVE);
            }
            TA_CLIENT.Fill(this.dS_Master.CLIENT);
            TA_RESERVATION.Fill(this.dS_Master.RESERVATION);
            TA_DE.Fill(this.dS_Master.DE);
            if (State == States.CONSULT)
            {
                TA_DEPART.FillByDEPART(this.dS_Master.DEPART);
            }
            if (BS_ARRIVE != null && idArrive != null)
            {
                BS_ARRIVE.Position = BS_ARRIVE.Find("IdArrive", idArrive);
            }
            else
            {
                BS_ARRIVE.Position = 0;
            }
            Sync_ForeignTables();
        }