TG.WXCRM.V4/WEB/Views/Res/Distribute/ResAllcoteLogEffect.cshtml

98 lines
3.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>
<div class="mvctool">
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
@Html.ToolButton("btnExport", "icon-export", "导出", "Export_Click", true)
</div>
<div class="bas_datagrid">
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
<ul class="toolBar_ul">
<li>@Html.Action("UserSSOComBox", "Control", new { currentRight = WX.CRM.WebHelper.InitRights.CONST_分配资源效果统计 })</li>
<li>
分配时间:@Html.WdatePickerText("txt_stime", DateTime.Now.ToString("yyyy-MM-dd"))-@Html.WdatePickerText("txt_etime", DateTime.Now.ToString("yyyy-MM-dd"))
</li>
<li>
资源类型:@Html.DropDownList("slt_restypeid", ViewBag.slt_ResourctType as List<SelectListItem>)
</li>
</ul>
</div>
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: 'ResAllcoteLogEffect',
height: $(window).height() - 110,
loadNow: false,
data: GetControlValue
});
function GetControlValue() {
return { saleDeptId: $("#txt_deptId").val(), groupId: $("#txt_groupIds").val(), userId: $("#txt_userId").val() };
}
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
$(window).resize(function () {
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
});
function onLoadSucced() {
$('#tablist').tablegrid("Search");
}
function frameReturnByClose()
{
$("#modalwindow").window('close');
}
function frameReturnByReload(flag)
{
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes)
{
$.messageBox5s('提示', mes);
}
function ShowResDetial(url) {
window.parent.ChildAddTab("客户详细", url, "");
}
</script>
<script type="text/javascript">
//获取datagrid头部及字段
function getDataGridHeader() {
var columns = $('#tablist').tablegrid("getHead");
return columns;
}
function GetIframeHtml(src) {
return "<iframe id='ifymbc' width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
function Export_Click() {
var qls = "&saleDeptId=" + $("#nb1_uc_org_depts").val() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val();
window.open("/Res/Distribute/ExportResAllcoteLogEffect?Ieguid=" + GetGuid() + qls + "&" + GetQueryStr());
}
</script>