70 lines
2.2 KiB
Plaintext
70 lines
2.2 KiB
Plaintext
@using WX.CRM.Model.Entity
|
|
@using WX.CRM.Common
|
|
@{
|
|
Layout = null;
|
|
}
|
|
<div class="group content_title_width">
|
|
<span class="csicon UserInfoIcon"></span>
|
|
<span>用户信息</span>
|
|
<a href="javascript:GetOtherUserName()">获取用户名</a>
|
|
</div>
|
|
<script>
|
|
var mylayer;
|
|
layui.use('layer', function () {
|
|
mylayer = layui.layer;
|
|
|
|
});
|
|
function GetOtherUserName() {
|
|
var resid = "@Html.Raw(ViewBag.ResId)";
|
|
var UserNameList = "@Html.Raw(ViewBag.UserNameList)";
|
|
$.r_ajax({
|
|
type: "Post",
|
|
url: "/Csvr/CustomerUC/GetOtherUser",
|
|
data: { resid: resid, softusername: UserNameList },
|
|
loading: true,
|
|
dataType: "json",
|
|
success: function (data) {
|
|
if (data.reslust == true) {
|
|
mylayer.alert(data.message, {
|
|
yes: function () { window.location.reload(); }
|
|
},)
|
|
//mylayer.msg(data.message);
|
|
//$.messager.alert("成功", data.message, "info");
|
|
} else {
|
|
mylayer.msg(data.message, { icon: 5 });
|
|
//$.messager.alert("警告", data.message, "error");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
<div class="content_div">
|
|
<table class="layui-table content_width">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="3">
|
|
用户信息:
|
|
</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@{
|
|
Dictionary<string, RES_CUSTOMER> dic = ViewBag.ResDic as Dictionary<string, RES_CUSTOMER>;
|
|
string deptNames = string.Empty;
|
|
}
|
|
@foreach (var item in ViewBag.SoftUser as List<WX.CRM.Model.Entity.SOFT_USER>)
|
|
{
|
|
<tr>
|
|
<td>客户ID:@item.UMID</td>
|
|
<td>用户名:@(PhoneHelper.FormatPhoneUserName(item.USERNAME))</td>
|
|
<td>
|
|
渠道:@if (item.REGCAMPAINID.HasValue)
|
|
{
|
|
@item.REGCAMPAINID.Value
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div> |