-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbizdata.aspx
564 lines (507 loc) · 27.1 KB
/
bizdata.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
<%@ Page Language="C#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Web.UI" %>
<%
if (Session["userId"] == null)
{
Response.Redirect("index.aspx", true);
}
//Response.Write(EmployeeInfo.foooo());
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>文萃报刊信息登记管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Blues Shang ([email protected])">
<link rel="shortcut icon" href="images/icon.jpg" type="image/x-icon" />
<link rel="stylesheet" href="css/bootstrap-3.3.6.css">
<script src="js/jquery-2.0.0.js"></script>
<script src="js/bootstrap-3.3.6.js"></script>
<!--Theme-->
<!--link hrefxx="http://cdn.wijmo.com/themes/aristo/jquery-wijmo.cssxxx" rel="stylesheet" type="text/css" /-->
<!--Wijmo Widgets CSS-->
<!--link href="http://cdn.wijmo.com/jquery.wijmo-pro.all.3.20132.15.min.cssxxx" rel="stylesheet" type="text/css" /-->
<!-- Material Lite -->
<!--link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /-->
<!--link rel="stylesheet" href="https://code.getmdl.io/1.1.1/material.indigo-red.min.css" /-->
<!--link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en" /-->
<!--script defer src="https://code.getmdl.io/1.1.1/material.min.js"></script-->
<!-- Syntax Highlighter -->
<!-- <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/default.min.css"> -->
<!--link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/github.min.css"-->
<!--script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script-->
<!-- Wijmo -->
<link href="css/wijmo.min.css" rel="stylesheet" />
<!--link href="css/wijmo.theme.material.min.css" rel="stylesheet" /-->
<link href="css/<%=Session["cssfile"]%>" rel="stylesheet" />
<script src="js/wijmo.min.js"></script>
<script src="js/wijmo.input.min.js"></script>
<script src="js/wijmo.grid.min.js"></script>
<script src="js/wijmo.grid.filter.min.js"></script>
<script src="js/wijmo.chart.min.js"></script>
<script src="js/wijmo.xlsx.min.js"></script>
<script src="js/wijmo.grid.xlsx.min.js"></script>
<script src="js/wijmo.odata.min.js"></script>
<script src="js/wijmo.olap.min.js"></script>
<script src="js/wijmo.culture.zh.js"></script>
<!--link href="http://cdn.wijmo.com/themes/aristo/jquery-wijmo.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.wijmo.com/jquery.wijmo-pro.all.3.20132.15.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/ui/1.10.1/jquery-ui.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/jquery.wijmo-open.all.3.20132.15.min.js" type="text/javascript"></script>
<script src="http://cdn.wijmo.com/jquery.wijmo-pro.all.3.20132.15.min.js" type="text/javascript"></script-->
<link rel="stylesheet" href="css/app.css">
<script src="js/app.js"></script>
<style>
</style>
</head>
<body style="margin-top: 95px;">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<img src="images/log-small.jpg"></a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" id="search"><span class="glyphicon glyphicon-search"></span></a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon glyphicon-star"></span> Theme(<%=Session["theme"]%>) <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<%
dbutil db = new dbutil();
DataTable dt = db.query("select * from theme");
foreach (DataRow row in dt.Rows)
{
Response.Write("\r\n<li><a href=\"#\" onclick=loadTheme('" + row["id"] + "')>"
+ row["name"]
+ ((string)Session["theme"] == (string)row["name"] ? " <span class='glyphicon glyphicon-star'></span>" : "")
+ "</a></li>");
}
db.close();
%>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-user"></span> <%=Session["userFullName"] + "(" + Session["userName"] + ")" %> <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">修改密码</a></li>
<li><a href="#">修改个人信息</a></li>
<li><a href="#">...</a></li>
</ul>
</li>
<li><a href="do.aspx?op=logout"><span class="glyphicon glyphicon-log-out"></span> 退出系统 </a></li>
</ul>
</div>
</div>
</nav>
<nav class="navbar navbar-defaultx navbar-fixed-bottom bottom-tip" id="bottomTipCtrl">
<div id="bottomTip" style="margin-left:100px;margin-top:10px;margin-right:10px;margin-bottom:10px"></div>
</nav>
<table border="0" style="width:100%">
<tr>
<td style="width: 20%; min-width: 200px; max-width: 300px; margin-left: 5px; vertical-align: top;" id="tabCtrlPanel">
<div style="padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;">
<!--h2>Accordion Example</!--h2>
<p><strong>Note:</strong> The <strong>data-parent</strong> attribute makes sure that all collapsible elements under the specified parent will be closed when one of the collapsible item is shown.</p-->
<div class="panel-group" id="accordion">
<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">
<span class="glyphicon glyphicon-copy"></span>
<a data-toggle="collapse" data-parent="#accordion" href="#collapse1">业务数据处理</a>
</h4>
</div>
<div id="collapse1" class="panel-collapse collapse in">
<div class="list-group">
<a href="#" class="list-group-item " id="batchInput">
<span class="badge btn-success" title="今日录入业务" id="today"></span>
<h4 class="list-group-item-heading"><span class="glyphicon glyphicon-duplicate"></span> 批量录入</h4>
<p class="list-group-item-text">系统尽可能自动解析输入数据中的业务数据,一次性录入多条记录。</p>
</a>
<a href="#" class="list-group-item" id="singleInput">
<h4 class="list-group-item-heading"><span class="glyphicon glyphicon-list-alt"></span> 单条录入</h4>
<p class="list-group-item-text">一次录入一条记录(暂未实现)</p>
</a>
<a href="#" class="list-group-item" id="dataExport">
<h4 class="list-group-item-heading"><span class="glyphicon glyphicon-download-alt"></span> 数据导出</h4>
<p class="list-group-item-text">将数据导出至 Excel 文件中。</p>
</a>
<a href="#" class="list-group-item" id="dataView">
<span class="badge btn-danger" title="未到帐业务" id="unarrival"></span>
<h4 class="list-group-item-heading"><span class="glyphicon glyphicon-edit"></span> 查看已录入系统的数据</h4>
<p class="list-group-item-text">查看或修改业务数据</p>
</a>
</div>
</div>
</div>
<div class="panel panel-default" id="bizStat">
<div class="panel-heading">
<h4 class="panel-title">
<span class="glyphicon glyphicon-align-left"></span>
<a data-toggle="collapse" data-parent="#accordion" href="#collapse2">业务统计</a>
</h4>
</div>
<div id="collapse2" class="panel-collapse collapse">
<div class="list-group">
<a href="#" class="list-group-item " id="dataStatistics">
<h4 class="list-group-item-heading"><span class="glyphicon glyphicon-usd"></span> 业务量统计</h4>
<p class="list-group-item-text">统计当前系统中记录的历史业务信息。</p>
</a>
</div>
</div>
</div>
<div class="panel panel-default" id="sysMgr">
<div class="panel-heading">
<h4 class="panel-title">
<span class="glyphicon glyphicon-cog"></span>
<a data-toggle="collapse" data-parent="#accordion" href="#collapse3"><b>系统维护</b></a>
</h4>
</div>
<div id="collapse3" class="panel-collapse collapse">
<div class="list-group">
<a href="#" class="list-group-item " id="userMgr">
<h4 class="list-group-item-heading"><span class="glyphicon glyphicon-user"></span> 用户管理</h4>
<p class="list-group-item-text">增加、修改用户信息。</p>
</a>
<a href="#" class="list-group-item" id="regionMgr">
<h4 class="list-group-item-heading"><span class="glyphicon glyphicon-globe"></span> 用户业务区域管理</h4>
<p class="list-group-item-text">设置业务员的业务区域范围</p>
</a>
</div>
</div>
</div>
</div>
<div id="bizChart" style="height:250px;width:100%"></div>
<div id="bizChartRecords" style="height:200px;width:100%"></div>
</div>
</td>
<td style="vertical-align: top;padding-bottom:100px">
<div id="mainClientArea">
</div>
<hr />
<p align="center" style="margin-top:30px">(c)2016 WenCui Magazine. <span class="glyphicon glyphicon-envelope"></span> [email protected] </p>
</td>
</tr>
</table>
<div class="container">
<div class="modal fade" id="myLoginModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header" style="padding: 35px 50px;">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4><span class="glyphicon glyphicon-lock"></span>请输入系统登录信息</h4>
</div>
<div class="modal-body" style="padding: 40px 50px;">
<form role="form">
<div class="form-group">
<label for="usrname"><span class="glyphicon glyphicon-user"></span>Username</label>
<input type="text" class="form-control" id="usrname" placeholder="请输入你的系统帐号">
</div>
<div class="form-group">
<label for="psw"><span class="glyphicon glyphicon-eye-open"></span>Password</label>
<input type="password" class="form-control" id="psw" placeholder="Enter password">
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="" checked>Remember me</label>
</div>
<button type="submit" class="btn btn-success btn-block"><span class="glyphicon glyphicon-off"></span>Login</button>
</form>
</div>
<div class="modal-footer">
<p class="pull-left">会话超时,请重新登录。</p>
<p>Not a member? <a href="#">Sign Up</a></p>
<p>Forgot <a href="#">Password?</a></p>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div id="bizDataSample" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">“开庭”业务数据示例</h4>
</div>
<div class="modal-body">
<p>
苗伟:本院受理原告张育升诉你民间借贷纠纷一案,因你下落不明,现依法向你公告送达起诉书副本、应诉通知书、举证通知书及开庭传票。自公告之日起经过60日即视为送达。提交答辩状和举证期限均为公告期满后的15日内。并定于2015年3月30日下午2:30在本院横岗法庭第三审判庭公开开庭审理,无正当理由拒不到庭的,本院将作出缺席判决。
<br>
广东省深圳市龙岗区人民法院
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="msgbox" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" id="msgboxTitle">Title</h4>
</div>
<div class="modal-body" id="msgboxBody">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>
var level = <%=(int)Session["userLevel"]%>;
var bizChart = null, bizChartRecords = null;
function refreshRealtimeInfo() {
var text = "";
$.ajax({
type: 'post',
url: 'do.aspx',
data: "op=rtinfo",
cache: false,
dataType: 'json',
success: function (data) {
var ms = [];
for (i = 0; i < data.monthStat.length; i++) {
ms.push({
monthId : data.monthStat[i].month,
month: data.monthStat[i].month + "月",
receivable: parseFloat(data.monthStat[i].receivable),
arrival: parseFloat(data.monthStat[i].arrival),
records: parseInt(data.monthStat[i].records)
});
}
bizChart.itemsSource = new wijmo.collections.CollectionView(ms);
bizChartRecords.itemsSource = bizChart.itemsSource;
//text = data.number + " of " + data.total + " processed, " + data.error + " errors";
//if (data.number > 0 && eval(data.number) + eval(data.error) == eval(data.total)) {
// clearInterval(rti_timer);
// text += " done!";
// $("#submitParagraph").attr("disabled", false);
//} else text += ", please wait for a moment ...";
//$("#paragraphInfo").html(text);
if (eval(data.unarrivals.records) > 0)
$("#unarrival").html(data.unarrivals.records + " , ¥ " + data.unarrivals.amount);
else $("#unarrival").html("");
if (eval(data.today.records) > 0)
$("#today").html(data.today.records);
else $("#today").html("");
},
error: function (o, message) {
//$("#paragraphInfo").html(message);
}
});
}
function loadTheme(themeId)
{
$.ajax({
type: 'post', url: 'do.aspx',
data: "op=loadTheme&themeId=" + themeId,
cache: false, dataType: 'json',
success: function (data) {
if (data.status != 0) {
alert("切换主题失败:" + data.message);
return;
}
location.reload();
},
error: function (o, message) {
alert(message);
}
});
}
$(document).ready(function () {
$("#search").click(function () {
$("#mainClientArea").load("search.aspx");
});
$("#batchInput").click(function () {
$("#mainClientArea").load("datainput.aspx");
});
$("#dataView").click(function () {
$("#mainClientArea").load("dataview.aspx");
});
$("#dataExport").click(function () {
$("#mainClientArea").load("dataexport.aspx");
});
$("#dataStatistics").click(function () {
$("#mainClientArea").load("datastatistics.aspx");
});
$("#userMgr").click(function () {
$("#mainClientArea").load("usermgr.aspx");
});
$("#regionMgr").click(function () {
$("#mainClientArea").load("regionmgr.aspx");
});
$("#myLoginBtn").click(function () {
$("#myLoginModal").modal();
});
$(document).on('mousedown', function (e) {
if (dataViewer == null || dataViewer.itemsSource == null// || dataViewer.itemsSource.items.length < 2
|| e.toElement.id == "bottomTipCtrl"
|| e.toElement.id == "bottomTip")
return;
if ($("#bottomTip").text() == "") {
$("#bottomTipCtrl").hide();
return;
}
//alert($("#bottomTip").text);
var t = $("#dataViewer").offset().top;
var l = $("#dataViewer").offset().left;
//var box = $("dataViewer").getBoundingClientRect();
var w = $("#dataViewer").width();
var h = $("#dataViewer").height();
//var content_div = document.getElementById("dataViewer");
//var rc = content_div.style.left;
//$("#bottomTip").html("x = " + e.pageX
// + ", y=" + e.pageY
// + ", top=" + t
// + ", left=" + l
// + ", width=" + w
// + ", height=" + h
// + ", scroll=" + document.body.scrollTop
// );
//+ ",body.scrollLeft=" + document.body.scrollLeft
//+ ",body.scrollTop=" + document.body.scrollTop
//+ ", div rc.left=" + rc
//+ ",bottom=" + content_div.style.bottom);
//if (e.clientY + document.body.scrollTop < 500)
//$("#bottomTip").html(dataViewer.itemsSource.currentItem.para.text);
if (e.pageY > t && e.pageY < t + h && e.pageX > l && e.pageX < l + w)
$("#bottomTipCtrl").show();
else $("#bottomTipCtrl").hide();
});
//// $('[data-toggle="popover"]').popover();
//{
// var count = 100;
// var data = [];
// for (var i = 0; i < count ; i++) {
// data.push({
// 序号: "00" + (i + 1).toString(),
// ID号: "21601" + i.toString(),
// 英文名: "TingTao Ge",
// 中文名: "听涛阁",
// 最小楼层: 2,
// 最大楼层: 12,
// 状态: true,
// 日期: new Date(2014, i % 12, i % 28),
// });
// }
// var cv = new wijmo.collections.CollectionView(data);
// dataViewer = new wijmo.grid.FlexGrid('#dataViewer', {
// showSelectedHeaders: 'All',
// itemsSource: cv
// //new wijmo.odata.ODataCollectionView(
// //'http://services.odata.org/V4/Northwind/Northwind.svc/',
// //'Order_Details_Extendeds'),
// });
// dataViewerFilter = new wijmo.grid.filter.FlexGridFilter(dataViewer);
//}
/*$("#wijeditor").wijeditor({
editorMode: "split",
mode: "simple",
//simpleModeCommands: ["Bold", "Italic", "Link", "BlockQuote", "StrikeThrough", "InsertDate", "InsertImage", "NumberedList", "BulletedList", "InsertCode"]
simpleModeCommands: ["Bold", "Italic", "FontName", "FontSize", "InsertImage", "NumberedList", "BulletedList", "Undo"]
}); */
$("#bottomTipCtrl").hide();
bizChart = new wijmo.chart.FlexChart('#bizChart', {
itemsSource: null,
legend: { position: wijmo.chart.Position.Bottom },
bindingX: 'month',
series: [{
binding: 'receivable',
name: '应收帐款'
}, {
binding: 'arrival',
name: '实收帐款'
}],
selectionMode: wijmo.chart.SelectionMode.Point,
selectionChanged: function (e) {
$("#mainClientArea").load("dataview.aspx?month=" + bizChart.selection.collectionView.currentItem.monthId);
}
});
bizChartRecords = new wijmo.chart.FlexChart('#bizChartRecords', {
itemsSource: null,
legend: { position: wijmo.chart.Position.Bottom },
bindingX: 'month',
series: [{
binding: 'records',
name: '业务量',
chartType: wijmo.chart.ChartType.LineSymbols
}],
selectionMode: wijmo.chart.SelectionMode.Point,
selectionChanged: function (e) {
$("#mainClientArea").load("dataview.aspx?month=" + bizChartRecords.selection.collectionView.currentItem.monthId);
}
});
refreshRealtimeInfo();
var rti_timer = setInterval(refreshRealtimeInfo, 3000);
//bizChartRecords.addEventListener('click', function () {
// alert("xx");
//});
//{
// // create some random data
// var countries = 'US,Germany,UK,Japan,Italy,Greece'.split(','),
// data = [];
// for (var i = 0; i < countries.length; i++) {
// data.push({
// country: countries[i],
// downloads: Math.round(Math.random() * 20000),
// sales: Math.random() * 10000,
// expenses: Math.random() * 5000
// });
// }
// // create CollectionView on the data (to get events)
// var view = new wijmo.collections.CollectionView(data);
// // initialize the chart
// var chart = new wijmo.chart.FlexChart('#bizChart', {
// itemsSource: view,
// legend: { position: wijmo.chart.Position.Bottom },
// bindingX: 'country',
// series: [{
// binding: 'sales',
// name: 'Sales'
// }, {
// binding: 'expenses',
// name: 'Expenses'
// }, {
// binding: 'downloads',
// name: 'Downloads',
// chartType: wijmo.chart.ChartType.LineSymbols
// }],
// selectionMode: wijmo.chart.SelectionMode.Point
// });
//}
if (level > 2) {
$("#batchInput").hide();
$("#singleInput").hide();
$("#dataExport").hide();
}
if (level == 2)
$("#mainClientArea").load("datainput.aspx");
else $("#mainClientArea").load("dataview.aspx");
if (level != 0)
$("#sysMgr").hide();
if (level >= 2)
$("#bizStat").hide();
});
</script>
</body>
</html>