82 lines
2.6 KiB
Plaintext
82 lines
2.6 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
|
|
<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="SltYearMonth">
|
|
@foreach (var yearmonth in ViewBag.YearMonth)
|
|
{
|
|
<option>@yearmonth.ToString("yyyy-MM")</option>
|
|
}
|
|
</select>
|
|
</li>
|
|
<li><span id="checkTip"></span></li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
var today = new Date();
|
|
$("#SltYear").val(today.getFullYear());
|
|
var m = "0000" + today.getMonth() + "";
|
|
$("#SltMonth").val(m.substring(m.length - 2));
|
|
|
|
$('#tablist').tablegrid({
|
|
url: '/WeiXin/CommissionBalance/ReportHtml',
|
|
height: $(window).height() - 130,
|
|
loadNow: true,
|
|
isPage: false,
|
|
data: GetControlValue,
|
|
onLoadSuccess: function (data) {
|
|
//$("#lbInitDatetime").text(data.initTime);
|
|
}
|
|
});
|
|
function GetControlValue() {
|
|
return { month: $("#SltYearMonth").val() + "-01" };
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
});
|
|
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
//获取datagrid头部及字段
|
|
function getDataGridHeader() {
|
|
var columns = $('#tablist').tablegrid("getHead");
|
|
return columns;
|
|
}
|
|
function ExportAllPage_Click() {
|
|
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/WeiXin/CommissionBalance/Export?month=" + $("#SltYearMonth").val() + "-01")));
|
|
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
|
}
|
|
</script>
|