protected void loadConstraintData()
    {
        USTTISessionCollection SessionList = SessionManager.getSessionList();

        for (int i = 0; i < SessionList.Count; i++)
        {
            USTTISession app = (USTTISession)SessionList[i];
            UtilManager.AddContraint(ConstraintList, app.key, app.keyValue, "search_application_status");
        }
    }
Example #2
0
        public string addStmtToWhereClause(USTTISession session)
        {
            string sql = string.Empty;

            if (session == null)
            {
                return(sql);
            }

            sql = " and [" + session.key + "] like '%" + session.keyValue + "%'";

            return(sql);
        }
Example #3
0
        public string addMultipleStmtToWhereClause(USTTISession session)
        {
            string sql = string.Empty;

            if (session == null)
            {
                return(sql);
            }

            string [] keysValue = session.keyValue.ToString().Split(',');

            sql = " and [Year] between " + keysValue[0] + " and " + keysValue[1] + " ";

            return(sql);
        }
Example #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string key        = Request["key"].ToString();
        string returnPage = Request["return"].ToString();

        SessionManager = new USTTISessionManager(Session);
        USTTISessionCollection SessionList = SessionManager.getSessionList();

        for (int i = 0; i < SessionList.Count; i++)
        {
            USTTISession app = (USTTISession)SessionList[i];
            if (app.key == key)
            {
                SessionList.RemoveAt(i);
            }
        }

        SessionManager.saveList(Session);

        Response.Redirect(returnPage + ".aspx");
    }