Exemple #1
0
    protected void VerChat(object sender, ImageClickEventArgs e)
    {
        ImageButton btnEliminar = ((ImageButton)sender);
        GridViewRow row         = btnEliminar.NamingContainer as GridViewRow;
        string      pk          = GridView1.DataKeys[row.RowIndex].Values[0].ToString();



        ModalRegistro.Show();

        BL_RRHH_DESEMPENIO_OBJETIVOS_MSG obj = new BL_RRHH_DESEMPENIO_OBJETIVOS_MSG();
        DataTable dtResultado = new DataTable();

        dtResultado             = obj.uspSEL_RRHH_DESEMPENIO_OBJETIVOS_MSG(Convert.ToInt32(pk));
        lblCodigo.Text          = pk;
        DataListChat.DataSource = dtResultado;
        DataListChat.DataBind();
        //dtResultado = obj.uspSEL_RRHH_DESEMPENIO_OBJETIVOS_MSG_POR_ID(Convert.ToInt32(pk));
        //if (dtResultado.Rows.Count > 0)
        //{
        //    //txtChat.Text = dtResultado.Rows[0]["MENSAJE"].ToString();
        //    lblCodigo.Text = pk;
        //}
        //else
        //{
        //    lblCodigo.Text = string.Empty;
        //    //txtChat.Text = string.Empty;
        //    txtRespuesta.Text = string.Empty;
        //}
    }
    protected void btnBuscarModal_Click(object sender, EventArgs e)
    {
        BL_PERSONAL obj         = new BL_PERSONAL();
        DataTable   dtResultado = new DataTable();

        dtResultado = obj.buscar_PersonalDisponible_Cargo_MOI(Convert.ToInt32(ddlCargosB.SelectedValue), txtNombre.Text);
        string cleanMessage = string.Empty;

        if (dtResultado.Rows.Count == 0)
        {
            //ModalRegistro.Dispose();
            //

            ModalRegistro.Show();
            gridPersonalDisponible.DataSource = null;
            gridPersonalDisponible.DataBind();
            btnCerrar.Visible = true;

            //btnAsignar.Visible = false;
            //btnNo.Visible = false;
            //btnCerrar.Visible = true;
        }
        else
        {
            ModalRegistro.Show();
            gridPersonalDisponible.DataSource = dtResultado;
            gridPersonalDisponible.DataBind();
            btnCerrar.Visible = true;
        }
    }
    protected void ProcesarReconocimiento(object sender, ImageClickEventArgs e)
    {
        ImageButton btnProcesar = ((ImageButton)sender);
        GridViewRow row         = btnProcesar.NamingContainer as GridViewRow;
        string      pk          = GridView1.DataKeys[row.RowIndex].Values[0].ToString();

        RadioButtonList rb = (RadioButtonList)row.FindControl("rdoOpcion");



        //string z= pk + " - " + rb.SelectedValue;
        BL_RRHH_ESTRELLA_NOMINACION_OBRA obj = new BL_RRHH_ESTRELLA_NOMINACION_OBRA();
        DataTable dt = new DataTable();

        if (rb.SelectedValue == "R")
        {
            ModalRegistro.Show();
            lblCodigo.Text = pk.ToString();
        }
        else if (rb.SelectedValue == "A")
        {
            dt = obj.uspSEL_RRHH_NOMINACION_PROCESAR_OBRA(Convert.ToInt32(pk), rb.SelectedValue, 0, "");

            string cleanMessage = "Registro procesado";
            ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);

            Listar();
        }
    }
