@using FHT.Core.UI.ViewModels @using FHT.Core.UI.ViewModels.Company @using MvcPaging @using FHT.Agency.Web.Extensions @using FHT.Utilities @{ ViewBag.Title = "公海数据分配"; Layout = "~/Views/Shared/_Layout.cshtml"; var companys = (FHT.DDD.QueryResult)ViewBag.Companys; var companyIds = (List)ViewBag.CompanyIds; } @model FHT.Core.UI.InputModels.Search.SearchCompanyInputModel @section styles{ @Styles.Render("~/Content/select2") } @{ var provinceListItems = (List)ViewBag.Provinces; provinceListItems.InsertDefault(); var cityListItems = ViewBag.Citys != null ? (List)ViewBag.Citys : new List(); cityListItems.InsertDefault(); }
@using (Html.BeginForm("Index", "Synchronziation", FormMethod.Get, new {role = "form" })) {
@Html.RequiredLabelFor(m => m.CompanyId, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.CompanyId, new { @class = "form-autocomplate", data_autocomplate_url="/Company/AutoCompleteSearch"})
@Html.RequiredLabelFor(m => m.ProvinceId, new{@class="pull-left fht-control-label"})
@Html.DropDownListFor(m => m.ProvinceId, provinceListItems, new { @class = "form-control" })
@Html.RequiredLabelFor(m => m.CityId, new{@class="pull-left fht-control-label"})
@Html.DropDownListFor(m => m.CityId, cityListItems, new { @class = "form-control" })
}
@Html.RequiredLabelFor(m => m.AgentId, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.AgentId, new { @class = "form-autocomplate", data_autocomplate_url="/ManageAgent/SearchAgents"})
@if (companys.Data.Any()) { foreach (var c in companys.Data) { } } else { }
编号 公司名称 所在区域 注册来源 创建日期
@if (companyIds.Contains(c.CompanyId)) { @:/ } else { } @c.CompanyId @c.CompanyName @c.Region.FirstLevel/@c.Region.SecondLevel @c.RegistrationSourceType.GetEnumDescription() @c.Created
暂无数据
@if ((companys.TotalCount - 1) / Model.Limit > 0) { @Html.Pager(Model.Limit, Model.CurrPage, (int)companys.TotalCount).Options(opt => { opt.Action("Index") .PageRouteValueKey("CurrPage") .AddRouteValue("CompanyId", Model.CompanyId) .AddRouteValue("ProvinceId", Model.ProvinceId) .AddRouteValue("CityId", Model.CityId) .SetNextPageText(">") .DisplayTemplate("BootstrapPagination") .SetPreviousPageText("<"); }) }
@section scripts{ @Scripts.Render("~/bundles/views/synchronziation/index") }