protected void drgName_OnSelectedIndexChanged(object sender, EventArgs e)
 {
     if (drgName.SelectedIndex != 0)
     {
         List<Detail_CAW_CORP_DEC_VIGILLICENCE> DataList = new CawVigillicenceDB().GetVigillicence(this.drgName.SelectedValue);
         this.txtCode.Text = DataList[0].LICENCECODE;
         this.txtBegin.Text = DataList[0].LICENCEDATE;
     }
 }
        /// <summary>
        /// 选择数据
        /// </summary>
        protected void refresh()
        {
            int TotalNum = 0;
            DataView dv = new CawVigillicenceDB().Select(Session["ORGID"].ToString(), this.txtName.Text.Trim(), this.DateSend.FromText, this.DateSend.ToText, this.drgStatus.SelectedIndex == 0 ? "" : this.drgStatus.SelectedValue, Pager.PageSize, Pager.CurrentPageIndex, out TotalNum);
            GridView1.DataSource = dv;
            GridView1.DataBind();
            FrameCommon FC = new FrameCommon();
            FC.SetPagerInfo(Pager, TotalNum, Pager.PageSize, Pager.CurrentPageIndex, "");

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