Ejemplo n.º 1
0
 public void removeSessionData(string key)
 {
     for (int i = 0; i < searchList.Count; i++)
     {
         USTTISession app = (USTTISession)searchList[i];
         if (app.key == key)
         {
             searchList.RemoveAt(i);
         }
     }
 }
Ejemplo n.º 2
0
        public void removeSessionListItem(String name)
        {
            for (int i = 0; i < searchList.Count; i++)
            {
                USTTISession app = (USTTISession)searchList[i];

                if (app.key == name)
                {
                    searchList.RemoveAt(i);
                }
            }
        }
Ejemplo n.º 3
0
        public void addSessionData(string key, string value)
        {
            if (IsKeyAlreadyExists(key))
            {
                removeSessionData(key);
            }

            USTTISession session = new USTTISession();

            session.key      = key;
            session.keyValue = value;
            searchList.Add(session);
        }
Ejemplo n.º 4
0
        public USTTISession Get(String key)
        {
            for (int i = 0; i < this.List.Count; i++)
            {
                USTTISession session = (USTTISession)this.List[i];

                if (session.key == key)
                {
                    return(session);
                }
            }

            return(null);
        }
Ejemplo n.º 5
0
        public string getSessionData(string key)
        {
            string SessionData = string.Empty;

            for (int i = 0; i < searchList.Count; i++)
            {
                USTTISession app = (USTTISession)searchList[i];
                if (app.key == key)
                {
                    SessionData = app.keyValue;
                }
            }
            return(SessionData);
        }
Ejemplo n.º 6
0
        protected bool IsKeyAlreadyExists(string key)
        {
            bool KeyAlreadyExists = false;

            for (int i = 0; i < searchList.Count; i++)
            {
                USTTISession app = (USTTISession)searchList[i];
                if (app.key == key)
                {
                    KeyAlreadyExists = true;
                }
            }
            return(KeyAlreadyExists);
        }
Ejemplo n.º 7
0
        public string buildStudentInfoExtendedWhereClause()
        {
            string whereClause = " where 1 = 1 ";

            for (int i = 0; i < searchList.Count; i++)
            {
                USTTISession app = (USTTISession)searchList[i];

                if ((app.key != "Start Date") && (app.key != "Orientation Start") && (app.key != "Year"))
                {
                    whereClause = whereClause + " and [" + app.key + "] = " + app.keyValue;
                }
            }

            return(whereClause);
        }
Ejemplo n.º 8
0
        public string buildCourseWhereClause()
        {
            string whereClause = " where 1 = 1 ";

            for (int i = 0; i < searchList.Count; i++)
            {
                USTTISession app = (USTTISession)searchList[i];

                if ((app.key != "First") && (app.key != "Last") && (app.key != "Country"))
                {
                    whereClause = whereClause + " and [" + app.key + "] = " + app.keyValue;
                }
            }

            return(whereClause);
        }
Ejemplo n.º 9
0
        public string buildAllWhereClause()
        {
            string whereClause = " where 1 = 1 ";

            for (int i = 0; i < searchList.Count; i++)
            {
                USTTISession app = (USTTISession)searchList[i];

                if (app.key != "Year")
                {
                    whereClause = whereClause + " and [" + app.key + "] = " + app.keyValue;
                }
            }

            return(whereClause);
        }
Ejemplo n.º 10
0
 public void Add(USTTISession info)
 {
     this.List.Add(info);
 }