@using FHT.Agency.UI.InputModels.Search @using FHT.Agency.Web.Extensions @using FHT.Agency.CommonTypes @using FHT.Utilities @using FHT.Agency.UI.ViewModels @using FHT @model SearchAgentClientInputModel @{ ViewBag.Title = "代理商客户管理"; var agentClients = (FHT.DDD.QueryResult)ViewBag.AgentClients; var isAgent = User.UserRole() == FhtUserRoleType.AgentAdmin || User.UserRole() == FhtUserRoleType.AgentCustomerServiceStaff; } @section styles{ @Styles.Render("~/Content/select2") }
@using (Html.BeginForm("AgentClients", "Agent", FormMethod.Get, new {role = "form" })) {
@Html.RequiredLabelFor(m => m.ClientId,new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.ClientId, new { @class = "form-autocomplate", data_autocomplate_url="/Agent/SearchAgentClients"})
@if (!isAgent) {
@Html.RequiredLabelFor(m => m.AgentOrganizationId,new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.AgentOrganizationId, new { @class = "form-autocomplate", data_autocomplate_url="/ManageAgent/SearchAgents"})
}
}
@if (!isAgent) { } @if (agentClients.Data.Any()) { foreach (var client in agentClients.Data) { @if (!isAgent) { } } } else { }
企业编号 公司名称所属代理商联系人 联系电话 注册日期 创建人 操作
@client.CompanyId @client.CompanyName@client.AgentName真实姓名 联系电话 @client.Created.ToString("yyyy-MM-dd") @client.Creator
暂无数据
@if ((agentClients.TotalCount - 1) / Model.Limit >= 1) { @Html.Pager(Model.Limit, Model.CurrPage, (int)agentClients.TotalCount).Options(opt => { opt.Action("AgentClients") .PageRouteValueKey("CurrPage") .AddRouteValue("ClientId", Model.ClientId) .AddRouteValue("AgentOrganizationId", Model.AgentOrganizationId) .SetNextPageText(">") .DisplayTemplate("BootstrapPagination") .SetPreviousPageText("<"); }) }
@section scripts{ @Scripts.Render("~/bundles/select2") }