public override DataTable Clone()
        {
            SearchResultQueryDataTable table = (SearchResultQueryDataTable)base.Clone();

            table.InitVars();
            return(table);
        }
 public SearchResultQueryDataTable SearchForQueries(WorkSpace WorkSpace, string SearchPatternUserGroup, string SearchPatternQueryName, string SearchPatternFunctionAreaName)
 {
     SearchResultQueryDataTable table = new SearchResultQueryDataTable();
     IRfcFunction function = this._des.Repository.CreateFunction("RSAQ_REMOTE_QUERY_CATALOG");
     function["WORKSPACE"].SetValue( (WorkSpace == WorkSpace.GlobalArea) ? "X" : " ");
     if (SearchPatternQueryName.Trim().Equals(""))
     {
         SearchPatternQueryName = "*";
     }
     if (SearchPatternUserGroup.Trim().Equals(""))
     {
         SearchPatternUserGroup = "*";
     }
     if (SearchPatternFunctionAreaName.Trim().Equals(""))
     {
         SearchPatternFunctionAreaName = "*";
     }
     function["GENERIC_QUERYNAME"].SetValue(SearchPatternQueryName);
     function["GENERIC_USERGROUP"].SetValue(SearchPatternUserGroup);
     function["GENERIC_FUNCAREA"].SetValue(SearchPatternFunctionAreaName);
     function.Invoke(_des);
     IRfcTable table2 = function.GetTable("QUERYCATALOG");
     foreach (IRfcStructure structure in table2.ToList())
     {
         table.AddSearchResultQueryRow(structure["QUERY"].GetValue().ToString().Trim(), structure["NUM"].GetValue().ToString().Trim(), structure["QTEXT"].GetValue().ToString().Trim());
     }
     return table;
 }
示例#3
0
        public SearchResultQueryDataTable SearchForQueries(WorkSpace WorkSpace, string SearchPatternUserGroup, string SearchPatternQueryName, string SearchPatternFunctionAreaName)
        {
            SearchResultQueryDataTable table = new SearchResultQueryDataTable();
            IRfcFunction function            = this._des.Repository.CreateFunction("RSAQ_REMOTE_QUERY_CATALOG");

            function["WORKSPACE"].SetValue((WorkSpace == WorkSpace.GlobalArea) ? "X" : " ");
            if (SearchPatternQueryName.Trim().Equals(""))
            {
                SearchPatternQueryName = "*";
            }
            if (SearchPatternUserGroup.Trim().Equals(""))
            {
                SearchPatternUserGroup = "*";
            }
            if (SearchPatternFunctionAreaName.Trim().Equals(""))
            {
                SearchPatternFunctionAreaName = "*";
            }
            function["GENERIC_QUERYNAME"].SetValue(SearchPatternQueryName);
            function["GENERIC_USERGROUP"].SetValue(SearchPatternUserGroup);
            function["GENERIC_FUNCAREA"].SetValue(SearchPatternFunctionAreaName);
            function.Invoke(_des);
            IRfcTable table2 = function.GetTable("QUERYCATALOG");

            foreach (IRfcStructure structure in table2.ToList())
            {
                table.AddSearchResultQueryRow(structure["QUERY"].GetValue().ToString().Trim(), structure["NUM"].GetValue().ToString().Trim(), structure["QTEXT"].GetValue().ToString().Trim());
            }
            return(table);
        }
 // Methods
 internal SearchResultQueryRow(DataRowBuilder rb)
     : base(rb)
 {
     this.tableSearchResultQuery = (SearchResultQueryDataTable)base.Table;
 }
示例#5
0
 // Methods
 internal SearchResultQueryRow(DataRowBuilder rb)
     : base(rb)
 {
     this.tableSearchResultQuery = (SearchResultQueryDataTable)base.Table;
 }