@using FHT.Agency.UI.InputModels.Order @using FHT.Agency.UI.ViewModels @using FHT.Utilities @using FHT.Agency.UI.ViewModels.Order @using FHT.Core.CommonTypes @model SearchOrderInputModel @{ ViewBag.Title = "订单列表"; Layout = "~/Views/Shared/_Layout.cshtml"; var orders = (FHT.DDD.QueryResult)ViewBag.Orders; } @section styles{ @Styles.Render("~/Content/select2") }
@using (Html.BeginForm("SearchOrder", "Order", FormMethod.Get, new {role = "form" })) {
@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"})
@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"})
@Html.RequiredLabelFor(m => m.ChannelUserId, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.ChannelUserId, new { @class = "form-autocomplate", data_autocomplate_url="/Order/SearchChannelUsers" })
@Html.RequiredLabelFor(m => m.BuyOrderType, new{@class="pull-left fht-control-label"})
@Html.EditorFor(m => m.BuyOrderType, new { enumSource = typeof(BuyOrderType) })
@Html.RequiredLabelFor(m => m.OrderId, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.OrderId, new { @class = "form-control" })
@Html.RequiredLabelFor(m => m.OrderStatus, new{@class="pull-left fht-control-label"})
@Html.EditorFor(m => m.OrderStatus, new { enumSource = typeof(OrderStatus) })
@Html.RequiredLabelFor(m => m.DateRange, new{@class="pull-left fht-control-label"}) @Html.EditorFor(m => m.DateRange)
}
@if (orders.Data.Any()) { foreach (var order in orders.Data) { } } else { }
订单编号 提单日期 客户名称 订单名称 服务类型 总价 生效日期 到期日期 代理商名称 订单状态 审核人 操作
@order.OrderId @order.CreatedTime.ToString("yyyy-MM-dd HH:mm:ss") @order.Company @order.Name @order.BuyOrderType.GetEnumDescription() @order.TotalAmount @order.EffectiveTime.ToString("yyyy-MM-dd") @order.ExpireTime.ToString("yyyy-MM-dd") @order.AgentName @order.OrderState.GetEnumDescription() @order.AuditorName @Html.ActionLink("详情", "OrderDetail", new { orderId = order.OrderId }, new { target = "_blank" })
暂无数据
@section scripts { @Scripts.Render("~/bundles/select2") }