Beispiel #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();
 }
        public static void SetListBoxStarsFirstLevel(TextEdit sender, ListBox lbDest, string StrToSearch)
        {
            List <ListItem> Stars1stLevelList = CatStars1stLevelBL.GetStars1stLevel_Predictive(StrToSearch, Login.OrgId);

            SetListBox(sender, lbDest, Stars1stLevelList);
        }