@Override
	public String execute() throws Exception {
		PingjiaoService service = new PingjiaoService();
		Map<String, Object> application = ActionContext.getContext()
				.getApplication();
		getSearchList(service, application);
		// 设置表格第一行第一列的文本
		firstTitle = "";

		if (course == null && professionalName == null
				&& executiveClass == null) {
			statusList = service.getPingjiaoStatus(
					(String) application.get("CURRENT_GRADE"),
					(String) application.get("CURRENT_SEMESTER"), "总计", "全部",
					"全部", 0, 10);
			this.course = "总计";
			this.professionalName = "全部";
			this.executiveClass = "全部";
			pageList.add(1);
			pre = 1;
			next = 1;
		} else {
			// 总页数
			int totalLines = service.getPingjiaoStatusTotalPages(
					(String) application.get("CURRENT_GRADE"),
					(String) application.get("CURRENT_SEMESTER"), course,
					professionalName, executiveClass);
			statusList = service.getPingjiaoStatus(
					(String) application.get("CURRENT_GRADE"),
					(String) application.get("CURRENT_SEMESTER"), course,
					professionalName, executiveClass, (page - 1) * lineNum,
					page * lineNum);
			// 最小分页下标
			int left = (page - 1) / step * step;
			// 最大分页下标
			int right = (page - 1) / step * step + step;
			// 最大页数
			int max = (int) Math.ceil((totalLines * 1.0) / lineNum);
			for (int i = left; i < right && i < max; i++) {
				pageList.add(i + 1);
			}
			firstTitle = "行政班";
			pre = left > 0 ? left : 1;
			next = right + 1 > max ? max : right + 1;
		}

		return SUCCESS;
	}