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());
        }
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public zlzw.Model.ParticipatingCompaniesListModel DataRowToModel(DataRow row)
 {
     zlzw.Model.ParticipatingCompaniesListModel model = new zlzw.Model.ParticipatingCompaniesListModel();
     if (row != null)
     {
         if (row["ParticipatingCompaniesID"] != null && row["ParticipatingCompaniesID"].ToString() != "")
         {
             model.ParticipatingCompaniesID = int.Parse(row["ParticipatingCompaniesID"].ToString());
         }
         if (row["ParticipatingCompaniesGUID"] != null && row["ParticipatingCompaniesGUID"].ToString() != "")
         {
             model.ParticipatingCompaniesGUID = new Guid(row["ParticipatingCompaniesGUID"].ToString());
         }
         if (row["EnterpriseGuid"] != null && row["EnterpriseGuid"].ToString() != "")
         {
             model.EnterpriseGuid = new Guid(row["EnterpriseGuid"].ToString());
         }
         if (row["ParticipatingCompaniesContent"] != null)
         {
             model.ParticipatingCompaniesContent = row["ParticipatingCompaniesContent"].ToString();
         }
         if (row["IsShow"] != null && row["IsShow"].ToString() != "")
         {
             model.IsShow = int.Parse(row["IsShow"].ToString());
         }
         if (row["PublishDate"] != null && row["PublishDate"].ToString() != "")
         {
             model.PublishDate = DateTime.Parse(row["PublishDate"].ToString());
         }
         if (row["IsEnable"] != null && row["IsEnable"].ToString() != "")
         {
             model.IsEnable = int.Parse(row["IsEnable"].ToString());
         }
         if (row["Other01"] != null)
         {
             model.Other01 = row["Other01"].ToString();
         }
         if (row["Other02"] != null)
         {
             model.Other02 = row["Other02"].ToString();
         }
         if (row["Other03"] != null)
         {
             model.Other03 = row["Other03"].ToString();
         }
         if (row["Other04"] != null)
         {
             model.Other04 = row["Other04"].ToString();
         }
     }
     return model;
 }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public zlzw.Model.ParticipatingCompaniesListModel GetModel(int ParticipatingCompaniesID)
        {
            SqlParameter[] parameters = {
					new SqlParameter("@ParticipatingCompaniesID", SqlDbType.Int,4)
			};
            parameters[0].Value = ParticipatingCompaniesID;

            zlzw.Model.ParticipatingCompaniesListModel model = new zlzw.Model.ParticipatingCompaniesListModel();
            DataSet ds = DbHelperSQL.RunProcedure("ParticipatingCompaniesList_GetModel", parameters, "ds");
            if (ds.Tables[0].Rows.Count > 0)
            {
                return DataRowToModel(ds.Tables[0].Rows[0]);
            }
            else
            {
                return null;
            }
        }