コード例 #1
0
        public string UploadImage(byte[] data, string name, string filename, string contentType, NameValueCollection nvc)
        {
            //string result = CGClass.HttpPostFS("http://" + nodeserver + "/Upload",stream);
            string result = CGClass.HttpUploadFile("http://" + nodeserver + "/Content/Upload", data, name, filename, contentType, nvc);

            return(result);
        }
コード例 #2
0
        public IEnumerable <DIContentSeo> SelectContentDetailSeo(string idcontenteditordetail)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/contentdetail/SelectSeoContentDetail?idContentEditorDetail=" + idcontenteditordetail);
            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            contentseo = json_serializer.Deserialize <List <DIContentSeo> >(result);
            return(contentseo.ToList());
        }
コード例 #3
0
        public IEnumerable <DIiconresource> SelectIcon()
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/contentdetail/SelectIconResource");
            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            contenticon = json_serializer.Deserialize <List <DIiconresource> >(result);
            return(contenticon.ToList());
        }
コード例 #4
0
        public IEnumerable <DIContent> SelectContent(string idcontenteditor)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/Content/SelectById?idContentEditor=" + idcontenteditor);
            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            content = json_serializer.Deserialize <List <DIContent> >(result);
            return(content.ToList());
        }
コード例 #5
0
        public IEnumerable <DIContent> ShowContent(string layout)
        {
            string result = CGClass.HttpGet("http://" + nodeserver + "/Content/selectContent?layout=" + layout);
            JavaScriptSerializer json_serializer = new JavaScriptSerializer();

            content = json_serializer.Deserialize <List <DIContent> >(result);
            return(content.ToList());
        }
コード例 #6
0
        public string Addcontentmore(string idcontenteditordetail)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/Addmoredetail", "idContentEditorDetail=" + idcontenteditordetail);

            return(result);
        }
コード例 #7
0
        public string SetUpdownContent(string idcontenteditordetail, string idcontenteditordetaildes)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateUpDown", "idContentEditorDetail=" + idcontenteditordetail + "&idContentEditorDetaildes=" + idcontenteditordetaildes);

            return(result);
        }
コード例 #8
0
        public string DeleteImg(string idcontenteditor)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/DeleteImg", "idContentEditor=" + idcontenteditor);

            return(result);
        }
コード例 #9
0
        public string UpdateImgSize(string imgpath, string idcontenteditordetail)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateSizeImg", "idContentEditorDetail=" + idcontenteditordetail + "&imgPath=" + imgpath);

            return(result);
        }
コード例 #10
0
        public string UploadImage(byte[] data, string name, string filename, string contentType, NameValueCollection nvc)
        {
            string result = CGClass.HttpUploadFile("http://" + nodeserver + "/contentdetail/UploadImg", data, name, filename, contentType, nvc);

            return(result);
        }
コード例 #11
0
        public string UpdateImgSize(string imgpath, string idcontenteditor)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateSize", "idContentEditor=" + idcontenteditor + "&imgPath=" + imgpath);

            return(result);
        }
コード例 #12
0
        public string UpdateImgPosition(string idcontenteditor, string position)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/Upposition", "idContentEditor=" + idcontenteditor + "&imgPosition=" + position);

            return(result);
        }
コード例 #13
0
        public string UpdateContent(string idcontenteditor, string textdata)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateContent", "idcon=" + idcontenteditor + "&text=" + textdata);

            return(result);
        }
コード例 #14
0
        public string Addcontentblock(string idcontenteditor)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/Addcontentblock", "idContentEditor=" + idcontenteditor);

            return(result);
        }
コード例 #15
0
        public string AddSeo(string title, string keyword, string description, string urlrewrite, string idcontenteditordetail)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/AddSEO", "Title=" + title + "&Keywords=" + keyword + "&Description=" + description + "&URLRewrite=" + urlrewrite + "&idContentEditorDetail=" + idcontenteditordetail);

            return(result);
        }
コード例 #16
0
        public string UpdateTrickbox(string idcontenteditor, string check)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateTrickbox", "id=" + idcontenteditor + "&thick=" + check);

            return(result);
        }
コード例 #17
0
        public string UpdateDatatext(string idcontenteditordetail, string textdata)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateDatatext", "idContentEditorDetail=" + idcontenteditordetail + "&textdata=" + textdata);

            return(result);
        }
コード例 #18
0
        public string UpdateLinkTypeValue(string idcontenteditordetail, string linktypepath)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateContentLinkValue", "idContentEditorDetail=" + idcontenteditordetail + "&ContentLinkTypeValue=" + linktypepath);

            return(result);
        }
コード例 #19
0
        public string UpdateImgPosition(string idcontenteditordetail, string position)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdatePosition", "idContentEditorDetail=" + idcontenteditordetail + "&imgPosition=" + position);

            return(result);
        }
コード例 #20
0
        public string DeleteBlock(string idcontenteditordetail)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/DeleteContentDetail", "idContentEditorDetail=" + idcontenteditordetail);

            return(result);
        }
コード例 #21
0
        public string UpdateTrickbox(string idcontenteditordetail, string check)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateTrickbox", "idContentEditorDetail=" + idcontenteditordetail + "&imgThickBoxShow=" + check);

            return(result);
        }
コード例 #22
0
        public string SetUpdownContent(string idcontenteditor, string idcontenteditordes)
        {
            string result = CGClass.HttpPost("http://" + nodeserver + "/Content/SetUpdownContent", "idcontenteditor=" + idcontenteditor + "&idcontenteditordes=" + idcontenteditordes);

            return(result);
        }