Esempio n. 1
0
        private DataTable GetData(string link, string SessionID, string UserID)
        {
            string url = string.Format("{0}/{1}/{2}"
                                       , ConfigurationManager.AppSettings["URL"]
                                       , link
                                       , SessionID);

            string json_data = Common.HTMLHelper.GetHtmlPage(url);
            var    result    = CJSONHelper.JsonConvertDeserialise <Out_ResultD>(json_data);

            return(CJSONHelper.ConvertToDatatable(result.DataTable));
        }
Esempio n. 2
0
        private DataTable GetCommandData(string functionId, string sessionId)
        {
            string _fullurl = string.Format("{0}/PGetData/{1}/?FunctionID={2}"
                                            , ConfigurationManager.AppSettings["URL"]
                                            , sessionId
                                            , functionId);

            string _returnedData  = Common.HTMLHelper.GetHtmlPage(_fullurl);
            var    data           = CJSONHelper.JsonConvertDeserialise <Out_ResultD>(_returnedData);
            var    dataTableValue = CJSONHelper.ConvertToDatatable(data.DataTable);

            return(dataTableValue);
        }