Esempio n. 1
0
 public BaseController()
 {
     _bancoServicio      = new BancoServicio();
     _estadoPagoServicio = new EstadoPagoServicio();
     _monedaServicio     = new MonedaServicio();
     _ordenPagoServicio  = new OrdenPagoServicio();
     _rolServicio        = new RolServicio();
     _sucursalServicio   = new SucursalServicio();
 }
Esempio n. 2
0
 public FormInicial()
 {
     InitializeComponent();
     bancoServicio = new BancoServicio();
     this.Text     = "Banco Hipotecario";
     this.dataGridView1.DataSource        = bancoServicio.CuentaServicio.ClienteServicio.TraerClientes();
     this.dataGridView1.ReadOnly          = true;
     this.dataGridView2.DataSource        = bancoServicio.CuentaServicio.TraerCuentas();
     this.dataGridView2.CellValueChanged += DataGridView2_CellValueChanged;
     this.dataGridView1.CellClick        += DataGridView1_CellClick;
 }
Esempio n. 3
0
        public FormPrestamos(BancoServicio bancoServicio, Cliente clienteSeleccionado)
        {
            InitializeComponent();
            this.banco   = bancoServicio;
            this.cliente = clienteSeleccionado;

            this.listBoxPrestamos.DataSource                = banco.PrestamoServicio.TraerPrestamos().Where(w => w.IdCliente == cliente.Id).ToList();
            this.listBoxTipoPrestamos.DataSource            = banco.PrestamoServicio.TraerTiposPrestamo();
            this.listBoxTipoPrestamos.SelectedIndexChanged += ListBoxTipoPrestamos_SelectedIndexChanged;

            this.textBoxCliente.Text = string.Format("{0}, {1}", cliente.Apellido, cliente.Nombre);
        }
Esempio n. 4
0
 public FormNuevaCuenta(BancoServicio bancoServicio)
 {
     InitializeComponent();
     this.banco = bancoServicio;
     try
     {
         this.comboBox1.DataSource = banco.CuentaServicio.ClienteServicio.Clientes;
     }
     catch (SinClientesException ex)
     {
         MessageBox.Show(string.Format("ERROR.\n{0}.", ex.Message));
         this.Owner.Enabled = true;
         this.Close();
     }
 }
 public _00001_BuscarBancos(BancoServicio bancoServicio)
 {
     _bancoServicio = bancoServicio;
 }
Esempio n. 6
0
 public BancoController()
 {
     bancoServicio = new BancoServicio();
 }