Example #1
0
 /// <summary>
 /// Creates the request info.
 /// </summary>
 /// <returns></returns>
 public RequestInfo CreateRequestInfo(string searchName)
 {
     RequestInfo objRequestInfo = new RequestInfo();
     objRequestInfo.Entity = new Entity();
     objRequestInfo.Entity.Name = searchName;// result type dropdown selected value
     objRequestInfo.Entity.ResponseType = TABULAR;
     objRequestInfo.Entity.Type = "allcolumns";
     objRequestInfo.Entity.Property = false;
     objRequestInfo.Entity.Criteria = new Criteria();
     objRequestInfo.Entity.Criteria.Name = "*";
     return objRequestInfo;
 }
Example #2
0
 /// <summary>
 /// Creates the request XML string.
 /// </summary>
 /// <param name="objRequestInfo">The requestinfo object.</param>
 /// <returns>Xml String</returns>
 public XmlDocument CreateRequestXML(RequestInfo requestInfo)
 {
     try
     {
         objXmlDocument = new XmlDocument();
         //Calling the CreateRootElement method.
         objXmlDocument = CreateRootElement(requestInfo);
     }
     catch(Exception)
     {
         throw;
     }
     return objXmlDocument;
 }
Example #3
0
 /// <summary>
 /// Displays the results.
 /// </summary>
 /// <param name="requestInfo">The request info.</param>
 /// <param name="searchName">Name of the search.</param>
 /// <param name="pageURL">The page URL.</param>
 public void DisplayResults(Page page, RequestInfo requestInfo, string searchName)
 {
     XmlDocument xmlDocSearchRequest = null;
     if(string.Equals(searchName, QUERYSEARCH))
     {
         objReportController = objFactory.GetServiceManager(QUERYSERVICE);
         xmlDocSearchRequest = objReportController.CreateSearchRequest(requestInfo);
     }
     else
     {
         objReportController = objFactory.GetServiceManager(REPORTSERVICE);
         xmlDocSearchRequest = objReportController.CreateSearchRequest(requestInfo);
     }
     CommonUtility.SetSessionVariable(page, searchName, xmlDocSearchRequest.OuterXml);
 }
Example #4
0
        /// <summary>
        /// Creates RequestInfo object of simple funtionality usage report
        /// </summary>
        /// <returns>RequestInfo object</returns>
        private RequestInfo GetSimpleRequestInfo()
        {
            objRequestInfo = new RequestInfo();

            objRequestInfo.Entity = new Entity();

            try
            {
                objRequestInfo.Entity.Name = ENTITYNAME;

                objRequestInfo.Entity.Type = SIMPLE;

                ArrayList arlAttribute = new ArrayList();

                ArrayList arlAttributeGroup = new ArrayList();

                arlAttribute.Add(AddAttribute(STARTDATE, GTEQ, new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).ToShortDateString()));

                arlAttribute.Add(AddAttribute(ENDDATE, LTEQ, DateTime.Today.Date.ToShortDateString()));

                AttributeGroup objAttributeGroup = new AttributeGroup();

                objAttributeGroup.Operator = AND;

                objAttributeGroup.Attribute = arlAttribute;

                arlAttributeGroup.Add(objAttributeGroup);

                objRequestInfo.Entity.AttributeGroups = arlAttributeGroup;
            }
            catch (XmlException)
            {
                throw;
            }
            catch (Exception)
            {

                throw;
            }

            return objRequestInfo;
        }
Example #5
0
 /// <summary>
 /// Sets the RequestInfo object.
 /// </summary>
 /// <returns></returns>
 private RequestInfo GetRequestInfo()
 {
     RequestInfo objRequestInfo = new RequestInfo();
     Entity objEntity = new Entity();
     objEntity.Criteria = GetCriteria();
     objRequestInfo.Entity = objEntity;
     return objRequestInfo;
 }
Example #6
0
 /// <summary>
 /// Displays the search results from response xml to ui.
 /// </summary>
 private void DisplaySearchResults()
 {
     try
     {
         objRequestInfo = new RequestInfo();
         objRequestInfo = SetBasicDataObjects();
         UISaveSearchHandler objUISaveSearch = new UISaveSearchHandler();
         objUISaveSearch.DisplayResults(Page, objRequestInfo, BASINSEARCHTYPE);
         string strUrl = SEARCHRESULTSPAGE + "?SearchType=" + BASINSEARCHTYPE + "&asset=Basin";
         RedirectPage(strUrl, "Basin");
     }
     catch
     {
         throw;
     }
 }
