コード例 #1
0
 public bool createDRInversion3de3ViewModel()
 {
     ResInversionVista responseInversion = new ResInversionVista();
     _cliente = (Application.Current as App).cliente;
     responseInversion = _cliente.resultadoTransaccionInversion();
     if (responseInversion != null)
     {
         if (responseInversion.dto.opcion.Equals("1"))
         {
             this._cuentaOrigen = responseInversion.dto.cuentadestino;
             this._cuentaDestino = responseInversion.dto.cuenta2;
         }
         else
         {
             this._cuentaOrigen = responseInversion.dto.cuenta2;
             this._cuentaDestino = responseInversion.dto.cuentadestino;
         }
         this._fechaOperacion = responseInversion.dto.fecha;
         this._horaOperacion = responseInversion.dto.hora;
         this._noReferencia = responseInversion.dto.referencia;
         this._importe = responseInversion.dto.importe;
         return true;
     }
     else
     {
         return false;
     }
    
 }