예제 #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 FrmEntradaProduto()
 {
     InitializeComponent();
     if (controllerTema.CarregarEnderecoImagem() != null)
     {
         pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
     }
 }
예제 #5
0
 public FrmCaixaDinheiro(string ValorVenda)
 {
     InitializeComponent();
     valorTotal = Convert.ToDecimal(ValorVenda.Replace("R$", ""));
     if (controllerTema.CarregarEnderecoImagem() != null)
     {
         pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
     }
 }
예제 #6
0
 public FrmCaixaTicket(decimal ValorVenda)
 {
     InitializeComponent();
     valorVenda = ValorVenda;
     if (controllerTema.CarregarEnderecoImagem() != null)
     {
         pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
     }
 }
예제 #7
0
 public FrmSaidaValor()
 {
     InitializeComponent();
     if (controllerTema.CarregarEnderecoImagem() != null)
     {
         pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
     }
     Carregar();
 }
예제 #8
0
        public FrmCadastroLogin(ModelLogin modelLogin)
        {
            InitializeComponent();
            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }

            if (!string.IsNullOrWhiteSpace(modelLogin.Codigo))
            {
                btnCadastrar.Text = "Editar";
                Text = "Editar Login";
                lblCadastrar.Text = "Editar";
                pnlLogin.Enabled  = false;
                Codigo            = modelLogin.Codigo;
                txtID.Text        = modelLogin.ID;
                txtSenha.Text     = modelLogin.Senha;
                txtID.Enabled     = false;
                if (modelLogin.Nivel == "Administrador")
                {
                    rbAdministrador.Checked = true;
                }
                if (modelLogin.Nivel == "Secretaria")
                {
                    rbSecretaria.Checked = true;
                }
                if (modelLogin.Nivel == "Clínico")
                {
                    rbClinico.Checked = true;
                }
            }
            if (modelLogin.Consultar == true)
            {
                Text = "Consultar Login";
                lblCadastrar.Text         = "Consultar";
                btnCadastrar.Visible      = false;
                btnCancelar.Text          = "Fechar";
                txtConfirmarSenha.Visible = false;
                lblConfirmarSenha.Visible = false;
                pnlLogin.Enabled          = false;
                txtID.Text    = modelLogin.ID;
                txtSenha.Text = modelLogin.Senha;
                if (modelLogin.Nivel == "Administrador")
                {
                    rbAdministrador.Checked = true;
                }
                if (modelLogin.Nivel == "Secretaria")
                {
                    rbSecretaria.Checked = true;
                }
                if (modelLogin.Nivel == "Clínico")
                {
                    rbClinico.Checked = true;
                }
            }
        }
예제 #9
0
        public FrmCadastroAgendamento(ModelAgendamentos modelAgendamentos)
        {
            InitializeComponent();

            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            if (modelAgendamentos.acao == "Editar")
            {
                lblNovo.Text     = modelAgendamentos.acao;
                btnCancelar.Text = "Fechar";
                btnSalvar.Text   = "Editar";
                grbInformacoesDoCliente.Enabled = false;
                grbServico.Enabled = false;
                gpbAgendar.Enabled = false;
                acao                    = modelAgendamentos.acao;
                codigo                  = modelAgendamentos.Codigo;
                txtNome.Text            = modelAgendamentos.Nome;
                txtEndereco.Text        = modelAgendamentos.Endereco;
                txtTelefone.Text        = modelAgendamentos.Telefone;
                txtDn.Text              = modelAgendamentos.Dn;
                dtpDataAgendamento.Text = modelAgendamentos.DataAgendamento;
                txtNomeServico.Text     = modelAgendamentos.Servico;
                txtClinico.Text         = modelAgendamentos.Clinico;
                txtValorServico.Text    = modelAgendamentos.Valor.ToString();
            }
            else if (modelAgendamentos.acao == "Finalizar")
            {
                lblCampoObrigatorio.Visible = false;
                gpbObs.Visible     = true;
                btnSalvar.Text     = "Finalizar C.";
                valorServico       = modelAgendamentos.Valor;
                gpbAgendar.Visible = false;
                lblNovo.Text       = modelAgendamentos.acao;
                btnCancelar.Text   = "Fechar";
                grbInformacoesDoCliente.Enabled = false;
                grbServico.Enabled = false;
                acao                    = modelAgendamentos.acao;
                codigo                  = modelAgendamentos.Codigo;
                txtNome.Text            = modelAgendamentos.Nome;
                txtEndereco.Text        = modelAgendamentos.Endereco;
                txtTelefone.Text        = modelAgendamentos.Telefone;
                txtDn.Text              = modelAgendamentos.Dn;
                dtpDataAgendamento.Text = modelAgendamentos.DataAgendamento;
                txtNomeServico.Text     = modelAgendamentos.Servico;
                txtClinico.Text         = modelAgendamentos.Clinico;
                txtValorServico.Text    = modelAgendamentos.Valor.ToString();
            }
            else if (modelAgendamentos.acao == "Novo")
            {
                lblNovo.Text = modelAgendamentos.acao;
                acao         = modelAgendamentos.acao;
            }
            Text = "Tec Clinic: " + modelAgendamentos.acao + " Agendamento";
        }
