コード例 #1
0
        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");
                }
                if (hotel.hoteltimeBegin2 != null)
                {
                    this.hoteltimeBegin2.Text = hotel.hoteltimeBegin2.Value.ToString("HH:mm:ss");
                }
                if (hotel.hoteltimeEnd2 != null)
                {
                    this.hoteltimeEnd2.Text = hotel.hoteltimeEnd2.Value.ToString("HH:mm:ss");
                }

                this.limiteOrder.SelectedValue = hotel.limiteOrder.ToString();
                this.rename.Text                 = hotel.dcRename;
                this.sendPrice.Text              = hotel.sendPrice.ToString();
                this.sendCost.Text               = hotel.sendCost.ToString();
                this.freeSendcost.Text           = hotel.freeSendcost.ToString();
                this.type.Value                  = hotel.kcType;
                this.miaoshu.InnerText           = hotel.miaoshu;
                this.radius.Text                 = hotel.radius;
                this.sendArea.Text               = hotel.sendArea;
                this.tel.Text                    = hotel.tel;
                this.address.Text                = hotel.address;
                this.txtLatXPoint.Text           = hotel.xplace.ToString();
                this.txtLngYPoint.Text           = hotel.yplace.ToString();
                this.personLimite.Text           = hotel.personLimite.ToString();
                this.notice.InnerText            = hotel.notice;
                this.hotelintroduction.InnerText = hotel.hotelintroduction;
                this.email.Text                  = hotel.email;
                this.emailpwd.Text               = hotel.emailpwd;
                this.stmp.Text                   = hotel.stmp;
                this.css.Text                    = hotel.css;
            }

            IList <Model.wx_diancai_shoppic> itemlist = iBll.GetModelList("shopid=" + shopid + " order by id asc");

            if (itemlist != null && itemlist.Count > 0)
            {
                int count = itemlist.Count;


                Model.wx_diancai_shoppic itemEntity = new Model.wx_diancai_shoppic();
                for (int i = 1; i <= count; i++)
                {
                    itemEntity  = itemlist[(i - 1)];
                    description = this.FindControl("description" + i) as TextBox;
                    sortid      = this.FindControl("sortid" + i) as TextBox;
                    picUrl      = this.FindControl("picUrl" + i) as TextBox;
                    pictzUrl    = this.FindControl("pictzUrl" + i) as TextBox;

                    description.Text = itemEntity.description;
                    sortid.Text      = itemEntity.sortid.ToString();
                    picUrl.Text      = itemEntity.picUrl.ToString();
                    pictzUrl.Text    = itemEntity.pictzUrl.ToString();
                }
            }
        }
コード例 #2
0
ファイル: shop_add.aspx.cs プロジェクト: yi724926089/MyWx
        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");
                }
                if (hotel.hoteltimeBegin2 != null)
                {
                    this.hoteltimeBegin2.Text = hotel.hoteltimeBegin2.Value.ToString("HH:mm:ss");
                }
                if (hotel.hoteltimeEnd2 != null)
                {
                    this.hoteltimeEnd2.Text = hotel.hoteltimeEnd2.Value.ToString("HH:mm:ss");
                }

                this.limiteOrder.SelectedValue = hotel.limiteOrder.ToString();
                this.rename.Text = hotel.dcRename;
                this.sendPrice.Text = hotel.sendPrice.ToString();
                this.sendCost.Text = hotel.sendCost.ToString();
                this.freeSendcost.Text = hotel.freeSendcost.ToString();
                this.type.Value = hotel.kcType;
                this.miaoshu.InnerText = hotel.miaoshu;
                this.radius.Text = hotel.radius;
                this.sendArea.Text = hotel.sendArea;
                this.tel.Text = hotel.tel;
                this.address.Text = hotel.address;
                this.txtLatXPoint.Text = hotel.xplace.ToString();
                this.txtLngYPoint.Text = hotel.yplace.ToString();
                this.personLimite.Text = hotel.personLimite.ToString();
                this.notice.InnerText = hotel.notice;
                this.hotelintroduction.InnerText = hotel.hotelintroduction;
                this.email.Text = hotel.email;
                this.emailpwd.Text = hotel.emailpwd;
                this.stmp.Text = hotel.stmp;
                this.css.Text = hotel.css;
            }

            IList<Model.wx_diancai_shoppic> itemlist = iBll.GetModelList("shopid=" + shopid + " order by id asc");
            if (itemlist != null && itemlist.Count > 0)
            {
                int count = itemlist.Count;

                Model.wx_diancai_shoppic itemEntity = new Model.wx_diancai_shoppic();
                for (int i = 1; i <= count; i++)
                {
                    itemEntity = itemlist[(i - 1)];
                    description = this.FindControl("description" + i) as TextBox;
                    sortid = this.FindControl("sortid" + i) as TextBox;
                    picUrl = this.FindControl("picUrl" + i) as TextBox;
                    pictzUrl = this.FindControl("pictzUrl" + i) as TextBox;

                    description.Text = itemEntity.description;
                    sortid.Text = itemEntity.sortid.ToString();
                    picUrl.Text = itemEntity.picUrl.ToString();
                    pictzUrl.Text = itemEntity.pictzUrl.ToString();

                }

            }
        }
