86 lines
3.1 KiB
Plaintext
86 lines
3.1 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@using WX.CRM.Model.Entity;
|
|
@{
|
|
ViewBag.Title = "加人日志查询";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script src="~/Scripts/op/tablegrid.sort.js"></script>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
|
</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_alias" name="txt_alias"/>
|
|
</li>
|
|
<li>
|
|
工号:
|
|
<input type="text" id="txt_eid" name="txt_eid" />
|
|
</li>
|
|
<li>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/TS/WebChatAssistant/TsLog_ManagerGetHtmlList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
onLoadSuccess: function (data) {
|
|
//成功
|
|
}, onLoadError: function (ex) {
|
|
//失败
|
|
}
|
|
});
|
|
|
|
|
|
$("#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>
|
|
@*ToolBar事件处理*@
|
|
<script type="text/javascript">
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
|
|
function Details_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$("#modalwindow").html(GetIframeHtml("/TS/WebChatAssistant/TsLog_Detial?pici=" + row.pici + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '详细', width: 800, height: 600, iconCls: 'icon-details' }).window('open');
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
function Test_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$("#modalwindow").html(GetIframeHtml("/TS/WebChatAssistant/TestSendPhone?Alias=" + row.alias + "&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '测试推送加人', width: 800, height: 600, iconCls: 'icon-lookup' }).window('open');
|
|
} else {
|
|
$("#modalwindow").html(GetIframeHtml("/TS/WebChatAssistant/TestSendPhone?Alias=&Ieguid=" + GetGuid()));
|
|
$("#modalwindow").window({ title: '测试推送加人', width: 800, height: 600, iconCls: 'icon-lookup' }).window('open');
|
|
}
|
|
}
|
|
|
|
</script>
|