예제 #1
0
 public void PropostaAnalisada(GestorDeCredito.Proposta proposta)
 {
     if (proposta.Status == GestorDeCredito.Status.Aprovada)
     {
         if (MessageBox.Show("Proposta Aprovada.\n\nDeseja efetivar a proposta?", "Proposta", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             this._proxy.EfetivarProposta(proposta);
         }
     }
     else
     {
         MessageBox.Show("Proposta não Aprovada");
     }
 }
예제 #2
0
        private void AnalisarProposta_Click(object sender, EventArgs e)
        {
            GestorDeCredito.Proposta novaProposta = new GestorDeCredito.Proposta();
            novaProposta.Data   = DateTime.Now;
            novaProposta.Numero = 1;
            novaProposta.Status = GestorDeCredito.Status.EmAnalise;

            GestorDeCredito.Cliente cliente = new GestorDeCredito.Cliente();
            cliente.Nome         = this.Nome.Text;
            cliente.Empresa      = this.Empresa.Text;
            cliente.Idade        = Convert.ToInt32(this.Idade.Text);
            cliente.Salario      = Convert.ToDecimal(this.Salario.Text);
            novaProposta.Cliente = cliente;

            GestorDeCredito.Emprestimo emprestimo = new GestorDeCredito.Emprestimo();
            emprestimo.QuantidadeDeParcelas = Convert.ToInt32(this.QuantidadeDeParcelas.Text);
            emprestimo.TaxaDeJuros          = Convert.ToDecimal(this.TaxaDeJuros.Text);
            emprestimo.Valor        = Convert.ToDecimal(this.Valor.Text);
            novaProposta.Emprestimo = emprestimo;

            this._proxy.AnalisarProposta(novaProposta);
        }
예제 #3
0
 public IAsyncResult BeginPropostaAnalisada(GestorDeCredito.Proposta proposta, AsyncCallback callback, object asyncState)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public IAsyncResult BeginPropostaAnalisada(WCFVideos.WinUI.ServiceDeGestaoDeCredito.Proposta proposta, AsyncCallback callback, object asyncState)
 {
     throw new NotImplementedException();
 }
예제 #5
0
 public void PropostaAnalisada(WCFVideos.WinUI.ServiceDeGestaoDeCredito.Proposta proposta)
 {
     throw new NotImplementedException();
 }