Student.Web/Manage/RoomEdit.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 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 RoomEdit : BasePage
    {

        #region 基本变量
        private Room 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()
        {
            info = RoomBLL.GetRoomInfo(id);
            if (info != null)
            {

                txtName.Value = info.Name;
                txtAddress.Value = info.Address;
                txtMaxPeople.Value = info.MaxPeople.ToString();

            }
        }
        /// <summary>
        /// 按钮事件
        /// </summary>
        /// <param name="sender">触发事件的对象</param>
        /// <param name="e">事件的参数</param>
        protected void subitBtn_Click(object sender, EventArgs e)
        {
            switch (action)
            {
后面还有 72 行代码,购买后查看完整代码

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

AI 解读 AI

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

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