public static string login(string login, string pwd, string proname, bool test) { XmlUser xmlUser = new XmlUser { login = login, psw = pwd, proname = proname }; XmlDocument xmlDoc = OiEmData.Org_UserLogin(SerializeToXmlDocument(xmlUser) as XmlDocument); return(xmlDoc.OuterXml); }
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 ResultInfo <XmlResultUserLogin> login(string login, string pwd, string proname) { XmlUser xmlUser = new XmlUser { login = login, psw = pwd, proname = proname }; XmlDocument xmlDoc = OiEmData.Org_UserLogin(SerializeToXmlDocument(xmlUser) as XmlDocument); XmlResult xmlResult = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult; XmlResultUserLogin xmlResultUser = DeserializeXmlDocument(typeof(XmlResultUserLogin), (xmlResult.revalue as XmlNode[])[0]) as XmlResultUserLogin; return(new ResultInfo <XmlResultUserLogin> { code = xmlResult.recode, msg = xmlResult.err, obj = xmlResultUser }); }