Exemple #4
0
    protected void Procesar(object sender, ImageClickEventArgs e)
    {
        ImageButton btnProcesar = ((ImageButton)sender);
        GridViewRow row         = btnProcesar.NamingContainer as GridViewRow;
        string      pk          = GridView1.DataKeys[row.RowIndex].Values[0].ToString();

        RadioButtonList rb = (RadioButtonList)row.FindControl("rdoOpcion");

        //string z= pk + " - " + rb.SelectedValue;
        BL_TBSOLICITUD_PERMISOS obj = new BL_TBSOLICITUD_PERMISOS();
        DataTable dt = new DataTable();

        lblrpta.Text = rb.SelectedValue;
        if (rb.SelectedValue == "R")
        {
            ModalRegistro.Show();
            lblCodigo.Text = pk.ToString();
            lblmsg.Text    = "Observación de rechazo";
        }
        else if (rb.SelectedValue == "A")
        {
            //dt = obj.SP_TBSOLICITUD_PERMISOS_PROCESAR_DATOS(Convert.ToInt32(pk), rb.SelectedValue, "", Session["IDE_USUARIO"].ToString());

            //string cleanMessage = "Registro procesado";
            //ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);

            //Listar();
            lblmsg.Text = "Comentarios de aprobación";

            ModalRegistro.Show();
            lblCodigo.Text = pk.ToString();
        }
    }
    protected void Procesar_R(object sender, EventArgs e)
    {
        BL_SOLPED obj         = new BL_SOLPED();
        DataTable dtResultado = new DataTable();

        dtResultado = obj.uspSEL_RESPONSABLE_PROCESOS(Session["IDE_USUARIO"].ToString(), "RESPONSABLE ANDAMIOS", BL_Session.ID_EMPRESA.ToString());
        if (dtResultado.Rows.Count > 0)
        {
            LinkButton LinkButtonR = ((LinkButton)sender);

            GridViewRow grdrow       = (GridViewRow)((LinkButton)sender).NamingContainer;
            int         IDE_ANDAMIOS = (int)GridView1.DataKeys[grdrow.RowIndex].Values["IDE_ANDAMIOS"];
            lblCodigo.Text = GridView1.DataKeys[grdrow.RowIndex].Values["IDE_ANDAMIOS"].ToString();
            lblrpta.Text   = LinkButtonR.Text;


            ModalRegistro.Show();
            btnGrabar.Visible  = true;// para rechazo
            txtrechazo.Visible = true;
            lblMsg.Text        = "Comentarios de rechazo";

            // ocultar
            btnPrioridad.Visible = false;
            ddlPrioridad.Visible = false;
        }
        else
        {
            string cleanMessage = "No tiene permisos de atención";
            ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
        }
    }
    protected void btnAgregar_Click(object sender, EventArgs e)
    {
        DataTable   dtResultado   = new DataTable();
        int         requerimiento = Convert.ToInt32(Session["ID_DETALLE_REQUERIMIENTO_PERSONAL"]);
        BL_PERSONAL obj           = new BL_PERSONAL();


        //dtResultado = obj.buscar_PersonalDisponible_MOI(requerimiento);
        dtResultado = obj.buscar_PersonalDisponible_Cargo_MOI(Convert.ToInt32(ddlCargosB.SelectedValue), txtNombre.Text);


        if (dtResultado.Rows.Count > 0)
        {
            ModalRegistro.Show();
            btnCerrar.Visible = true;
            gridPersonalDisponible.DataSource = dtResultado;
            gridPersonalDisponible.DataBind();
            cargarDatosMOI();
        }
        //ModalRegistro.Show();
        //btnCerrar.Visible = true;
        ////PanelDatos.Visible = true;
        //ImageButton btnSeleccionar = ((ImageButton)sender);
        //////lblIde_MOD.Text = btnSeleccionar.CommandArgument;

        //Session["DES_DNI"] = btnSeleccionar.CommandArgument;
        //string script = "window.open('frmMOD.aspx', '')";
        ////ScriptManager.RegisterStartupScript(this, typeof(Page), "popup", script, true);

        //ScriptManager.RegisterStartupScript(this, typeof(Page), "PopupWindow", "<script language='javascript'>window.open('frmMOD.aspx','Title','height=1600,width=1800,left=10, top=10,scrollbars, resizable=no, location=center, toolbar=0')</script>", false);

        ////Response.Redirect("frmMOD.aspx");//?id=123
    }
    protected void Actualizar_Proyecto(object sender, ImageClickEventArgs e)
    {
        BL_RO     obj         = new BL_RO();
        DataTable dtResultado = new DataTable();

        ImageButton btnEditar = ((ImageButton)sender);

        ModalRegistro.Show();

        dtResultado = obj.ListarProyecto_Individual_RO(btnEditar.CommandArgument);
        if (dtResultado.Rows.Count > 0)
        {
            txtCodigo.Text      = dtResultado.Rows[0]["IDE_PROYECTO"].ToString();
            txtdescripcion.Text = dtResultado.Rows[0]["DES_NOMBRE"].ToString();
            txtContrato.Text    = dtResultado.Rows[0]["DES_TIPO_CONTRATO"].ToString();
            string moneda = dtResultado.Rows[0]["DES_MONEDA"].ToString();
            ddlMoneda.SelectedValue = moneda;


            txtCliente.Text          = dtResultado.Rows[0]["DES_CLIENTE"].ToString();
            txtInicio.Text           = dtResultado.Rows[0]["FECHA_INICIO"].ToString();
            txtTermino.Text          = dtResultado.Rows[0]["FECHA_TERMINO"].ToString();
            txtMonto.Text            = dtResultado.Rows[0]["DEC_MONTO"].ToString();
            txtMontoContractual.Text = dtResultado.Rows[0]["DEC_MONTO_CONTRACTUAL"].ToString();
            txtProgramado.Text       = dtResultado.Rows[0]["FECHA_CONTRALTUAL"].ToString();
            txtTipoCambio.Text       = dtResultado.Rows[0]["DEC_TIPO_CAMBIO_ACTUAL"].ToString();
            string estado = dtResultado.Rows[0]["FLG_SITUACION"].ToString();
            ddlEstado.SelectedValue = estado;
        }
        else
        {
            Limpiar();
        }
    }
    protected void GvCities_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView gv = (GridView)sender;

        gv.PageIndex = e.NewPageIndex;
        //bindCitiesGrid();
        BL_PERSONAL obj         = new BL_PERSONAL();
        DataTable   dtResultado = new DataTable();

        //dtResultado = obj.buscar_PersonalDisponible_MOI(Convert.ToInt32(Session["ID_DETALLE_REQUERIMIENTO_PERSONAL"]));
        dtResultado = obj.buscar_PersonalDisponible_Cargo_MOI(Convert.ToInt32(ddlCargosB.SelectedValue), txtNombre.Text);

        if (dtResultado.Rows.Count > 0)
        {
            //ModalRegistro.Dispose();
            ModalRegistro.Show();

            //btnAsignar.Visible = false;
            //btnNo.Visible = false;
            btnCerrar.Visible = true;
        }
        else
        {
        }

        gridPersonalDisponible.DataSource = dtResultado;
        gridPersonalDisponible.DataBind();
    }
