Esempio n. 1
0
    protected void Reconocimiento()
    {
        String datosItem = string.Empty;

        lblCodigos.Text = string.Empty;
        if (CheckCompetencia.SelectedIndex > -1)
        {
            foreach (ListItem li in CheckCompetencia.Items)
            {
                if (li.Selected)
                {
                    datosItem += li.Value + ",";
                }
            }
            lblCodigos.Text = datosItem;
            BE_RRHH_ESTRELLA_NOMINACION oBESol = new BE_RRHH_ESTRELLA_NOMINACION();
            oBESol.IDE_NOMINACION = 0;
            oBESol.DNI_EVALUADO   = ddlPersonal.SelectedValue.ToString();
            oBESol.DNI_SUPERVISOR = Session["IDE_USUARIO"].ToString();
            oBESol.FACTORES       = datosItem;

            int dtrpta = 0;
            dtrpta = new BL_RRHH_ESTRELLA_NOMINACION().uspINS_RRHH_ESTRELLA_NOMINACION_VARIOS(oBESol);
            if (dtrpta > 0)
            {
                ListarCompetenciaAsignadas();
            }
        }
        else
        {
            string cleanMessage = "Debe seleccionar alguna competencia";
            ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true);
        }
    }
Esempio n. 2
0
        public int uspINS_RRHH_ESTRELLA_NOMINACION_VARIOS(BE_RRHH_ESTRELLA_NOMINACION oBE)
        {
            object[] Parametros = new[] {
                (object)UC_FormWeb.mSQLFieldOrNull(oBE.IDE_NOMINACION, tgSQLFieldType.NUMERIC),
                (object)UC_FormWeb.mSQLFieldOrNull(oBE.DNI_EVALUADO, tgSQLFieldType.TEXT),
                (object)UC_FormWeb.mSQLFieldOrNull(oBE.DNI_SUPERVISOR, tgSQLFieldType.TEXT),
                (object)UC_FormWeb.mSQLFieldOrNull(oBE.FACTORES, tgSQLFieldType.TEXT),
            };

            return(Convert.ToInt32(new Utilitarios().ExecuteScalar("uspINS_RRHH_ESTRELLA_NOMINACION_VARIOS", Parametros)));
        }
Esempio n. 3
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);
            }
        }
    }