private void InitiCountryData()
        {
            int TotalNum = 0;
            DataView dv = new CawZuoyeShipDB().SelectCountry(this.txtNameSch.Text.Trim(), this.txtCodeSch.Text.Trim(), this.PagerCountry.PageSize, this.PagerCountry.CurrentPageIndex, out TotalNum);
            this.dgCountry.DataSource = dv;
            this.dgCountry.DataBind();
            //dgCountry
            ShipFC.SetPagerInfo(PagerCountry, TotalNum, PagerCountry.PageSize, PagerCountry.CurrentPageIndex);

            //调用一个js函数,用于强制执行datagrid的颜色变换。如不用,因updatapanel中数据更新后将无法引起datagridcolor.js的执行
            CallJsFun("ChangeColor();");
        }
 /// <summary>
 /// 绑定表单
 /// </summary>
 /// <param name="Guid"></param>
 /// <returns></returns>
 private void BindCrtl(string ShipGuid)
 {
     //获取明细
     Detail_CAW_MANAGE_SHIPS DCSHIP = new CawZuoyeShipDB().GetDetail(ShipGuid);
     this.hidShipGuid.Value = DCSHIP.GUID;
     this.txtShipNameCN.Text = DCSHIP.SHIPNAMECN;
     this.txtSHIPNAMEEN.Text = DCSHIP.SHIPNAMEEN;
     this.txtCALLLETTER.Text = DCSHIP.CALLLETTER;
     this.txtOWNER.Text = DCSHIP.OWNER;
     this.ntbYearNum.Text = DCSHIP.YEARNUM.ToString();
     this.txtNationality.Text = DCSHIP.NATIONALITY;
     this.ddlShipType.SelectedIndex = this.ddlShipType.Items.IndexOf(this.ddlShipType.Items.FindByValue(DCSHIP.SHIPTYPE.ToString()));
     this.ntbShipHoist.Text = DCSHIP.SHIPHOIST.ToString();
     this.ntbShipHold.Text = DCSHIP.SHIPHOLD.ToString();
     this.ntxtTOTALTON.Text = DCSHIP.GRT.ToString();
     this.ntxtNETTON.Text = DCSHIP.NRT.ToString();
     this.ntxtLOADTON.Text = DCSHIP.DWT.ToString();
     this.ntxtSHIPLENGTH.Text = DCSHIP.SHIPLENGTH.ToString();
     this.ntxtSHIPWIDTH.Text = DCSHIP.SHIPWIDTH.ToString();
     this.ntxtLENGTH.Text = DCSHIP.LENGTH.ToString();
     this.ntxtHEIGHT.Text = DCSHIP.HEIGHT.ToString();
     this.ntxtDEPTH.Text = DCSHIP.SEAGUAGE.ToString();
     this.ntxtLOLLDEPTH.Text = DCSHIP.LOLLSEAGUAGE.ToString();
 }