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

105 lines
3.4 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 WeiXinIcon"></span>
<span>微信信息</span>
</div>
<div class="content_div">
@{
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 = true;
bool isShouHou = false;
if (RoleCode.IndexOf("[ZJ]") > -1 || RoleCode.IndexOf("[GLY]") > -1 || RoleCode.IndexOf("[ZJZG]") > -1 || RoleCode.IndexOf("[ZJZL]") > -1)
{
isShowAllOrSelf = true;
}
if (RoleCode.IndexOf("[SH]") > -1) {
isShowAllOrSelf = true;
isShouHou = true;
}
}
<thead>
<tr>
<td>用户名</td>
<td>客户昵称</td>
@if (isShowAllOrSelf == true)
{
<td>客户备注</td>
}
<td>员工</td>
<td>工作微信号</td>
<td>查看</td>
</tr>
</thead>
@if (tab != null)
{
foreach (System.Data.DataRow item in tab.Rows)
{
int eid = Convert.ToInt32(item["eid"]);
bool isShouHouMsg = false;
if (item["eid"].ToString().StartsWith("2")){
isShouHouMsg = true;
}
<tr>
<td>@Html.Raw(item["username"])</td>
<td>@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["nickname"]))</td>
@if (isShowAllOrSelf == true)
{
<td>@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["conremark"]))</td>
}
<td>@Html.Raw(item["eid"].ToString() + "-" + item["uname"].ToString())</td>
<td>@Html.Raw(item["wokalias"])</td>
<td>
@if (isShowAllOrSelf == true || wkeid == eid ||(isShowAllOrSelf==false && isShouHou == false && isShouHouMsg==true))
{
<a href="javascript:void(0);" onclick="ShowMesageDetial('@Html.Raw(item["username"])','@Html.Raw(item["jobwxusername"])')">查看消息</a>
}
</td>
</tr>
}
}
</table>
</div>
<script type="text/javascript">
function ShowMesageDetial(username, jobusername) {
$("#modalwindow").html(GetIframeHtml("/WeiXin/WorkAccount/MessageDetial?username=" + username + "&workusername=" + jobusername + "&guid=" + GetGuid()));
$("#modalwindow").window({ title: '聊天记录', width: 800, height: 600, iconCls: 'icon-add' }).window('open');
}
</script>