예제 #10
0
        public FrmAgendamentoReceberTicket()
        {
            InitializeComponent();
            ControllerTema controllerTema = new ControllerTema();

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

            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            valorTotal = ValorTotal;
        }
예제 #12
0
 public FrmCadastrarEmpresa(ModelEmpresa modelEmpresa)
 {
     InitializeComponent();
     if (controllerTema.CarregarEnderecoImagem() != null)
     {
         pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
     }
     if (modelEmpresa.Editar)
     {
         codigo = modelEmpresa.Codigo.ToString();
         txtNomeEmpresa.Text         = modelEmpresa.NomeEmpresa;
         txtCNPJ.Text                = modelEmpresa.CNPJ;
         txtDtCadastro.Text          = modelEmpresa.DataCadastro;
         txtTelefone.Text            = modelEmpresa.Telefone;
         txtEmail.Text               = modelEmpresa.Email;
         txtEndereco.Text            = modelEmpresa.Endereco;
         txtNumero.Text              = modelEmpresa.Numero;
         txtComplemento.Text         = modelEmpresa.Complemento;
         txtBairro.Text              = modelEmpresa.Bairro;
         txtCEP.Text                 = modelEmpresa.CEP;
         pnlCadastrarEmpresa.Enabled = false;
         btnSalvar.Text              = "Editar";
         btnCancelar.Text            = "Fechar";
         Width             = 396;
         Height            = 509;
         lblCadastrar.Text = "Editar";
     }
     else if (modelEmpresa.Cadasrar)
     {
         Width              = 396;
         Height             = 509;
         txtDtCadastro.Text = DateTime.Now.ToString();
     }
     else if (modelEmpresa.Consultar)
     {
         txtNomeEmpresa.Text           = modelEmpresa.NomeEmpresa;
         txtCNPJ.Text                  = modelEmpresa.CNPJ;
         txtDtCadastro.Text            = modelEmpresa.DataCadastro;
         txtTelefone.Text              = modelEmpresa.Telefone;
         txtEmail.Text                 = modelEmpresa.Email;
         txtEndereco.Text              = modelEmpresa.Endereco;
         txtNumero.Text                = modelEmpresa.Numero;
         txtComplemento.Text           = modelEmpresa.Complemento;
         txtBairro.Text                = modelEmpresa.Bairro;
         txtCEP.Text                   = modelEmpresa.CEP;
         pnlCadastrarEmpresa.Enabled   = false;
         pnlConsultar.Visible          = true;
         btnSalvar.Visible             = false;
         btnCancelar.Text              = "Fechar";
         cbxFiltroPedido.SelectedIndex = 0;
         lblCadastrar.Text             = "Consultar";
     }
 }
예제 #13
0
        public FrmCadastro(ModelCadastro modelCadastro)
        {
            InitializeComponent();
            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            Height             = 638;
            Width              = 405;
            txtDtCadastro.Text = DateTime.Now.ToString();
            if (!string.IsNullOrWhiteSpace(modelCadastro.Codigo))
            {
                Text                = "Editar Cliente";
                btnSalvar.Text      = "Editar";
                pnlCadastro.Enabled = false;
                lblCadastrar.Text   = "Editar";
                codigo              = modelCadastro.Codigo;
                txtRG.Text          = modelCadastro.RG;
                txtCPF.Text         = modelCadastro.CPF;
                txtNome.Text        = modelCadastro.Nome;
                txtDtCadastro.Text  = modelCadastro.dtCadastro;
                txtEndereco.Text    = modelCadastro.Endereco;
                txtTelefone.Text    = modelCadastro.Telefone;
                txtEmail.Text       = modelCadastro.Email;
            }
            if (modelCadastro.consulta == true)
            {
                cbxFiltroPedido.SelectedIndex          = 0;
                cbxFiltroPedidoCancelado.SelectedIndex = 0;
                Height = 638;
                Width  = 1190;
                pnlConsultar.Visible = true;
                Text                = "Consultar Cliente";
                btnCancelar.Text    = "Fechar";
                btnSalvar.Visible   = false;
                pnlCadastro.Enabled = false;
                lblCadastrar.Text   = "Consultar";
                codigo              = modelCadastro.Codigo;
                txtRG.Text          = modelCadastro.RG;
                txtCPF.Text         = modelCadastro.CPF;
                txtNome.Text        = modelCadastro.Nome;
                txtDtCadastro.Text  = modelCadastro.dtCadastro;
                txtEndereco.Text    = modelCadastro.Endereco;
                txtTelefone.Text    = modelCadastro.Telefone;
                txtEmail.Text       = modelCadastro.Email;

                lblExibidosTotal.Text           = "Exibidos total: " + dgvPedidoItens.Rows.Count;
                lblExibidosTotalCancelados.Text = "Exibidos total: " + dgvPedidoItensCancelados.Rows.Count;
            }
        }
