TG.WXCRM.V4/WEB/Views/Csvr/CustomerUC/CustomerExtendUC.cshtml

63 lines
2.0 KiB
Plaintext

@model WX.CRM.Model.Entity.RES_CUSTOMEREXTEND
@using WX.CRM.WebHelper;
@using WX.CRM.Model
@{
Layout = null;
}
<script type="text/javascript">
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
function Link_Click(tag, id) {
var resid = id;
var src = "";
var width = 600;
var height = 450;
switch (tag) {
case "sk": src = "/Res/CustomerExtend/Edit?resid=" + resid + "&tag=" + tag; break;
case "ci": src = "/Res/CustomerExtend/Edit?resid=" + resid + "&tag=" + tag; break;
case "ts":
width = 1000;
height = 600;
src = "/Quality/ComplainCustomer/Add?resid=" + resid;
break;
}
$("#modalwindow").html(GetIframeHtml(src));
$("#modalwindow").window({ title: '编辑', width: width, height: height, iconCls: 'icon-edit' }).window('open');
}
</script>
<div class="group content_title_width">
<span class="csicon UserIcon"></span>
<span>客户扩展信息</span>
<span class="righttitle">
<a href="#" onclick="Link_Click('sk','@ViewBag.resid')" id="BtnAddInfo">填写信息</a>&nbsp;&nbsp;
<a href="#" onclick="Link_Click('ci','@ViewBag.resid')" id="BtnAddSelect">添加选项</a>
</span>
</div>
<div class="content_div">
<table class="layui-table content_width">
@{ var j = 1; var extendList = ViewBag.List as List<WX.CRM.Model.Entity.RES_CUSTOMEREXTEND>; }
@for (int i = 0; i < extendList.Count; i++)
{
if (i % 4 == 0)
{
@Html.Raw("<tr>")
}
@Html.Raw("<td>" + @extendList[i].map_CUSTOMEREXTENDSUBTYPEID + ":" + @extendList[i].map_MEMO + "</td>");
if ((i % 4) == 4 * j - 1)
{
@Html.Raw("</tr>")
j++;
}
}
</table>
</div>