TG.WXCRM.V4/WEB/Views/WeiXin/SzzyOrder/WeWorkRcontact.cshtml

87 lines
2.6 KiB
Plaintext

@using WX.CRM.WebHelper;
@using WX.CRM.Model.Entity;
@{
ViewBag.Title = "微信好友";
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>客户姓名:<input type="text" name="txt_name" style="width:120px" />&nbsp;</li>
<li>备注企业信息:<input type="text" name="txt_companyremark" style="width:120px" /></li>
<li>备注号码:<input type="text" name="txt_remarkphone" style="width:150px" /></li>
<li>备注名称:<input type="text" name="txt_realremark" style="width:80px" /></li>
</ul>
</div>
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
loadtablegrid();
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
});
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
function loadtablegrid() {
$('#tablist').tablegrid({
url: '/WeiXin/SzzyOrder/WeWorkRcontact',
height: $(window).height() - 110,
loadNow: true,
onLoadError: function () {
$.messager.alert("警告", "信息加载失败!", "error");
}
});
}
</script>
@*ToolBar事件处理*@
<script type="text/javascript">
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
//获取datagrid头部及字段
function getDataGridHeader() {
var columns = $('#tablist').tablegrid("getAllHead");
return columns;
}
function SelectCustomerQw(userName, userId) {
window.parent.frameReturnByClose();
window.parent.SelectCustomerQw(userName, userId);
}
function sourceConfirm() {
var val = $('#source').val().trim();
if (val == '' || val == undefined) {
$.messager.alert("警告", "请填写客户来源", "error");
return;
}
SelectCustomerQw(val);
}
</script>