public CaixaLeitura(Hope.Interface.ICaixa_e caixa) : this() { lblCheque.Text = caixa.Cheque(); lblColaborador.Text = caixa.Get_Colaborador; lblCredito.Text = caixa.Credito(); lblDebito.Text = caixa.Debito(); lblDinheiro.Text = caixa.Dinheiro(); lblFinish.Text = caixa.Get_finish_DateTime; lblID.Text = caixa.Get_ID; lblInterno.Text = caixa.Interno(); lblOutro.Text = caixa.Outro(); lblSangria.Text = caixa.Sangria(); lblStart.Text = caixa.Get_Start_DateTime; lblSuprimento.Text = caixa.Suprimento(); lblValeAlimentacao.Text = caixa.Vale_Alemintacao(); lblValeRefeicao.Text = caixa.Vale_Refeicao(); }
private void btnIniciaMeuCaixa_Click(object sender, EventArgs e) { try { Caixa_Entidade = Program.ObjHope.Pos.Caixa.Novo(); if (Program.ObjHope.Pos.Caixa.Gravar(Caixa_Entidade)) { } else { MessageBox.Show(Program.ObjHope.Pos.Caixa.Notifica()); } } catch (Hope.HException he) { MessageBox.Show(he.Message); } }