Esempio n. 1
0
        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
            });
        }
Esempio n. 2
0
        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
            });
        }
Esempio n. 3
0
        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
            });
        }
Esempio n. 4
0
        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
            });
        }
Esempio n. 5
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
            });
        }
Esempio n. 6
0
        public static string getMenu(XmlGet xmlget, bool test)
        {
            XmlDocument xmlDoc = OiProData.Pro_GetMyMenu(SerializeToXmlDocument(xmlget) as XmlDocument);

            return(xmlDoc.OuterXml);
        }
Esempio n. 7
0
        public static string getDataRows(XmlGet xmlSet, bool test)
        {
            XmlDocument xmlDoc = OiProData.Pro_GetGridValue(SerializeToXmlDocument(xmlSet) as XmlDocument);

            return(xmlDoc.OuterXml);
        }