@{
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;
}
| @Html.Raw(item["username"]) |
@Html.Raw(WX.CRM.Common.Utility.ReplaceMobile(item["nickname"])) |
@if (isShowAllOrSelf == true)
{
@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))
{
查看消息
}
|
}
}