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 <List <XmlResultMenu> > getMenu(XmlGet xmlget) { XmlDocument xmlDoc = OiProData.Pro_GetMyMenu(SerializeToXmlDocument(xmlget) as XmlDocument); XmlResult xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult; XmlResultMenu menu = DeserializeXmlDocument(typeof(XmlResultMenu), ConvertToXmlNode(xmlResult.revalue, "MENUS")) as XmlResultMenu; return(new ResultInfo <List <XmlResultMenu> > { code = xmlResult.recode, msg = xmlResult.err, obj = menu.children }); }
public static ResultInfo <XmlResultMessages> getMessage(XmlGet xmlget) { XmlDocument xmlDoc = OiProData.Pro_GetMsg(SerializeToXmlDocument(xmlget) as XmlDocument); XmlResult xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult; XmlResultMessages msgs = (DeserializeXmlDocument(typeof(XmlResultMessages), ConvertToXmlNode(xmlResult.revalue)) as XmlResultMessages); return(new ResultInfo <XmlResultMessages> { code = xmlResult.recode, msg = xmlResult.err, obj = msgs }); }
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 }); }
public static ResultInfo <XmlResultUserRole> getRole(XmlGet xmlget) { //获取权限 XmlDocument xmlDoc = OiEmData.Org_GetMyNodes(SerializeToXmlDocument(xmlget) as XmlDocument); XmlResult xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult; var role = DeserializeXmlDocument(typeof(XmlResultUserRole), (xmlResult.revalue as XmlNode[])[0]) as XmlResultUserRole; return(new ResultInfo <XmlResultUserRole> { code = xmlResult.recode, msg = xmlResult.err, obj = role }); }
public static string getMenu(XmlGet xmlget, bool test) { XmlDocument xmlDoc = OiProData.Pro_GetMyMenu(SerializeToXmlDocument(xmlget) as XmlDocument); return(xmlDoc.OuterXml); }
public static string getDataRows(XmlGet xmlSet, bool test) { XmlDocument xmlDoc = OiProData.Pro_GetGridValue(SerializeToXmlDocument(xmlSet) as XmlDocument); return(xmlDoc.OuterXml); }