@model List<Com._9pm2.ClientWeb.Models.DuplicatedCustomerModel>
@{ViewBag.Title = "客户重名检测"; }

<div class="callout callout-warning lead ">此页显示所有客户全称或简称出现重名的客户信息。如有重复，请修改或删除重复的客户信息。</div>

@{
    Com._9pm2.ClientWeb.Models.LoginUser user = Session["LoginUser"] as Com._9pm2.ClientWeb.Models.LoginUser;
}

<form method="get" action="/Customer/Index">
    <div class="divSearch">
        <div>
            <button type="button" class="btn btn-default" onclick="history.go(-1);">返回</button>
        </div>
    </div>
</form>

<div class="list">

    @if (Model.Count > 0)
    {
        <table id="tCustomer">
            <thead>
                <tr>
                    <th>客户简称</th>
                    <th>客户全称</th>
                    <th>快速索引</th>
                    <th>客户电话</th>
                    <th>送货地址</th>
                    <th>备注</th>
                    <th>登录账号</th>
                    <th>账户余额</th>
                    <th>客户订单数</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr id="@item.CustomerNo">
                        <td>@item.CustomerShortName</td>
                        <td>@item.CustomerFullName</td>
                        <td>@item.SearchKey</td>
                        <td>@item.Phone</td>
                        <td>@item.Address</td>
                        <td>@item.Description</td>
                        <td>
                            @if (item.CanLogin)
                            {
                                @item.LoginId
                            }
                        </td>
                        <td>@item.Balance</td>
                        <td>@item.OrderCount</td>
                    </tr>
                }
            </tbody>
        </table>
    }

    @if (Model.Count == 0)
    {
        <div id="chart-no-data">没有发现重名的客户！</div>
    }

</div>
