TG.WXCRM.V4/WEB/Views/QH/DiscrepancyGold/Index.cshtml

61 lines
2.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using WX.CRM.WebHelper;
@{
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>资金账户:<input type="text" name="txt_userAccount" />&nbsp;</li>
<li>账户名称:<input type="text" name="txt_accountName" />&nbsp;</li>
<li>客户ID<input type="text" name="txt_resId" />&nbsp;</li>
<li>日期:@Html.WdatePickerText("txt_starttime", "")-@Html.WdatePickerText("txt_endtime", "")</li>
</ul>
</div>
@Html.Raw(ViewBag.List)
</div>
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: '/QH/DiscrepancyGold/GetHtml',
height: $(window).height() - 110,
loadNow: true,
onLoadError: function () {
$.messager.alert("警告", "信息加载失败!", "error");
}
});
$("#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);
}
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 export_Click() {
var parm = GetQueryStr();
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/QH/DiscrepancyGold/Export?" + parm)));
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
}
</script>