public System.Xml.XPath.XPathDocument HandleData(Xy.Web.Page.PageAbstract CurrentPageClass) { Xy.Data.Procedure _procedure; if (!string.IsNullOrEmpty(_command)) { _procedure = new Data.Procedure("XYControlInnerProcedure", _command); } else { _procedure = new Data.Procedure(_procedureName); } if (!string.IsNullOrEmpty(_parameter) || !string.IsNullOrEmpty(_defaultParameter)) { if (!_dataParameterCollection.Inited) { _dataParameterCollection.AnalyzeParameter(_parameter, _defaultParameter); } _dataParameterCollection.HandleValue(CurrentPageClass); if (_dataParameterCollection.HasContent) { _dataParameterCollection.FillParameter(_procedure); } } if (!string.IsNullOrEmpty(_dataConnection)) { _procedure.SetDataBase(new Xy.Data.DataBase(_dataConnection)); } _data = _procedure.InvokeProcedureFill(); if (_dataParameterCollection.HasReturn) { _dataParameterCollection.GetReturnParameter(_procedure); } return(new System.Xml.XPath.XPathDocument(new System.IO.StringReader(Xy.Tools.IO.XML.ConvertDataTableToXML(_data)))); }
public System.Xml.XPath.XPathDocument HandleData(Xy.Web.Page.PageAbstract CurrentPageClass) { Xy.Data.Procedure _procedure; if (!string.IsNullOrEmpty(_command)) { _procedure = new Data.Procedure("XYControlInnerProcedure", _command); } else { _procedure = new Data.Procedure(_procedureName); } if (!string.IsNullOrEmpty(_parameter) || !string.IsNullOrEmpty(_defaultParameter)) { if (!_dataParameterCollection.Inited) { _dataParameterCollection.AnalyzeParameter(_parameter, _defaultParameter); } _dataParameterCollection.HandleValue(CurrentPageClass); if (_dataParameterCollection.HasContent) { _dataParameterCollection.FillParameter(_procedure); } } if (!string.IsNullOrEmpty(_dataConnection)) { _procedure.SetDataBase(new Xy.Data.DataBase(_dataConnection)); } _data = _procedure.InvokeProcedureFill(); if (_dataParameterCollection.HasReturn) { _dataParameterCollection.GetReturnParameter(_procedure); } return new System.Xml.XPath.XPathDocument(new System.IO.StringReader(Xy.Tools.IO.XML.ConvertDataTableToXML(_data))); }