TG.WXCRM.V4/WEB/Views/WeiXin/WXRcontact/WebChatDayReport.cshtml

77 lines
2.1 KiB
Plaintext

@using WX.CRM.WebHelper;
@{
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<style>
.txt-expand {
width: 16px;
height: 16px;
display: inline-block;
cursor: pointer;
}
.expand-activity {
background: url("/Content/Images/tools.png") no-repeat scroll 0 0;
}
.close-activity {
background: url("/Content/Images/icon/edit_remove.png") no-repeat;
}
</style>
@{
DateTime nodate = Convert.ToDateTime(Request.QueryString["datetime"]);
}
<div class="bas_datagrid">
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: 'WebChatDayReportHtml',
height: $(window).height() - 110,
loadNow: true,
data: GetControlValue
});
function GetControlValue() {
return {
datetime: "@Html.Raw(Request.QueryString["datetime"])",
type: @Html.Raw(Request.QueryString["type"])
};
}
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
$(window).resize(function () {
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
$(".txt-expand").live("click", function () {
if ($(this).hasClass("expand-activity")) {
$(this).removeClass("expand-activity").addClass("close-activity");
$("[typeName='" + $(this).attr("title") + "']").css("display", "");
}
else {
$(this).removeClass("close-activity").addClass("expand-activity");
$("[typeName='" + $(this).attr("title") + "']").css("display", "none");
}
});
});
function frameReturnByClose()
{
$("#modalwindow").window('close');
}
function frameReturnByReload(flag)
{
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes)
{
$.messageBox5s('提示', mes);
}
</script>