public ActionResult DetailOther(int mo, int endStat, string hallno, int type, int pageIndex = 1, int pageSize = 20) { 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 = CHK_HALL_ITEM_MARK_DAL.GetListBub(beginMo, endMo, hallno, type, pageIndex, pageSize); //ViewBag.Total = CHK_HALL_ITEM_MARK_DAL.GetTotal(beginMo, endMo, hallno); return(View(list)); }
public ActionResult Index(string orgId, int pageIndex = 1, int pageSize = 20) { var organDao = new SYS_ORGANIZE_DAL(); var orgs = organDao.GetListForUserId(UserState.UserID, "4"); ViewBag.UserORG = new SelectList(orgs, "ORG_ID", "ORG_NAM", null); ViewBag.orgId = orgId; if (string.IsNullOrEmpty(orgId)) { orgId = setOrgData(); } else { setOrgData(orgId); } var data = new CHK_HALL_ITEM_MARK_DAL().GetList(pageIndex, pageSize, orgId, null); return(View(data)); }