⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stuscoreform.java

📁 这是一个学校老师和学生的管理系统,程序比较简单,但是几乎所有功能都可以实现,如果想要用,只要再添加一些东西就可以了.
💻 JAVA
字号:
/**
 *******************************************************************************
 * StuScoreForm.java
 *
 * (c) Copyright 2008 Hewlett-Packard Development Company, L.P.
 *
 *<Program Content>
 *  System Name : Students Management System
 *<Summarize>
 *  The file includs a class and the class contains all the score information of 
 *  student.
 *<Update Record>
 *  2009-5-11    1.00    zhangliy
 *******************************************************************************
 */
package com.hp.eds.zhangliyuan.stuMan.form;

import java.util.List;

import org.apache.struts.action.ActionForm;

import com.hp.eds.zhangliyuan.stuMan.dto.ScoreDto;

/**
 * The class contains all the score information of student.
 * 
 * @author zhangliy
 * @version 1.0
 */
public class StuScoreForm extends ActionForm {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 5431686378273771605L;

	private int totle = 0;

	private List<ScoreDto> scoreDtos;

	/**
	 * Constructor
	 * 
	 */
	public StuScoreForm() {
		super();
	}

	/**
	 * Constructor
	 * 
	 * @param totle
	 * @param scoreDtos
	 */
	public StuScoreForm(int totle, List<ScoreDto> scoreDtos) {
		this.totle = totle;
		this.scoreDtos = scoreDtos;
	}

	/**
	 * scoreDto of get
	 * 
	 * @return scoreDtos
	 */
	public List<ScoreDto> getScoreDtos() {
		return scoreDtos;
	}

	/**
	 * scoreDto of set
	 * 
	 * @param scoreDtos
	 *            set {bare_field_name}
	 */
	public void setScoreDtos(List<ScoreDto> scoreDtos) {
		this.scoreDtos = scoreDtos;
		this.totle = 0;
		for (int i = 0; i < scoreDtos.size(); i++) {
			this.totle = this.totle
					+ Integer.parseInt(scoreDtos.get(i).getCourse().getMark());
		}
	}

	/**
	 * totle of get
	 * 
	 * @return totle
	 */
	public int getTotle() {
		return totle;
	}

	/**
	 * totle of set
	 * 
	 * @param totle
	 *            set {bare_field_name}
	 */
	public void setTotle(int totle) {
		this.totle = totle;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -