Beispiel #1
0
        public void NuevoIngresoEmpleado()
        {
            try
            {
                validarEstadoEmpleado(0);
                txtNoEmpleado.Text      = "0";
                txtNombres.Text         = txtApellidos.Text = txtDireccion.Text = string.Empty;
                rblGenero.SelectedValue = "1";
                txtFechaNacimiento.Text = string.Empty;
                txtCui.Text             = txtNit.Text = txtTel.Text = txtEmail.Text = string.Empty;

                ddlUnidades.SelectedIndex  = 0;
                ddlPuestos.SelectedIndex   = 0;
                ddlRenglones.SelectedIndex = 0;
                ddlEstado.SelectedIndex    = 0;
                ddlEstado.Enabled          = false;

                eEmpleadosLN = new EmpleadosLN();
                eEmpleadosLN.DdlUnidades(ddlUnidades);
                eEmpleadosLN.DdlPuestos(ddlPuestos);
            }
            catch (Exception ex)
            {
                throw new Exception("NuevoPedidoEnc(). " + ex.Message);
            }
        }