示例#1
0
        public static List <string> CaseForToday()
        {
            CaseStatisticsDataLayer objdata = new CaseStatisticsDataLayer();
            List <string>           cList   = objdata.GetCaseStatusData(DateTime.Today, DateTime.Today);

            cList = getpercentagefigure(cList);
            cList.Add(DateTime.Today.ToString("dd-MMM-yyyy") + " till date.");
            return(cList);
        }
示例#2
0
        public static List <string> CaseDataOnFilter(string startdate, string enddate)
        {
            DateTime Strtday = DateTime.Today, EndDt = DateTime.Today;

            if (!string.IsNullOrEmpty(startdate) && !string.IsNullOrEmpty(enddate))
            {
                Strtday = DateTime.Parse(startdate);
                EndDt   = DateTime.Parse(enddate);
            }
            CaseStatisticsDataLayer objdata = new CaseStatisticsDataLayer();
            List <string>           cList = objdata.GetCaseStatusData(Strtday, EndDt);

            cList = getpercentagefigure(cList);
            if (string.IsNullOrEmpty(startdate) || string.IsNullOrEmpty(enddate))
            {
                cList.Add(DateTime.Today.ToString("dd-MMM-yyyy") + " till date.");
            }
            else
            {
                cList.Add(startdate + " to " + enddate);
            }
            return(cList);
        }