예제 #1
0
        public TelaAtendimento()
        {
            InitializeComponent();

            this._telaCliente        = new TelaCadastroCliente();
            this._telaFormaPagamento = new TelaCadastroFormaPagamento();
            this._telaServico        = new TelaCadastroServico();
            this._telaRecebimento    = null;

            this._telaCliente.EmBusca        = true;
            this._telaFormaPagamento.EmBusca = true;
            this._telaServico.EmBusca        = true;

            this._controlador = new ControladorAtendimento(this);
        }
예제 #2
0
        public Boolean ReceberNoCaixa(Decimal ValorAReceber)
        {
            try
            {
                this._telaRecebimento = new TelaRecebimentoAtendimento(ValorAReceber);
                this._telaRecebimento.ShowDialog();

                return(this._telaRecebimento.DialogResult.Equals(DialogResult.OK));
            }
            finally
            {
                this._telaRecebimento.Dispose();
                this._telaRecebimento = null;
            }
        }
예제 #3
0
        public TelaAtendimento()
        {
            InitializeComponent();

            this._telaCliente = new TelaCadastroCliente();
            this._telaFormaPagamento = new TelaCadastroFormaPagamento();
            this._telaServico = new TelaCadastroServico();
            this._telaRecebimento = null;

            this._telaCliente.EmBusca = true;
            this._telaFormaPagamento.EmBusca = true;
            this._telaServico.EmBusca = true;

            this._controlador = new ControladorAtendimento(this);
        }
예제 #4
0
        public Boolean ReceberNoCaixa(Decimal ValorAReceber)
        {
            try
            {
                this._telaRecebimento = new TelaRecebimentoAtendimento(ValorAReceber);
                this._telaRecebimento.ShowDialog();

                return this._telaRecebimento.DialogResult.Equals(DialogResult.OK);
            }
            finally
            {
                this._telaRecebimento.Dispose();
                this._telaRecebimento = null;
            }
        }