Exemplo n.º 1
0
 public static CompensationDto createCompensationDTO(String CompensationId, String CompensationType, String CompensationDescription)
 {
     CompensationDto com = new CompensationDto();
     com.CompensationId = CompensationId;
     com.CompensationType = CompensationType;
     com.CompensationDescription = CompensationDescription;
     return com;
 }
Exemplo n.º 2
0
 public static CompensationDto createCompensationDTO(Compensation obj)
 {
     CompensationDto com = new CompensationDto();
     com.CompensationId = obj.CompensationId;
     com.CompensationType = obj.CompensationType;
     com.CompensationDescription = obj.CompensationDescription;
     return com;
 }
Exemplo n.º 3
0
 public Boolean insertCompensation(CompensationDto dto)
 {
     Compensation obj = Compensation.createCompensation(dto.CompensationId, dto.CompensationType, dto.CompensationDescription);
     CompensationManager mgr = new CompensationManager();
     return mgr.insertCompensation(obj);
 }
Exemplo n.º 4
0
 public CompensationDto selectCompensationById(CompensationDto dto)
 {
     CompensationManager mgr = new CompensationManager();
     Compensation obj = new Compensation();
     obj.CompensationId = dto.CompensationId;
     obj = mgr.selectCompensationById(obj);
     if (obj != null)
     {
         return CompensationDto.createCompensationDTO(obj);
     }
     else
     {
         return null;
     }
 }