Example #1
0
        public static string Updatecptinfo(RadInfoCPT radinfo)
        {
            var cptinfo = new RadInfoCPT();

            cptinfo.CPTcode     = radinfo.CPTcode;
            cptinfo.RadInfoPage = radinfo.RadInfoPage;
            cptinfo.Radinfourl  = radinfo.Radinfourl;

            JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();
            string serOut = jsonSerializer.Serialize(radinfo);

            string strUri = ConfigurationManager.AppSettings["ServerUrl"] + "/UpdateRadinofo?updatecptinfo=" + serOut + "";
            string check = string.Empty; string result = string.Empty;

            check = HttpGet(strUri);
            XmlDocument doc = new XmlDocument();

            doc.LoadXml(check);
            var Check = doc.GetElementsByTagName("string");

            foreach (XmlNode node in Check)
            {
                result = node.InnerText;
            }

            // ACRserviceref.Service1Client obj = new ACRserviceref.Service1Client();
            // bool check = obj.UpdateRadinofo(radinfo);
            return(result);
        }
Example #2
0
        public static string Deletecptinfo(RadInfoCPT radinfo)
        {
            var cptinfo = new RadInfoCPT();

            cptinfo.CPTcode     = radinfo.CPTcode;
            cptinfo.RadInfoPage = radinfo.RadInfoPage;
            cptinfo.Radinfourl  = radinfo.Radinfourl;

            string Serverurl = ConfigurationManager.AppSettings["ServerUrl"] + "/DeleteRadinfo?Cptcodeinfo=" + cptinfo.CPTcode + "";
            string Result, check = string.Empty; string result = string.Empty;

            Result = HttpGet(Serverurl);
            //var result = new RadInfoCPT();

            XmlDocument doc = new XmlDocument();

            doc.LoadXml(Result);
            var Check = doc.GetElementsByTagName("string");

            foreach (XmlNode node in Check)
            {
                result = node.InnerText;
            }

            // ACRserviceref.Service1Client obj = new ACRserviceref.Service1Client();
            // bool check = obj.DeleteRadinfo(radinfo.CPTcode);
            return(result);
        }
Example #3
0
        public static RadInfoCPT GetCptinfobased(string cptcode)
        {
            string Serverurl = ConfigurationManager.AppSettings["ServerUrl"] + "/GetAllRadinfocpt?Cptcode=" + cptcode + "";
            string Result    = string.Empty;

            Result = HttpGet(Serverurl);
            var result = new RadInfoCPT();

            XmlDocument doc = new XmlDocument();

            doc.LoadXml(Result);
            var CPTcode = doc.GetElementsByTagName("CPTcode");

            foreach (XmlNode node in CPTcode)
            {
                result.CPTcode = node.InnerText;
            }

            var RadInfoPage = doc.GetElementsByTagName("RadInfoPage");

            foreach (XmlNode node in RadInfoPage)
            {
                result.RadInfoPage = node.InnerText;
            }

            var Radinfourl = doc.GetElementsByTagName("Radinfourl");

            foreach (XmlNode node in Radinfourl)
            {
                result.Radinfourl = node.InnerText;
            }

            // ACRserviceref.Service1Client obj = new ACRserviceref.Service1Client();
            // ACRserviceref.RadInfoCPT result = obj.GetAllRadinfocpt(cptcode);
            return(result);
        }