97 lines
3.2 KiB
Plaintext
97 lines
3.2 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>
|
|
@{
|
|
string isShowAlias = (string)ViewBag.IsShowAlias;
|
|
DateTime nodate = Convert.ToDateTime(Request.QueryString["datetime"]);
|
|
}
|
|
@if (isShowAlias == "1")
|
|
{
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnExport1", "icon-export", "被加资源导出", true)
|
|
@Html.ToolButton("btnExport2", "icon-export", "主加资源导出", true)
|
|
@Html.ToolButton("btnExport3", "icon-export", "好友资源导出", true)
|
|
</div>
|
|
}
|
|
<div class="bas_datagrid">
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: 'UserDayReportHtml',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
data: GetControlValue
|
|
});
|
|
function GetControlValue() {
|
|
return {
|
|
datetime: "@Html.Raw(Request.QueryString["datetime"])",
|
|
type : "@Request["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");
|
|
}
|
|
});
|
|
$("#btnExport1").click(function () {
|
|
var url = "/Res/WXRcontact/ResourceExport?type=0&beginTime=@Html.Raw(nodate.ToString("yyyy-MM-dd"))&endTime=@Html.Raw(nodate.AddDays(1).ToString("yyyy-MM-dd"))&inneruserid=";
|
|
window.open(url);//弹出下载
|
|
});
|
|
$("#btnExport2").click(function () {
|
|
var url = "/Res/WXRcontact/ResourceExport?type=1&beginTime=@Html.Raw(nodate.ToString("yyyy-MM-dd"))&endTime=@Html.Raw(nodate.AddDays(1).ToString("yyyy-MM-dd"))&inneruserid=";
|
|
window.open(url);//弹出下载
|
|
});
|
|
$("#btnExport3").click(function () {
|
|
var url = "/Res/WXRcontact/ResourceExport?type=2&beginTime=@Html.Raw(nodate.ToString("yyyy-MM-dd"))&endTime=@Html.Raw(nodate.AddDays(1).ToString("yyyy-MM-dd"))&inneruserid=";
|
|
window.open(url);//弹出下载
|
|
});
|
|
});
|
|
|
|
|
|
function frameReturnByClose()
|
|
{
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag)
|
|
{
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes)
|
|
{
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
|
|
</script>
|