Example #1
0
        public static ResultInfo <XmlResultDataTable> getDataRows(XmlGet xmlSet)
        {
            XmlDocument xmlDoc    = OiProData.Pro_GetGridValue(SerializeToXmlDocument(xmlSet) as XmlDocument);
            XmlResult   xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult;
            var         dataTable = DeserializeXmlDocument(typeof(XmlResultDataTable), (xmlResult.revalue as XmlNode[])[0]) as XmlResultDataTable;

            return(new ResultInfo <XmlResultDataTable>
            {
                code = xmlResult.recode,
                msg = xmlResult.err,
                obj = dataTable
            });
        }
Example #2
0
        public static string getDataRows(XmlGet xmlSet, bool test)
        {
            XmlDocument xmlDoc = OiProData.Pro_GetGridValue(SerializeToXmlDocument(xmlSet) as XmlDocument);

            return(xmlDoc.OuterXml);
        }