Example #7
0
 /// <summary>
 /// Displays the search results.
 /// </summary>
 protected void DisplaySearchResults()
 {
     RequestInfo objReqInfo = null;
     objReqInfo = new RequestInfo();
     objReqInfo = SetBasicDataObjects();
     string strAssetType = "Well";
     UISaveSearchHandler objUISaveSearchHandler = new UISaveSearchHandler();
     objUISaveSearchHandler.DisplayResults(Page, objReqInfo, WELLADVANCEDSEARCH);
     RedirectPage(SEARCHRESULTSPAGE + "?SearchType=" + WELLADVANCEDSEARCH + "&asset=" + strAssetType, strAssetType);
 }
        /// <summary>
        /// Method to generate the Request XML objext
        /// </summary>
        /// <returns></returns>
        private RequestInfo SetRequestInfoToAssetOwner()
        {
            /// Sample Request XML
            /// <requestinfo>
            /// <entity property="true">
            /// <criteria name="Class" value="*" operator="LIKE" />
            /// </entity>
            /// </requestinfo>

            RequestInfo objRequestInfo = new RequestInfo();
            objRequestInfo.Entity = new Entity();
            objRequestInfo.Entity.Property = true;
            objRequestInfo.Entity.Criteria = new Criteria();
            objRequestInfo.Entity.Criteria.Name = CRITERIANAME;
            objRequestInfo.Entity.Criteria.Operator = LIKEOPERATOR;
            objRequestInfo.Entity.Criteria.Value = STAROPERATOR;

            return objRequestInfo;
        }
Example #9
0
 /// <summary>
 /// Gets the search results.
 /// </summary>
 /// <param name="requestInfo">The request info.</param>
 /// <param name="maxRecords">The max records.</param>
 /// <param name="searchType">Type of the search.</param>
 /// <param name="sortColumn">The sort column.</param>
 /// <param name="sortOrder">The sort order.</param>
 /// <returns></returns>
 public override XmlDocument GetSearchResults(RequestInfo requestInfo, int maxRecords, string searchType, string sortColumn, int sortOrder)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Example #10
0
        /// <summary>
        /// Gets the response XML.
        /// </summary>
        /// 
        private XmlDocument GetResponseXML(string searchName)
        {
            XmlDocument xmlDocResponse = null;
            objRequestInfo = new RequestInfo();
            int intMaxRecords = Convert.ToInt32(PortalConfiguration.GetInstance().GetKey(MAXRECORDS));
            string strIdentifiedItem = string.Empty;
            base.ResponseType = TABULAR;
            base.EntityName = searchName;
            if (!string.IsNullOrEmpty(strSelectedRows))
            {
                /// Gets the Selected Identifier value from the results page.
                strIdentifiedItem = strSelectedRows;

                /// Gets the Selected Identifier Column name from the results page.
                arrIdentifierValue = strIdentifiedItem.Split('|');

                /// Creates the requestInfo object to fetch result from report service.
                objRequestInfo = SetBasicDataObjects(searchName, strSelectedCriteriaName, arrIdentifierValue, false, false, intMaxRecords);
            }
            else
            {
                objRequestInfo = null;
            }

            if (objRequestInfo != null)
            {
                if (string.Equals(searchName.ToLowerInvariant(), PALEOMARKERSREPORT))
                {
                    AddPaleoMarkersAttribute();
                }
                string strLengthType = string.Empty;
                if (!string.IsNullOrEmpty(strLengthType = objCommonUtility.GetFormControlValue("rdoLengthType")))
                {
                    if (strLengthType.Equals(TRUEVERTICAL))
                    {
                        objRequestInfo.Entity.TVDSS = true;
                    }
                    else
                    {
                        objRequestInfo.Entity.TVDSS = false;
                    }
                }
                //end
                /// Call for the GetSearchResults() method to fetch the search results from webservice.
                if (strSearchType.Equals("Query Search"))
                {
                    objQueryBuildController = objFactory.GetServiceManager(QUERYSERVICE);
                    xmlDocResponse = objQueryBuildController.GetSearchResults(objRequestInfo, intMaxRecords, searchName, null, 0);
                }
                else
                {
                    xmlDocResponse = objReportController.GetSearchResults(objRequestInfo, intMaxRecords, searchName, null, 0);
                }
            }
            return xmlDocResponse;
        }