Exemple #9
0
    protected void VerdetallePrecio(object sender, EventArgs e)

    {
        ImageButton btnSelect = ((ImageButton)sender);

        GridViewRow grdrow = (GridViewRow)((ImageButton)sender).NamingContainer;


        string _Requ_Numero      = GridView2.DataKeys[grdrow.RowIndex].Values["Requ_Numero"].ToString();
        string _Reqd_CodLinea    = GridView2.DataKeys[grdrow.RowIndex].Values["Reqd_CodLinea"].ToString();
        string _Reqs_Correlativo = GridView2.DataKeys[grdrow.RowIndex].Values["Reqs_Correlativo"].ToString();


        BL_TBL_RequerimientoSubDetalle obj = new BL_TBL_RequerimientoSubDetalle();
        DataTable dtResultado = new DataTable();


        dtResultado = obj.uspSEL_TBL_REQUERIMIENTOSUBDETALLE_PDC_HISTORIAL(_Requ_Numero, _Reqd_CodLinea, _Reqs_Correlativo);
        if (dtResultado.Rows.Count > 0)
        {
            GridView3.DataSource = dtResultado;
            GridView3.DataBind();
        }
        else
        {
            GridView3.DataSource = dtResultado;
            GridView3.DataBind();
        }
        ModalRegistro.Show();
    }
