示例#1
0
        private string Get_StorefrontEleganceID(string strStorefrontEleganceGUID)
        {
            zlzw.BLL.StorefrontEleganceListBLL storefrontEleganceListBLL = new zlzw.BLL.StorefrontEleganceListBLL();
            DataTable dt = storefrontEleganceListBLL.GetList("StorefrontEleganceGUID='" + strStorefrontEleganceGUID + "'").Tables[0];

            return(dt.Rows[0]["StorefrontEleganceID"].ToString());
        }
示例#2
0
        private void StorefrontEleganceList_BindGrid()
        {
            zlzw.BLL.StorefrontEleganceListBLL storefrontEleganceListBLL = new zlzw.BLL.StorefrontEleganceListBLL();
            DataTable dt = storefrontEleganceListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0];

            grid1.DataSource = dt;
            grid1.DataBind();
        }
        private void Load_StoreInfo(string strStoreKey)
        {
            zlzw.BLL.StorefrontEleganceListBLL storefrontEleganceListBLL = new zlzw.BLL.StorefrontEleganceListBLL();
            DataTable dt = storefrontEleganceListBLL.GetList("DictionaryKey='" + strStoreKey + "'").Tables[0];

            if (dt.Rows.Count > 0)
            {
                labStoreImage.Text = "<img src='" + dt.Rows[0]["StorefrontEleganceHeadImage"].ToString().Split('~')[1] + "' alt='' />";
                labStoreDesc.Text  = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + dt.Rows[0]["StorefrontEleganceDescription"].ToString();
                labPostJob.Text    = "<span style='color:#1D5087;font-size:14px;'>主推岗位:</span>" + dt.Rows[0]["PushJobs"].ToString();
            }
        }
示例#4
0
        /// <summary>
        /// 获取总页数
        /// </summary>
        /// <returns></returns>
        private int Get_StoreStatisticsListTotalCount()
        {
            zlzw.BLL.StorefrontEleganceListBLL storefrontEleganceListBLL = new zlzw.BLL.StorefrontEleganceListBLL();
            DataTable dt = storefrontEleganceListBLL.GetList("IsEnable=1").Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(dt.Rows.Count);
            }
            else
            {
                return(0);
            }
        }
示例#5
0
        private void LoadData(string strType)
        {
            if (strType == "1")
            {
                string strID = Request.QueryString["value"];//操作ID
                zlzw.BLL.StorefrontEleganceListBLL storefrontEleganceListBLL = new zlzw.BLL.StorefrontEleganceListBLL();
                DataTable dt = storefrontEleganceListBLL.GetList("StorefrontEleganceGUID='" + strID + "'").Tables[0];
                zlzw.Model.StorefrontEleganceListModal storefrontEleganceListModal = storefrontEleganceListBLL.GetModel(int.Parse(dt.Rows[0]["StorefrontEleganceID"].ToString()));

                drpRegionList.SelectedValue             = storefrontEleganceListModal.Other01.ToString();
                drpStorefrontEleganceType.SelectedValue = storefrontEleganceListModal.DictionaryKey;                 //所属店铺
                txbStorefrontEleganceTitle.Text         = storefrontEleganceListModal.StorefrontEleganceTitle;       //店铺名称
                txbStorefrontEleganceDescription.Text   = storefrontEleganceListModal.StorefrontEleganceDescription; //店铺简介
                txbPushJobs.Text       = storefrontEleganceListModal.PushJobs;                                       //主推岗位
                labPreviweImg.ImageUrl = storefrontEleganceListModal.StorefrontEleganceHeadImage.Split('~')[1];

                ViewState["StorefrontEleganceHeadImage"] = storefrontEleganceListModal.StorefrontEleganceHeadImage; //门店简介
                ViewState["PublishDate"]            = storefrontEleganceListModal.PublishDate.ToString();
                ViewState["StorefrontEleganceGUID"] = storefrontEleganceListModal.StorefrontEleganceGUID;           //店面风采GUID
                ToolbarText2.Text = "编辑一个店面风采";
            }
            btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
        }