Example #11
0
        /// <summary>
        /// Gets the result XML doument.
        /// </summary>
        /// <returns></returns>
        private XmlDocument GetResponseXml()
        {
            int intMaxRecords = 0;
            XmlDocument xmlDocResponse;
            objQueryBuildController = objFactory.GetServiceManager(QUERYSERVICE);
            objRequestInfo = new RequestInfo();
            xmlDocResponse = new XmlDocument();

            intMaxRecords = Convert.ToInt32(PortalConfiguration.GetInstance().GetKey(MAXRECORDS));
            base.ResponseType = "Tabular";
            objRequestInfo = SetBasicDataObjects(string.Empty, string.Empty, null, true, true, intMaxRecords);
            if (strSearchType.Equals("Query Search"))
            {
                xmlDocResponse = objQueryBuildController.GetSearchResults(objRequestInfo, intMaxRecords, strSearchType, null, 0);
            }
            else
            {
                xmlDocResponse = objReportController.GetSearchResults(objRequestInfo, intMaxRecords, strSearchType, null, 0);
            }
            return xmlDocResponse;
        }
Example #12
0
        /// <summary>
        /// Sets the data object.
        /// </summary>
        /// <param name="agrVal">The agr val.</param>
        /// <returns></returns>
        private RequestInfo SetDataObject(string agrVal)
        {
            try
            {
                objRequestInfo = new RequestInfo();
                if (agrVal.Equals(strUWBI))
                {
                    objRequestInfo.Entity = SetEntity(strUWBI);
                }
                if (agrVal.Equals(Default))
                {
                    objRequestInfo.Entity = SetEntity(Default);
                }
                if (agrVal.Equals(strAHTVDWeb))
                {
                    objRequestInfo.Entity = SetEntityTables();
                }

            }
            catch (Exception)
            {
                throw;
            }

            return objRequestInfo;
        }
Example #13
0
 /// <summary>
 /// Creates the save search XML.
 /// </summary>
 private XmlDocument CreateSaveSearchXML()
 {
     XmlDocument xmlDocSearchRequest = null;
     objRequestInfo = new RequestInfo();
     objReportController = objFactory.GetServiceManager("ReportService");
     objRequestInfo = SetBasicDataObjects();
     xmlDocSearchRequest = objReportController.CreateSearchRequest(objRequestInfo);
     return xmlDocSearchRequest;
 }
