public static ResultInfo <List <XmlResultMenu> > changeRole(XmlSet xmlSet) { XmlDocument xmlDoc = OiProData.Pro_SetAction(SerializeToXmlDocument(xmlSet) 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 <XmlResultForm> setAction(XmlSet xmlSet) { XmlDocument xmlDoc = OiProData.Pro_SetAction(SerializeToXmlDocument(xmlSet) as XmlDocument); XmlResult xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult; var XmlResultForm = DeserializeXmlDocument(typeof(XmlResultForm), (xmlResult.revalue as XmlNode[])[0]) as XmlResultForm; return(new ResultInfo <XmlResultForm> { code = xmlResult.recode, msg = xmlResult.err, obj = XmlResultForm }); }
public static ResultInfo <XmlResultData> modifyFormData(XmlSet xmlSet) { XmlDocument xmlDoc = OiProData.Pro_SetDataRow(SerializeToXmlDocument(xmlSet) as XmlDocument); XmlResult xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult; var result = DeserializeXmlDocument(typeof(XmlResultData), ConvertToXmlNode(xmlResult.revalue)) as XmlResultData; return(new ResultInfo <XmlResultData> { code = xmlResult.recode, msg = xmlResult.err, obj = result }); }
public static string setAction(XmlSet xmlSet, bool test) { XmlDocument xmlDoc = OiProData.Pro_SetAction(SerializeToXmlDocument(xmlSet) as XmlDocument); return(xmlDoc.OuterXml); }