Exemplo n.º 1
0
        public IEnumerable <DIPage> GetbyNode(int id, string server)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/selectNode/?id_node=" + id + "&server=" + server);

            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            pages = json_serializer.Deserialize <List <DIPage> >(result);
            return(pages);
        }
Exemplo n.º 2
0
        public IEnumerable <DIPage> GetAll(string server)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/pages");

            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            pages = json_serializer.Deserialize <List <DIPage> >(result);
            return(pages.ToList());
        }
Exemplo n.º 3
0
        public string DeleteNode(string id_node, string server)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/DeleteNode", "id_node=" + id_node + "&server=" + server);

            return(result);
        }
Exemplo n.º 4
0
        public string UpdateLayout(string id_layout, string type_layout, string id_node, string server)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/UpdateLayout", "id_layout=" + id_layout + "&type_layout=" + type_layout + "&id_node=" + id_node + "&server=" + server);

            return(result);
        }
Exemplo n.º 5
0
        public string UpdateNode(string namepage, string id_node, string name, string title, string keyword, string descript, string urlrewrite, string urlto, string checkwinop, string checkdisaccess, string lang_id, string server)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/UpdateNode", "namepage=" + namepage + "&id_node=" + id_node + "&name=" + name + "&title=" + title + "&keyword=" + keyword + "&descript=" + descript + "&urlrewrite=" + urlrewrite + "&urlto=" + urlto + "&checkwinop=" + checkwinop + "&checkdisaccess=" + checkdisaccess + "&lang_id=" + lang_id + "&server=" + server);

            return(result);
        }
Exemplo n.º 6
0
        public string AddNode(string id_node, string namepage, string lang_id, string bLandingPage, string server)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/AddNode", "id_node=" + id_node + "&namepage=" + namepage + "&lang_id=" + lang_id + "&bLandingPage=" + bLandingPage + "&server=" + server);

            return(result);
        }
Exemplo n.º 7
0
        public string CheckParent(string id_parent, string server)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/chk_parent?id_parent=" + id_parent + "&server=" + server);

            return(result);
        }
Exemplo n.º 8
0
        public string ChangeMode(string id_node, string id_parent, string mode_change, string server)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/pages1?id_node=" + id_node + "&id_parent=" + id_parent + "&mode_change=" + mode_change + "&server=" + server);

            return(result);
        }