ComplianceServer/oldcode/WEB/Views/Csvr/CustomerUC/CustomerQwUserUC.cshtml

90 lines
3.0 KiB
Plaintext

@using WX.CRM.Common
@using WX.CRM.Model.QueryMap
@using WX.CRM.WebHelper
@{
Layout = null;
}
<script src="~/Scripts/My97DatePicker/WdatePicker.js"></script>
<script src="~/Scripts/json2.js"></script>
<style type="text/css">
.DisTable {
display: block;
}
.NoneTable {
display: none;
}
.curshow {
padding: 0 20px 5px;
background-color: #F7FAFE;
}
.curshow2 {
padding: 0 20px 5px ;
background-color: #F7FAFE;
}
.curhide {
padding: 0 20px 5px;
}
</style>
<div class="group content_title_width">
<span class="csicon QWIcon"></span>
<span>微信信息</span>
</div>
<div class="content_div" style="margin-bottom:20px;">
@{
System.Data.DataTable tab = ViewBag.modelList as System.Data.DataTable;
}
<table id="wx_username_chatlist" class="layui-table content_width" >
@{
int wkeid = (int)ViewBag.WorkwxEid;
string RoleCode = (string)ViewBag.RoleCodes;
bool isShowAllOrSelf = false;
if (RoleCode.IndexOf("[ZJ]") > -1 || RoleCode.IndexOf("[GLY]") > -1 || RoleCode.IndexOf("[ZJZG]") > -1 || RoleCode.IndexOf("[ZJZL]") > -1)
{
isShowAllOrSelf = true;
}
}
<thead>
<tr>
<td>客户姓名</td>
<td>备注企业信息</td>
<td>备注名称</td>
<td>备注描述</td>
<td>客服姓名</td>
<td>查看</td>
</tr>
</thead>
@if (tab != null)
{
foreach (System.Data.DataRow item in tab.Rows)
{
int eid = 0;
<tr>
<td>@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["customername"]))</td>
<td>@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["companyremark"]))</td>
<td>@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["realremark"]))</td>
<td>@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["remarks"]))</td>
<td>@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["username"]))</td>
<td>
@if (isShowAllOrSelf == true || wkeid == eid)
{
<a href="javascript:void(0);" onclick="ShowMesageDetialQw('@Html.Raw(item["vid"])','@Html.Raw(item["username"])','@Html.Raw(item["remoteid"])','@Html.Raw(item["customername"])')">查看消息</a>
}
</td>
</tr>
}
}
</table>
</div>
<script type="text/javascript">
function ShowMesageDetialQw(vid, name, remoteid, remotename) {
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccount/QwMessageOne?vid=" + vid + "&name=" + name + "&remoteid=" + remoteid + "&remotename=" + remotename + "&guid=" + GetGuid()));
$("#modalwindow").window({ title: '聊天记录', width: 800, height: 600, iconCls: 'icon-add' }).window('open');
}
</script>