55 lines
2.1 KiB
Plaintext
55 lines
2.1 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "bas_agent";
|
|
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>
|
|
分配时间:<input type="text" id="txt_sTime" name="txt_sTime" value=@(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day).ToString("yyyy-MM-dd")) onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width: 100px;"/> -
|
|
<input type="text" id="txt_eTime" name="txt_eTime" value=@(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day).ToString("yyyy-MM-dd")) onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width: 100px;"/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('#tablist').tablegrid({
|
|
url: '/Res/Distribute/DistributeCount',
|
|
height: $(window).height() - 110,
|
|
loadNow: true
|
|
});
|
|
$("#btnQuery").click(function() { //搜索按钮点击事件
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function() { //自动适应大小
|
|
$('#tablist').tablegrid('resize',
|
|
{
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
|
|
function GetUnCount(stime, etime, saleid) {
|
|
$("#modalwindow").html(GetIframeHtml("/Res/Distribute/DistributeUnCount?stime=" + stime + "&etime=" + etime + "&saleid=" + saleid));
|
|
$("#modalwindow").window({ title: '资源明细', width: 700, height: 430, iconCls: 'icon-details' }).window('open');
|
|
}
|
|
</script>
|
|
@*ToolBar事件处理*@
|
|
<script type="text/javascript">
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
|
|
</script>
|