Exemplo n.º 1
0
 public DevolucaoForm()
 {
     InitializeComponent();
     emprestimoDao = new Model.EmprestimoDao();
     emprestimo    = new Model.Emprestimo();
     itemDao       = new Model.ItemDao();
 }
 public DadosForm(Model.Emprestimo e)
 {
     InitializeComponent();
     this.emprestimo          = e;
     this.itens               = e.itens;
     this.quantidadeDevolucao = 0;
     this.calcularQuantidadeDevolucao();
 }
Exemplo n.º 3
0
 private void buscarBtn_Click(object sender, EventArgs e)
 {
     emprestimo = (Model.Emprestimo)emprestimoDao.getEmprestimoByIdWithDep(int.Parse(codigoTb.Text));
     if (emprestimo != null)
     {
         consultarBtn.Enabled = true;
         this.populateItensEmprestimo();
     }
     else
     {
         MessageBox.Show("Emprestimo nao encontrado !");
     }
 }
Exemplo n.º 4
0
 public Relatorio(Emprestimo.Model.Emprestimo e)
 {
     InitializeComponent();
     emprestimo = e;
 }