Example #1
0
        public IActionResult ChiTietDiemDanh(LayDiemDanhNhanVienIdThang model)
        {
            var url          = $"{Common.Common.ApiUrl}/quanly/LayDiemDanhNhanVienIdThang";
            var responseData = GetMethod(url, model);

            var diemDanh = new List <DiemDanh>();

            diemDanh = JsonConvert.DeserializeObject <List <DiemDanh> >(responseData);
            return(View(diemDanh));
        }
Example #2
0
 public IList <DiemDanh> LayDiemDanhNhanVienIdThang(LayDiemDanhNhanVienIdThang model)
 {
     try
     {
         DynamicParameters parameters = new DynamicParameters();
         parameters.Add("@NhanVienId", model.NhanVienId);
         parameters.Add("@QuanLyId", model.QuanLyId);
         parameters.Add("@Thang", model.Thang);
         parameters.Add("@Nam", model.Nam);
         IList <DiemDanh> list = SqlMapper.Query <DiemDanh>((SqlConnection)con, "sp_LayDiemDanhNhanVienIdThang", param: parameters, commandType: CommandType.StoredProcedure).ToList();
         return(list);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 public IList <DiemDanh> LayDiemDanhNhanVienIdThang(LayDiemDanhNhanVienIdThang model)
 {
     return(_quanLyRepository.LayDiemDanhNhanVienIdThang(model));
 }
Example #4
0
 public IList <DiemDanh> LayDiemDanhNhanVienIdThang(LayDiemDanhNhanVienIdThang model)
 {
     return(_quanLyService.LayDiemDanhNhanVienIdThang(model));
 }