Example #14
0
 /// <summary>
 /// Gets the list of projects OW.
 /// </summary>
 /// <param name="entityName">Name of the entity.</param>
 /// <returns></returns>
 private XmlDocument GetListOfProjectsOW(string entityName)
 {
     XmlDocument objListOfProjectsXml = null;
     XmlDocument objRequestXML = null;
     objRequestInfo = new ShellEntities.RequestInfo();
     objRequestInfo.Entity = new ShellEntities.Entity();
     objRequestInfo.Entity.Name = entityName;
     ShellEntities.Attributes objAttributes = new ShellEntities.Attributes();
     ShellEntities.Value objValue = new ShellEntities.Value();
     objAttributes.Name = "source";
     objValue.InnerText = STAROPERATOR;
     objAttributes.Value = new ArrayList();
     objAttributes.Value.Add(objValue);
     objAttributes.Operator = GetOperator(objAttributes.Value);
     objRequestInfo.Entity.Attribute = new ArrayList();
     objRequestInfo.Entity.Attribute.Add(objAttributes);
     objFactory = new ServiceProvider();
     objReportController = objFactory.GetServiceManager(REPORTSERVICE);
     objRequestInfo.Entity.ResponseType = string.Empty;
     objRequestXML = objReportController.CreateSearchRequest(objRequestInfo);
     objListOfProjectsXml = objReportController.GetSearchResults(objRequestXML, -1, OWPROJECTS, null, 0);
     return objListOfProjectsXml;
 }
        /// <summary>
        /// Get requestinfo object for Username and searchname requests'
        /// </summary>
        /// <param name="requestType">Type of request,Username or Searchname</param>
        /// <returns>RequestInfo object</returns>
        private RequestInfo GetRequestInfo()
        {
            objRequestInfo = new RequestInfo();

            objRequestInfo.Entity = new Entity();

            objRequestInfo.Entity.Criteria = new Criteria();

            try
            {
                objRequestInfo.Entity.Criteria.Operator = OPERATOR;

                objRequestInfo.Entity.Criteria.Value = VALUE;
                objRequestInfo.Entity.Criteria.Name = USERNAME;
            }
            catch (Exception)
            {
                throw;
            }
            return objRequestInfo;
        }
 /// <summary>
 /// Displays the search results from response xml to ui.
 /// </summary>
 private void DisplaySearchResults()
 {
     objRequestInfo = new ShellEntities.RequestInfo();
     objRequestInfo = SetBasicDataObjects();
     UISaveSearchHandler objUISaveSearch = new UISaveSearchHandler();
     objUISaveSearch.DisplayResults(Page, objRequestInfo, RESERVOIRSEARCHTYPE);
     StringBuilder strSearchResultsPage = new StringBuilder();
     strSearchResultsPage.Append(SEARCHRESULTSPAGE);
     strSearchResultsPage.Append("?SearchType=");
     strSearchResultsPage.Append(RESERVOIRSEARCHTYPE);
     strSearchResultsPage.Append("&asset=");
     strSearchResultsPage.Append(RESERVOIRITEMVAL);
     RedirectPage(strSearchResultsPage.ToString(), RESERVOIRITEMVAL);
 }
        /// <summary>
        /// Sets the basic data objects to create XML document
        /// </summary>
        /// <param name="strRequestInfo">The requestinfo search type.</param>
        /// <returns></returns>
        private ShellEntities.RequestInfo SetBasicDataObjects()
        {
            objRequestInfo = new ShellEntities.RequestInfo();

            objRequestInfo.Entity = SetEntity();
            return objRequestInfo;
        }
Example #18
0
 /// <summary>
 /// Gets the request info.
 /// </summary>
 /// <param name="entityName">Name of the entity.</param>
 /// <returns></returns>
 private RequestInfo GetRequestInfo(string entityName)
 {
     objRequestInfo = new RequestInfo();
     objRequestInfo.Entity = new Entity();
     objRequestInfo.Entity.SessionID = this.Page.Session.SessionID;
     objRequestInfo.Entity.Property = true;
     objRequestInfo.Entity.Name = entityName;
     objRequestInfo.Entity.ResponseType = TABULAR;
     ArrayList arlAttributeGroup = new ArrayList();
     AttributeGroup objAttributeGroup = new AttributeGroup();
     objAttributeGroup.Operator = ANDOPERATOR;
     objAttributeGroup.Attribute = GetAttributes(entityName);
     arlAttributeGroup.Add(objAttributeGroup);
     objRequestInfo.Entity.AttributeGroups = arlAttributeGroup;
     return objRequestInfo;
 }
Example #19
0
        /// <summary>
        /// Gets the request info.
        /// </summary>
        /// <returns></returns>
        private RequestInfo GetRequestInfo(bool wellTestTypeReq)
        {
            objRequestInfo = new RequestInfo();
            objRequestInfo.Entity = new Entity();
            objRequestInfo.Entity.SessionID = this.Page.Session.SessionID;
            objRequestInfo.Entity.Property = true;

            if(wellTestTypeReq)
            {
                objRequestInfo.Entity.Name = TESTTYPE;
                objRequestInfo.Entity.ResponseType = TABULAR.ToLowerInvariant();
                objRequestInfo.Entity.Attribute = new ArrayList();
                objRequestInfo.Entity.Attribute.Add(objUtility.AddAttribute(TESTTYPEATTRIBUTE, LIKEOPERATOR, new string[] { STAROPERATOR }));
            }
            else
            {
                if(strSearchName.ToLowerInvariant().Equals(PRESSURESURVEYDATA))
                {
                    objRequestInfo.Entity.Name = PRESSURESURVEYENTITYNAME;
                }
                else
                {
                    objRequestInfo.Entity.Name = WELLTESTTYPE;
                }
                if(rbLstDisplayFormat.SelectedItem != null)
                {
                    if(rbLstDisplayFormat.SelectedItem.Text.ToLowerInvariant().Equals(TABULAR.ToLowerInvariant()))
                    {
                        objRequestInfo.Entity.ResponseType = TABULAR;
                    }
                    else if(rbLstDisplayFormat.SelectedItem.Text.ToLowerInvariant().Equals(DATASHEET))
                    {
                        objRequestInfo.Entity.ResponseType = DATASHEET;
                    }
                }
                ArrayList arlAttributeGroup = new ArrayList();
                AttributeGroup objAttributeGroup = new AttributeGroup();
                objAttributeGroup.Operator = ANDOPERATOR;
                objAttributeGroup.Attribute = GetAttributes();
                arlAttributeGroup.Add(objAttributeGroup);
                objRequestInfo.Entity.AttributeGroups = arlAttributeGroup;
            }
            return objRequestInfo;
        }
