Exemplo n.º 1
0
        private void ucLoadPassengerProfile_Load(object sender, EventArgs e)
        {
            ucAvailability.IsInterJetProcess = false;
            CatStars1stLevelBL.ListStars1stLevel.Clear();
            List <CatStars1stLevel> temp = CatStars1stLevelBL.GetStars1stLevel(Login.OrgId);

            if (!temp.Count.Equals(0))
            {
                foreach (CatStars1stLevel stars in temp)
                {
                    ListItem item = new ListItem();
                    item.Value = stars.Pccid;
                    item.Text  = stars.Star1Name;
                    CatStars1stLevelBL.ListTemp.Add(item);
                }
            }

            CatStars2ndLevelBL.ListStars2ndLevel.Clear();
            List <CatStars2ndLevel> temp2 = CatStars2ndLevelBL.GetStars2ndLevel();

            if (!temp.Count.Equals(0))
            {
                foreach (CatStars2ndLevel stars in temp2)
                {
                    ListItem item = new ListItem();
                    item.Value = stars.Pccid;
                    item.Text  = stars.Star2Name;
                    item.Text2 = stars.Star1id;
                    CatStars2ndLevelBL.ListStars2ndLevel.Add(item);
                }
            }
            txtPCC.Text = Login.PCC;
            txtPCC.Focus();
        }
 private void ucProfilesViewer_Load(object sender, EventArgs e)
 {
     ucAvailability.IsInterJetProcess = false;
     Star1List   = CatStars1stLevelBL.GetStars1stLevel(Login.OrgId);
     Star2List   = CatStars2ndLevelBL.GetStars2ndLevel();
     txtPCC.Text = Login.PCC;
     txtPCC.Focus();
 }
Exemplo n.º 3
0
 /// <summary>
 /// realiza el peticion de vuelos por media
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void backGroundWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     BindFlights(sender, e);
     CatStars2ndLevelBL.GetStars2ndLevel();
 }
 void _profileWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     CatStars2ndLevelBL.GetStars2ndLevel();
 }