コード例 #3
0
ファイル: shop_add.aspx.cs プロジェクト: yidane/51wine
        public void list(int shopid)
        {
            hotel = hotelBll.GetModel(shopid);
            if (hotel != null)
            {
                this.hotelName.Text = hotel.hotelName;
                this.hotelLogo.Text = hotel.hotelLogo;
                if (hotel.hoteltimeBegin.HasValue)
                {
                    this.hoteltimeBegin.Text = hotel.hoteltimeBegin.Value.ToString("HH:mm:ss");
                }
                if (hotel.hoteltimeEnd.HasValue)
                {
                    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");
                }
                if (hotel.hoteltimeBegin2 != null)
                {
                    this.hoteltimeBegin2.Text = hotel.hoteltimeBegin2.Value.ToString("HH:mm:ss");
                }
                if (hotel.hoteltimeEnd2 != null)
                {
                    this.hoteltimeEnd2.Text = hotel.hoteltimeEnd2.Value.ToString("HH:mm:ss");
                }

                this.limiteOrder.SelectedValue = hotel.limiteOrder.ToString();
                this.rename.Text       = hotel.dcRename;
                this.sendPrice.Text    = hotel.sendPrice.ToString();
                this.sendCost.Text     = hotel.sendCost.ToString();
                this.freeSendcost.Text = hotel.freeSendcost.ToString();
                this.type.Value        = hotel.kcType;
                this.miaoshu.InnerText = hotel.miaoshu;
                this.radius.Text       = hotel.radius;
                this.sendArea.Text     = hotel.sendArea;
                this.tel.Text          = hotel.tel;
                this.address.Text      = hotel.address;
                this.txtLatXPoint.Text = hotel.xplace.ToString();
                this.txtLngYPoint.Text = hotel.yplace.ToString();
                if (hotel.xplace.HasValue && hotel.yplace.HasValue)
                {
                    ClientScript.RegisterStartupScript(GetType(), "message",
                                                       "<script language='javascript'> $(\"#baiduframe\").attr(\"src\", \"../../weixin/map/qqmap/qqmap_getLocation.html?lng=" + hotel.yplace.Value.ToString() + "&lat=" + hotel.xplace.Value.ToString() + "\");</script>");
                }
                this.personLimite.Text           = hotel.personLimite.HasValue ? hotel.personLimite.ToString() : string.Empty;
                this.notice.InnerText            = hotel.notice;
                this.hotelintroduction.InnerText = hotel.hotelintroduction;
                this.email.Text       = hotel.email;
                this.emailpwd.Text    = hotel.emailpwd;
                this.stmp.Text        = hotel.stmp;
                this.css.Text         = hotel.css;
                this.mobile.Text      = hotel.Mobile;
                this.manager.Text     = hotel.Operator;
                this.lblShopCode.Text = hotel.ShopCode;
            }

            IList <Model.wx_diancai_shoppic> itemlist = iBll.GetModelList("shopid=" + shopid + " order by id asc");

            if (itemlist != null && itemlist.Count > 0)
            {
                int count = itemlist.Count;


                Model.wx_diancai_shoppic itemEntity = new Model.wx_diancai_shoppic();
                for (int i = 1; i <= count; i++)
                {
                    itemEntity  = itemlist[(i - 1)];
                    description = this.FindControl("description" + i) as TextBox;
                    sortid      = this.FindControl("sortid" + i) as TextBox;
                    picUrl      = this.FindControl("picUrl" + i) as TextBox;
                    pictzUrl    = this.FindControl("pictzUrl" + i) as TextBox;

                    description.Text = itemEntity.description;
                    sortid.Text      = itemEntity.sortid.ToString();
                    picUrl.Text      = itemEntity.picUrl.ToString();
                    pictzUrl.Text    = itemEntity.pictzUrl.ToString();
                }
            }
        }