Exemple #10
0
    protected void Procesar_R(object sender, EventArgs e)
    {
        LinkButton LinkButtonR = ((LinkButton)sender);

        GridViewRow grdrow = (GridViewRow)((LinkButton)sender).NamingContainer;
        //int IDE_FICHA = (int)GridView1.DataKeys[grdrow.RowIndex].Values["IDE_FICHA"];
        int IDE_SOLPED = (int)GridView1.DataKeys[grdrow.RowIndex].Values["IDE_SOLPED"];

        lblCodigo.Text = GridView1.DataKeys[grdrow.RowIndex].Values["IDE_SOLPED"].ToString();
        lblrpta.Text   = LinkButtonR.Text;

        ModalRegistro.Show();

        rdoTipo.Visible = false;
        //Button0.Enabled = false;
        //Button1.Enabled = false;
        //Button2.Enabled = false;
        //Button3.Enabled = false;
        //Button4.Enabled = false;
        //Button5.Enabled = false;
        //Button6.Enabled = false;
        //Button7.Enabled = false;
        //Button8.Enabled = false;
        //Button9.Enabled = false;

        lblMensaje.Visible  = false;
        txtSolped.Visible   = false;
        btnGrabar.Visible   = true;// para rechazo
        btnGuardar.Visible  = false;
        txtSustento.Visible = false;
        txtrechazo.Visible  = true;
        lblobservacion.Text = "Comentarios de rechazo";
    }
    protected void Seleccionar_REQUERIMIENTO(object sender, ImageClickEventArgs e)
    {
        string      cleanMessage = string.Empty;
        ImageButton btnSeleccionarRequerimiento = ((ImageButton)sender);
        int         ID_REQUERIMIENTO_PERSONAL   = Convert.ToInt32(btnSeleccionarRequerimiento.CommandArgument);

        Session["ID_DETALLE_REQUERIMIENTO_PERSONAL"] = btnSeleccionarRequerimiento.CommandArgument;
        BL_PERSONAL obj          = new BL_PERSONAL();
        DataTable   dtResultado  = new DataTable();
        DataTable   dtIResultado = new DataTable();

        dtIResultado = obj.buscar_CantidadRequerimientos_MOD(ID_REQUERIMIENTO_PERSONAL);

        if (dtIResultado.Rows[0]["TOTAL"].ToString().Equals("0"))
        {
            dtResultado = obj.buscar_PersonalDisponible_MOD(ID_REQUERIMIENTO_PERSONAL);

            cargos();
            especialidad();

            ModalRegistro.Show();
            btnCerrar.Visible = true;

            gridPersonalDisponible.DataSource = dtResultado;
            gridPersonalDisponible.DataBind();
        }
        else
        {
            Response.Redirect("~/RRHH/frmRequerimientoDetalleMOD.aspx");
        }
    }
Exemple #12
0
 protected void btnYes_Click(object sender, EventArgs e)
 {
     RegistrarRO();
     if (CheckPopup.Checked)
     {
         ModalRegistro.Show();
     }
 }
Exemple #13
0
 protected void ddlIndicador_SelectedIndexChanged(object sender, EventArgs e)
 {
     ModalRegistro.Show();
     Listar_IndicadoresPEP();
     txtValor.Focus();
     CheckDetalle.Checked = false;
     ddlDetalle.Visible   = false;
     lblEstado.Text       = "0";
     Monto_RO();
 }
