예제 #1
0
        public IActionResult DiemDanhNhanVien(LayDiemDanhNhanVienId model)
        {
            var url          = $"{Common.Common.ApiUrl}/quanly/LayDiemDanhNhanVienId";
            var responseData = GetMethod(url, model);

            var diemDanh = new DiemDanh();

            diemDanh = JsonConvert.DeserializeObject <DiemDanh>(responseData);
            return(View(diemDanh));
        }
예제 #2
0
        public IActionResult DiemDanhNhanVienAjax([FromBody] LayDiemDanhNhanVienId model)
        {
            var url          = $"{Common.Common.ApiUrl}/quanly/LayDiemDanhNhanVienId";
            var responseData = GetMethod(url, model);

            var diemDanh = new DiemDanh();

            diemDanh = JsonConvert.DeserializeObject <DiemDanh>(responseData);

            return(Json(new { response = diemDanh, code = 1 }));
        }
예제 #3
0
 public DiemDanh LayDiemDanhNhanVienId(LayDiemDanhNhanVienId model)
 {
     try
     {
         DynamicParameters parameters = new DynamicParameters();
         parameters.Add("@NhanVienId", model.NhanVienId);
         parameters.Add("@QuanLyId", model.QuanLyId);
         parameters.Add("@Ngay", model.Ngay);
         return(SqlMapper.Query <DiemDanh>((SqlConnection)con, "sp_LayDiemDanhNhanVienId", param: parameters, commandType: CommandType.StoredProcedure).FirstOrDefault());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #4
0
 public DiemDanh LayDiemDanhNhanVienId(LayDiemDanhNhanVienId model)
 {
     return(_quanLyRepository.LayDiemDanhNhanVienId(model));
 }
예제 #5
0
 public DiemDanh LayDiemDanhNhanVienId(LayDiemDanhNhanVienId model)
 {
     return(_quanLyService.LayDiemDanhNhanVienId(model));
 }