Пример #1
0
 public UsrDTO(String cemexId, String nUsr, String eMail, IRolDTO rol, IPaisDTO pais, IStaRgDTO staRg)
 {
     this.CemexId = cemexId;
     this.NUsr    = nUsr;
     this.EMail   = eMail;
     this.Rol     = rol;
     this.Pais    = pais;
     this.StaRg   = staRg;
 }
Пример #2
0
 public ExcpDTO(Int32 idEx, Int64 idCliente, ITExcpDTO tEx, String dtVig, IPaisDTO pais, IRolDTO rol, String msgEx, Int64 idEmp)
 {
     IdEx      = idEx;
     IdCliente = idCliente;
     TEx       = tEx;
     DtVig     = dtVig;
     Pais      = pais;
     Rol       = rol;
     MsgEx     = msgEx;
     IdEmp     = idEmp;
 }
Пример #3
0
 public static catRol DTOtoE(IRolDTO rol)
 {
     if (rol != null)
     {
         catRol eRol = new catRol();
         eRol.IdRol = rol.IdRol;
         eRol.NRol  = rol.NRol;
         return(eRol);
     }
     else
     {
         return(null);
     }
 }
Пример #4
0
 public IRolPTO DTOtoPTO(IRolDTO rol)
 {
     return(rol != null ? new RolPTO(rol.IdRol, rol.NRol):null);
 }