void FEstadosLoad(object sender, EventArgs e) { estados = new cEstados(); this.Cursor = Cursors.WaitCursor; estados.Carrega(dgvCadastro); this.Cursor = Cursors.Default; }
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(); * } * } */ }
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); }
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; }