Showing
1 changed file
with
10 additions
and
0 deletions
@@ -48,12 +48,22 @@ | @@ -48,12 +48,22 @@ | ||
48 | <script type="text/javascript"> | 48 | <script type="text/javascript"> |
49 | var checkedItems = []; | 49 | var checkedItems = []; |
50 | $(function () { | 50 | $(function () { |
51 | + var date = new Date(); | ||
52 | + var year = date.getFullYear(); | ||
53 | + var month = date.getMonth() + 1; | ||
54 | + var day = date.getDate(); | ||
55 | + $('#beginTime').datetimebox('setValue', year + '-' + month + '-' + day); | ||
56 | + $('#endTime').datetimebox('setValue', year + '-' + month + '-' + day+" 23:59:59"); | ||
57 | + var qups={}; | ||
58 | + qups.beginTime = parseInt(new Date($("#beginTime").datetimebox('getValue')).getTime() / 1000); | ||
59 | + qups.endTime = parseInt(new Date($("#endTime").datetimebox('getValue')).getTime() / 1000); | ||
51 | $("#userOrdersTable").myDatagrid({ | 60 | $("#userOrdersTable").myDatagrid({ |
52 | fit: true, | 61 | fit: true, |
53 | fitColumns: true, | 62 | fitColumns: true, |
54 | <!-- idField: "id",--> | 63 | <!-- idField: "id",--> |
55 | view: fileview, | 64 | view: fileview, |
56 | nowrap: false, | 65 | nowrap: false, |
66 | + queryParams: qups, | ||
57 | onCheckAll: addcheckItem, | 67 | onCheckAll: addcheckItem, |
58 | onCheck: addcheckItem, | 68 | onCheck: addcheckItem, |
59 | onUncheckAll: removeAllItem, | 69 | onUncheckAll: removeAllItem, |
-
Please register or login to post a comment