Exemplo n.º 1
0
 /// <summary>
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Tra_TraineeRegisterModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Tra_TraineeRegisterModel();
     ActionService service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Tra_TraineeRegisterEntity>(id, ConstantSql.hrm_tra_sp_get_TraineeRegisterById, ref status);
     if (entity!=null)
     {
         model = entity.CopyData<Tra_TraineeRegisterModel>();
     }
     model.ActionStatus = status;
     return model;
 }
Exemplo n.º 2
0
        public ActionResult ActionRejectSelected(List<Guid> selectedIds, Guid UserId, string Reason)
        {
            Tra_TraineeRegisterModel model = new Tra_TraineeRegisterModel();
            var traineeRegisterService = new Tra_TraineeRegisterServices();

            if (selectedIds.Count >= 0)
            {
                var status = traineeRegisterService.ActionRejectTraineeRegister(selectedIds, UserId,Reason);
            }
            return Json(null);
        }
Exemplo n.º 3
0
 public ActionResult ActionCancelSected(List<Guid> selectedIds)
 {
     Tra_TraineeRegisterModel model = new Tra_TraineeRegisterModel();
     var traineeRegisterService = new Tra_TraineeRegisterServices();
     var status = string.Empty;
     if (selectedIds.Count >= 0)
     {
          status = traineeRegisterService.ActionCancelTraineeRegister(selectedIds);
     }
     return Json(status,JsonRequestBehavior.AllowGet);
 }
Exemplo n.º 4
0
 public ActionResult UpdateStatusSelected(List<Guid> selectedIds, Guid UserId)
 {
     Tra_TraineeRegisterModel model = new Tra_TraineeRegisterModel();
     var traineeRegisterService = new Tra_TraineeRegisterServices();
     
     if (selectedIds.Count >= 0)
     {
         var status = traineeRegisterService.ApprovedTraineeRegister(selectedIds,UserId);
     }
     return Json(null);
 }