예제 #1
0
        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);
        }
예제 #2
0
        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
            });
        }
예제 #3
0
        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
            });
        }