예제 #14
0
 public FrmCadastrarProduto(ModelCadastroProduto modelCadastroProduto)
 {
     InitializeComponent();
     if (controllerTema.CarregarEnderecoImagem() != null)
     {
         pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
     }
     if (!string.IsNullOrWhiteSpace(modelCadastroProduto.Codigo))
     {
         Text                       = "Editar Produto";
         btnSalvar.Text             = "Editar";
         pnlCadastroProduto.Enabled = false;
         lblCadastrar.Text          = "Editar";
         codigo                     = modelCadastroProduto.Codigo;
         txtCodigoBarras.Text       = modelCadastroProduto.CodigoBarras;
         txtNomeProduto.Text        = modelCadastroProduto.NomeProduto;
         txtCategoria.Text          = modelCadastroProduto.Categoria;
         txtFabricante.Text         = modelCadastroProduto.Fabricante;
         txtQuantidade.Value        = Convert.ToInt32(modelCadastroProduto.Quantidade);
         txtValorProduto.Text       = modelCadastroProduto.ValorProduto;
         txtPlataforma.Text         = modelCadastroProduto.Plataforma;
         txtGarantia.Text           = modelCadastroProduto.Garantia;
     }
     if (modelCadastroProduto.Consultar == true)
     {
         Text                       = "Consultar Produto";
         btnCancelar.Text           = "Fechar";
         btnSalvar.Visible          = false;
         lblCadastrar.Text          = "Consultar";
         pnlCadastroProduto.Enabled = false;
         txtCodigoBarras.Text       = modelCadastroProduto.CodigoBarras;
         txtNomeProduto.Text        = modelCadastroProduto.NomeProduto;
         txtCategoria.Text          = modelCadastroProduto.Categoria;
         txtFabricante.Text         = modelCadastroProduto.Fabricante;
         txtQuantidade.Value        = Convert.ToInt32(modelCadastroProduto.Quantidade);
         txtValorProduto.Text       = modelCadastroProduto.ValorProduto;
         txtPlataforma.Text         = modelCadastroProduto.Plataforma;
         txtGarantia.Text           = modelCadastroProduto.Garantia;
     }
 }
예제 #15
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";
        }
예제 #16
0
        public FrmCadastroLogin(ModelLogin modelLogin)
        {
            InitializeComponent();
            if (controllerTema.CarregarEnderecoImagem() != null)
            {
                pictureBox1.BackgroundImage = Image.FromFile(controllerTema.CarregarEnderecoImagem());
            }
            loginsCadastrados         = controllerLogin.VerificarLoginsCadastrados();
            lblLoginsCadastrados.Text = "Cadastrados: " + loginsCadastrados.ToString();
            loginsContratados         = controllerLogin.VerificarLoginsContratados();
            lblLoginsContratados.Text = "Contratados: " + loginsContratados.ToString();

            if (!string.IsNullOrWhiteSpace(modelLogin.Codigo))
            {
                btnCadastrar.Text = "Editar";
                Text = "Editar Login";
                lblCadastrar.Text = "Editar";
                pnlLogin.Enabled  = false;
                Codigo            = modelLogin.Codigo;
                txtID.Text        = modelLogin.ID;
                txtSenha.Text     = modelLogin.Senha;
                txtID.Enabled     = false;
                if (modelLogin.Nivel == "Administrador")
                {
                    rbAdministrador.Checked = true;
                }
                if (modelLogin.Nivel == "Vendedor")
                {
                    rbVendedor.Checked = true;
                }
                if (modelLogin.Nivel == "Estoquista")
                {
                    rbEstoquista.Checked = true;
                }
                if (modelLogin.Nivel == "Supervisor")
                {
                    rbSupervisor.Checked = true;
                }
            }
            if (modelLogin.Consultar == true)
            {
                Text = "Consultar Login";
                lblCadastrar.Text         = "Consultar";
                btnCadastrar.Visible      = false;
                btnCancelar.Text          = "Fechar";
                txtConfirmarSenha.Visible = false;
                lblConfirmarSenha.Visible = false;
                pnlLogin.Enabled          = false;
                txtID.Text    = modelLogin.ID;
                txtSenha.Text = modelLogin.Senha;
                if (modelLogin.Nivel == "Administrador")
                {
                    rbAdministrador.Checked = true;
                }
                if (modelLogin.Nivel == "Vendedor")
                {
                    rbVendedor.Checked = true;
                }
                if (modelLogin.Nivel == "Estoquista")
                {
                    rbEstoquista.Checked = true;
                }
                if (modelLogin.Nivel == "Supervisor")
                {
                    rbSupervisor.Checked = true;
                }
            }
        }