Exemple #1
0
        public void bind()
        {
            this.DropDownList1.DataSource     = BLL_Hotel.Bind_LouCeng();
            this.DropDownList1.DataTextField  = "Fname";
            this.DropDownList1.DataValueField = "Fid";
            this.DropDownList1.DataBind();
            int       roomid = Convert.ToInt32(Request.QueryString["roomid"]);
            DataTable dt     = BLL_Hotel.Cha_One(roomid);

            this.TextBox4.Text    = dt.Rows[0]["RTname"].ToString();
            this.TextBox1.Text    = roomid.ToString();
            this.TextBox1.Enabled = false;
            this.TextBox4.Enabled = false;
        }
Exemple #2
0
        //将房间信息查询结果绑定到控件
        public void bind()
        {
            this.ddlFName.DataSource     = BLL_Hotel.Bind_LouCeng();//查看楼层信息
            this.ddlFName.DataTextField  = "Fname";
            this.ddlFName.DataValueField = "Fid";
            this.ddlFName.DataBind();
            int       roomid = Convert.ToInt32(Request.QueryString["roomid"]); //接收要开通的房间编号
            DataTable dt     = BLL_Hotel.Cha_One(roomid);                      //根据房间ID查询房间信息

            this.txtRTName.Text    = dt.Rows[0]["RTname"].ToString();
            this.txtRoomId.Text    = roomid.ToString();
            this.txtRoomId.Enabled = false;
            this.txtRTName.Enabled = false;
        }