50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
</div>
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding: 5px; height: auto" class="grid_toolbar">
|
|
<ul class="toolBar_ul">
|
|
<li>日期:@Html.WdatePickerText("sdCTime", new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(-1).ToString("yyyy-MM-dd"))~@Html.WdatePickerText("edCTime", (new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1)).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"))</li>
|
|
<li><input type="hidden" id="txt_type" name="txt_type" value="@Request["type"]" /> </li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: 'DayReportHtml',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
data: GetControlValue
|
|
});
|
|
function GetControlValue() {
|
|
return {
|
|
sdCTime: $("#sdCTime").val(),
|
|
edCTime: $("#edCTime").val()
|
|
};
|
|
}
|
|
$("#btnQuery").click(function () {
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function () {
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
</script>
|