fs-danaus
2022-08-05 4a551fc73bd4c86f43aa68c0aab8d1dbeae46836
提交 | 用户 | age
aeb024 1 <%try {%>
X 2 <%@ page language="java" contentType="text/html; charset=UTF-8"
3          pageEncoding="UTF-8" %>
4 <%@ page trimDirectiveWhitespaces="true" %>
a6a76f 5 <%@ include file="dataHead.jsp" %>
4a551f 6 <!DOCTYPE html >
a6a76f 7 <html>
F 8 <head>
aeb024 9     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
X 10     <META NAME="ROBOTS" CONTENT="NONE">
11     <title>统计设置</title>
12     <%@ include file="jsCssHead.jsp" %>
a6a76f 13 </head>
aeb024 14 <body class="TabPanelBody">
a6a76f 15 <div id="loading" class="loading">
aeb024 16     <p class="loadingMsg">加载中、请稍候....</p>
X 17     <iframe class="loadingIFRM"></iframe>
a6a76f 18 </div>
aeb024 19 <div class="panelTopTitle" style="margin-bottom: 10px;">
X 20     <table width="100%" id="table_9828" bgcolor="#DEEDF7">
21         <tr>
22             <td>
23                 <div id="title_top"></div>
24             </td>
25         </tr>
26 <%--        <tr>--%>
27 <%--            <td>--%>
28 <%--                <hr style="position: absolute;left:0px;top:28px;height: 1px;color: #bdc7c6;width: 99%;">--%>
29 <%--            </td>--%>
30 <%--        </tr>--%>
31         <tr>
32             <td>
33                 <div id="tplt-top">
34                     <%@ include file="top.jsp" %>
35                 </div>
36             </td>
37         </tr>
38     </table>
39 </div>
40 <div id="scrollbody">
41     <div id="scroller">
42         <div id="tplt-container">
43             <script type="text/javascript">
a6a76f 44
aeb024 45                 var bh = 0;
a6a76f 46
aeb024 47                 function show() {
X 48                     var data = mygrid.getCurRecord();
49                     var statisid = data.statisid;
50                     var formid = data.formid;
51                     showLayerGrids('paneloption.jsp', 2)
52                 }
a6a76f 53
aeb024 54                 function showtwo() {
X 55                     $("#tpSave1").css("display", "none");
56                     $("#tpSave2").css("display", "inline-block");
57                     $("#tpSave3").css("display", "none");
58                     $("#tpSave4").css("display", "inline-block");
59                     /* $("#tpSave1").css("color","red"); */
60
61                     create(encodeText(wheres), 0);
62                 }
63
64                 //判断usercode是否是私有的
65                 function contrast() {
66                     var value = document.getElementById('statisid').value;
67                     $.post('/contrast.do', 'saisid=' + value + '&formid=' + form + '', function (data) {
68                         if (data.code == "success") {
69                             showLayerGridsi('panel2.jsp', 2)
70                         } else {
71                             var a = 0;
72                             var data = mygrid.GetDataRows();
73                             for (var i = 0; i < data.length; i++) {
74                                 if (data[i].displayyn == 1) {
75                                     if (data[i].statistype.replace(/(^\s*)|(\s*$)/g, "") == "") {
76                                         a++;
77                                     }
78                                 }
79                             }
80                             if (a == 0) {
81                                 a = 0;
82                                 //funcLink('800001','10',form+";"+value0,'formid;statisid','1','','','null','','','0','0','','1','');
83                                 save(2);
84
85                                 //top.closeTab();
86                             } else {
87                                 a = 0;
88                                 alert("如果是否显示选中,则必须填写统计类型!!!");
89                             }
90
91                         }
92                     })
93                 }
94
95                 function showtwo2() {
96                     $("#tpSave2").css("display", "none");
97                     $("#tpSave1").css("display", "inline-block");
98                     $("#tpSave4").css("display", "none");
99                     $("#tpSave3").css("display", "inline-block");
100                     create(encodeText(wheres1), 0);
101                 }
102
103                 function sav2() {
104                     var value = document.getElementById('statisid').value;
105                     $.post('/contrast.do', 'saisid=' + value + '&formid=' + form + '', function (data) {
106                         if (data.code == "success") {
107                             showLayerGridsi('panel2.jsp', 2)
108                         } else {
109                             var a = 0;
110                             var da = mygrid.GetDataRows();
111                             for (var i = 0; i < da.length; i++) {
112                                 if (da[i].displayyn == 1) {
113                                     if (da[i].statistype.replace(/(^\s*)|(\s*$)/g, "") == "") {
114                                         a++;
115                                     }
116                                 }
117                             }
118                             if (a == 0) {
119                                 //var b=JSON.stringify(data);
120                                 a = 0;
121                                 var jssson = {
122                                     data: da
123                                 };
124                                 /* var whe="statisid ="+"'"+value+"'"+"   and formid="+form; */
125                                 $.post('/gridsave1.do', {
126                                     content: JSON.stringify(jssson),
127                                     saisid: value,
128                                     formid: form
129                                 }, function (data) {
130                                     if (data.code == form) {
131                                         top.funcLink('9828', '10', form + ";" + value, 'formid;statisid', '1', '', '', '', '', '', '0', '0', '', '1', '');
132                                         top.closeTab();
133                                     } else {
134                                         alert(data.code);
135                                     }
136                                 })
137                             } else {
138                                 a = 0;
139                                 alert("是否显示选中,必须填写统计类型!!!");
140                             }
141
142
143                         }
144                     })
145
146                 }
147
148                 //删除汇总和明细
149                 function delet() {
150                     var msg = "您真的确定要删除吗?\n\n请确认!";
151                     if (confirm(msg) == true) {
152                         var value = document.getElementById('statisid').value;
153                         $.post('/datadelete.do', 'saisid=' + value + '&formid=' + form + '', function (data) {
154                             if (data.code == "success") {
155                                 top.closeTab();
156                             } else {
157                                 alert(data.info);
158                             }
159                         });
160                     } else {
161                         return false;
162                     }
163
164
165                 }
166
167                 $(document).ready(function () {
168                     var value = document.getElementById('statisid').value;
169                     $.post('/contrast.do', 'saisid=' + value + '&formid=' + form + '', function (data) {
170                         if (data.code == "error") {
171                             $(".delete").css("display", "inline");
172                             $("#det").css("display", "block");
173                         }
174                     });
175                 });
176             </script>
177             <div id="tplt-panel" style="margin-left: 10px;">
178                 <%@ include file="panel.jsp" %>
179             </div>
180         </div>
181         <%@ include file="foolter.jsp" %>
182     </div>
183 </div>
a6a76f 184 </body>
F 185 <script>
aeb024 186     window.onunload = function () {
X 187         if (typeof (mygrid) != "undefined" && mygrid != null) mygrid.refalshGridOfColse();
188         else
189             refalshGridOfColse();
190     }
a6a76f 191 </script>
aeb024 192 </html>
X 193 <%
194     } catch (Exception e) {
195         out.print("<script>alert('" + e.getMessage().replace("'", "\\'") + "');</script>");
196     }
197 %>