anchor.diff:  	 <table id="mydatagrid"></table>
     </div>  
   </div>
  +<form id="iForm" name="iForm" method="post" action="">
  +	<input type="hidden" id="tables" name="tables">
  +</form>
   </body>
   </html>
  
positive.code: 		if(ids.length > 0 ){
  		    var ids = ids.join(',');
  			var dbType = jQuery('#dbType').val();
  			window.open('<%=request.getContextPath()%>/mx/system/table/genCreateScripts?tables='+ids+'&dbType='+dbType);
  		} else {
  			alert("请选择至少一条记录。");
  		}
  
negative.code: 		var rows = jQuery('#mydatagrid').datagrid('getSelections');
  		if(rows.length ==1){
  		    var tablename = rows[0].tableName_enc;
  		    window.open('<%=request.getContextPath()%>/mx/sys/table/resultList?q=1&tableName_enc='+tablename);
  		}
  	 }
  
  	 function onRowClick(rowIndex, row){
  	    var link = '<%=request.getContextPath()%>/mx/sys/table/resultList?q=1&tableName_enc='+row.tableName_enc;
  	    art.dialog.open(link, { height: 425, width: 880, title: row.tablename+"列表信息", lock: true, scrollbars:"no" }, false);
  	}
  	 
  