public ActionResult Delete(string id) { var deleteId = id.Split(','); try { var rtconBll = new CHK_STAFF_QUALITY_MARK_DAL(); if (rtconBll.IsHaveForType(id)) { Alter("删除失败,原因:考核质量差错类型下存在个人考核质量差错打分数据,不允许删除!", AlterTypeEnum.Warning, false, true); return(RedirectToAction("Index")); } else { var bll = new CHK_QUALITY_CON_DAL(); bll.Delete(deleteId); Alter("删除成功!", AlterTypeEnum.Success); return(RedirectToAction("Index")); } } catch (Exception ex) { LogHelper.ErrorLog("删除考核质量差错类型出错", ex); return(Redirect("/Home/Error")); } }
public ActionResult Edit(int id) { if (id > 0) { LoadAllSelect(); var viewModel = new CHK_STAFF_QUALITY_MARK_DAL().Get(id); return(View(viewModel)); } return(Redirect("/Home/Error")); }
public ActionResult DetailQuality(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 = CHK_STAFF_QUALITY_MARK_DAL.GetListBubByHall(beginMo, endMo, hallno, pageIndex, pageSize); return(View(list)); }
public ActionResult Index( string personNo, string workNo, string performanceTypeNo, int pageIndex = 1, int pageSize = 20) { ViewBag.personNo = personNo; ViewBag.workNo = workNo; ViewBag.performanceTypeNo = performanceTypeNo; Page <CHK_STAFF_QUALITY_MARKDto> data = new CHK_STAFF_QUALITY_MARK_DAL().GetList( performanceTypeNo, workNo, personNo, pageIndex, pageSize); return(View(data)); }