var ds ds = HeartBrainBVManage.GetHeartDiseaseableData(PageMinData,PageMaxData,userid,form1.txt_name.value,nameSort,diseaseKind,unitid).value; if (ds != null) { if(typeof(ds) == "object" && ds.Tables != null )// && ds.Tables[0].Rows.length>0) { PageSum = ds.Tables[0].Rows[0].ROWCOUNT;//统计多少条记录 for(var n = 1;n<=PageSize;n++) { document.all.CommunityGridViewOne.rows(n).cells(0).innerText = ""; document.all.CommunityGridViewOne.rows(n).cells(1).innerText = ""; document.all.CommunityGridViewOne.rows(n).cells(2).innerText = ""; document.all.CommunityGridViewOne.rows(n).cells(3).innerText = ""; document.all.CommunityGridViewOne.rows(n).cells(4).innerText = ""; document.all.CommunityGridViewOne.rows(n).cells(5).innerText = ""; document.all.CommunityGridViewOne.rows(n).cells(6).innerText = ""; } for(var n=1; n< ds.Tables[0].Rows.length;n++) { document.all.CommunityGridViewOne.rows(n).cells(0).innerText =ReplaceNull( ds.Tables[0].Rows[n].HEARTDISEASEID ); document.all.CommunityGridViewOne.rows(n).cells(1).innerText =ReplaceNull( ds.Tables[0].Rows[n].PEOPLEID ); document.all.CommunityGridViewOne.rows(n).cells(2).innerText =ReplaceNull( ds.Tables[0].Rows[n].NAME ); document.all.CommunityGridViewOne.rows(n).cells(3).innerText =ReplaceNull( GetTypeNameNew(dssex,ReplaceNull(ds.Tables[0].Rows[n].SEX))); document.all.CommunityGridViewOne.rows(n).cells(4).innerText =ReplaceNull( ds.Tables[0].Rows[n].BIRTHDAY); document.all.CommunityGridViewOne.rows(n).cells(5).innerText =ReplaceNull( ds.Tables[0].Rows[n].FIRSTDIAGNOSEDATE); document.all.CommunityGridViewOne.rows(n).cells(6).innerText =ReplaceNull( GetDiseaseListNameNew(dsdiseaselist,ReplaceNull(ds.Tables[0].Rows[n].DISEASEID))); } } if(btn_Type != 0) { Keyclicktable(1); Code=document.all.CommunityGridViewOne.rows(1).cells(0).innerText; // peopleid =document.all.CommunityGridViewOne.rows(1).cells(1).innerText; // peoplename = document.all.CommunityGridViewOne.rows(1).cells(2).innerText; } DataGrindBind_TwoPart(); }