ComplianceServer/oldcode/WEB/Views/TS/WxTsAddPici/DayReport.cshtml

72 lines
2.5 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>
@if (ViewBag.showGroup == "1")
{
<li>
客服小组:<select id="slt_groupId" name="slt_groupId" style="width:150px;height:22px" onChange="changeselect(this.value)">
@foreach (var item in ViewBag.groupList as List<SelectListItem>)
{
<option value="@item.Value">@item.Text</option>
}
</select>
</li>
}
@if (ViewBag.showDept == "1")
{
<li>
部门:
<select id="slt_deptId" name="slt_deptId" style="width:150px;height:22px">
<option value="0">全部</option>
<option value="1" selected="selected">业务一二部</option>
<option value="3">业务三部</option>
</select>
</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>