spring mvc ztree grid小例子.docx
- 文档编号:24313136
- 上传时间:2023-05-26
- 格式:DOCX
- 页数:42
- 大小:26.61KB
spring mvc ztree grid小例子.docx
《spring mvc ztree grid小例子.docx》由会员分享,可在线阅读,更多相关《spring mvc ztree grid小例子.docx(42页珍藏版)》请在冰豆网上搜索。
springmvcztreegrid小例子
grid.jsp
<%@pagelanguage="java"import="java.util.*"pageEncoding="UTF-8"%>
<%
Stringpath=request.getContextPath();
StringbasePath=request.getScheme()+":
//"
+request.getServerName()+":
"+request.getServerPort()
+path+"/";
%>
DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:
//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
//www.w3.org/1999/xhtml">
#my_table{
margin-top:
50px;
}
#div1{
width:
526px;
height:
100px;
margin-top:
0px;
}
#div2{
width:
526px;
height:
356px;
margin-top:
10px;
}
.button{
float:
right;
}
#grid_div{
width:
200px;
height:
487px;
margin-top:
0px;
}
#gridsubmit{
width:
50px;
height:
24px;
margin-left:
250px;
}
href="dhtmlxCombo/codebase/dhtmlxcombo.css"/> href="dhtmlxGrid/codebase/dhtmlxgrid.css"/> href="css/dhtmlxgrid_dhx_custom.css"/> type="text/css"/> type="text/css"/> div.gridbox_dhx_customtable.hdrtd{ font-family: 微软雅黑; font-size: 12px; font-weight: bold; vertical-align: top; } div.gridboxtable.obj.row20pxtrtd{ } .dhx_combo_list{ } div.gridboxtable.hdrtd{ padding-top: 6px; padding-bottom: 6px } div.gridbox.objbox{ scrollbar-face-color: #E3EBF8; scrollbar-shadow-color: #c6d8f0; scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #E3EBF8; scrollbar-darkshadow-color: #d8e4f3; scrollbar-track-color: #FFFFFF; scrollbar-arrow-color: #9bb8de; } window.dhx_globalImgPath="dhtmlxCombo/codebase/imgs/"; src="dhtmlxCombo/codebase/dhtmlxcommon.js"> src="dhtmlxCombo/codebase/dhtmlxcombo.js"> src="dhtmlxTabbar/codebase/dhtmlxtabbar.js"> src="dhtmlxGrid/sources/ext/dhtmlxgrid_srnd.js">
value="增加"onclick="addTreeNode();"/>
主 诉:
现 病史:
体格检查:
onclick="doGridAddRow();"/> onclick="doGridDeleteRow();"/> white;height: 300px;">
varmygrid=newdhtmlXGridObject('gridbox');
mygrid.enableAutoWidth(true);
mygrid.setImagePath("imgs/");
mygrid.setSkin("dhx_custom");
mygrid.setHeader("选择,医嘱名称,剂量,单位,给药方式,频次,数量,单位");
mygrid.setInitWidths("25,200,50,50,50,50,50,50");
mygrid.setColTypes("ch,ed,ed,ed,ed,ed,ed,ed");
mygrid.setColAlign("center,center,center,center,center,center,center,center")
mygrid.init();