Exemple #1
0
        protected void btnDel_Click(object sender, EventArgs e)
        {
            if (grid1.SelectedRowIndexArray != null && grid1.SelectedRowIndexArray.Length > 0)
            {
                string strSelectID = "0";
                for (int i = 0, count = grid1.SelectedRowIndexArray.Length; i < count; i++)
                {
                    int rowIndex = grid1.SelectedRowIndexArray[i];
                    foreach (object key in grid1.DataKeys[rowIndex])
                    {
                        strSelectID = key.ToString();
                    }
                }
                #region  除逻辑

                zlzw.BLL.StorefrontEleganceListBLL     storefrontEleganceListBLL   = new zlzw.BLL.StorefrontEleganceListBLL();
                zlzw.Model.StorefrontEleganceListModal storefrontEleganceListModal = storefrontEleganceListBLL.GetModel(int.Parse(Get_StorefrontEleganceID(strSelectID)));
                storefrontEleganceListModal.IsEnable = 0;
                storefrontEleganceListBLL.Update(storefrontEleganceListModal);
                StorefrontEleganceList_BindGrid();

                #endregion
            }
            else
            {
                return;
            }
        }
Exemple #2
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();
        }