Example #20
0
        /// <summary>
        /// Sets the basic data objects to create XML document
        /// </summary>
        /// <param name="strRequestInfo">The requestinfo search type.</param>
        /// <returns></returns>
        private RequestInfo SetBasicDataObjects()
        {
            objRequestInfo = new RequestInfo();

            objRequestInfo.Entity = SetEntity();
            if(blnSrpControlsEnable)
                objRequestInfo.Entity.Name = SRPFIELDSEARCHTYPE;
            else
                objRequestInfo.Entity.Name = FIELDSEARCHTYPE;

            return objRequestInfo;
        }
Example #21
0
 /// <summary>
 /// Gets the request info.
 /// </summary>
 /// <returns></returns>
 private RequestInfo GetRequestInfo()
 {
     objRequestInfo = new RequestInfo();
     Entity objEntity = new Entity();
     objRequestInfo.Entity = objEntity;
     objEntity.Property = true;
     if(rbLstDisplayFormat.SelectedValue.ToLower().Equals(HIERARCHICAL.ToLowerInvariant()))
     {
         objEntity.ResponseType = DATASHEET;
     }
     else
     {
         objEntity.ResponseType = TABULAR;
     }
     objRequestInfo.Entity.AttributeGroups = new ArrayList();
     AttributeGroup objAttributeGroup = new AttributeGroup();
     objAttributeGroup.Operator = ANDOPERATOR;
     objAttributeGroup.Attribute = GetAttributes();
     objRequestInfo.Entity.AttributeGroups.Add(objAttributeGroup);
     return objRequestInfo;
 }
Example #22
0
 /// <summary>
 /// Displays the search results from response xml to ui.
 /// </summary>
 private void DisplaySearchResults()
 {
     objRequestInfo = new RequestInfo();
     objRequestInfo = SetBasicDataObjects();
     UISaveSearchHandler objUISaveSearch = new UISaveSearchHandler();
     objUISaveSearch.DisplayResults(Page, objRequestInfo, FIELDSEARCHTYPE);
     StringBuilder strSearchResultsPage = new StringBuilder();
     strSearchResultsPage.Append(SEARCHRESULTSPAGE);
     strSearchResultsPage.Append("?SearchType=");
     strSearchResultsPage.Append(FIELDSEARCHTYPE);
     strSearchResultsPage.Append("&asset=Field");
     RedirectPage(strSearchResultsPage.ToString(), "Field");
 }
Example #23
0
 /// <summary>
 /// Creates the save search XML.
 /// </summary>
 private XmlDocument CreateSaveSearchXML()
 {
     XmlDocument xmlDocSearchRequest = null;
     objRequestInfo = new RequestInfo();
     objRequestInfo = SetBasicDataObjects();
     xmlDocSearchRequest = objReportController.CreateSearchRequest(objRequestInfo);
     return xmlDocSearchRequest;
 }
Example #24
0
 /// <summary>
 /// Saves the request XML for export all.
 /// </summary>
 /// <param name="requestInfo">The request info.</param>
 protected void SaveRequestXmlForExportAll(RequestInfo requestInfo)
 {
     XmlDocument xmlDocRequest = null;
     xmlDocRequest = objReportController.CreateSearchRequest(requestInfo);
     //saving request xml to session variable
     CommonUtility.SetSessionVariable(this.Page, EXPORTALLREQUESTXML, xmlDocRequest.OuterXml);
 }
