Commit 8afe9e2e64f8b18fd7e64487eb20ac96a7f97094
1 parent
1d841c31
模板修改bug jsp页面没有更新过来
Showing
21 changed files
with
98 additions
and
98 deletions
WebRoot/WEB-INF/jsp/sunvote/basestation/basestation_edit.jsp
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="basestation/${msg }.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="BASESTATION_ID" id="BASESTATION_ID" value="${pd.BASESTATION_ID}"/> | |
| 31 | + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> | |
| 32 | 32 | <div id="zhongxin" style="padding-top: 13px;"> |
| 33 | 33 | <table id="table_report" class="table table-striped table-bordered table-hover"> |
| 34 | 34 | <tr> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/basestation/basestation_list.jsp
| ... | ... | @@ -86,7 +86,7 @@ |
| 86 | 86 | <c:forEach items="${varList}" var="var" varStatus="vs"> |
| 87 | 87 | <tr> |
| 88 | 88 | <td class='center'> |
| 89 | - <label class="pos-rel"><input type='checkbox' name='ids' value="${var.BASESTATION_ID}" class="ace" /><span class="lbl"></span></label> | |
| 89 | + <label class="pos-rel"><input type='checkbox' name='ids' value="${var.ID}" class="ace" /><span class="lbl"></span></label> | |
| 90 | 90 | </td> |
| 91 | 91 | <td class='center' style="width: 30px;">${vs.index+1}</td> |
| 92 | 92 | <td class='center'>${var.NAME}</td> |
| ... | ... | @@ -103,12 +103,12 @@ |
| 103 | 103 | </c:if> |
| 104 | 104 | <div class="hidden-sm hidden-xs btn-group"> |
| 105 | 105 | <c:if test="${QX.edit == 1 }"> |
| 106 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.BASESTATION_ID}');"> | |
| 106 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.ID}');"> | |
| 107 | 107 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 108 | 108 | </a> |
| 109 | 109 | </c:if> |
| 110 | 110 | <c:if test="${QX.del == 1 }"> |
| 111 | - <a class="btn btn-xs btn-danger" onclick="del('${var.BASESTATION_ID}');"> | |
| 111 | + <a class="btn btn-xs btn-danger" onclick="del('${var.ID}');"> | |
| 112 | 112 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 113 | 113 | </a> |
| 114 | 114 | </c:if> |
| ... | ... | @@ -122,7 +122,7 @@ |
| 122 | 122 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 123 | 123 | <c:if test="${QX.edit == 1 }"> |
| 124 | 124 | <li> |
| 125 | - <a style="cursor:pointer;" onclick="edit('${var.BASESTATION_ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 125 | + <a style="cursor:pointer;" onclick="edit('${var.ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 126 | 126 | <span class="green"> |
| 127 | 127 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 128 | 128 | </span> |
| ... | ... | @@ -131,7 +131,7 @@ |
| 131 | 131 | </c:if> |
| 132 | 132 | <c:if test="${QX.del == 1 }"> |
| 133 | 133 | <li> |
| 134 | - <a style="cursor:pointer;" onclick="del('${var.BASESTATION_ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 134 | + <a style="cursor:pointer;" onclick="del('${var.ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 135 | 135 | <span class="red"> |
| 136 | 136 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 137 | 137 | </span> |
| ... | ... | @@ -292,7 +292,7 @@ |
| 292 | 292 | bootbox.confirm("确定要删除吗?", function(result) { |
| 293 | 293 | if(result) { |
| 294 | 294 | top.jzts(); |
| 295 | - var url = "<%=basePath%>basestation/delete.do?BASESTATION_ID="+Id+"&tm="+new Date().getTime(); | |
| 295 | + var url = "<%=basePath%>basestation/delete.do?ID="+Id+"&tm="+new Date().getTime(); | |
| 296 | 296 | $.get(url,function(data){ |
| 297 | 297 | tosearch(); |
| 298 | 298 | }); |
| ... | ... | @@ -306,7 +306,7 @@ |
| 306 | 306 | var diag = new top.Dialog(); |
| 307 | 307 | diag.Drag=true; |
| 308 | 308 | diag.Title ="编辑"; |
| 309 | - diag.URL = '<%=basePath%>basestation/goEdit.do?BASESTATION_ID='+Id; | |
| 309 | + diag.URL = '<%=basePath%>basestation/goEdit.do?ID='+Id; | |
| 310 | 310 | diag.Width = 450; |
| 311 | 311 | diag.Height = 355; |
| 312 | 312 | diag.Modal = true; //有无遮罩窗口 | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/keypad/keypad_edit.jsp
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="keypad/${msg }.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="KEYPAD_ID" id="KEYPAD_ID" value="${pd.KEYPAD_ID}"/> | |
| 31 | + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> | |
| 32 | 32 | <div id="zhongxin" style="padding-top: 13px;"> |
| 33 | 33 | <table id="table_report" class="table table-striped table-bordered table-hover"> |
| 34 | 34 | <tr> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/keypad/keypad_list.jsp
| ... | ... | @@ -83,7 +83,7 @@ |
| 83 | 83 | <c:forEach items="${varList}" var="var" varStatus="vs"> |
| 84 | 84 | <tr> |
| 85 | 85 | <td class='center'> |
| 86 | - <label class="pos-rel"><input type='checkbox' name='ids' value="${var.KEYPAD_ID}" class="ace" /><span class="lbl"></span></label> | |
| 86 | + <label class="pos-rel"><input type='checkbox' name='ids' value="${var.ID}" class="ace" /><span class="lbl"></span></label> | |
| 87 | 87 | </td> |
| 88 | 88 | <td class='center' style="width: 30px;">${vs.index+1}</td> |
| 89 | 89 | <td class='center'>${var.NO}</td> |
| ... | ... | @@ -97,12 +97,12 @@ |
| 97 | 97 | </c:if> |
| 98 | 98 | <div class="hidden-sm hidden-xs btn-group"> |
| 99 | 99 | <c:if test="${QX.edit == 1 }"> |
| 100 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.KEYPAD_ID}');"> | |
| 100 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.ID}');"> | |
| 101 | 101 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 102 | 102 | </a> |
| 103 | 103 | </c:if> |
| 104 | 104 | <c:if test="${QX.del == 1 }"> |
| 105 | - <a class="btn btn-xs btn-danger" onclick="del('${var.KEYPAD_ID}');"> | |
| 105 | + <a class="btn btn-xs btn-danger" onclick="del('${var.ID}');"> | |
| 106 | 106 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 107 | 107 | </a> |
| 108 | 108 | </c:if> |
| ... | ... | @@ -116,7 +116,7 @@ |
| 116 | 116 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 117 | 117 | <c:if test="${QX.edit == 1 }"> |
| 118 | 118 | <li> |
| 119 | - <a style="cursor:pointer;" onclick="edit('${var.KEYPAD_ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 119 | + <a style="cursor:pointer;" onclick="edit('${var.ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 120 | 120 | <span class="green"> |
| 121 | 121 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 122 | 122 | </span> |
| ... | ... | @@ -125,7 +125,7 @@ |
| 125 | 125 | </c:if> |
| 126 | 126 | <c:if test="${QX.del == 1 }"> |
| 127 | 127 | <li> |
| 128 | - <a style="cursor:pointer;" onclick="del('${var.KEYPAD_ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 128 | + <a style="cursor:pointer;" onclick="del('${var.ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 129 | 129 | <span class="red"> |
| 130 | 130 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 131 | 131 | </span> |
| ... | ... | @@ -286,7 +286,7 @@ |
| 286 | 286 | bootbox.confirm("确定要删除吗?", function(result) { |
| 287 | 287 | if(result) { |
| 288 | 288 | top.jzts(); |
| 289 | - var url = "<%=basePath%>keypad/delete.do?KEYPAD_ID="+Id+"&tm="+new Date().getTime(); | |
| 289 | + var url = "<%=basePath%>keypad/delete.do?ID="+Id+"&tm="+new Date().getTime(); | |
| 290 | 290 | $.get(url,function(data){ |
| 291 | 291 | tosearch(); |
| 292 | 292 | }); |
| ... | ... | @@ -300,7 +300,7 @@ |
| 300 | 300 | var diag = new top.Dialog(); |
| 301 | 301 | diag.Drag=true; |
| 302 | 302 | diag.Title ="编辑"; |
| 303 | - diag.URL = '<%=basePath%>keypad/goEdit.do?KEYPAD_ID='+Id; | |
| 303 | + diag.URL = '<%=basePath%>keypad/goEdit.do?ID='+Id; | |
| 304 | 304 | diag.Width = 450; |
| 305 | 305 | diag.Height = 355; |
| 306 | 306 | diag.Modal = true; //有无遮罩窗口 | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/papertype/papertype_edit.jsp
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="papertype/${msg }.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="PAPERTYPE_ID" id="PAPERTYPE_ID" value="${pd.PAPERTYPE_ID}"/> | |
| 31 | + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> | |
| 32 | 32 | <div id="zhongxin" style="padding-top: 13px;"> |
| 33 | 33 | <table id="table_report" class="table table-striped table-bordered table-hover"> |
| 34 | 34 | <tr> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/papertype/papertype_list.jsp
| ... | ... | @@ -80,7 +80,7 @@ |
| 80 | 80 | <c:forEach items="${varList}" var="var" varStatus="vs"> |
| 81 | 81 | <tr> |
| 82 | 82 | <td class='center'> |
| 83 | - <label class="pos-rel"><input type='checkbox' name='ids' value="${var.PAPERTYPE_ID}" class="ace" /><span class="lbl"></span></label> | |
| 83 | + <label class="pos-rel"><input type='checkbox' name='ids' value="${var.ID}" class="ace" /><span class="lbl"></span></label> | |
| 84 | 84 | </td> |
| 85 | 85 | <td class='center' style="width: 30px;">${vs.index+1}</td> |
| 86 | 86 | <td class='center'>${var.NAME}</td> |
| ... | ... | @@ -91,12 +91,12 @@ |
| 91 | 91 | </c:if> |
| 92 | 92 | <div class="hidden-sm hidden-xs btn-group"> |
| 93 | 93 | <c:if test="${QX.edit == 1 }"> |
| 94 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.PAPERTYPE_ID}');"> | |
| 94 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.ID}');"> | |
| 95 | 95 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 96 | 96 | </a> |
| 97 | 97 | </c:if> |
| 98 | 98 | <c:if test="${QX.del == 1 }"> |
| 99 | - <a class="btn btn-xs btn-danger" onclick="del('${var.PAPERTYPE_ID}');"> | |
| 99 | + <a class="btn btn-xs btn-danger" onclick="del('${var.ID}');"> | |
| 100 | 100 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 101 | 101 | </a> |
| 102 | 102 | </c:if> |
| ... | ... | @@ -110,7 +110,7 @@ |
| 110 | 110 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 111 | 111 | <c:if test="${QX.edit == 1 }"> |
| 112 | 112 | <li> |
| 113 | - <a style="cursor:pointer;" onclick="edit('${var.PAPERTYPE_ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 113 | + <a style="cursor:pointer;" onclick="edit('${var.ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 114 | 114 | <span class="green"> |
| 115 | 115 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 116 | 116 | </span> |
| ... | ... | @@ -119,7 +119,7 @@ |
| 119 | 119 | </c:if> |
| 120 | 120 | <c:if test="${QX.del == 1 }"> |
| 121 | 121 | <li> |
| 122 | - <a style="cursor:pointer;" onclick="del('${var.PAPERTYPE_ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 122 | + <a style="cursor:pointer;" onclick="del('${var.ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 123 | 123 | <span class="red"> |
| 124 | 124 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 125 | 125 | </span> |
| ... | ... | @@ -280,7 +280,7 @@ |
| 280 | 280 | bootbox.confirm("确定要删除吗?", function(result) { |
| 281 | 281 | if(result) { |
| 282 | 282 | top.jzts(); |
| 283 | - var url = "<%=basePath%>papertype/delete.do?PAPERTYPE_ID="+Id+"&tm="+new Date().getTime(); | |
| 283 | + var url = "<%=basePath%>papertype/delete.do?ID="+Id+"&tm="+new Date().getTime(); | |
| 284 | 284 | $.get(url,function(data){ |
| 285 | 285 | tosearch(); |
| 286 | 286 | }); |
| ... | ... | @@ -294,7 +294,7 @@ |
| 294 | 294 | var diag = new top.Dialog(); |
| 295 | 295 | diag.Drag=true; |
| 296 | 296 | diag.Title ="编辑"; |
| 297 | - diag.URL = '<%=basePath%>papertype/goEdit.do?PAPERTYPE_ID='+Id; | |
| 297 | + diag.URL = '<%=basePath%>papertype/goEdit.do?ID='+Id; | |
| 298 | 298 | diag.Width = 450; |
| 299 | 299 | diag.Height = 355; |
| 300 | 300 | diag.Modal = true; //有无遮罩窗口 | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/school/school_edit.jsp
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="school/${msg }.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
| 31 | + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> | |
| 32 | 32 | <div id="zhongxin" style="padding-top: 13px;"> |
| 33 | 33 | <table id="table_report" class="table table-striped table-bordered table-hover"> |
| 34 | 34 | <tr> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/school/school_list.jsp
| ... | ... | @@ -83,7 +83,7 @@ |
| 83 | 83 | <c:forEach items="${varList}" var="var" varStatus="vs"> |
| 84 | 84 | <tr> |
| 85 | 85 | <td class='center'> |
| 86 | - <label class="pos-rel"><input type='checkbox' name='ids' value="${var.SCHOOL_ID}" class="ace" /><span class="lbl"></span></label> | |
| 86 | + <label class="pos-rel"><input type='checkbox' name='ids' value="${var.ID}" class="ace" /><span class="lbl"></span></label> | |
| 87 | 87 | </td> |
| 88 | 88 | <td class='center' style="width: 30px;">${vs.index+1}</td> |
| 89 | 89 | <td class='center'>${var.NAME}</td> |
| ... | ... | @@ -97,12 +97,12 @@ |
| 97 | 97 | </c:if> |
| 98 | 98 | <div class="hidden-sm hidden-xs btn-group"> |
| 99 | 99 | <c:if test="${QX.edit == 1 }"> |
| 100 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.SCHOOL_ID}');"> | |
| 100 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.ID}');"> | |
| 101 | 101 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 102 | 102 | </a> |
| 103 | 103 | </c:if> |
| 104 | 104 | <c:if test="${QX.del == 1 }"> |
| 105 | - <a class="btn btn-xs btn-danger" onclick="del('${var.SCHOOL_ID}');"> | |
| 105 | + <a class="btn btn-xs btn-danger" onclick="del('${var.ID}');"> | |
| 106 | 106 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 107 | 107 | </a> |
| 108 | 108 | </c:if> |
| ... | ... | @@ -116,7 +116,7 @@ |
| 116 | 116 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 117 | 117 | <c:if test="${QX.edit == 1 }"> |
| 118 | 118 | <li> |
| 119 | - <a style="cursor:pointer;" onclick="edit('${var.SCHOOL_ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 119 | + <a style="cursor:pointer;" onclick="edit('${var.ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 120 | 120 | <span class="green"> |
| 121 | 121 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 122 | 122 | </span> |
| ... | ... | @@ -125,7 +125,7 @@ |
| 125 | 125 | </c:if> |
| 126 | 126 | <c:if test="${QX.del == 1 }"> |
| 127 | 127 | <li> |
| 128 | - <a style="cursor:pointer;" onclick="del('${var.SCHOOL_ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 128 | + <a style="cursor:pointer;" onclick="del('${var.ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 129 | 129 | <span class="red"> |
| 130 | 130 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 131 | 131 | </span> |
| ... | ... | @@ -286,7 +286,7 @@ |
| 286 | 286 | bootbox.confirm("确定要删除吗?", function(result) { |
| 287 | 287 | if(result) { |
| 288 | 288 | top.jzts(); |
| 289 | - var url = "<%=basePath%>school/delete.do?SCHOOL_ID="+Id+"&tm="+new Date().getTime(); | |
| 289 | + var url = "<%=basePath%>school/delete.do?ID="+Id+"&tm="+new Date().getTime(); | |
| 290 | 290 | $.get(url,function(data){ |
| 291 | 291 | tosearch(); |
| 292 | 292 | }); |
| ... | ... | @@ -300,7 +300,7 @@ |
| 300 | 300 | var diag = new top.Dialog(); |
| 301 | 301 | diag.Drag=true; |
| 302 | 302 | diag.Title ="编辑"; |
| 303 | - diag.URL = '<%=basePath%>school/goEdit.do?SCHOOL_ID='+Id; | |
| 303 | + diag.URL = '<%=basePath%>school/goEdit.do?ID='+Id; | |
| 304 | 304 | diag.Width = 450; |
| 305 | 305 | diag.Height = 355; |
| 306 | 306 | diag.Modal = true; //有无遮罩窗口 | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/teachingmaterial/teachingmaterial_edit.jsp
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="teachingmaterial/${msg }.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="TEACHINGMATERIAL_ID" id="TEACHINGMATERIAL_ID" value="${pd.TEACHINGMATERIAL_ID}"/> | |
| 31 | + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> | |
| 32 | 32 | <div id="zhongxin" style="padding-top: 13px;"> |
| 33 | 33 | <table id="table_report" class="table table-striped table-bordered table-hover"> |
| 34 | 34 | <tr> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/teachingmaterial/teachingmaterial_list.jsp
| ... | ... | @@ -83,7 +83,7 @@ |
| 83 | 83 | <c:forEach items="${varList}" var="var" varStatus="vs"> |
| 84 | 84 | <tr> |
| 85 | 85 | <td class='center'> |
| 86 | - <label class="pos-rel"><input type='checkbox' name='ids' value="${var.TEACHINGMATERIAL_ID}" class="ace" /><span class="lbl"></span></label> | |
| 86 | + <label class="pos-rel"><input type='checkbox' name='ids' value="${var.ID}" class="ace" /><span class="lbl"></span></label> | |
| 87 | 87 | </td> |
| 88 | 88 | <td class='center' style="width: 30px;">${vs.index+1}</td> |
| 89 | 89 | <td class='center'>${var.NAME}</td> |
| ... | ... | @@ -97,12 +97,12 @@ |
| 97 | 97 | </c:if> |
| 98 | 98 | <div class="hidden-sm hidden-xs btn-group"> |
| 99 | 99 | <c:if test="${QX.edit == 1 }"> |
| 100 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.TEACHINGMATERIAL_ID}');"> | |
| 100 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.ID}');"> | |
| 101 | 101 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 102 | 102 | </a> |
| 103 | 103 | </c:if> |
| 104 | 104 | <c:if test="${QX.del == 1 }"> |
| 105 | - <a class="btn btn-xs btn-danger" onclick="del('${var.TEACHINGMATERIAL_ID}');"> | |
| 105 | + <a class="btn btn-xs btn-danger" onclick="del('${var.ID}');"> | |
| 106 | 106 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 107 | 107 | </a> |
| 108 | 108 | </c:if> |
| ... | ... | @@ -116,7 +116,7 @@ |
| 116 | 116 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 117 | 117 | <c:if test="${QX.edit == 1 }"> |
| 118 | 118 | <li> |
| 119 | - <a style="cursor:pointer;" onclick="edit('${var.TEACHINGMATERIAL_ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 119 | + <a style="cursor:pointer;" onclick="edit('${var.ID}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 120 | 120 | <span class="green"> |
| 121 | 121 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 122 | 122 | </span> |
| ... | ... | @@ -125,7 +125,7 @@ |
| 125 | 125 | </c:if> |
| 126 | 126 | <c:if test="${QX.del == 1 }"> |
| 127 | 127 | <li> |
| 128 | - <a style="cursor:pointer;" onclick="del('${var.TEACHINGMATERIAL_ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 128 | + <a style="cursor:pointer;" onclick="del('${var.ID}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 129 | 129 | <span class="red"> |
| 130 | 130 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 131 | 131 | </span> |
| ... | ... | @@ -286,7 +286,7 @@ |
| 286 | 286 | bootbox.confirm("确定要删除吗?", function(result) { |
| 287 | 287 | if(result) { |
| 288 | 288 | top.jzts(); |
| 289 | - var url = "<%=basePath%>teachingmaterial/delete.do?TEACHINGMATERIAL_ID="+Id+"&tm="+new Date().getTime(); | |
| 289 | + var url = "<%=basePath%>teachingmaterial/delete.do?ID="+Id+"&tm="+new Date().getTime(); | |
| 290 | 290 | $.get(url,function(data){ |
| 291 | 291 | tosearch(); |
| 292 | 292 | }); |
| ... | ... | @@ -300,7 +300,7 @@ |
| 300 | 300 | var diag = new top.Dialog(); |
| 301 | 301 | diag.Drag=true; |
| 302 | 302 | diag.Title ="编辑"; |
| 303 | - diag.URL = '<%=basePath%>teachingmaterial/goEdit.do?TEACHINGMATERIAL_ID='+Id; | |
| 303 | + diag.URL = '<%=basePath%>teachingmaterial/goEdit.do?ID='+Id; | |
| 304 | 304 | diag.Width = 450; |
| 305 | 305 | diag.Height = 355; |
| 306 | 306 | diag.Modal = true; //有无遮罩窗口 | ... | ... |
resources/ftl/createCode/jsp_edit_Template.ftl
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="${objectNameLower}/${r"${msg }"}.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="${objectNameUpper}_ID" id="${objectNameUpper}_ID" value="${r"${pd."}${objectNameUpper}_ID${r"}"}"/> | |
| 31 | + <input type="hidden" name="${ID" id="${ID" value="${r"${pd."}${ID${r"}"}"/> | |
| 32 | 32 | <div id="zhongxin" style="padding-top: 13px;"> |
| 33 | 33 | <table id="table_report" class="table table-striped table-bordered table-hover"> |
| 34 | 34 | <#list fieldList as var> | ... | ... |
resources/ftl/createCode/jsp_list_Template.ftl
| ... | ... | @@ -81,7 +81,7 @@ |
| 81 | 81 | <c:forEach items="${r"${varList}"}" var="var" varStatus="vs"> |
| 82 | 82 | <tr> |
| 83 | 83 | <td class='center'> |
| 84 | - <label class="pos-rel"><input type='checkbox' name='ids' value="${r"${var."}${objectNameUpper}_ID${r"}"}" class="ace" /><span class="lbl"></span></label> | |
| 84 | + <label class="pos-rel"><input type='checkbox' name='ids' value="${r"${var."}${ID${r"}"}" class="ace" /><span class="lbl"></span></label> | |
| 85 | 85 | </td> |
| 86 | 86 | <td class='center' style="width: 30px;">${r"${vs.index+1}"}</td> |
| 87 | 87 | <#list fieldList as var> |
| ... | ... | @@ -93,12 +93,12 @@ |
| 93 | 93 | </c:if> |
| 94 | 94 | <div class="hidden-sm hidden-xs btn-group"> |
| 95 | 95 | <c:if test="${r"${QX.edit == 1 }"}"> |
| 96 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${r"${var."}${objectNameUpper}_ID${r"}"}');"> | |
| 96 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${r"${var."}${ID${r"}"}');"> | |
| 97 | 97 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 98 | 98 | </a> |
| 99 | 99 | </c:if> |
| 100 | 100 | <c:if test="${r"${QX.del == 1 }"}"> |
| 101 | - <a class="btn btn-xs btn-danger" onclick="del('${r"${var."}${objectNameUpper}_ID${r"}"}');"> | |
| 101 | + <a class="btn btn-xs btn-danger" onclick="del('${r"${var."}${ID${r"}"}');"> | |
| 102 | 102 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 103 | 103 | </a> |
| 104 | 104 | </c:if> |
| ... | ... | @@ -112,7 +112,7 @@ |
| 112 | 112 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 113 | 113 | <c:if test="${r"${QX.edit == 1 }"}"> |
| 114 | 114 | <li> |
| 115 | - <a style="cursor:pointer;" onclick="edit('${r"${var."}${objectNameUpper}_ID${r"}"}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 115 | + <a style="cursor:pointer;" onclick="edit('${r"${var."}${ID${r"}"}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 116 | 116 | <span class="green"> |
| 117 | 117 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 118 | 118 | </span> |
| ... | ... | @@ -121,7 +121,7 @@ |
| 121 | 121 | </c:if> |
| 122 | 122 | <c:if test="${r"${QX.del == 1 }"}"> |
| 123 | 123 | <li> |
| 124 | - <a style="cursor:pointer;" onclick="del('${r"${var."}${objectNameUpper}_ID${r"}"}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 124 | + <a style="cursor:pointer;" onclick="del('${r"${var."}${ID${r"}"}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 125 | 125 | <span class="red"> |
| 126 | 126 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 127 | 127 | </span> |
| ... | ... | @@ -282,7 +282,7 @@ |
| 282 | 282 | bootbox.confirm("确定要删除吗?", function(result) { |
| 283 | 283 | if(result) { |
| 284 | 284 | top.jzts(); |
| 285 | - var url = "<%=basePath%>${objectNameLower}/delete.do?${objectNameUpper}_ID="+Id+"&tm="+new Date().getTime(); | |
| 285 | + var url = "<%=basePath%>${objectNameLower}/delete.do?${ID="+Id+"&tm="+new Date().getTime(); | |
| 286 | 286 | $.get(url,function(data){ |
| 287 | 287 | tosearch(); |
| 288 | 288 | }); |
| ... | ... | @@ -296,7 +296,7 @@ |
| 296 | 296 | var diag = new top.Dialog(); |
| 297 | 297 | diag.Drag=true; |
| 298 | 298 | diag.Title ="编辑"; |
| 299 | - diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${objectNameUpper}_ID='+Id; | |
| 299 | + diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${ID='+Id; | |
| 300 | 300 | diag.Width = 450; |
| 301 | 301 | diag.Height = 355; |
| 302 | 302 | diag.Modal = true; //有无遮罩窗口 | ... | ... |
resources/ftl/createCode/mapperMysqlTemplate.ftl
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | <#list fieldList as var> |
| 13 | 13 | ${var[0]}, |
| 14 | 14 | </#list> |
| 15 | - $ID | |
| 15 | + ID | |
| 16 | 16 | </sql> |
| 17 | 17 | |
| 18 | 18 | <!-- 字段值 --> |
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | <#list fieldList as var> |
| 21 | 21 | ${r"#{"}${var[0]}${r"}"}, |
| 22 | 22 | </#list> |
| 23 | - ${r"#{"}$ID${r"}"} | |
| 23 | + ${r"#{"}ID${r"}"} | |
| 24 | 24 | </sql> |
| 25 | 25 | |
| 26 | 26 | <!-- 新增--> |
| ... | ... | @@ -39,7 +39,7 @@ |
| 39 | 39 | delete from |
| 40 | 40 | <include refid="tableName"></include> |
| 41 | 41 | where |
| 42 | - $ID = ${r"#{"}$ID${r"}"} | |
| 42 | + ID = ${r"#{"}ID${r"}"} | |
| 43 | 43 | </delete> |
| 44 | 44 | |
| 45 | 45 | <!-- 修改 --> |
| ... | ... | @@ -52,9 +52,9 @@ |
| 52 | 52 | ${var[0]} = ${r"#{"}${var[0]}${r"}"}, |
| 53 | 53 | </#if> |
| 54 | 54 | </#list> |
| 55 | - $ID = $ID | |
| 55 | + ID = ID | |
| 56 | 56 | where |
| 57 | - $ID = ${r"#{"}$ID${r"}"} | |
| 57 | + ID = ${r"#{"}ID${r"}"} | |
| 58 | 58 | </update> |
| 59 | 59 | |
| 60 | 60 | <!-- 通过ID获取数据 --> |
| ... | ... | @@ -64,7 +64,7 @@ |
| 64 | 64 | from |
| 65 | 65 | <include refid="tableName"></include> |
| 66 | 66 | where |
| 67 | - $ID = ${r"#{"}$ID${r"}"} | |
| 67 | + ID = ${r"#{"}ID${r"}"} | |
| 68 | 68 | </select> |
| 69 | 69 | |
| 70 | 70 | <!-- 列表 --> |
| ... | ... | @@ -99,7 +99,7 @@ |
| 99 | 99 | delete from |
| 100 | 100 | <include refid="tableName"></include> |
| 101 | 101 | where |
| 102 | - $ID in | |
| 102 | + ID in | |
| 103 | 103 | <foreach item="item" index="index" collection="array" open="(" separator="," close=")"> |
| 104 | 104 | ${r"#{item}"} |
| 105 | 105 | </foreach> | ... | ... |
resources/ftl/createCode/mysql_SQL_Template.ftl
| ... | ... | @@ -6,7 +6,7 @@ SET FOREIGN_KEY_CHECKS=0; |
| 6 | 6 | -- ---------------------------- |
| 7 | 7 | DROP TABLE IF EXISTS `${tabletop}${objectNameUpper}`; |
| 8 | 8 | CREATE TABLE `${tabletop}${objectNameUpper}` ( |
| 9 | - `$ID` int(100) NOT NULL AUTO_INCREMENT, | |
| 9 | + `ID` int(11) NOT NULL AUTO_INCREMENT, | |
| 10 | 10 | <#list fieldList as var> |
| 11 | 11 | <#if var[1] == 'Integer'> |
| 12 | 12 | `${var[0]}` int(${var[5]}) NOT NULL COMMENT '${var[2]}', | ... | ... |
resources/ftl/createFaCode/jsp_edit_Template.ftl
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="${objectNameLower}/${r"${msg }"}.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="${objectNameUpper}_ID" id="${objectNameUpper}_ID" value="${r"${pd."}${objectNameUpper}_ID${r"}"}"/> | |
| 31 | + <input type="hidden" name="${ID" id="${ID" value="${r"${pd."}${ID${r"}"}"/> | |
| 32 | 32 | <div id="zhongxin" style="padding-top: 13px;"> |
| 33 | 33 | <table id="table_report" class="table table-striped table-bordered table-hover"> |
| 34 | 34 | <#list fieldList as var> |
| ... | ... | @@ -74,7 +74,7 @@ |
| 74 | 74 | |
| 75 | 75 | <c:if test="${r"${'edit' == msg }"}"> |
| 76 | 76 | <div> |
| 77 | - <iframe name="treeFrame" id="treeFrame" frameborder="0" src="<%=basePath%>/${objectNameLower}mx/list.do?${objectNameUpper}_ID=${r"${pd."}${objectNameUpper}_ID${r"}"}" style="margin:0 auto;width:805px;height:368px;;"></iframe> | |
| 77 | + <iframe name="treeFrame" id="treeFrame" frameborder="0" src="<%=basePath%>/${objectNameLower}mx/list.do?${ID=${r"${pd."}${ID${r"}"}" style="margin:0 auto;width:805px;height:368px;;"></iframe> | |
| 78 | 78 | </div> |
| 79 | 79 | </c:if> |
| 80 | 80 | ... | ... |
resources/ftl/createFaCode/jsp_list_Template.ftl
| ... | ... | @@ -87,12 +87,12 @@ |
| 87 | 87 | </c:if> |
| 88 | 88 | <div class="hidden-sm hidden-xs btn-group"> |
| 89 | 89 | <c:if test="${r"${QX.edit == 1 }"}"> |
| 90 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${r"${var."}${objectNameUpper}_ID${r"}"}');"> | |
| 90 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${r"${var."}${ID${r"}"}');"> | |
| 91 | 91 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 92 | 92 | </a> |
| 93 | 93 | </c:if> |
| 94 | 94 | <c:if test="${r"${QX.del == 1 }"}"> |
| 95 | - <a class="btn btn-xs btn-danger" onclick="del('${r"${var."}${objectNameUpper}_ID${r"}"}');"> | |
| 95 | + <a class="btn btn-xs btn-danger" onclick="del('${r"${var."}${ID${r"}"}');"> | |
| 96 | 96 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 97 | 97 | </a> |
| 98 | 98 | </c:if> |
| ... | ... | @@ -106,7 +106,7 @@ |
| 106 | 106 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 107 | 107 | <c:if test="${r"${QX.edit == 1 }"}"> |
| 108 | 108 | <li> |
| 109 | - <a style="cursor:pointer;" onclick="edit('${r"${var."}${objectNameUpper}_ID${r"}"}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 109 | + <a style="cursor:pointer;" onclick="edit('${r"${var."}${ID${r"}"}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 110 | 110 | <span class="green"> |
| 111 | 111 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 112 | 112 | </span> |
| ... | ... | @@ -115,7 +115,7 @@ |
| 115 | 115 | </c:if> |
| 116 | 116 | <c:if test="${r"${QX.del == 1 }"}"> |
| 117 | 117 | <li> |
| 118 | - <a style="cursor:pointer;" onclick="del('${r"${var."}${objectNameUpper}_ID${r"}"}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 118 | + <a style="cursor:pointer;" onclick="del('${r"${var."}${ID${r"}"}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 119 | 119 | <span class="red"> |
| 120 | 120 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 121 | 121 | </span> |
| ... | ... | @@ -273,7 +273,7 @@ |
| 273 | 273 | bootbox.confirm("确定要删除吗?", function(result) { |
| 274 | 274 | if(result) { |
| 275 | 275 | top.jzts(); |
| 276 | - var url = "<%=basePath%>${objectNameLower}/delete.do?${objectNameUpper}_ID="+Id+"&tm="+new Date().getTime(); | |
| 276 | + var url = "<%=basePath%>${objectNameLower}/delete.do?${ID="+Id+"&tm="+new Date().getTime(); | |
| 277 | 277 | $.get(url,function(data){ |
| 278 | 278 | if("success" == data.result){ |
| 279 | 279 | tosearch(); |
| ... | ... | @@ -302,7 +302,7 @@ |
| 302 | 302 | var diag = new top.Dialog(); |
| 303 | 303 | diag.Drag=true; |
| 304 | 304 | diag.Title ="编辑"; |
| 305 | - diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${objectNameUpper}_ID='+Id; | |
| 305 | + diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${ID='+Id; | |
| 306 | 306 | diag.Width = 800; |
| 307 | 307 | diag.Height = 600; |
| 308 | 308 | diag.Modal = true; //有无遮罩窗口 | ... | ... |
resources/ftl/createSoCode/jsp_edit_Template.ftl
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="${objectNameLower}/${r"${msg }"}.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="${objectNameUpper}_ID" id="${objectNameUpper}_ID" value="${r"${pd."}${objectNameUpper}_ID${r"}"}"/> | |
| 31 | + <input type="hidden" name="${ID" id="${ID" value="${r"${pd."}${ID${r"}"}"/> | |
| 32 | 32 | <input type="hidden" name="${faobject}_ID" id="${faobject}_ID" value="${r"${pd."}${faobject}_ID${r"}"}"/> |
| 33 | 33 | <div id="zhongxin" style="padding-top: 13px;"> |
| 34 | 34 | <table id="table_report" class="table table-striped table-bordered table-hover"> | ... | ... |
resources/ftl/createSoCode/jsp_list_Template.ftl
| ... | ... | @@ -83,7 +83,7 @@ |
| 83 | 83 | <c:forEach items="${r"${varList}"}" var="var" varStatus="vs"> |
| 84 | 84 | <tr> |
| 85 | 85 | <td class='center'> |
| 86 | - <label class="pos-rel"><input type='checkbox' name='ids' value="${r"${var."}${objectNameUpper}_ID${r"}"}" class="ace" /><span class="lbl"></span></label> | |
| 86 | + <label class="pos-rel"><input type='checkbox' name='ids' value="${r"${var."}${ID${r"}"}" class="ace" /><span class="lbl"></span></label> | |
| 87 | 87 | </td> |
| 88 | 88 | <td class='center' style="width: 30px;">${r"${vs.index+1}"}</td> |
| 89 | 89 | <#list fieldList as var> |
| ... | ... | @@ -95,12 +95,12 @@ |
| 95 | 95 | </c:if> |
| 96 | 96 | <div class="hidden-sm hidden-xs btn-group"> |
| 97 | 97 | <c:if test="${r"${QX.edit == 1 }"}"> |
| 98 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${r"${var."}${objectNameUpper}_ID${r"}"}');"> | |
| 98 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${r"${var."}${ID${r"}"}');"> | |
| 99 | 99 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 100 | 100 | </a> |
| 101 | 101 | </c:if> |
| 102 | 102 | <c:if test="${r"${QX.del == 1 }"}"> |
| 103 | - <a class="btn btn-xs btn-danger" onclick="del('${r"${var."}${objectNameUpper}_ID${r"}"}');"> | |
| 103 | + <a class="btn btn-xs btn-danger" onclick="del('${r"${var."}${ID${r"}"}');"> | |
| 104 | 104 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 105 | 105 | </a> |
| 106 | 106 | </c:if> |
| ... | ... | @@ -114,7 +114,7 @@ |
| 114 | 114 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 115 | 115 | <c:if test="${r"${QX.edit == 1 }"}"> |
| 116 | 116 | <li> |
| 117 | - <a style="cursor:pointer;" onclick="edit('${r"${var."}${objectNameUpper}_ID${r"}"}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 117 | + <a style="cursor:pointer;" onclick="edit('${r"${var."}${ID${r"}"}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 118 | 118 | <span class="green"> |
| 119 | 119 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 120 | 120 | </span> |
| ... | ... | @@ -123,7 +123,7 @@ |
| 123 | 123 | </c:if> |
| 124 | 124 | <c:if test="${r"${QX.del == 1 }"}"> |
| 125 | 125 | <li> |
| 126 | - <a style="cursor:pointer;" onclick="del('${r"${var."}${objectNameUpper}_ID${r"}"}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 126 | + <a style="cursor:pointer;" onclick="del('${r"${var."}${ID${r"}"}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 127 | 127 | <span class="red"> |
| 128 | 128 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 129 | 129 | </span> |
| ... | ... | @@ -282,7 +282,7 @@ |
| 282 | 282 | bootbox.confirm("确定要删除吗?", function(result) { |
| 283 | 283 | if(result) { |
| 284 | 284 | top.jzts(); |
| 285 | - var url = "<%=basePath%>${objectNameLower}/delete.do?${objectNameUpper}_ID="+Id+"&tm="+new Date().getTime(); | |
| 285 | + var url = "<%=basePath%>${objectNameLower}/delete.do?${ID="+Id+"&tm="+new Date().getTime(); | |
| 286 | 286 | $.get(url,function(data){ |
| 287 | 287 | tosearch(); |
| 288 | 288 | }); |
| ... | ... | @@ -296,7 +296,7 @@ |
| 296 | 296 | var diag = new top.Dialog(); |
| 297 | 297 | diag.Drag=true; |
| 298 | 298 | diag.Title ="编辑"; |
| 299 | - diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${objectNameUpper}_ID='+Id; | |
| 299 | + diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${ID='+Id; | |
| 300 | 300 | diag.Width = 450; |
| 301 | 301 | diag.Height = 355; |
| 302 | 302 | diag.Modal = true; //有无遮罩窗口 | ... | ... |
resources/ftl/createTreeCode/jsp_edit_Template.ftl
| ... | ... | @@ -28,8 +28,8 @@ |
| 28 | 28 | <div class="col-xs-12"> |
| 29 | 29 | |
| 30 | 30 | <form action="${objectNameLower}/${r"${msg }"}.do" name="Form" id="Form" method="post"> |
| 31 | - <input type="hidden" name="${objectNameUpper}_ID" id="${objectNameUpper}_ID" value="${r"${pd."}${objectNameUpper}_ID${r"}"}"/> | |
| 32 | - <input type="hidden" name="PARENT_ID" id="PARENT_ID" value="${r"${null == pd.PARENT_ID ? "}${objectNameUpper}_ID${r":pd.PARENT_ID}"}"/> | |
| 31 | + <input type="hidden" name="${ID" id="${ID" value="${r"${pd."}${ID${r"}"}"/> | |
| 32 | + <input type="hidden" name="PARENT_ID" id="PARENT_ID" value="${r"${null == pd.PARENT_ID ? "}${ID${r":pd.PARENT_ID}"}"/> | |
| 33 | 33 | <div id="zhongxin" style="padding-top: 13px;"> |
| 34 | 34 | <table id="table_report" class="table table-striped table-bordered table-hover"> |
| 35 | 35 | <tr> | ... | ... |
resources/ftl/createTreeCode/jsp_list_Template.ftl
| ... | ... | @@ -79,7 +79,7 @@ |
| 79 | 79 | <c:forEach items="${r"${varList}"}" var="var" varStatus="vs"> |
| 80 | 80 | <tr> |
| 81 | 81 | <td class='center' style="width: 30px;">${r"${vs.index+1}"}</td> |
| 82 | - <td class='center'><a href="javascript:goSondict('${r"${var."}${objectNameUpper}_ID${r"}"}')"><i class="ace-icon fa fa-share bigger-100"></i> ${r"${var.NAME}"}</a></td> | |
| 82 | + <td class='center'><a href="javascript:goSondict('${r"${var."}${ID${r"}"}')"><i class="ace-icon fa fa-share bigger-100"></i> ${r"${var.NAME}"}</a></td> | |
| 83 | 83 | <#list fieldList as var> |
| 84 | 84 | <td class='center'>${r"${var."}${var[0]}${r"}"}</td> |
| 85 | 85 | </#list> |
| ... | ... | @@ -89,12 +89,12 @@ |
| 89 | 89 | </c:if> |
| 90 | 90 | <div class="hidden-sm hidden-xs btn-group"> |
| 91 | 91 | <c:if test="${r"${QX.edit == 1 }"}"> |
| 92 | - <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${r"${var."}${objectNameUpper}_ID${r"}"}');"> | |
| 92 | + <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${r"${var."}${ID${r"}"}');"> | |
| 93 | 93 | <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i> |
| 94 | 94 | </a> |
| 95 | 95 | </c:if> |
| 96 | 96 | <c:if test="${r"${QX.del == 1 }"}"> |
| 97 | - <a class="btn btn-xs btn-danger" onclick="del('${r"${var."}${objectNameUpper}_ID${r"}"}');"> | |
| 97 | + <a class="btn btn-xs btn-danger" onclick="del('${r"${var."}${ID${r"}"}');"> | |
| 98 | 98 | <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i> |
| 99 | 99 | </a> |
| 100 | 100 | </c:if> |
| ... | ... | @@ -108,7 +108,7 @@ |
| 108 | 108 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close"> |
| 109 | 109 | <c:if test="${r"${QX.edit == 1 }"}"> |
| 110 | 110 | <li> |
| 111 | - <a style="cursor:pointer;" onclick="edit('${r"${var."}${objectNameUpper}_ID${r"}"}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 111 | + <a style="cursor:pointer;" onclick="edit('${r"${var."}${ID${r"}"}');" class="tooltip-success" data-rel="tooltip" title="修改"> | |
| 112 | 112 | <span class="green"> |
| 113 | 113 | <i class="ace-icon fa fa-pencil-square-o bigger-120"></i> |
| 114 | 114 | </span> |
| ... | ... | @@ -117,7 +117,7 @@ |
| 117 | 117 | </c:if> |
| 118 | 118 | <c:if test="${r"${QX.del == 1 }"}"> |
| 119 | 119 | <li> |
| 120 | - <a style="cursor:pointer;" onclick="del('${r"${var."}${objectNameUpper}_ID${r"}"}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 120 | + <a style="cursor:pointer;" onclick="del('${r"${var."}${ID${r"}"}');" class="tooltip-error" data-rel="tooltip" title="删除"> | |
| 121 | 121 | <span class="red"> |
| 122 | 122 | <i class="ace-icon fa fa-trash-o bigger-120"></i> |
| 123 | 123 | </span> |
| ... | ... | @@ -151,9 +151,9 @@ |
| 151 | 151 | <tr> |
| 152 | 152 | <td style="vertical-align:top;"> |
| 153 | 153 | <c:if test="${r"${QX.add == 1 }"}"> |
| 154 | - <a class="btn btn-mini btn-success" onclick="add('${r"${"}${objectNameUpper}_ID${r"}"}');">新增</a> | |
| 154 | + <a class="btn btn-mini btn-success" onclick="add('${r"${"}${ID${r"}"}');">新增</a> | |
| 155 | 155 | </c:if> |
| 156 | - <c:if test="${r"${null != pd."}${objectNameUpper}_ID${r" && pd."}${objectNameUpper}_ID${r" != ''}"}"> | |
| 156 | + <c:if test="${r"${null != pd."}${ID${r" && pd."}${ID${r" != ''}"}"> | |
| 157 | 157 | <a class="btn btn-mini btn-success" onclick="goSondict('${r"${pd.PARENT_ID}"}');">返回</a> |
| 158 | 158 | </c:if> |
| 159 | 159 | </td> |
| ... | ... | @@ -203,9 +203,9 @@ |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | //去此ID下子级列表 |
| 206 | - function goSondict(${objectNameUpper}_ID){ | |
| 206 | + function goSondict(${ID){ | |
| 207 | 207 | top.jzts(); |
| 208 | - window.location.href="<%=basePath%>${objectNameLower}/list.do?${objectNameUpper}_ID="+${objectNameUpper}_ID; | |
| 208 | + window.location.href="<%=basePath%>${objectNameLower}/list.do?${ID="+${ID; | |
| 209 | 209 | }; |
| 210 | 210 | |
| 211 | 211 | $(function() { |
| ... | ... | @@ -245,12 +245,12 @@ |
| 245 | 245 | }); |
| 246 | 246 | |
| 247 | 247 | //新增 |
| 248 | - function add(${objectNameUpper}_ID){ | |
| 248 | + function add(${ID){ | |
| 249 | 249 | top.jzts(); |
| 250 | 250 | var diag = new top.Dialog(); |
| 251 | 251 | diag.Drag=true; |
| 252 | 252 | diag.Title ="新增"; |
| 253 | - diag.URL = '<%=basePath%>${objectNameLower}/goAdd.do?${objectNameUpper}_ID='+${objectNameUpper}_ID; | |
| 253 | + diag.URL = '<%=basePath%>${objectNameLower}/goAdd.do?${ID='+${ID; | |
| 254 | 254 | diag.Width = 800; |
| 255 | 255 | diag.Height = 600; |
| 256 | 256 | diag.Modal = true; //有无遮罩窗口 |
| ... | ... | @@ -258,7 +258,7 @@ |
| 258 | 258 | diag.ShowMinButton = true; //最小化按钮 |
| 259 | 259 | diag.CancelEvent = function(){ //关闭事件 |
| 260 | 260 | if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ |
| 261 | - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${objectNameUpper}_ID=${r"${"}${objectNameUpper}_ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; | |
| 261 | + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${ID=${r"${"}${ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; | |
| 262 | 262 | } |
| 263 | 263 | diag.close(); |
| 264 | 264 | }; |
| ... | ... | @@ -270,7 +270,7 @@ |
| 270 | 270 | bootbox.confirm("确定要删除吗?", function(result) { |
| 271 | 271 | if(result) { |
| 272 | 272 | top.jzts(); |
| 273 | - var url = "<%=basePath%>${objectNameLower}/delete.do?${objectNameUpper}_ID="+Id+"&tm="+new Date().getTime(); | |
| 273 | + var url = "<%=basePath%>${objectNameLower}/delete.do?${ID="+Id+"&tm="+new Date().getTime(); | |
| 274 | 274 | $.get(url,function(data){ |
| 275 | 275 | tosearch(); |
| 276 | 276 | }); |
| ... | ... | @@ -283,10 +283,10 @@ |
| 283 | 283 | bootbox.confirm("确定要删除吗?", function(result) { |
| 284 | 284 | if(result) { |
| 285 | 285 | top.jzts(); |
| 286 | - var url = "<%=basePath%>${objectNameLower}/delete.do?${objectNameUpper}_ID="+Id+"&tm="+new Date().getTime(); | |
| 286 | + var url = "<%=basePath%>${objectNameLower}/delete.do?${ID="+Id+"&tm="+new Date().getTime(); | |
| 287 | 287 | $.get(url,function(data){ |
| 288 | 288 | if("success" == data.result){ |
| 289 | - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${objectNameUpper}_ID=${r"${"}${objectNameUpper}_ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; | |
| 289 | + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${ID=${r"${"}${ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; | |
| 290 | 290 | }else if("false" == data.result){ |
| 291 | 291 | top.hangge(); |
| 292 | 292 | bootbox.dialog({ |
| ... | ... | @@ -313,7 +313,7 @@ |
| 313 | 313 | var diag = new top.Dialog(); |
| 314 | 314 | diag.Drag=true; |
| 315 | 315 | diag.Title ="编辑"; |
| 316 | - diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${objectNameUpper}_ID='+Id; | |
| 316 | + diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${ID='+Id; | |
| 317 | 317 | diag.Width = 800; |
| 318 | 318 | diag.Height = 600; |
| 319 | 319 | diag.Modal = true; //有无遮罩窗口 |
| ... | ... | @@ -321,7 +321,7 @@ |
| 321 | 321 | diag.ShowMinButton = true; //最小化按钮 |
| 322 | 322 | diag.CancelEvent = function(){ //关闭事件 |
| 323 | 323 | if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ |
| 324 | - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${objectNameUpper}_ID=${r"${"}${objectNameUpper}_ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; | |
| 324 | + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${ID=${r"${"}${ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; | |
| 325 | 325 | } |
| 326 | 326 | diag.close(); |
| 327 | 327 | }; | ... | ... |
resources/mybatis1/sunvote/PaperTypeMapper.xml
| ... | ... | @@ -11,14 +11,14 @@ |
| 11 | 11 | <sql id="Field"> |
| 12 | 12 | NAME, |
| 13 | 13 | REMARK, |
| 14 | - $ID | |
| 14 | + ID | |
| 15 | 15 | </sql> |
| 16 | 16 | |
| 17 | 17 | <!-- 字段值 --> |
| 18 | 18 | <sql id="FieldValue"> |
| 19 | 19 | #{NAME}, |
| 20 | 20 | #{REMARK}, |
| 21 | - #{$ID} | |
| 21 | + #{ID} | |
| 22 | 22 | </sql> |
| 23 | 23 | |
| 24 | 24 | <!-- 新增--> |
| ... | ... | @@ -37,7 +37,7 @@ |
| 37 | 37 | delete from |
| 38 | 38 | <include refid="tableName"></include> |
| 39 | 39 | where |
| 40 | - $ID = #{$ID} | |
| 40 | + ID = #{ID} | |
| 41 | 41 | </delete> |
| 42 | 42 | |
| 43 | 43 | <!-- 修改 --> |
| ... | ... | @@ -47,9 +47,9 @@ |
| 47 | 47 | set |
| 48 | 48 | NAME = #{NAME}, |
| 49 | 49 | REMARK = #{REMARK}, |
| 50 | - $ID = $ID | |
| 50 | + ID = ID | |
| 51 | 51 | where |
| 52 | - $ID = #{$ID} | |
| 52 | + ID = #{ID} | |
| 53 | 53 | </update> |
| 54 | 54 | |
| 55 | 55 | <!-- 通过ID获取数据 --> |
| ... | ... | @@ -59,7 +59,7 @@ |
| 59 | 59 | from |
| 60 | 60 | <include refid="tableName"></include> |
| 61 | 61 | where |
| 62 | - $ID = #{$ID} | |
| 62 | + ID = #{ID} | |
| 63 | 63 | </select> |
| 64 | 64 | |
| 65 | 65 | <!-- 列表 --> |
| ... | ... | @@ -94,7 +94,7 @@ |
| 94 | 94 | delete from |
| 95 | 95 | <include refid="tableName"></include> |
| 96 | 96 | where |
| 97 | - $ID in | |
| 97 | + ID in | |
| 98 | 98 | <foreach item="item" index="index" collection="array" open="(" separator="," close=")"> |
| 99 | 99 | #{item} |
| 100 | 100 | </foreach> | ... | ... |