public static ResultInfo <XmlResultFile> getExportData(XmlGet xmlget) { XmlDocument xmlDoc = OiProData.Pro_GridDataOut(SerializeToXmlDocument(xmlget) as XmlDocument); XmlResult xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult; XmlResultFile file = DeserializeXmlDocument(typeof(XmlResultFile), (xmlResult.revalue as XmlNode[])[0]) as XmlResultFile; return(new ResultInfo <XmlResultFile> { code = xmlResult.recode, msg = xmlResult.err, obj = file }); }
public static ResultInfo <XmlResultFile> getDownload(XmlDocument doc) { XmlDocument xmlDoc = OiProData.Pro_SetAction(doc); XmlResult xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult; XmlResultFile file = DeserializeXmlDocument(typeof(XmlResultFile), (xmlResult.revalue as XmlNode[])[0]) as XmlResultFile; return(new ResultInfo <XmlResultFile> { code = xmlResult.recode, msg = xmlResult.err, obj = file }); }