Ejemplo n.º 1
0
 void FEstadosLoad(object sender, EventArgs e)
 {
     estados     = new cEstados();
     this.Cursor = Cursors.WaitCursor;
     estados.Carrega(dgvCadastro);
     this.Cursor = Cursors.Default;
 }
Ejemplo n.º 2
0
        void FrmCadParceirosLoad(object sender, EventArgs e)
        {
            parceiros = new cParceiros();
            if (bClientes)
            {
                where = "where IDT_CLIENTE = 'S'";
            }
            else
            if (bFornecedores)
            {
                where = "where IDT_FORNECEDOR = 'S'";
            }
            else
            if (bConsultores)
            {
                where = "where IDT_CONSULTOR = 'S'";
            }
            if (ReadOnly)
            {
                btnConfirma.Visible = false;
                btnCancela.Visible  = false;
                btnInclui.Visible   = false;
                btnExclui.Visible   = false;
                btnAltera.Visible   = false;
                //btnFecha.Text = "Seleciona";
            }
            this.Cursor = Cursors.WaitCursor;
            parceiros.Carrega(dgvCadastro, where);
            this.Cursor = Cursors.Default;
            cEstados estados = new cEstados();

            this.Cursor = Cursors.WaitCursor;
            estados.Carrega(cbxEstados);
            this.Cursor = Cursors.Default;
            this.Cursor = Cursors.WaitCursor;
            estados.Carrega(cbxEstadosEntrega);
            this.Cursor = Cursors.Default;
            this.Cursor = Cursors.WaitCursor;
            estados.Carrega(cbxEstadosCobranca);
            this.Cursor = Cursors.Default;
            SetaEdicaoLocal(false);
            result = false;

/*
 *                      if (dgvCadastro.Rows.Count == 0)
 *                      {
 *                              if (codigo.Trim().CompareTo("") != 0)
 *                              {
 *                                      HabilitaEdicao();
 *                                      edtDescricao.Text = "";
 *                                      acao = 'i';
 *                                      SetaEdicaoLocal(true);
 *                                      InicializaCampos();
 *                                      edtCodigo.Text = codigo;
 *                                      edtCodigo.Focus();
 *                              }
 *                      }
 */
        }
Ejemplo n.º 3
0
        void FrmCadFiliaisLoad(object sender, EventArgs e)
        {
            filiais     = new cFiliais();
            this.Cursor = Cursors.WaitCursor;
            filiais.Carrega(dgvCadastro);
            this.Cursor = Cursors.Default;
            cEstados estados = new cEstados();

            this.Cursor = Cursors.WaitCursor;
            estados.Carrega(cbxEstados);
            this.Cursor = Cursors.Default;
            SetaEdicaoLocal(false);
        }
Ejemplo n.º 4
0
        void FrmCadFuncionariosLoad(object sender, EventArgs e)
        {
            funcionarios = new cFuncionarios();
            this.Cursor  = Cursors.WaitCursor;
            funcionarios.Carrega(dgvCadastro);
            this.Cursor = Cursors.Default;
            cEstados estados = new cEstados();

            this.Cursor = Cursors.WaitCursor;
            estados.Carrega(cbxEstados);
            this.Cursor = Cursors.Default;
            cCargos cargos = new cCargos();

            this.Cursor = Cursors.WaitCursor;
            cargos.Carrega(cbxCargos);
            this.Cursor = Cursors.Default;
            SetaEdicaoLocal(false);
            result = false;
        }