public string GetData()
 {
     BLL.TN_RealtimeMonitor realdata = new BLL.TN_RealtimeMonitor();
     //realdata.CoalCode = "300";
     //realdata.DevCode = "0-0";
     realdata.PageSize = 10;
     realdata.CurrentPageIndex = 1;
     return realdata.GetRecordsAndPager();
 }
 public string GetJson(string coalCode, string devType, string devName, string devState, string devCode, int currentPageIndex, int pageSize)
 {
     BLL.TN_RealtimeMonitor rtData = new BLL.TN_RealtimeMonitor();
     rtData.CoalCode = BulidCoals(coalCode);
     rtData.DevType = devType;
     rtData.DevState = devState;
     rtData.DevCode = devCode;
     rtData.CurrentPageIndex = currentPageIndex;
     rtData.PageSize = pageSize;
     return rtData.GetRecordsAndPager();
 }
 public string GetDevTypeJSON(string coalCode)
 {
     BLL.TN_RealtimeMonitor rtData = new BLL.TN_RealtimeMonitor();
     return rtData.BuildDevTypeJSON(BulidCoals(coalCode));
 }
 public string GetCoalJSON()
 {
     BLL.TN_RealtimeMonitor rtData = new BLL.TN_RealtimeMonitor();
     return rtData.BuildCoalsJSON();
 }