| | |
| | | <script type="text/javascript"> |
| | | var year = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.year))'; |
| | | var month = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.month))'; |
| | | |
| | | var myDate = new Date(); |
| | | //获取当前年 |
| | | var searchyear = myDate.getFullYear(); |
| | | //获取当前月 |
| | | var searchmonth = myDate.getMonth() + 1; |
| | | |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | { |
| | |
| | | //?userId=" + "@ViewBag.userId"; |
| | | searchCol = [ |
| | | |
| | | { label: '查询时间:年', name: 'Year', labtype: 'combox', hidden: false, defultvalue: JSON.parse(year)[1].code , data: JSON.parse(year), cwidth: '5%', cccwidth: '9%' }, |
| | | { label: '月', name: 'Month', labtype: 'combox', hidden: false, data: JSON.parse(month), cwidth: '1%', cccwidth: '7%' } |
| | | { label: '查询时间:年', name: 'Year', labtype: 'combox', hidden: false, defultvalue: searchyear , data: JSON.parse(year), cwidth: '5%', cccwidth: '9%' }, |
| | | { label: '月', name: 'Month', labtype: 'combox', hidden: false, defultvalue: searchmonth ,data: JSON.parse(month), cwidth: '1%', cccwidth: '7%' } |
| | | |
| | | ]; |
| | | |