MxWeiXinPF.Web/admin/diancai/shop_add.aspx.cs

(开头部分) 12KB

这里只显示每个文件的开头 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.diancai
{
    public partial class shop_add : Web.UI.ManagePage
    {
        TextBox description;
        TextBox sortid;
        TextBox picUrl;
        TextBox pictzUrl;
        protected string editetype = "";
        protected static int shopid = 0;
        BLL.wx_diancai_shopinfo hotelBll = new BLL.wx_diancai_shopinfo();
        Model.wx_diancai_shopinfo hotel = new Model.wx_diancai_shopinfo();

        BLL.wx_diancai_shoppic picBll = new BLL.wx_diancai_shoppic();
        Model.wx_diancai_shoppic pic = new Model.wx_diancai_shoppic();
        wx_diancai_shoppic iBll = new wx_diancai_shoppic();

        protected void Page_Load(object sender, EventArgs e)
        {
            shopid = MyCommFun.RequestInt("shopid");

            if (!IsPostBack)
            {
               
                editetype = MyCommFun.QueryString("type");
                
                if (editetype == "edite")
                {
                   list(shopid);
                }


            }
        }

        public void list(int shopid)
        {
            hotel = hotelBll.GetModel(shopid);
            if (hotel != null)
            {
                this.hotelName.Text = hotel.hotelName;
                this.hotelLogo.Text = hotel.hotelLogo;
                this.hoteltimeBegin.Text = hotel.hoteltimeBegin.Value.ToString("HH:mm:ss");
                this.hoteltimeEnd.Text = hotel.hoteltimeEnd.Value.ToString("HH:mm:ss");
                if (hotel.hoteltimeBegin1 != null)
                {
                    this.hoteltimeBegin1.Text = hotel.hoteltimeBegin1.Value.ToString("HH:mm:ss");
                }
                if (hotel.hoteltimeEnd1 != null)
                {
                    this.hoteltimeEnd1.Text = hotel.hoteltimeEnd1.Value.ToString("HH:mm:ss");
后面还有 237 行代码,购买后查看完整代码

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

AI 解读

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

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