Пример #1
0
  public void saveGrade(float asg1, float asg2, float exam) {

    IUnit u = UnitManager.UM().getUnit(cuc);
    IStudent s = StudentManager.get().getStudent(currentStudentID);

    IStudentUnitRecord r = s.getUnitRecord(cuc);
    r.setAsg1(asg1);
    r.setAsg2(asg2);
    r.setExam(exam);
    StudentUnitRecordManager.instance().saveRecord(r);
    CGUI.setState4(true);
    CGUI.setState5(false);
    CGUI.setState6(false);
  }
Пример #2
0
 public void setRecord(IStudentUnitRecord record) {
   jTextField1.setText(new Float(record.getAsg1()).toString());
   jTextField2.setText(new Float(record.getAsg2()).toString());
   jTextField3.setText(new Float(record.getExam()).toString());
   jLabel5.setText("");
 }