示例#1
0
        private void AlterarEmprestimo()
        {
            tb_emprestimo emprestimo = new tb_emprestimo();

            emprestimo.bt_devolvido      = chkDevolvido.Checked;
            emprestimo.nm_funcionario    = txtFuncionario.Text;
            emprestimo.dt_devolucao      = Convert.ToDateTime(dtpDevolucao.Text);
            emprestimo.tb_livro_id_livro = Convert.ToInt32(cboLivro.SelectedValue);
            emprestimo.dt_emprestimo     = Convert.ToDateTime(dtpEmprestimo.Text);

            tb_aluno_dados dados = new tb_aluno_dados();

            dados.ds_email       = txtEmail.Text;
            dados.id_aluno_dados = idAluno;

            EmprestimoBusiness emprestimos = new EmprestimoBusiness();

            emprestimos.AlterarEmprestimo(emprestimo, id, dados);
        }
示例#2
0
        private void AlterarEmprestimo()
        {
            tb_emprestimo emprestimo = new tb_emprestimo();

            emprestimo.bt_devolvido      = chkDevolvido.Checked;
            emprestimo.nm_funcionario    = txtFuncionario.Text;
            emprestimo.dt_devolucao      = Convert.ToDateTime(dtpDevolucao.Text);
            emprestimo.tb_livro_id_livro = Convert.ToInt32(cboLivro.SelectedValue);
            emprestimo.dt_emprestimo     = Convert.ToDateTime(dtpEmprestimo.Text);

            tb_locatario prof = new tb_locatario();

            prof.nm_locatario = txtNome.Text;
            prof.nu_celular   = txtCelular.Text;
            prof.nu_cpf       = txtCPF.Text;
            prof.ds_email     = txtEmail.Text;

            EmprestimoBusiness emprestimos = new EmprestimoBusiness();

            emprestimos.AlterarEmprestimo(emprestimo, id, prof);
        }