示例#1
0
 public ActionResult Details(int id, string staffId)
 {
     try
     {
         var model = STAT_STAFF_CHKSTAT_M_DAL.GetSub(id, staffId);
         return(View(model));
     }
     catch (Exception ex)
     {
         LogHelper.ErrorLog("查看出错", ex);
         return(RedirectToAction("Error", "Home"));
     }
 }
示例#2
0
 public ActionResult Edit(int id, string staffId)
 {
     try
     {
         var item  = STAT_STAFF_CHKSTAT_M_DAL.GetSub(id, staffId);
         var model = new StatStaffChkstatMModel()
         {
             COR_EAR_DAY_CNT     = item.COR_EAR_DAY_CNT,
             COR_HOLLI_TYP1_CNT  = item.COR_HOLLI_TYP1_CNT,
             COR_HOLLI_TYP2_CNT  = item.COR_HOLLI_TYP2_CNT,
             COR_HOLLI_TYP3_CNT  = item.COR_HOLLI_TYP3_CNT,
             COR_HOLLI_TYP4_CNT  = item.COR_HOLLI_TYP4_CNT,
             COR_HOLLI_TYP5_CNT  = item.COR_HOLLI_TYP5_CNT,
             COR_HOLLI_TYP6_CNT  = item.COR_HOLLI_TYP6_CNT,
             COR_HOLLI_TYP7_CNT  = item.COR_HOLLI_TYP7_CNT,
             COR_HOLLI_TYP8_CNT  = item.COR_HOLLI_TYP8_CNT,
             COR_HOLLI_TYP9_CNT  = item.COR_HOLLI_TYP9_CNT,
             COR_HOLLI_TYP10_CNT = item.COR_HOLLI_TYP10_CNT,
             COR_HOLLI_TYP11_CNT = item.COR_HOLLI_TYP11_CNT,
             COR_HOLLI_TYP12_CNT = item.COR_HOLLI_TYP12_CNT,
             COR_HOLLI_TYP13_CNT = item.COR_HOLLI_TYP13_CNT,
             COR_LAT_DAY_CNT     = item.COR_LAT_DAY_CNT,
             COR_NONSIGN_OUT_CNT = item.COR_NONSIGN_OUT_CNT,
             COR_WORK_DAY_CNT    = item.COR_WORK_DAY_CNT,
             STAFF_ID            = item.STAFF_ID,
             STAFF_NAM           = item.STAFF_NAM,
             STAT_MO             = item.STAT_MO,
             COR_ABSENT_DAY_CNT  = item.COR_ABSENT_DAY_CNT
         };
         return(View(model));
     }
     catch (Exception ex)
     {
         LogHelper.ErrorLog("修改出错", ex);
         return(RedirectToAction("Error", "Home"));
     }
 }