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.ParticipatingCompaniesListBLL participatingCompaniesListBLL = new zlzw.BLL.ParticipatingCompaniesListBLL();
                DataTable dt = participatingCompaniesListBLL.GetList("ParticipatingCompaniesGUID='" + strSelectID + "'").Tables[0];
                zlzw.Model.ParticipatingCompaniesListModel participatingCompaniesListModel = participatingCompaniesListBLL.GetModel(int.Parse(dt.Rows[0]["ParticipatingCompaniesID"].ToString()));
                participatingCompaniesListModel.IsEnable = 0;
                participatingCompaniesListBLL.Update(participatingCompaniesListModel);
                ParticipatingCompaniesListBLL_BindGrid();

                #endregion
            }
            else
            {
                return;
            }
        }
        protected void btnSaveRefresh_Click(object sender, EventArgs e)
        {
            if (Request.QueryString["Type"] == "1")
            {
                //编辑保存
                zlzw.Model.ParticipatingCompaniesListModel participatingCompaniesListModel = new zlzw.Model.ParticipatingCompaniesListModel();
                //participatingCompaniesListModel.EnterpriseGuid = new Guid(drpEnterpriseGuid.SelectedValue);
                participatingCompaniesListModel.ParticipatingCompaniesContent = txbParticipatingCompaniesContent.Text;
                //if(ckbIsShow.Checked)
                //{
                    participatingCompaniesListModel.IsShow = 1;
                //}
                //else
                //{
                //    participatingCompaniesListModel.IsShow = 0;
                //}
                participatingCompaniesListModel.IsEnable = 1;
                participatingCompaniesListModel.PublishDate = DateTime.Parse(ViewState["PublishDate"].ToString());
                participatingCompaniesListModel.ParticipatingCompaniesGUID = new Guid(ViewState["ParticipatingCompaniesGUID"].ToString());
                zlzw.BLL.ParticipatingCompaniesListBLL participatingCompaniesListBLL = new zlzw.BLL.ParticipatingCompaniesListBLL();
                participatingCompaniesListModel.ParticipatingCompaniesID = int.Parse(Get_ID(participatingCompaniesListBLL, Request.QueryString["value"]));

                participatingCompaniesListBLL.Update(participatingCompaniesListModel);
            }
            else
            {
                //添加保存

                zlzw.Model.ParticipatingCompaniesListModel participatingCompaniesListModel = new zlzw.Model.ParticipatingCompaniesListModel();
                //participatingCompaniesListModel.EnterpriseGuid = new Guid(drpEnterpriseGuid.SelectedValue);
                participatingCompaniesListModel.ParticipatingCompaniesContent = txbParticipatingCompaniesContent.Text;
                //if (ckbIsShow.Checked)
                //{
                    participatingCompaniesListModel.IsShow = 1;
                //}
                //else
                //{
                    //participatingCompaniesListModel.IsShow = 0;
                //}
                participatingCompaniesListModel.IsEnable = 1;
                participatingCompaniesListModel.PublishDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss"));
                zlzw.BLL.ParticipatingCompaniesListBLL participatingCompaniesListBLL = new zlzw.BLL.ParticipatingCompaniesListBLL();
                participatingCompaniesListBLL.Add(participatingCompaniesListModel);
            }

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