Example #25
0
 /// <summary>
 /// Sets the basic data objects to create XML document
 /// </summary>
 /// <param name="strRequestInfo">The requestinfo search type.</param>
 /// <returns></returns>
 private RequestInfo SetBasicDataObjects()
 {
     objRequestInfo = new RequestInfo();
     try
     {
         objRequestInfo.Entity = SetEntity();
     }
     catch
     { throw; }
     return objRequestInfo;
 }
Example #26
0
        /// <summary>
        /// Sets the basic data objects to create XML document
        /// </summary>
        /// <param name="strRequestInfo">The requestinfo search type.</param>
        /// <returns></returns>
        protected RequestInfo SetBasicDataObjects(string searchType, string criteriaName, string[] selectedCriteriaValues, bool isRequestIDExists, bool isFetchAll, int maxRecords)
        {
            objRequestInfo = new RequestInfo();
            /// set the dataobject values.
            SearchType = searchType;
            Criteria = criteriaName;
            if(selectedCriteriaValues != null)
            {
                if((!string.IsNullOrEmpty(selectedCriteriaValues[0])) && (selectedCriteriaValues[0].Equals(SELECTALL)))
                {
                    selectedCriteriaValues[0] = STAROPERATOR;
                    CriteriaValue = selectedCriteriaValues;
                }
                else
                    CriteriaValue = selectedCriteriaValues;
            }

            if(strCurrPageNumber.Length > 0 || isRequestIDExists)
            {
                /// Creating and Adding the Entity object.
                Entity objEntity = new Entity();
                objEntity.Property = true;
                objEntity.ResponseType = ResponseType;
                objEntity.SkipInfo = SetSkipInfo(isFetchAll, maxRecords);
                objEntity.RequestID = RequestID;
                objEntity.Name = EntityName;
                if(criteriaName.Length > 0)
                {
                    ArrayList arlAttribute = new ArrayList();
                    arlAttribute = SetAtribute();
                    objEntity.Attribute = arlAttribute;
                }
                objRequestInfo.Entity = objEntity;
            }
            else
            {
                objRequestInfo.Entity = SetEntity();
            }
            return objRequestInfo;
        }
Example #27
0
 /// <summary>
 /// Gets the search results.
 /// </summary>
 /// <param name="requestInfo">The request info.</param>
 /// <param name="maxRecords">The max records.</param>
 /// <param name="searchType">Type of the search.</param>
 /// <param name="sortColumn">The sort column.</param>
 /// <returns></returns>
 public override XmlDocument GetSearchResults(RequestInfo requestInfo, int maxRecords,
                                    string searchType, string sortColumn, int sortOrder)
 {
     try
     {
         xmlSearhRequestDoc = objSearchRequestHandler.CreateRequestXML(requestInfo);
         base.MaxRecord = maxRecords;
         base.SearchType = searchType;
         base.SortColumn = sortColumn;
         base.SortOrder = sortOrder;
         return base.GetSearchResults(xmlSearhRequestDoc);
     }
     catch(SoapException)
     {
         throw;
     }
     catch(WebException)
     {
         throw;
     }
     catch(Exception)
     {
         throw;
     }
 }
Example #28
0
        /// <summary>
        /// Gets the asset value for the asset type
        /// </summary>
        /// <param name="requestInfo">The request info.</param>
        /// <param name="assetType">Type of the asset.</param>
        /// <returns></returns>
        public XmlDocument GetAssetValueForAssetType(RequestInfo requestInfo, string assetType)
        {
            ServiceProvider objFactory = new ServiceProvider();
            XmlDocument responseXmlDoc = null;
            AbstractController objAbstractController = null;

            objAbstractController = objFactory.GetServiceManager("ReportService");
            responseXmlDoc = objAbstractController.GetSearchResults(requestInfo, -1, assetType, null, 0);

            return responseXmlDoc;
        }