Exemple #14
0
 protected void btnAgregar_Click(object sender, EventArgs e)
 {
     ModalRegistro.Show();
     lblMsg.Text        = string.Empty;
     CheckPopup.Checked = false;
     //txtValor.Text = string.Empty;
     CheckDetalle.Checked = false;
     lblEstado.Text       = "0";
     lblProyecto.Text     = ddlProyecto.SelectedItem.ToString();
     Monto_RO();
 }
    protected void ProcesarReconocimiento(object sender, ImageClickEventArgs e)
    {
        ImageButton btnProcesar = ((ImageButton)sender);
        GridViewRow row         = btnProcesar.NamingContainer as GridViewRow;
        string      pk          = GridView1.DataKeys[row.RowIndex].Values[0].ToString();

        RadioButtonList rb = (RadioButtonList)row.FindControl("rdoOpcion");

        lblCodigo.Text      = string.Empty;
        lblvalor.Text       = string.Empty;
        txtComentarios.Text = string.Empty;
        txtCorreo.Text      = string.Empty;

        if (rb.SelectedValue == "A3")
        {
            BL_RRHH_SOL_FORMATIVO obj = new BL_RRHH_SOL_FORMATIVO();
            DataTable             dt  = new DataTable();
            dt = obj.uspSEL_RRHH_SOL_FORMATIVO_PROCESAR(Convert.ToInt32(pk), rb.SelectedValue);
            string cleanMessage = "Solicitud procesada";
            ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
            Listar();
        }
        else if (rb.SelectedValue == "A1")
        {
            lblvalor.Text  = rb.SelectedValue.ToString();
            lblCodigo.Text = pk;
            ModalRegistro.Show();
        }
        else if (rb.SelectedValue == "A2")
        {
            BL_RRHH_SOL_FORMATIVO obj      = new BL_RRHH_SOL_FORMATIVO();
            DataTable             dt       = new DataTable();
            DataTable             dtCorreo = new DataTable();
            dt       = obj.uspSEL_RRHH_SOL_FORMATIVO_PROCESAR(Convert.ToInt32(pk), rb.SelectedValue);
            dtCorreo = obj.SP_CORREO_FORMATIVO_APROBACIONES(Convert.ToInt32(pk), "A3", "");
            string cleanMessage = "Solicitud procesada";
            ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
            Listar();
        }
        else if (rb.SelectedValue == "R")
        {
            BL_RRHH_SOL_FORMATIVO obj      = new BL_RRHH_SOL_FORMATIVO();
            DataTable             dt       = new DataTable();
            DataTable             dtCorreo = new DataTable();
            dt       = obj.uspSEL_RRHH_SOL_FORMATIVO_PROCESAR(Convert.ToInt32(pk), rb.SelectedValue);
            dtCorreo = obj.SP_CORREO_FORMATIVO_APROBACIONES(Convert.ToInt32(pk), rb.SelectedValue, "");

            string cleanMessage = "Solicitud procesada";
            ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
            Listar();
        }
    }
Exemple #16
0
 protected void CheckDetalle_CheckedChanged(object sender, EventArgs e)
 {
     if (CheckDetalle.Checked)
     {
         ddlDetalle.Visible = true;
         lblEstado.Text     = "1";
         ModalRegistro.Show();
         Listar_IndicadoresPEP();
     }
     else
     {
         ModalRegistro.Show();
         ddlDetalle.Visible = false;
         lblEstado.Text     = "0";
     }
 }
    protected void Procesar_Prioridad(object sender, EventArgs e)
    {
        LinkButton LinkButton1 = ((LinkButton)sender);

        GridViewRow grdrow       = (GridViewRow)((LinkButton)sender).NamingContainer;
        int         IDE_ANDAMIOS = (int)GridView1.DataKeys[grdrow.RowIndex].Values["IDE_ANDAMIOS"];

        lblCodigo.Text = GridView1.DataKeys[grdrow.RowIndex].Values["IDE_ANDAMIOS"].ToString();


        ModalRegistro.Show();
        btnGrabar.Visible  = false;// para rechazo
        txtrechazo.Visible = false;
        lblMsg.Text        = "Definir prioridad";



        ddlPrioridad.Visible = true;
        btnPrioridad.Visible = true;


        //BL_SOLPED obj = new BL_SOLPED();
        //DataTable dtResultado = new DataTable();
        //dtResultado = obj.uspSEL_RESPONSABLE_PROCESOS(Session["IDE_USUARIO"].ToString(), "RESPONSABLE ANDAMIOS SUPERVISOR");
        //if (dtResultado.Rows.Count > 0)
        //{
        //    ModalRegistro.Show();
        //    btnGrabar.Visible = false;// para rechazo
        //    txtrechazo.Visible = false;
        //    lblMsg.Text = "Definir prioridad";



        //    ddlPrioridad.Visible = true;
        //    btnPrioridad.Visible = true;
        //}
        //else
        //{
        //    string cleanMessage = "No tiene permisos para definir prioridad";
        //    ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
        //}
    }
