/// <summary>
        /// 选择数据
        /// </summary>
        protected void refresh()
        {
            int TotalNum = 0;
            DataView dv = new CawPortMarkoutDB().Select(txtNameSch.Text.Trim(),dftApproveDateSch.FromText.Trim(),dftApproveDateSch.ToText.Trim(),ddlStatus.SelectedItem.Value.Trim(), 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();");
        }
 private void InitiData(string Guid)
 {
     Detail_CAW_PORTMARKOUT DCPM = new CawPortMarkoutDB().GetDetail(Guid);
     this.lblGuid.Text = DCPM.GUID;
     this.lblPortGuid.Text = DCPM.PORTGUID;
     this.txtName.Text = DCPM.NAME;
     this.dtbApproveDate.Text = DCPM.APPROVEDATE.ToShortDateString();
     this.dtbFinishDate.Text = DCPM.FINISHDATE == DateTime.MinValue ? "" : DCPM.FINISHDATE.ToShortDateString();
     this.txtIssueUnit.Text = DCPM.ISSUEUNIT;
     this.txtContent.Text = DCPM.CONTENT;
     this.rblApproveStatus.SelectedIndex = this.rblApproveStatus.Items.IndexOf(this.rblApproveStatus.Items.FindByValue(DCPM.APPROVESTATUS.ToString()));
     if (Request.QueryString["Type"] != null)
     {
         this.btnEdit.Visible = false;
         this.btnAtt.Visible = false;
     }
 }