예제 #1
0
        public FrmCadastroHorario(ModelHorario modelHorario)
        {
            InitializeComponent();
            ControllerTema controllerTema = new ControllerTema();

            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            if (modelHorario.acao == "Editar")
            {
                acao   = modelHorario.acao;
                codigo = modelHorario.Codigo;
                pnlCadastroHorario.Enabled = false;
                btnCancelar.Text           = "Fechar";
                btnCadastrar.Text          = "Editar";
                lblNovo.Text = acao;
                dtpHora.Text = modelHorario.Hora;
            }
            else if (modelHorario.acao == "Consultar")
            {
                acao   = modelHorario.acao;
                codigo = modelHorario.Codigo;
                pnlCadastroHorario.Enabled = false;
                btnCancelar.Text           = "Fechar";
                btnCadastrar.Visible       = false;
                lblNovo.Text = acao;
                dtpHora.Text = modelHorario.Hora;
            }
            else if (modelHorario.acao == "Cadastrar")
            {
                acao = modelHorario.acao;
            }
            Text = "Tec Clinic: " + modelHorario.acao + " Horário";
        }
예제 #2
0
        public FrmFinanceiroAgendamentoConsulta(ModelFinanceiro modelFinanceiro)
        {
            InitializeComponent();
            ControllerTema controllerTema = new ControllerTema();

            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            if (!string.IsNullOrWhiteSpace(modelFinanceiro.Nome))
            {
                txtNomeCliente.Text               = modelFinanceiro.Nome;
                txtEnderecoCliente.Text           = modelFinanceiro.Endereco;
                txtTelefoneCliente.Text           = modelFinanceiro.Telefone;
                txtDnCliente.Text                 = modelFinanceiro.Dn.Replace(" 00:00:00", "");;
                txtCadastradoPorAgendamento.Text  = modelFinanceiro.CadastradoPor;
                txtDataAgendamento.Text           = modelFinanceiro.DataAgendamento.Replace(" 00:00:00", "");;
                txtHoraAgendamento.Text           = modelFinanceiro.HoraAgendamento;
                txtNomeServico.Text               = modelFinanceiro.Servico;
                txtValorServico.Text              = modelFinanceiro.Valor.ToString();
                txtRecebidoPorPagamento.Text      = modelFinanceiro.RecebidoPor;
                txtDataRecebimentoPagamento.Text  = modelFinanceiro.DataRecebimento.Replace(" 00:00:00", "");
                txtOpcaoSelecionadaPagamento.Text = modelFinanceiro.OpcaoPagamento;
                txtDinheiroPagamento.Text         = modelFinanceiro.Dinheiro.ToString();
                txtCartaoPagamento.Text           = modelFinanceiro.Cartao.ToString();
                txtTicketPagamento.Text           = modelFinanceiro.Ticket.ToString();
            }
        }
예제 #3
0
        public FrmAgendamentoReceber(ModelAgendamentos modelAgendamentos)
        {
            InitializeComponent();
            ControllerTema controllerTema = new ControllerTema();

            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            if (!string.IsNullOrWhiteSpace(modelAgendamentos.Nome))
            {
                codigo                    = modelAgendamentos.Codigo;
                valorServico              = modelAgendamentos.Valor;
                txtNome.Text              = modelAgendamentos.Nome;
                txtEndereco.Text          = modelAgendamentos.Endereco;
                txtTelefone.Text          = modelAgendamentos.Telefone;
                txtDn.Text                = modelAgendamentos.Dn;
                txtNomeServico.Text       = modelAgendamentos.Servico;
                txtClinico.Text           = modelAgendamentos.Clinico;
                txtValorServico.Text      = modelAgendamentos.Valor.ToString();
                txtDinheiroPagamento.Text = modelAgendamentos.Dinheiro.ToString();
                txtCartaoPagamento.Text   = modelAgendamentos.Cartao.ToString();
                txtTicketPagamento.Text   = modelAgendamentos.Ticket.ToString();
                valorRestante             = valorServico - (modelAgendamentos.Dinheiro + modelAgendamentos.Cartao + modelAgendamentos.Ticket);
                txtValorRestante.Text     = valorRestante.ToString();
            }
        }
예제 #4
0
        public FrmAgendamentoReceberTicket()
        {
            InitializeComponent();
            ControllerTema controllerTema = new ControllerTema();

            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
        }
예제 #5
0
        public FrmAgendamentoReceberCartao(decimal ValorTotal)
        {
            InitializeComponent();
            ControllerTema controllerTema = new ControllerTema();

            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            valorTotal = ValorTotal;
        }
예제 #6
0
        public FrmCadastroServico(ModelServicos modelServicos)
        {
            InitializeComponent();
            ControllerTema controllerTema = new ControllerTema();

            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            if (modelServicos.acao == "Editar")
            {
                codigo             = modelServicos.Codigo;
                acao               = modelServicos.acao;
                pnlServico.Enabled = false;
                btnCadastrar.Text  = "Editar";
                btnCancelar.Text   = "Fechar";
                txtNome.Text       = modelServicos.Nome;
                txtTipo.Text       = modelServicos.Tipo;
                txtValor.Text      = modelServicos.Valor.ToString();
                rtbDescricao.Text  = modelServicos.Descricao;
            }
            else if (modelServicos.acao == "Consultar")
            {
                codigo               = modelServicos.Codigo;
                acao                 = modelServicos.acao;
                pnlServico.Enabled   = false;
                btnCadastrar.Visible = false;
                btnCancelar.Text     = "Fechar";
                txtNome.Text         = modelServicos.Nome;
                txtTipo.Text         = modelServicos.Tipo;
                txtValor.Text        = modelServicos.Valor.ToString();
                rtbDescricao.Text    = modelServicos.Descricao;
            }
            else if (modelServicos.acao == "Cadastrar")
            {
                acao = modelServicos.acao;
            }
            Text = "Tec Clinic: " + modelServicos.acao + " Serviço";
        }