Esempio n. 1
0
        public ActionResult Index(string statMo, string orgId, int pageIndex = 1, int pageSize = 20)
        {
            int stat;

            if (string.IsNullOrEmpty(statMo))
            {
                statMo = DateTime.Now.AddMonths(-1).ToString("yyyy-MM");
            }
            int.TryParse(statMo.Replace("-", ""), out stat);

            if (string.IsNullOrEmpty(orgId))
            {
                orgId = setOrgData();
            }
            else
            {
                setOrgData(orgId);
            }

            ViewBag.Stat   = stat;
            ViewBag.StatMo = statMo;

            var list = STAT_STAFF_QUALITYSTAT_M_DAL.GetListBub(stat, orgId, pageIndex, pageSize);

            return(View(list));
        }
Esempio n. 2
0
        public ActionResult DetailQUALITY(int stat, int endStat, string staffId, int pageIndex = 1, int pageSize = 20)
        {
            var list = STAT_STAFF_QUALITYSTAT_M_DAL.GetListBub(stat, endStat, staffId, pageIndex, pageSize);

            ViewBag.Total = STAT_STAFF_QUALITYSTAT_M_DAL.GetTotal(stat, endStat, staffId);

            return(View(list));
        }
Esempio n. 3
0
 public ActionResult Details(int id, string staffId, string qualityCd)
 {
     try
     {
         var model = STAT_STAFF_QUALITYSTAT_M_DAL.GetSub(id, staffId, qualityCd);
         return(View(model));
     }
     catch (Exception ex)
     {
         LogHelper.ErrorLog("查看出错", ex);
         return(RedirectToAction("Error", "Home"));
     }
 }
Esempio n. 4
0
 public ActionResult Edit(int id, string staffId, string qualityCd)
 {
     try
     {
         var item  = STAT_STAFF_QUALITYSTAT_M_DAL.GetSub(id, staffId, qualityCd);
         var model = new StaffQualitystatMModel()
         {
             COR_ERROR_SVR_CNT = item.COR_ERROR_SVR_CNT.GetValueOrDefault(),
             QUALITY_CD        = item.QUALITY_CD,
             QUALITY_NAM       = item.QUALITY_NAM,
             STAFF_ID          = item.STAFF_ID,
             STAFF_NAM         = item.STAFF_NAM,
             STAT_MO           = item.STAT_MO
         };
         return(View(model));
     }
     catch (Exception ex)
     {
         LogHelper.ErrorLog("查看出错", ex);
         return(RedirectToAction("Error", "Home"));
     }
 }