ExaminationUI/admin/ExamResult/TeacherSelectScore.aspx.cs

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ExaminationBLL;
using FanG;
using System.Collections;
using System.Data;
using System.IO;


public partial class admin_ExamResult_TeacherSelectScore : System.Web.UI.Page
{
    public static DataTable scoreList = null;  //当前成绩列表
    public static int page = 1;  //当前页书
    public static int len = 20;  //每页显示条数
    public static int count = 0;//定义专业信息的总条数
    public static int maxPage = 0;//定义显示页面的最大页数
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ddlSpec.DataSource = TbSpecialityManager.GetAllSpecialityListByScore();
            ddlSpec.DataValueField = "ZyID";
            ddlSpec.DataTextField = "ZyName";
            ddlSpec.DataBind();
            ddlSpec.Items.Insert(0, new ListItem("全部", "0"));
            GetScoreList();
            LoadData("", 1);
        }

    }
    private void GetScoreList()
    {
        scoreList = TbScoreManager.GetScoreList(len, page);
        count = TbScoreManager.GetScoreList().Rows.Count;
        if (count % len == 0) //当数据库数据能整除len,最大页面数取Count/len的商
        {
            if (count > 0)
                maxPage = count / len;
            else
                maxPage = 1;
        }
        else
            maxPage = count / len + 1;//当数据库数据不能整除len,最大页面数取Count/len的商+1.

    }
    /// <summary>
    /// 绑定图表
    /// </summary>
    /// <param name="whereStr">当前筛选条件</param>
    /// <param name="type">1表示试卷名或姓名,2表示专业名,3表示科目名</param>
    public void LoadData(string whereStr, int type)
    {
        if (scoreList.Rows.Count > 0)
        {
            Chartlet1.AppearanceStyle = (FanG.Chartlet.AppearanceStyles)System.Enum.Parse(typeof(FanG.Chartlet.AppearanceStyles), "Bar_3D_Aurora_NoCrystal_NoGlow_NoBorder", true);
            DataTable classListTable = TbScoreManager.GetClassList(whereStr, type);
后面还有 205 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。