学生成绩管理系统/frmScore/frmScoreInfo.cs

(开头部分) 6KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using System.IO;
using Model;
using BLL;

namespace 学生成绩管理系统.frmScore
{
    using Excel = Microsoft.Office.Interop.Excel;
    public partial class frmScoreInfo : Form
    {
        string classNo = "";
        string courseNo = "";
        string claName = "";
        string curName = "";
        public frmScoreInfo()
        {
            InitializeComponent();
        }

       

        private void frmScoreInfo_Load(object sender, EventArgs e)
        {
            CourseBLL cbll = new CourseBLL();
            DataTable dtCourse = cbll.GetCourse ();
            if (dtCourse.Rows.Count > 0)
            {
                for (int i = 0; i < dtCourse.Rows.Count - 1; i++)
                {
                    TreeNode Pnode = new TreeNode();
                    Pnode.Text = dtCourse.Rows[i]["curName"].ToString();
                    Pnode.Name = dtCourse.Rows[i]["curNo"].ToString();
                    treeViewCourse.Nodes.Add(Pnode);
                    //Score pnode = new Score();
                    ScoreBLL sbll = new ScoreBLL();
                   
                    if (sbll .CheckStu (Pnode .Name ))
                    { 
                        DataTable dtClass = sbll.GetStuInfo(Pnode.Name  );
                        for (int j = 0; j <= dtClass.Rows.Count - 1; j++)
                        {
                            TreeNode cNode = new TreeNode();
                            cNode.Text = dtClass.Rows[j]["cName"].ToString();
                            cNode.Name = dtClass.Rows[j]["cNo"].ToString();
                            treeViewCourse.Nodes[i].Nodes.Add(cNode);
                        }
                    }
                }
            }
            btnSave.Enabled = false;

        }
后面还有 126 行代码,购买后查看完整代码

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

AI 解读 AI

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

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