public int uspINS_RRHH_FORMATIVO_PLANES(BE_RRHH_FORMATIVO_PLANES obj) { try { return(new DA_RRHH_FORMATIVO_FICHA().uspINS_RRHH_FORMATIVO_PLANES(obj)); } catch (Exception ex) { throw ex; } }
public int uspINS_RRHH_FORMATIVO_PLANES(BE_RRHH_FORMATIVO_PLANES obj) { object[] Parametros = new[] { (object)UC_FormWeb.mSQLFieldOrNull(obj.IDE_PLANES, tgSQLFieldType.NUMERIC), (object)UC_FormWeb.mSQLFieldOrNull(obj.DURACION, tgSQLFieldType.TEXT), (object)UC_FormWeb.mSQLFieldOrNull(obj.DESCRIPCION, tgSQLFieldType.TEXT), (object)UC_FormWeb.mSQLFieldOrNull(obj.IDE_FICHA, tgSQLFieldType.NUMERIC), (object)UC_FormWeb.mSQLFieldOrNull(obj.USER_REGISTRO, tgSQLFieldType.TEXT), }; return(Convert.ToInt32(new Utilitarios().ExecuteScalar("uspINS_RRHH_FORMATIVO_PLANES", Parametros))); }
protected void btnPlanes_Click(object sender, EventArgs e) { string cleanMessage = string.Empty; if (lblCodigoFicha.Text == string.Empty) { capturarDatos(); //cleanMessage = "Falta registrar ficha"; //ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else { if (txtDuracion.Text == string.Empty) { cleanMessage = "Ingresar periodo"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else if (txtDescripcion.Text == string.Empty) { cleanMessage = "Ingresar descripción"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else { capturarDatos(); if (lblCodigoFicha.Text != string.Empty) { BE_RRHH_FORMATIVO_PLANES obj = new BE_RRHH_FORMATIVO_PLANES(); obj.IDE_PLANES = 0; obj.DURACION = txtDuracion.Text; obj.DESCRIPCION = txtDescripcion.Text; obj.IDE_FICHA = Convert.ToInt32(lblCodigoFicha.Text); obj.USER_REGISTRO = Session["IDE_USUARIO"].ToString(); int rpta = 0; rpta = new BL_RRHH_FORMATIVO_FICHA().uspINS_RRHH_FORMATIVO_PLANES(obj); if (rpta > 0) { ListarPlan(); cleanMessage = "registro satisfactorio"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } } else { cleanMessage = "Falta registrar ficha"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } } } }