private void InitiData(string Guid)
 {
     Detail_CAW_PORTPLAN DCPP = new CawPortPlanDB().GetDetail(Guid);
     this.lblGuid.Text = DCPP.GUID;
     this.lblPortGuid.Text = DCPP.PORTGUID;
     this.txtName.Text = DCPP.NAME;
     this.ntbYear.Text = DCPP.YEAR.ToString();
     this.txtDescription.Text = DCPP.DESCRIPTION;
     if (Request.QueryString["Type"] != null)
     {
         this.btnEdit.Visible = false;
     }
 }
        /// <summary>
        /// 选择数据
        /// </summary>
        protected void refresh()
        {
            int TotalNum = 0;
            int Year = ddlYearSch.SelectedIndex == 0 ? -1 : Convert.ToInt32(ddlYearSch.SelectedItem.Text.Trim());
            DataView dv = new CawPortPlanDB().Select(txtNameSch.Text.Trim(), Year, AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, out TotalNum);
            GridView1.DataSource = dv;
            GridView1.DataBind();
            FrameCommon FC = new FrameCommon();
            FC.SetPagerInfo(AspNetPager1, TotalNum, AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, "");

            //调用一个js函数,用于强制执行datagrid的颜色变换。如不用,因updatapanel中数据更新后将无法引起datagridcolor.js的执行
            CallJsFun("ChangeColor();");
        }