@using WX.CRM.Common @using WX.CRM.Model.QueryMap @using WX.CRM.WebHelper @{ Layout = null; }
微信信息
@{ System.Data.DataTable tab = ViewBag.modelList as System.Data.DataTable; } @{ 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; } } @if (isShowAllOrSelf == true) { } @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; } @if (isShowAllOrSelf == true) { } } }
用户名 客户昵称客户备注员工 工作微信号 查看
@Html.Raw(item["username"]) @Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["nickname"]))@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["conremark"]))@Html.Raw(item["eid"].ToString() + "-" + item["uname"].ToString()) @Html.Raw(item["wokalias"]) @if (isShowAllOrSelf == true || wkeid == eid ||(isShowAllOrSelf==false && isShouHou == false && isShouHouMsg==true)) { 查看消息 }