MxWeiXinPF.Web/admin/hotel/hotel_info.aspx.cs

(开头部分) 8KB

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

using MxWeiXinPF.BLL;
using MxWeiXinPF.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MxWeiXinPF.Web.admin.hotel
{
    public partial class hotel_info : Web.UI.ManagePage
    {
        TextBox title;
        TextBox sortid;
        TextBox picUrl;
        TextBox picTiaozhuan;
        protected string editetype = "";
        protected static int hotelid = 0;
        BLL.wx_hotels_info hotelBll = new BLL.wx_hotels_info();
        Model.wx_hotels_info hotel = new Model.wx_hotels_info();

        BLL.wx_hotel_pic picBll = new BLL.wx_hotel_pic();
        Model.wx_hotel_pic pic = new Model.wx_hotel_pic();
        wx_hotel_pic iBll = new wx_hotel_pic();
        protected void Page_Load(object sender, EventArgs e)
        {
            hotelid = MyCommFun.RequestInt("hotelid");
            editetype = MyCommFun.QueryString("type");
            if(!IsPostBack)
            {
                if (editetype == "edite")
                {
                    list(hotelid);
                }
            }
        }


        public void list(int hotelid)
        {
            hotel = hotelBll.GetModel(hotelid);
            if (hotel != null)
            {
                this.hotelName.Text = hotel.hotelName;
                this.hotelAddress.Text = hotel.hotelAddress;
                this.hotelPhone.Text = hotel.hotelPhone;
                this.mobilPhone.Text = hotel.mobilPhone;
                this.noticeEmail.Text = hotel.noticeEmail;
                //this.emailPws.Text = hotel.emailPws;
                this.coverPic.Text = hotel.coverPic;
                this.topPic.Text = hotel.topPic;
                this.orderLimit.Text = hotel.orderLimit.ToString();
                this.listMode.SelectedValue = hotel.listMode.ToString();
                this.messageNotice.SelectedValue = hotel.messageNotice.ToString();
                this.pwd.Text = hotel.pwd;
                this.hotelIntroduct.Value = hotel.hotelIntroduct;
                this.orderRemark.Value = hotel.orderRemark;
                this.txtLatXPoint.Text = hotel.xplace.ToString();
                this.txtLngYPoint.Text = hotel.yplace.ToString();
后面还有 145 行代码,购买后查看完整代码

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

AI 解读

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

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