Exemple #18
0
    protected void Registro()
    {
        string cleanMessage = string.Empty;


        foreach (ListViewDataItem FilaFactor in ListView1.Items)
        {
            TextBox txtsustento       = ((TextBox)FilaFactor.FindControl("txtSustento"));
            Label   lblIDE_NOMINACION = ((Label)FilaFactor.FindControl("lblIDE_NOMINACION"));
            Label   lblDNI_EVALUADO   = ((Label)FilaFactor.FindControl("lblDNI_EVALUADO"));
            Label   lblIDE_FACTOR     = ((Label)FilaFactor.FindControl("lblIDE_FACTOR"));


            if (txtsustento.Text != string.Empty)
            {
                BE_RRHH_ESTRELLA_NOMINACION oBESol = new BE_RRHH_ESTRELLA_NOMINACION();
                oBESol.IDE_NOMINACION = Convert.ToInt32(lblIDE_NOMINACION.Text);
                oBESol.DNI_EVALUADO   = lblDNI_EVALUADO.Text;
                oBESol.DNI_SUPERVISOR = Session["IDE_USUARIO"].ToString();
                oBESol.IDE_FACTOR     = Convert.ToInt32(lblIDE_FACTOR.Text);
                oBESol.SUSTENTO       = txtsustento.Text.Trim();

                int dtrpta = 0;
                dtrpta = new BL_RRHH_ESTRELLA_NOMINACION().uspINS_RRHH_ESTRELLA_NOMINACION(oBESol);
                if (dtrpta > 0)
                {
                    BL_RRHH_ESTRELLA_NOMINACION ob = new BL_RRHH_ESTRELLA_NOMINACION();
                    ob.CORREO_NOMINACION(dtrpta);
                    ob.SP_CORREO_NOMINACION_IDE(dtrpta);
                    //cleanMessage = "Registro exitoso, en poco tiempo estaremos informando sobre la situación de esta nominación, gracias";
                    //ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
                    ModalRegistro.Show();
                }
            }
            else
            {
                cleanMessage = "Ingresar sustento de nominación";
                ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
            }
        }
    }
    protected void Seleccionar(object sender, ImageClickEventArgs e)
    {
        ModalRegistro.Show();
        ImageButton            btnDatos    = ((ImageButton)sender);
        DataTable              dtResultado = new DataTable();
        BL_ASIGNACION_RECURSOS obj         = new BL_ASIGNACION_RECURSOS();

        dtResultado = obj.Datos_requerimiento_Ticket(btnDatos.CommandArgument);
        if (dtResultado.Rows.Count > 0)
        {
            lblcandidato.Text    = dtResultado.Rows[0]["CANDIDATO"].ToString();
            lblProyecto.Text     = dtResultado.Rows[0]["PROYECTO"].ToString();
            lblEmpresa.Text      = dtResultado.Rows[0]["EMPRESA"].ToString();
            lblCentro.Text       = dtResultado.Rows[0]["CENTROCOSTO"].ToString();
            lblCargo.Text        = dtResultado.Rows[0]["CARGO"].ToString();
            lblFechaIngreso.Text = dtResultado.Rows[0]["FECHA_INGRESO"].ToString();
            lblDni.Text          = dtResultado.Rows[0]["DNI"].ToString();
            lblUbicacion.Text    = dtResultado.Rows[0]["UBICACION"].ToString();
            txtObserva.Text      = dtResultado.Rows[0]["OBSERVA"].ToString();
        }
    }
    protected void Ver_recursos(object sender, ImageClickEventArgs e)
    {
        ModalRegistro.Show();
        ImageButton btnRecursos = ((ImageButton)sender);
        GridViewRow row         = btnRecursos.NamingContainer as GridViewRow;

        string pk = GridView1.DataKeys[row.RowIndex].Values[0].ToString();

        BL_RRHH_SOLICITUD_ASIGNACION obj = new BL_RRHH_SOLICITUD_ASIGNACION();
        DataTable dtResultado            = new DataTable();

        dtResultado = obj.usp_RRHH_SOLICITUD_RECURSOS(pk);
        if (dtResultado.Rows.Count > 0)
        {
            GridView2.DataSource = dtResultado;
            GridView2.DataBind();
        }
        else
        {
            GridView2.DataSource = dtResultado;
            GridView2.DataBind();
        }
    }
