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;
            }
        }
        protected void btnSaveRefresh_Click(object sender, EventArgs e)
        {
            if (Request.QueryString["Type"] == "1")
            {
                //编辑保存
                zlzw.Model.VentureStarListModal ventureStarListModal = new zlzw.Model.VentureStarListModal();
                ventureStarListModal.Other01            = drpRegionList.SelectedValue;
                ventureStarListModal.DictionaryKey      = drpStoreType.SelectedValue; //所属门店
                ventureStarListModal.VentureStarName    = txbVentureStarName.Text;    //创业明星姓名
                ventureStarListModal.VentureStarContent = FCKeditor1.Value;           //创业明星介绍

                if (btnImageUpload.PostedFile.ContentLength > 0)
                {
                    btnImageUpload.SaveAs(Server.MapPath(ViewState["VentureStarImage"].ToString()));
                    ventureStarListModal.VentureStarImage = ViewState["VentureStarImage"].ToString();//保存企业Logo路径
                }
                else
                {
                    ventureStarListModal.VentureStarImage = ViewState["VentureStarImage"].ToString();
                }

                ventureStarListModal.IsEnable        = 1;
                ventureStarListModal.PublishDate     = DateTime.Parse(ViewState["PublishDate"].ToString());
                ventureStarListModal.VentureStarID   = int.Parse(Get_VentureStarID(Request.QueryString["value"]));
                ventureStarListModal.VentureStarGUID = new Guid(Request.QueryString["value"]);
                zlzw.BLL.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
                ventureStarListBLL.Update(ventureStarListModal);
            }
            else
            {
                //添加保存

                zlzw.Model.VentureStarListModal ventureStarListModal = new zlzw.Model.VentureStarListModal();
                ventureStarListModal.Other01            = drpRegionList.SelectedValue;
                ventureStarListModal.DictionaryKey      = drpStoreType.SelectedValue; //所属门店
                ventureStarListModal.VentureStarName    = txbVentureStarName.Text;    //创业明星姓名
                ventureStarListModal.VentureStarContent = FCKeditor1.Value;           //创业明星介绍
                ventureStarListModal.IsEnable           = 1;
                if (btnImageUpload.HasFile)
                {
                    string fileName = DateTime.Now.Ticks.ToString() + "_" + btnImageUpload.FileName;
                    btnImageUpload.SaveAs(Server.MapPath("~/VentureStarImage/" + fileName));
                    ventureStarListModal.VentureStarImage = "~/VentureStarImage/" + fileName;//保存企业Logo路径
                }
                else
                {
                    Alert.Show("请上传一张尺寸为166 * 55 的创业明星图片", "错误提醒", MessageBoxIcon.Error);
                    return;
                }
                ventureStarListModal.VentureStarGUID = Guid.NewGuid();
                ventureStarListModal.PublishDate     = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss"));

                zlzw.BLL.VentureStarListBLL ventureStarListBLL = new zlzw.BLL.VentureStarListBLL();
                ventureStarListBLL.Add(ventureStarListModal);
            }

            // 2. Close this window and Refresh parent window
            PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
        }