Model/Alert.cs

(开头部分) 6KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CheckOnWork.Model
{
    public class Alert
    {
        private string _studentID;
        private int _courseID;
        private int _absentCount;
        private int _annualID;
        private Boolean _Alert;

        public Alert() { }
        //alert表的构造函数
        public Alert(string studentId, int courseId, int absentCount, int annualId, bool alert)
        {
            this._studentID = studentId;
            this._courseID = courseId;
            this._absentCount = absentCount;
            this._annualID = annualId;
            this._Alert = alert;
        }
        #region 
       
        private string  _studentName;
        private int _professionalID;
        //添加属性
        public string studentName
        {
            get { return _studentName; }
            set { _studentName = value; }
        }
        public int professionalID
        {
            get { return _professionalID; }
            set { _professionalID = value; }
        }

       
        //依据以上两个属性Id得到Name
        private string _teacherName;//具体课程出勤情况时用到
        private string _professionalName;

        //添加属性 
        public string teacherName
        {
            get { return _teacherName; }
            set { _teacherName = value;  }
        }

        public string professionalName
        {
            get { return _professionalName; }
            set { _professionalName = value; }
        }
      /// <summary>
        /// GetAlertInfoTotalByDepartment和[getAlertByProIdAndCourseID]的构造函数,其增加了教师Id和专业Id的属性,并由Id得到了name
后面还有 137 行代码,购买后查看完整代码

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

AI 解读 AI

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

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