public ActionResult Index(string nameorcode, string start, string end, int pageIndex = 1, int pageSize = 20, int status = 0) { ViewBag.nameorcode = nameorcode; ViewBag.status = status; DateTime?time1 = null; if (!string.IsNullOrEmpty(start)) { DateTime t1; DateTime.TryParse(start, out t1); time1 = t1; } DateTime?time2 = null; if (!string.IsNullOrEmpty(end)) { DateTime t2; DateTime.TryParse(end, out t2); time2 = t2; } ViewBag.start = start; ViewBag.end = end; var data = new WARN_COMPLAIN_DETAIL_DAL().GetList(pageIndex, pageSize, time1, time2, nameorcode, status == 0 ? (int?)null : status); return(View(data)); }
public ActionResult DetailListByHall(string hallno, int pageIndex = 1, int pageSize = 20) { ViewBag.HALL_NO = hallno; var listdate = new WARN_COMPLAIN_DETAIL_DAL().GetListByHall(hallno, pageIndex, pageSize); return(View(listdate)); }
public ActionResult DetailComplain(int mo, int endStat, string hallno, int pageIndex = 1, int pageSize = 20) { //STAT_STAFF_QUEUE_BUSI_D var endMoyear = endStat / 100; var year = mo / 100; var beginMo = Convert.ToDateTime(year.ToString() + "-" + (mo - year * 100).ToString() + "-1"); var endMo = Convert.ToDateTime(endMoyear.ToString() + "-" + (endStat - year * 100).ToString() + "-1").AddMonths(1).AddSeconds(-1); var list = WARN_COMPLAIN_DETAIL_DAL.GetListBubByHall(beginMo, endMo, hallno, pageIndex, pageSize); return(View(list)); }