96 lines
3.4 KiB
Plaintext
96 lines
3.4 KiB
Plaintext
@using WX.CRM.WebHelper
|
|
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script src="~/Scripts/op/tablegrid.sort.js"></script>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
|
</div>
|
|
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding: 5px; height: auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li>
|
|
年:<select id="SltYear">
|
|
<option>2016</option>
|
|
<option>2017</option>
|
|
<option>2018</option>
|
|
<option>2019</option>
|
|
<option>2020</option>
|
|
<option>2021</option>
|
|
<option>2022</option>
|
|
<option>2023</option>
|
|
<option>2024</option>
|
|
<option>2025</option>
|
|
<option>2026</option>
|
|
<option>2027</option>
|
|
<option>2028</option>
|
|
<option>2029</option>
|
|
<option>2030</option>
|
|
</select>
|
|
月:<select id="SltMonth">
|
|
<option>01</option>
|
|
<option>02</option>
|
|
<option>03</option>
|
|
<option>04</option>
|
|
<option>05</option>
|
|
<option>06</option>
|
|
<option>07</option>
|
|
<option>08</option>
|
|
<option>09</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
<option>12</option>
|
|
</select>
|
|
</li>
|
|
<li><span id="checkTip"></span></li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
/*=================================================================*/
|
|
$(document).ready(function () {
|
|
$(window).resize(function () {
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
|
|
var today = new Date();
|
|
$("#SltYear").val(today.getFullYear());
|
|
var m = "0000" + today.getMonth() + "";
|
|
$("#SltMonth").val(m.substring(m.length - 2));
|
|
|
|
LoadData();
|
|
});
|
|
function LoadData() {
|
|
$("#tablist").tablegrid({
|
|
url: '/WeiXin/MonthSettlement/Index',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
data: GetControlValue
|
|
});
|
|
}
|
|
function GetControlValue() {
|
|
return { year: $("#SltYear").val(), month: $("#SltMonth").val() };
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
LoadData();
|
|
});
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function ExportAllPage_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport_cookie?Query=" + encodeURIComponent("/WeiXin/MonthSettlement/Export?year=" + $("#SltYear").val() + "&month=" + $("#SltMonth").val())));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
</script>
|