コード例 #1
0
 public Reason(SetRGAService.ReasonsDTO _ReasonsDTO)
 {
     if (_ReasonsDTO.ReasonID != null)
     {
         this.ReasonID = _ReasonsDTO.ReasonID;
     }
     if (_ReasonsDTO.Reason != null)
     {
         this.Reason1 = _ReasonsDTO.Reason;
     }
     this.ReasonPoints = _ReasonsDTO.ReasonPoints;
 }
コード例 #2
0
 public SetRGAService.ReasonsDTO CopyToSaveDTO(Reason _Reason)
 {
     SetRGAService.ReasonsDTO _return = new SetRGAService.ReasonsDTO();
     if (_Reason.ReasonID != null)
     {
         _return.ReasonID = _Reason.ReasonID;
     }
     if (_Reason.Reason1 != null)
     {
         _return.Reason = _Reason.Reason1;
     }
     _return.ReasonPoints = _Reason.ReasonPoints;
     return(_return);
 }