Exemple #21
0
    protected void ProcesarReconocimiento(object sender, ImageClickEventArgs e)
    {
        ImageButton btnProcesar = ((ImageButton)sender);
        GridViewRow row         = btnProcesar.NamingContainer as GridViewRow;
        string      pk          = GridView1.DataKeys[row.RowIndex].Values[0].ToString();

        RadioButtonList rb       = (RadioButtonList)row.FindControl("rdoOpcion");
        TextBox         txtPunto = (TextBox)row.FindControl("txtPunto");


        //string z= pk + " - " + rb.SelectedValue;
        BL_RRHH_COMPETENCIAS_EVAL obj = new BL_RRHH_COMPETENCIAS_EVAL();
        DataTable dt = new DataTable();

        if (rb.SelectedValue == "R")
        {
            ModalRegistro.Show();
            lblCodigo.Text = pk.ToString();
        }
        else if (rb.SelectedValue == "A")
        {
            if (txtPunto.Text == string.Empty)
            {
                string cleanMessage = "Ingresar puntaje de reconocimiento";
                ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
            }
            else
            {
                dt = obj.ProcesarKardex_Competencia(Convert.ToInt32(pk), rb.SelectedValue, Convert.ToInt32(txtPunto.Text), "");

                string cleanMessage = "Registro procesado";
                ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);

                Listar();
            }
        }
    }
Exemple #22
0
    protected void Seleccionar_REQUERIMIENTO(object sender, ImageClickEventArgs e)
    {
        //string cleanMessage = string.Empty;
        //ImageButton btnSeleccionarRequerimiento = ((ImageButton)sender);
        //int ID_REQUERIMIENTO_PERSONAL = Convert.ToInt32(btnSeleccionarRequerimiento.CommandArgument);
        //Session["ID_DETALLE_REQUERIMIENTO_PERSONAL"] = btnSeleccionarRequerimiento.CommandArgument;
        //BL_PERSONAL obj = new BL_PERSONAL();
        //DataTable dtResultado = new DataTable();
        //dtResultado = obj.buscar_PersonalDisponible(ID_REQUERIMIENTO_PERSONAL);

        //if (dtResultado.Rows.Count > 0)
        //{
        //    //ModalRegistro.Dispose();
        //    ModalRegistro.Show();

        //    //btnAsignar.Visible = false;
        //    //btnNo.Visible = false;
        //    btnCerrar.Visible = true;

        //}
        //else
        //{
        //    cleanMessage = "No existen postulantes matriculados";
        //    ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);

        //}

        //gridPersonalDisponible.DataSource = dtResultado;
        //gridPersonalDisponible.DataBind();



        string      cleanMessage = string.Empty;
        ImageButton btnSeleccionarRequerimiento = ((ImageButton)sender);
        int         ID_REQUERIMIENTO_PERSONAL   = Convert.ToInt32(btnSeleccionarRequerimiento.CommandArgument);

        Session["ID_DETALLE_REQUERIMIENTO_PERSONAL"] = btnSeleccionarRequerimiento.CommandArgument;
        BL_PERSONAL obj          = new BL_PERSONAL();
        DataTable   dtResultado  = new DataTable();
        DataTable   dtIResultado = new DataTable();

        dtIResultado = obj.buscar_CantidadRequerimientos_MOI(ID_REQUERIMIENTO_PERSONAL);
        string x = dtIResultado.Rows[0]["TOTAL"].ToString();

        if (dtIResultado.Rows[0]["TOTAL"].ToString() == "0")
        {
            dtResultado = obj.buscar_PersonalDisponible_MOI(ID_REQUERIMIENTO_PERSONAL);

            cargos();

            if (dtResultado.Rows.Count > 0)
            {
                ModalRegistro.Show();
                btnCerrar.Visible = true;
            }
            else
            {
                cleanMessage = "No existen postulantes matriculados";
                ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
            }

            gridPersonalDisponible.DataSource = dtResultado;
            gridPersonalDisponible.DataBind();
        }
        else
        {
            Response.Redirect("~/RRHH/frmRequerimientoDetalleMOI.aspx");
        }
    }
