Student.Web/Manage/ClassEdit.aspx.cs

(开头部分) 5KB

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


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Student.Model;

using CC.Common;
namespace Student.Web.Manage
{
    public partial class ClassEdit : AdminBasePage
    {

        #region 基本变量
        private Class info;
        private string action;
        private int id;
        #endregion
        /// <summary>
        /// 页面载入事件
        /// </summary>
        /// <param name="sender">触发事件的对象</param>
        /// <param name="e">事件的参数</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            action = Requests.Query("action");
            id = Utils.StrToInt(Requests.Query("id"));

            if (!IsPostBack)
            {
                BindData();
            }
        }
        /// <summary>
        /// 绑定数据
        /// </summary>
        private void BindData()
        {
            int maxYear = DateTime.Now.Year;

            for (int i = maxYear; i > maxYear - 5; i--)
            {
                ListItem li = new ListItem(i.ToString(), i.ToString());
                txtGrade.Items.Add(li);
            }

            txtDepartmentID.DataSource = DepartmentBLL.GetDepartmentList();
            txtDepartmentID.DataTextField = "Name";
            txtDepartmentID.DataValueField = "DepartmentID";
            txtDepartmentID.DataBind();

            txtSpeciallyID.DataSource = SpeciallyBLL.GetSpeciallyList();
            txtSpeciallyID.DataTextField = "Name";
            txtSpeciallyID.DataValueField = "SpeciallyID";
            txtSpeciallyID.DataBind();

            info = ClassBLL.GetClassInfo(id);
后面还有 129 行代码,购买后查看完整代码

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

AI 解读 AI

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

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