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