protected void btn_notaParcial_Click(object sender, EventArgs e) { EvaluationPlan evaluation = new EvaluationPlan(); long personId = long.Parse(GridView1.SelectedRow.Cells[1].Text); long stuModId = proxySM.GetStudentModuleId((long)Session["TeachModID"], personId); long evalPlanId = long.Parse(ddl_Evaluacion.SelectedValue); float value = float.Parse(TextBox1.Text); entity = new Qualifications(); evaluation = GetPlanEvaluacion(evalPlanId); //lbl_Ponderacion.Text = evaluation.Consideration+""; try { entity.Qualification = value; entity.StudentModuleCode = stuModId; entity.EvaluationPlanCode = evalPlanId; proxyQ.InsertQualification(entity); TextBox1.Text = ""; lbl_mensaje.Text = "ÉXITO. La calificación se ha registrado."; } catch (Exception ex) { lbl_mensaje.Text = "ERROR. La calificación NO se ha registrado."; } }
protected void btn_Eliminar_Click(object sender, EventArgs e) { long programID = proxyProgram.GetProgramID(programa); int versionID = VersionID(version); long openingID = proxyOpening.GetOpeningID(programID, versionID); long moduloID = proxyModule.GetModuleID(modulo); long personID = GetPerson(nombre, paterno, materno); long teamodID = proxyTeachMod.GetTeacherModule(moduloID, openingID); long studModuleID = proxyStuMod.GetStudentModuleId(teamodID, personID); try { entity = new StudentModule(); entity = GetStudentModule(studModuleID); DeleteInscription(entity); lbl_Mensaje.Text = "ÉXITO. El registro de Inscripción ha sido eliminado de la Base de Datos"; } catch (Exception ex) { lbl_Mensaje.Text = "ERROR. No se ha eliminado el registro de Inscripción"; } }