Esempio n. 1
0
        private DataTable RetrieveRoutingTable()
        {
            QueryClass lcQuery;

            lcQuery = new QueryClass(QueryClass.QueryType.RetrieveRoutingTable);
            return(lcQuery.RunQuery());
        }
Esempio n. 2
0
        private DataTable RetrieveInputInfoList(String paDataGroup)
        {
            QueryClass lcQuery;

            lcQuery = new QueryClass(QueryClass.QueryType.RetrieveInputInfo);
            lcQuery.ReplacePlaceHolder("$ESERVICEID", clEServiceID, true);
            lcQuery.ReplacePlaceHolder("$INPUTGROUP", paDataGroup, true);

            return(lcQuery.RunQuery());
        }
Esempio n. 3
0
        private DataTable RetrieveMessageList()
        {
            QueryClass lcQuery;

            lcQuery = new QueryClass(QueryClass.QueryType.RetrieveMessageList);
            lcQuery.ReplacePlaceHolder("$LANGUAGE", ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage.ActiveRow.Language.ToLower(), true);
            lcQuery.ReplacePlaceHolder("$FORMNAME", clFormInfoManager.ActiveRow.FormName, true);
            clFormInfoManager.ReplaceQueryPlaceHolder(lcQuery);

            return(lcQuery.RunQuery());
        }
Esempio n. 4
0
        public DataTable RunRetrieveQuery()
        {
            QueryClass lcQuery;

            if (!String.IsNullOrEmpty(ActiveRow.RetrieveQuery))
            {
                lcQuery = new QueryClass(ActiveRow.RetrieveQuery, clConnectionMode);
                ReplaceQueryPlaceHolder(lcQuery);
                lcQuery.ReplaceDictionaryPlaceHolder(clFormParam);
                return(lcQuery.RunQuery());
            }
            else
            {
                return(null);
            }
        }
Esempio n. 5
0
        private AppManifestRow GetAppManifestRow(String paSubscriptionID)
        {
            DataTable  lcDataTable;
            QueryClass lcQuery;

            lcQuery = new QueryClass(QueryClass.QueryType.GetAppManifestRow);
            lcQuery.ReplacePlaceHolder("$SUBSCRIPTIONID", paSubscriptionID, true);

            if (((lcDataTable = lcQuery.RunQuery()) != null) && (lcDataTable.Rows.Count > 0))
            {
                return(new AppManifestRow(lcDataTable.Rows[0]));
            }
            else
            {
                return(null);
            }
        }
Esempio n. 6
0
        protected static SessionRow GetSessionRow(String paSessionKey)
        {
            QueryClass lcQuery;
            DataTable  lcDataTable;

            lcQuery = new QueryClass(QueryClass.QueryType.GetSessionRowBySessionKey);
            lcQuery.ReplacePlaceHolder("$SESSIONKEY", paSessionKey, true);

            if (((lcDataTable = lcQuery.RunQuery()) != null) && (lcDataTable.Rows.Count > 0))
            {
                return(new SessionRow(lcDataTable.Rows[0]));
            }
            else
            {
                return(null);
            }
        }
Esempio n. 7
0
        static private FormInfoRow GetFormInfoRow(String paFormName)
        {
            QueryClass lcQuery;
            DataTable  lcDataTable;

            lcQuery = new QueryClass(QueryClass.QueryType.GetFormInfoRow);
            lcQuery.ReplacePlaceHolder("$FORMNAME", paFormName, true);

            if (((lcDataTable = lcQuery.RunQuery()) != null) && (lcDataTable.Rows.Count > 0))
            {
                return(new FormInfoRow(lcDataTable.Rows[0]));
            }
            else
            {
                return(null);
            }
        }
Esempio n. 8
0
        private String[] RetrieveData(String paQueryString)
        {
            QueryClass lcQueryClass;
            DataTable  lcDataTable;

            if (!String.IsNullOrEmpty(paQueryString))
            {
                lcQueryClass = new QueryClass(paQueryString, QueryClass.ConnectionMode.EService);
                ApplicationFrame.GetInstance().ActiveFormInfoManager.ReplaceQueryPlaceHolder(lcQueryClass);

                if (((lcDataTable = lcQueryClass.RunQuery()) != null) && (lcDataTable.Rows.Count > 0))
                {
                    return(General.SingleDimensionStringArray(lcDataTable.Select(), lcDataTable.Columns[0].ColumnName));
                }
            }

            return(null);
        }
Esempio n. 9
0
        protected static SessionRow GetSessionRow(String paSubscriptionID, String paLoginID)
        {
            QueryClass lcQuery;
            DataTable  lcDataTable;

            lcQuery = new QueryClass(QueryClass.QueryType.GetSessionRow);
            lcQuery.ReplacePlaceHolder("$SUBSCRIPTIONID", paSubscriptionID, true);
            lcQuery.ReplacePlaceHolder("$LOGINID", paLoginID, true);

            if (((lcDataTable = lcQuery.RunQuery()) != null) && (lcDataTable.Rows.Count > 0))
            {
                return(new SessionRow(lcDataTable.Rows[0]));
            }
            else
            {
                return(null);
            }
        }
Esempio n. 10
0
        private DataTable RetrieveData()
        {
            QueryClass lcQuery;

            if (!String.IsNullOrEmpty(clFormInfoRow.RetrieveQuery))
            {
                try
                {
                    lcQuery = new QueryClass(clFormInfoRow.RetrieveQuery, clConnectionMode);
                    lcQuery.ReplaceDictionaryPlaceHolder(clFormParam);
                    return(lcQuery.RunQuery());
                }
                catch (Exception paException)
                {
                    General.WriteExceptionLog(paException, "FORMINFOMANAGER.RETRIEVEDATA");
                }
            }
            return(null);
        }