protected void btnEditar_Click(object sender, EventArgs e) { OCKO_TblEmpleado emple = empleado.BuscarIdEmpleado(Convert.ToInt32(hdId.Value)); emple.EmpCedula = txetCargo.Text; empleado.ActualizarEmpleado(emple); Response.Redirect("RRHH_EmployeeList.aspx"); }
private void GetNombresAsp() { int proyectoId = int.Parse(Session["ProyectoIdAsignacion"].ToString()); int encargadoFuncional = int.Parse(Session["EncargadoFuncional"].ToString()); int encargadoTecnico = int.Parse(Session["EncargadoTecnico"].ToString()); empleadoTable = empleadoClass.BuscarIdEmpleado(encargadoFuncional); ArquitectaFinanciera = empleadoTable.EmpPrimerNombre + " " + empleadoTable.EmpSegundoApellidos; empleadoTable = empleadoClass.BuscarIdEmpleado(encargadoTecnico); ArquitectoSoftware = empleadoTable.EmpPrimerNombre + " " + empleadoTable.EmpSegundoApellidos; proyectoTable = proyectoClass.BuscarIdProyecto(proyectoId); ProyectoName = proyectoTable.ProNombre; }
private void LlenarDatos() { try { int EmpdId = Convert.ToInt32(Session["EmpId"]); hdId.Value = EmpdId.ToString(); empleadoTable = empleadoClass.BuscarIdEmpleado(EmpdId); usuarioTable = empleadoClass.BuscarIdUsuario(EmpdId); txtCedula.Text = empleadoTable.EmpCedula; txtPrimerNombre.Text = empleadoTable.EmpPrimerNombre; txtSegundoNombre.Text = empleadoTable.EmpSegundoNombre; txtPrimerApellido.Text = empleadoTable.EmpPrimerApellido; txtSegunfoApellido.Text = empleadoTable.EmpSegundoApellidos; txtFechaNacimiento.Text = empleadoTable.EmpFechaNacimiento.ToString("d"); if (empleadoTable.EmpGenero == "F") { radioFemenino.Checked = true; } else { radioMasculino.Checked = true; } txtEmail.Text = empleadoTable.EmpEmail; txtDireccion.Text = empleadoTable.EmpDireccion; txttelefono.Text = empleadoTable.EmpTelefono; empresatable = EmpresaClass.BuscarIdEmpresa(Convert.ToInt32(empleadoTable.CodEmpresa)); txtEmpresa.Text = empresatable.EmpNombre; //Seccion de Usuario Y contraseña txtUsuario.Text = usuarioTable.Usunombre; } catch (Exception ex) { Session["ERROR_JEFES"] = ex; Response.Redirect("Jefes_ERROR.aspx"); } }
protected void grvJefes_SelectedIndexChanged(object sender, EventArgs e) { pnlBotones.Visible = true; try { GridViewRow row = grvJefes.SelectedRow; id = row.Cells[0].Text; hdId.Value = id; OCKO_TblEmpleado or = empleado.BuscarIdEmpleado(Convert.ToInt32(hdId.Value)); txtCedula.Text = or.EmpCedula; txtPrimerNombre.Text = or.EmpPrimerNombre; txtSegundoNombre.Text = or.EmpSegundoNombre; txtPrimerApellido.Text = or.EmpPrimerApellido; txtSegundoApellido.Text = or.EmpSegundoApellidos; } catch { } }
// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { CargarDDL(); } if (Session["Username"] != null) { tblusuario = usu.OckoBbuscarPorNombre(Session["Username"].ToString()); empleadoTable = usu.BuscarIdEmpleado(tblusuario.UsuId); empresaTable = empresaClass.BuscarIdEmpresa(Convert.ToInt32(empleadoTable.CodEmpresa)); Empresa = empresaTable.EmpNombre; sesion = tblusuario.Usunombre.ToUpper(); sesionNombre = empleadoTable.EmpPrimerNombre.ToUpper() + " " + empleadoTable.EmpPrimerApellido.ToUpper(); } else { Response.Redirect("/Login1.aspx"); } }