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

156 lines
6.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model WX.CRM.Model.Entity.RES_CUSTOMER
@using System.Diagnostics
@using WX.CRM.Model.Entity
@using WX.CRM.WebHelper;
@using WX.CRM.Model.QueryMap;
@using WX.CRM.Model
@using WX.CRM.Common
@{
Layout = null;
var info = ViewBag.CustomerInfo as CustomerInfo;
//List<WX.CRM.Model.Entity.FXH_CUSTOMERCATEGORYTYPE> typeList = ViewBag.typeList as List<WX.CRM.Model.Entity.FXH_CUSTOMERCATEGORYTYPE>;
////var gjsCustomerCategoryInfoView = ViewBag.GJS_CustomerCategoryInfoView as GJS_CustomerCategoryInfoView;
////var traderUser = ViewBag.TraderUser as GJS_TRADERUSER;
//var gjsCustomerCategoryInfoViewList = ViewBag.GJS_CustomerCategoryInfoViewList as List<GJS_CustomerCategoryInfoView>;
}
<div class="group content_title_width">
<img src="~/Content/Images/communication.gif">
<span>客户交易信息及分类</span>
<div class="togglebtn"></div>
</div>
<div class="content_div">
<table class="layui-table content_width">
<thead>
<tr>
<td></td>
<td>交易商代码</td>
<td>状态</td>
<td>主用户名</td>
<td>期末权益</td>
<td>客户分类</td>
<td>时间类型</td>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
@*@{int i = 0; }
@foreach (var model in typeList.Where(m => m.CATEGORYGROUP == 0))
{
string html = model.CATEGORYNAME;
if (i != 0)
{
html += "";
}
@Html.Raw(html);
i++;
}*@
</td>
<td>
@*@{ i = 0; }
@foreach (var model in typeList.Where(m => m.CATEGORYGROUP == 1))
{
string html = model.CATEGORYNAME;
if (i != 0)
{
html += "";
}
@Html.Raw(html);
i++;
}*@
</td>
<td></td>
<td></td>
</tr>
@*@if (gjsCustomerCategoryInfoViewList != null && gjsCustomerCategoryInfoViewList.Count > 0)
{
foreach (var S_model in gjsCustomerCategoryInfoViewList)
{
var type = "";
<tr>
<td>
@switch(S_model.BusinessType)
{
case "XS001":
type="湘商";
break;
case "TG001":
type="天贵";
break;
case "GG001":
type="广贵";
break;
case "DYY01":
type = "大圆银";
break;
default: type = "";
break;
}
@type
</td>
<td>
@S_model.TradeCode
</td>
<td>@S_model.State</td>
<td>
@if (S_model.gjs_TradeUser != null)
{
<span style="font-weight: bold;">
@(PhoneHelper.FormatPhoneUserName(S_model.gjs_TradeUser.USERNAME)) &nbsp;&nbsp;&nbsp;&nbsp;
<input id="updatePrimayUserName" class="btn btn-primary" type="button" value="修 改" onclick="ModifyPrimaryUserName('Update','@S_model.gjs_TradeUser.TRADECODE','@info.CustomerId')" />
</span>
}
else if (!string.IsNullOrWhiteSpace(S_model.TradeCode))
{
<input id="addPrimayUserName" class="btn btn-primary" type="button" value="添 加" onclick="ModifyPrimaryUserName('Add','@S_model.TradeCode','@info.CustomerId')" />
}
</td>
<td><span style="color: red; font-weight: bold;">@S_model.MaxCurRights</span></td>
<td>
@if (S_model.CustomerCategoryModel != null)
{
<span style="color: red; font-weight: bold;">@S_model.CustomerCategoryModel.CATEGORYNAME</span>
}
</td>
<td>
</td>
<td></td>
<td>
@if (ViewBag.LossAmtDate != null)
{
DateTime dt = ViewBag.LossAmtDate;
string html = "客户 ";
html += dt.ToShortDateString();
html += " 亏损超过 ";
html += Convert.ToDecimal(ViewBag.LossAmt) / 10000;
html += "W";
<a style="color:red">@Html.Raw(html);</a>
}
</td>
</tr>
}
}*@
</tbody>
</table>
</div>
<script type="text/javascript">
function ModifyPrimaryUserName(type, tradeCode, Customerid) {
var src = "/Gjs/Gjs_TraderUser/Edit?tradecode=" + tradeCode + "&type=" + type + "&customerId=" + Customerid;
$("#modalwindow").html(GetIframeHtml(src));
$("#modalwindow").window({ title: '编辑', width: 600, height: 300, iconCls: 'icon-edit' }).window('open');
}
</script>