コード例 #1
0
        private string operacionClave(ValidaAccesoServicio validar)
        {
            string operacion = String.Empty;
            switch (validar)
            {
                case ValidaAccesoServicio.InversionVistaVARet:
                case ValidaAccesoServicio.InversionVistaVADep:
                    operacion = ClavesOperacion.DepositoRetiroInversionVista;
                    break;

                case ValidaAccesoServicio.MovimientosChequesVA:
                    operacion = ClavesOperacion.ConsultaMovimientosCheques;
                    break;

                case ValidaAccesoServicio.MovimientosTarjetasVA:
                    operacion = ClavesOperacion.ConsultaMovimientosTarjetas;
                    break;
            }
            return operacion;
        }
コード例 #2
0
        private void OnSelectionChange_List(object sender, SelectionChangedEventArgs e)
        {

            this._appName = PageTitle.Text;



            if (List.SelectedItem != null && List.SelectedIndex >= 0)
            {
                this._noCuenta = String.Empty;
                this._saldo = String.Empty;
                this._alias = String.Empty;
                SaldosItemsViewModel itemPesos = List.SelectedItem as SaldosItemsViewModel;
                this._noCuenta = itemPesos.NoCuenta;
                this._saldo = itemPesos.SaldoCuenta;
                this._divisa = itemPesos.Divisa;
                _itemSelected = true;
            }

            if (ListDolares.SelectedItem != null && ListDolares.SelectedIndex >= 0)
            {
                this._noCuenta = String.Empty;
                this._saldo = String.Empty;
                this._alias = String.Empty;
                SaldosItemsDolaresViewModel itemDolares = ListDolares.SelectedItem as SaldosItemsDolaresViewModel;
                this._noCuenta = itemDolares.NoCuenta;
                this._saldo = itemDolares.SaldoCuenta;
                this._divisa = itemDolares.Divisa;
                _itemSelected = true;
            }

            if (_itemSelected)
            {
                if (_consultaDeSaldosViewModel.ClienteManager.ProductoActual == ViewModel.ClienteManager.TipoConsulta.CuentasCheques)
                {
#if OFFLINE
                              this.NavigationService.Navigate(new Uri(String.Format(App.Current.Resources["MovimientosCuentasView"] as string + "?appTitle={0}&pageTitle=Movimientos de\n {1}&noCuenta={2}&saldo={3}&divisa={4}", this._appName, this._appName, this._noCuenta, this._saldo, this._divisa), UriKind.Relative));
#else
                    this._validaAccesoServicio = ValidaAccesoServicio.MovimientosChequesVA;
                    this._consultaDeSaldosViewModel.ValidaAcceso(operacionClave(this._validaAccesoServicio));
#endif
                }
                if (_consultaDeSaldosViewModel.ClienteManager.ProductoActual == ViewModel.ClienteManager.TipoConsulta.TarjetasCredito)
                {
                    SaldosItemsViewModel selectedItem = List.SelectedItem as SaldosItemsViewModel;
                    if (string.IsNullOrEmpty(selectedItem.MensajeAdicional))
                    {
#if OFFLINE
                                    this.NavigationService.Navigate(new Uri(String.Format(App.Current.Resources["MovimientosTarjetaCreditoView"] as string + "?appTitle={0}&pageTitle=Movimientos de\n {1}&noCuenta={2}&divisa={3}", this._appName, this._appName, this._noCuenta, this._divisa), UriKind.Relative));
#else
                        this._validaAccesoServicio = ValidaAccesoServicio.MovimientosTarjetasVA;
                        this._consultaDeSaldosViewModel.ValidaAcceso(operacionClave(this._validaAccesoServicio));
#endif
                    }
                    else
                    {
                        MessageBox.Show(TextosFront.frontMensajeInformacionNoDisponibleTarjetasAdicionales);
                    }
                }

                if (_consultaDeSaldosViewModel.ClienteManager.ProductoActual == ViewModel.ClienteManager.TipoConsulta.FondosDeInversion)
                {
                    this.NavigationService.Navigate(new Uri(String.Format(App.Current.Resources["ConsultaCarteraView"] as string + "?appTitle={0}&pageTitle=Consulta Cartera&noCuenta={1}&saldo={2}", this._appName, this._noCuenta, this._saldo), UriKind.Relative));
                    desactivarEventos();
                }

                if (_consultaDeSaldosViewModel.ClienteManager.ProductoActual == ViewModel.ClienteManager.TipoConsulta.InversionVista)
                {
                    this.NavigationService.Navigate(new Uri(String.Format(App.Current.Resources["DetalleInversionVistaView"] as string + "?appTitle={0}&pageTitle=Detalle\n {1}&noCuenta={2}&saldo={2}", this._appName, this._appName, this._noCuenta, this._saldo), UriKind.Relative));
                    desactivarEventos();
                }
                _itemSelected = false;
            }
            if (List.SelectedIndex != -1)
                List.SelectedIndex = -1;
            if (ListDolares.SelectedIndex != -1)
                ListDolares.SelectedIndex = -1;
        }
コード例 #3
0
        private void DepositoInversion_Click(object sender, EventArgs e)
        {
#if OFFLINE
                  NavigationService.Navigate(new Uri(Application.Current.Resources["DepositoRetiroInversionView"] as string + "?AppName=Inversion Vista&TipoMovimiento=Depósito&BotonLabel=Invertir&PageTitle=Depósito Inversión \n Vista", UriKind.Relative));
#else
            Progress.Show();
            this._validaAccesoServicio = ValidaAccesoServicio.InversionVistaVADep;
            this._consultaDeSaldosViewModel.ValidaAcceso(operacionClave(this._validaAccesoServicio));
#endif
        }
コード例 #4
0
            private void OnRetiroButton_Click(object sender, EventArgs e)
            {
#if OFFLINE
              NavigationService.Navigate(new Uri(string.Format(Application.Current.Resources["DepositoRetiroInversionView"] as string +"?AppName=Inversion Vista&NoCuenta={0}&TipoMovimiento=Retiro&BotonLabel=Retirar&PageTitle=Retiro Inversión \n Vista&DetalleFlag=true",_noCuenta), UriKind.Relative));
#else
                  this._validaAccesoServicio = ValidaAccesoServicio.InversionVistaVARet;
                  this._detalleInversionVistaViewModel.ValidaAcceso(ClavesOperacion.DepositoRetiroInversionVista);
#endif
            }