private string Get_VentureStarID(string strVentureStarGUID)
        {
            zlzw.BLL.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
            DataTable dt = ventureStarListBLL.GetList("VentureStarGUID='" + strVentureStarGUID + "'").Tables[0];

            return(dt.Rows[0]["VentureStarID"].ToString());
        }
        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.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
                DataTable dt = ventureStarListBLL.GetList("VentureStarGUID='" + strSelectID + "'").Tables[0];
                zlzw.Model.VentureStarListModal ventureStarListModal = ventureStarListBLL.GetModel(int.Parse(dt.Rows[0]["VentureStarID"].ToString()));
                ventureStarListModal.IsEnable = 0;
                ventureStarListBLL.Update(ventureStarListModal);
                VentureStarList_BindGrid();

                #endregion
            }
            else
            {
                return;
            }
        }
        private void VentureStarList_BindGrid()
        {
            zlzw.BLL.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
            DataTable dt = ventureStarListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0];

            grid1.DataSource = dt;
            grid1.DataBind();
        }
        private void Load_VentureStarList()
        {
            zlzw.BLL.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
            DataTable dt = ventureStarListBLL.GetList("IsEnable=1").Tables[0];

            if (dt.Rows.Count > 0)
            {
                Repeater1.DataSource = dt;
                Repeater1.DataBind();
            }
        }
        /// <summary>
        /// 获取总页数
        /// </summary>
        /// <returns></returns>
        private int Get_VentureStarListTotalCount()
        {
            zlzw.BLL.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
            DataTable dt = ventureStarListBLL.GetList("IsEnable=1").Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(dt.Rows.Count);
            }
            else
            {
                return(0);
            }
        }
 private void LoadData(string strType)
 {
     if (strType == "1")
     {
         string strID = Request.QueryString["value"];//操作ID
         zlzw.BLL.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
         DataTable dt = ventureStarListBLL.GetList("VentureStarGUID='" + strID + "'").Tables[0];
         zlzw.Model.VentureStarListModal ventureStarListModal = ventureStarListBLL.GetModel(int.Parse(dt.Rows[0]["VentureStarID"].ToString()));
         drpRegionList.SelectedValue   = ventureStarListModal.Other01.ToString();
         drpStoreType.SelectedValue    = ventureStarListModal.DictionaryKey;      //所属门店
         txbVentureStarName.Text       = ventureStarListModal.VentureStarName;    //创业明星姓名
         FCKeditor1.Value              = ventureStarListModal.VentureStarContent; //创业明星介绍
         labPreviweImg.ImageUrl        = ventureStarListModal.VentureStarImage.Split('~')[1];
         ViewState["VentureStarImage"] = ventureStarListModal.VentureStarImage;   //创业明星图片地址
         ViewState["PublishDate"]      = ventureStarListModal.PublishDate.ToString();
         ViewState["VentureStarGUID"]  = ventureStarListModal.VentureStarGUID.ToString();
         ToolbarText2.Text             = "编辑一个创业明星";
     }
     btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();
 }