Example #29
0
        /// <summary>
        /// Renders the page.
        /// </summary>
        /// <param name="writer">The writer.</param>
        private void RenderPage(HtmlTextWriter writer)
        {
            objRequestInfo = new RequestInfo();
            try
            {
                writer.Write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/_layouts/DREAM/styles/DetailReport.css\" />");
                #region GETRESULTXMLDOCUMENT
                if (Page.Request.QueryString.Count > 0 && strPicksFilter.Length == 0 && strDisplayType.Length == 0)
                {
                    strSearchType = Page.Request.QueryString[SEARCHTYPE];
                    #region RequestXML Creation
                    if (Page.Request.QueryString[PAGENUMBERQS] != null)
                    {
                        //Gets the detail report result for paging and sorting.
                        GetDetailReportResultPaging();
                    }
                    else
                    {
                        if (!string.Equals(strSearchType.ToUpper(), RECALLLOG))
                        {
                            //Gets the detail report result for other reports except Recall Logs.
                            GetDetailReportResult();
                        }
                        else
                        {
                            //Gets the detail report result for Recall Logs.
                            GetRecallLogsReport();
                        }
                    #endregion
                    }
                }
                else
                {
                    if (Page.Request.QueryString.Count > 0)
                    {
                        strSearchType = Page.Request.QueryString[SEARCHTYPE];
                        base.RequestID = hidRequestID.Value.ToString().Trim();
                        if (blnViewDatasheet)
                        {
                            if (strDisplayType.Length == 0)
                                SetUserPreference();
                            if (!string.Equals(strDisplayType.ToUpper(), DATASHEET) && !string.Equals(strDisplayType.ToUpper(), INITIALDATASHEET))
                            {
                                base.ResponseType = TABULARREPORT;
                            }
                            else
                            {
                                base.ResponseType = DATASHEETREPORT;
                            }
                            //Creating the Request dataobject.
                            objRequestInfo = SetBasicDataObjects(strSearchType, string.Empty, null, true,false,intMaxRecords);
                        }
                            //For filter implementation
                        else if (strPicksFilter.Length > 0)
                        {
                            base.ResponseType = TABULARREPORT;
                            arrIdentifierValue[0] = strPicksFilter;
                            //Creating the Request dataobject.
                            objRequestInfo = SetBasicDataObjects(strSearchType, GEOLOGICFEATURE, arrIdentifierValue, true,true,intMaxRecords);
                        }
                        //Calling the Controller method to get the Search results.
                        xmlDocSearchResult = objReportController.GetSearchResults(objRequestInfo, intMaxRecords, strSearchType, null, intSortOrder);
                    }
                }
                #region UserPreference
                SetUserPreference();
                #endregion
                #endregion
                if (xmlDocSearchResult != null)
                {
                    //Gets the request ID from the result for caching.
                    GetRequestIDFromResult();
                    hidDetailSearchType.Value = strSearchType;
                    #region RenderingXMLResults
                    //Checks Whether Record count exceeds the maxRecord.
                    if (objCommonUtility.IsMaxRecordExceeds(xmlDocSearchResult, blnClicked))
                    {
                        blnClicked = true;
                    }

                    RenderParentTable(writer, strSearchName);
                    RenderPrintExport(writer);
                    RenderHiddenControls(writer);
                    if (Page.Request.QueryString[PAGENUMBERQS] != null && strPicksFilter.Length == 0 && strDisplayType.Length == 0)
                    {
                        strPageNumber = Page.Request.QueryString[PAGENUMBERQS].ToString();
                        strSortColumn = Page.Request.QueryString[SORTBY].ToString();
                        strSortOrder = Page.Request.QueryString[SORTTYPE].ToString();
                        if (!blnTabular)
                            strDisplayType = TABULARREPORT;
                    }
                    RenderDetailReport(writer);
                    #endregion
                }
                else
                {
                    RenderExceptionMessage(writer, ((MOSSServiceManager)objMossController).GetCustomExceptionMessage(strCurrSiteUrl, "1"));
                }
            }
            catch (SoapException)
            {
                throw;
            }
            catch (WebException) { throw; }
            catch (Exception)
            { throw; }
        }
        /// <summary>
        /// Creates the save search XML.
        /// </summary>
        private XmlDocument CreateSaveSearchXML()
        {
            XmlDocument xmlDocSearchRequest = null;
            objRequestInfo = new ShellEntities.RequestInfo();
            objReportController = objFactory.GetServiceManager(REPORTSERVICE);

            objRequestInfo = SetBasicDataObjects();
            xmlDocSearchRequest = objReportController.CreateSearchRequest(objRequestInfo);
            return xmlDocSearchRequest;
        }