public int INS_RRHH_SOL_HITO(BE_RRHH_SOL_HITO obj) { try { return(new DA_RRHH_SOL_HITO().INS_RRHH_SOL_HITO(obj)); } catch (Exception ex) { throw ex; } }
public int INS_RRHH_SOL_HITO(BE_RRHH_SOL_HITO obj) { object[] Parametros = new[] { (object)UC_FormWeb.mSQLFieldOrNull(obj.IDE_HITOS, tgSQLFieldType.NUMERIC), (object)UC_FormWeb.mSQLFieldOrNull(obj.IDE_FORMATIVO, tgSQLFieldType.NUMERIC), (object)UC_FormWeb.mSQLFieldOrNull(obj.DESCRIPCION, tgSQLFieldType.TEXT), (object)UC_FormWeb.mSQLFieldOrNull(obj.FECHA_HITO, tgSQLFieldType.TEXT), (object)UC_FormWeb.mSQLFieldOrNull(obj.TIPO, tgSQLFieldType.NUMERIC), (object)UC_FormWeb.mSQLFieldOrNull(obj.HOLDER, tgSQLFieldType.TEXT), (object)UC_FormWeb.mSQLFieldOrNull(obj.ROL, tgSQLFieldType.TEXT), (object)UC_FormWeb.mSQLFieldOrNull(obj.INTERACCION, tgSQLFieldType.TEXT), }; return(Convert.ToInt32(new Utilitarios().ExecuteScalar("uspINS_RRHH_SOL_HITO", Parametros))); }
protected void btnStakeholder_Click(object sender, EventArgs e) { string cleanMessage = string.Empty; registroProyecto(); if (lblCodigo.Text != string.Empty) { if (txtStakeholder.Text == string.Empty) { cleanMessage = "Ingresar nombre"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else if (txtRol.Text == string.Empty) { cleanMessage = "Ingresar cargo"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else if (txtInteracion.Text == string.Empty) { cleanMessage = "Ingresar interacción"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else { BE_RRHH_SOL_HITO obj = new BE_RRHH_SOL_HITO(); obj.IDE_HITOS = 0; obj.IDE_FORMATIVO = Convert.ToInt32(lblCodigo.Text); obj.DESCRIPCION = string.Empty; obj.FECHA_HITO = string.Empty; obj.TIPO = 2; obj.HOLDER = txtStakeholder.Text; obj.ROL = txtRol.Text; obj.INTERACCION = txtInteracion.Text; int rpta = new BL_RRHH_SOL_HITO().INS_RRHH_SOL_HITO(obj); if (rpta > 0) { cleanMessage = "Registro satisfactorio (Relación clave)"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); ListarStakeholder(); txtInteracion.Text = string.Empty; txtRol.Text = string.Empty; txtStakeholder.Text = string.Empty; } } } }
protected void btnHito_Click(object sender, EventArgs e) { string cleanMessage = string.Empty; registroProyecto(); if (lblCodigo.Text != string.Empty) { if (txtHito.Text == string.Empty) { cleanMessage = "Ingresar etapa"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else if (txtFechaHito.Text == string.Empty) { cleanMessage = "Ingresar fecha de etapa"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else { BE_RRHH_SOL_HITO obj = new BE_RRHH_SOL_HITO(); obj.IDE_HITOS = 0; obj.IDE_FORMATIVO = Convert.ToInt32(lblCodigo.Text); obj.DESCRIPCION = txtHito.Text; obj.FECHA_HITO = txtFechaHito.Text; obj.TIPO = 1; obj.HOLDER = string.Empty; obj.ROL = string.Empty; obj.INTERACCION = string.Empty; int rpta = new BL_RRHH_SOL_HITO().INS_RRHH_SOL_HITO(obj); if (rpta > 0) { ListarHito(); cleanMessage = "Registro satisfactorio (Etapa)"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); txtHito.Text = string.Empty; txtFechaHito.Text = string.Empty; } } } }