Ejemplo n.º 1
0
 public void inicializarDatos()
 {
     for (int i = 0; i < CheckListBEmpresas.Items.Count; i++)
     {
         CheckListBEmpresas.SetItemChecked(i, false);
     }
     txtConsultarUsuario.Text       = "";
     TxtConfirmarContraUsuario.Text = "";
     txtContraseñaUsuario.Text      = "";
     txtUsuario.Text = "";
     if (cbPersonaUsuario.Items.Count > 0)
     {
         cbPersonaUsuario.SelectedIndex = 0;
     }
     objConsul.BoolLlenarCheckListBox(CheckListBEmpresas, "Select IDEMPRESA as ID, NOMBRE as 'Texto' from TbEmpresa;");
     objConsul.BoolLlenarComboBox(cbPersonaUsuario, "Select IDEMPLEADO as ID,(E.APELLIDOS +' '+ E.NOMBRES) as Texto from TbEmpleado E  WHERE (E.NOMBRES != 'ADMINISTRADOR');");
     objConsul.BoolLlenarComboBox(cbTipoUsuario, "Select IDTIPOUSUARIO as ID,TIPO as Texto from TbTipousuario;");
     ckbFacturaUsuario.Checked       = false;
     ckMostrarContra.Checked         = false;
     cbPersonaUsuario.DropDownHeight = cbPersonaUsuario.ItemHeight = 150;
     cbTipoUsuario.DropDownHeight    = cbTipoUsuario.ItemHeight = 150;
     cargarDatos("1");
 }