@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 typeList = ViewBag.typeList as List; ////var gjsCustomerCategoryInfoView = ViewBag.GJS_CustomerCategoryInfoView as GJS_CustomerCategoryInfoView; ////var traderUser = ViewBag.TraderUser as GJS_TRADERUSER; //var gjsCustomerCategoryInfoViewList = ViewBag.GJS_CustomerCategoryInfoViewList as List; }
客户交易信息及分类
@*@if (gjsCustomerCategoryInfoViewList != null && gjsCustomerCategoryInfoViewList.Count > 0) { foreach (var S_model in gjsCustomerCategoryInfoViewList) { var type = ""; } }*@
交易商代码 状态 主用户名 期末权益 客户分类 时间类型
@*@{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++; }*@ @*@{ i = 0; } @foreach (var model in typeList.Where(m => m.CATEGORYGROUP == 1)) { string html = model.CATEGORYNAME; if (i != 0) { html += ","; } @Html.Raw(html); i++; }*@
@switch(S_model.BusinessType) { case "XS001": type="湘商"; break; case "TG001": type="天贵"; break; case "GG001": type="广贵"; break; case "DYY01": type = "大圆银"; break; default: type = ""; break; } @type @S_model.TradeCode @S_model.State @if (S_model.gjs_TradeUser != null) { @(PhoneHelper.FormatPhoneUserName(S_model.gjs_TradeUser.USERNAME))      } else if (!string.IsNullOrWhiteSpace(S_model.TradeCode)) { } @S_model.MaxCurRights @if (S_model.CustomerCategoryModel != null) { @S_model.CustomerCategoryModel.CATEGORYNAME } @if (ViewBag.LossAmtDate != null) { DateTime dt = ViewBag.LossAmtDate; string html = "客户 "; html += dt.ToShortDateString(); html += " 亏损超过 "; html += Convert.ToDecimal(ViewBag.LossAmt) / 10000; html += "W"; @Html.Raw(html); }