Exemple #23
0
 protected void Procesar_AA(object sender, EventArgs e)
 {
     ModalRegistro.Show();
 }
 protected void btnNuevo_Click(object sender, ImageClickEventArgs e)
 {
     txtCodigo.Focus();
     ModalRegistro.Show();
     Limpiar();
 }
Exemple #25
0
 protected void ddlMes_SelectedIndexChanged(object sender, EventArgs e)
 {
     ModalRegistro.Show();
     Monto_RO();
 }
Exemple #26
0
 protected void ddlDetalle_SelectedIndexChanged(object sender, EventArgs e)
 {
     ModalRegistro.Show();
     txtValor.Focus();
     Monto_RO();
 }
    protected void consultarEmpleadoLoad(string dni)
    {
        string cleanMessage = string.Empty;

        {
            BL_PERSONAL objPersona = new BL_PERSONAL();
            DataTable   dtResul    = new DataTable();

            int    i = 0; int j = 0;
            char[] letras = dni.ToCharArray();
            for (i = 0; i < dni.Length; i++)
            {
                if (letras[i] == '-')
                {
                    j = i;
                    break;
                }
            }
            if (j > 0)
            {
                //                      dtResul = objPersona.BuscarDNI(dni.Substring(0, j - 1));
                dtResul = objPersona.BuscarDNIMOD(dni.Substring(0, j - 1));
            }
            else
            {
                //  dtResul = objPersona.BuscarDNI(dni);
                dtResul = objPersona.BuscarDNIMOD(dni);
                //  RegistrarNuevoMOD();
            }

            limpiar();
            if (dtResul.Rows.Count > 0)
            {
                lblPersonal.Text = dtResul.Rows[0]["DES_NOMBRE"].ToString();
                int idPersona = Convert.ToInt32(dtResul.Rows[0]["IDE_EMPLEADO"].ToString());
                lblIdPersonal.Text = dtResul.Rows[0]["IDE_EMPLEADO"].ToString();
                BL_PERSONAL obj         = new BL_PERSONAL();
                DataTable   dtResultado = new DataTable();
                dtResultado = obj.BuscarDNI_MOD(idPersona);

                if (dtResultado.Rows.Count > 0)
                {
                    ModalRegistro.Show();
                    int EnProcesos = Convert.ToInt32(dtResultado.Rows[0]["EN_PROCESO"].ToString());
                    if (EnProcesos > 0)
                    {
                        btnAsignar.Visible = false;
                        btnNo.Visible      = false;
                        btnCerrar.Visible  = true;
                    }
                    else
                    {
                        btnAsignar.Visible = true;
                        btnNo.Visible      = true;
                        btnCerrar.Visible  = false;
                    }
                    gridPersonal.DataSource = dtResultado;
                    gridPersonal.DataBind();
                }
                else
                {
                    // REGISTRO NUEVOS
                    lblIde_MOD.Text = "0";

                    Estado();
                    PanelDatos.Visible  = true;
                    txtDNI.ReadOnly     = true;
                    txtNombre.ReadOnly  = true;
                    txtDNI.Text         = dtResul.Rows[0]["DES_DNI"].ToString();
                    txtNombre.Text      = dtResul.Rows[0]["DES_NOMBRE"].ToString();
                    lblIdPersonal.Text  = dtResul.Rows[0]["IDE_EMPLEADO"].ToString();
                    txtDniBusqueda.Text = string.Empty;
                    txtPersonal.Text    = string.Empty;
                    chkEstado.Checked   = true;
                    chkAtendido.Checked = false;
                    //restricciones();
                }
            }
            else
            {
                PanelDatos.Visible  = false;
                txtDniBusqueda.Text = string.Empty;
                txtPersonal.Text    = string.Empty;
                //cleanMessage = "No se registra informacion";
                //ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
            }
        }
    }
Exemple #28
0
 protected void ddlPrevisto_SelectedIndexChanged(object sender, EventArgs e)
 {
     ModalRegistro.Show();
     IndicadoresPEP();
     Monto_RO();
 }