public System.Data.DataSet getReport(string HotelId, string mYear, string mMonth) { if (Helper.GetAppSetting<bool>(CONSTANT.USINGCACHESETTINGKEY)) { var cacheds = Helper.GetCacheData(HotelId, mYear, mMonth); if (cacheds == null) { JMReports.Business.HotelWholeReportComponent hc = new Business.HotelWholeReportComponent(); var ds = hc.GetHotelWholeReport(HotelId, mYear, mMonth); ds.AddCacheData(HotelId, mYear, mMonth); } return Helper.GetCacheData(HotelId, mYear, mMonth); } else { JMReports.Business.HotelWholeReportComponent hc = new Business.HotelWholeReportComponent(); return hc.GetHotelWholeReport(HotelId, mYear, mMonth); } }
public System.Data.DataSet getReport(string HotelId, string mYear, string mMonth) { JMReports.Business.HotelWholeReportComponent hc = new Business.HotelWholeReportComponent(); return hc.GetHotelWholeReport(HotelId, mYear, mMonth); }