学生成绩管理系统/frmCourse/frmSetCourse.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.Data.SqlClient;
using System.Collections;
using BLL;
using Model;
namespace 学生成绩管理系统.frmCourse
{
public partial class frmSetCourse : Form
{
DataTable dtClaCur ;
//List<Class_Course> ClsCurs = new List<Class_Course>();
public frmSetCourse()
{
InitializeComponent();
}
private void frmSetCourse_Load(object sender, EventArgs e)
{
//显示课程
CourseBLL cbll = new CourseBLL();
DataTable dtcourse = cbll.GetCourse();
cobCourse.DataSource = cbll.GetCourse();
cobCourse.DisplayMember = "curname";
cobCourse.ValueMember = "curno";
//显示系别
DeptBLL deptBll = new DeptBLL();
DataTable dtdept = deptBll.getDept();
cobDept.DataSource = deptBll.getDept();
cobDept.DisplayMember = "cdeptname";
cobDept.ValueMember = "cdeptno";
Class_CourseBLL ccbll = new Class_CourseBLL();
dtClaCur = ccbll.GetClaCur();
dgvSetCourse.DataSource = dtClaCur;
dgvSetCourse.Columns["ID"].HeaderText = "序号";
dgvSetCourse.Columns["cname"].HeaderText = "班级";
dgvSetCourse.Columns["curno"].Visible = false;
//dgvSetCourse.Columns["cdeptName"].Visible = false;
dgvSetCourse.Columns["curname"].HeaderText = "课程";
dgvSetCourse.Columns["cno"].Visible = false;
dgvSetCourse.Columns["cname"].Width = 150;
dgvSetCourse.Columns["curname"].Width = 150;
dgvload();
}
private void cobDept_SelectedIndexChanged(object sender, EventArgs e)
{
ClassBLL classBll = new ClassBLL();
后面还有 129 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。