@using FHT.Agency.UI.InputModels.Search @using FHT.Utilities @using FHT.Agency.CommonTypes @using FHT.Agency.UI.ViewModels @using FHT.Agency.Web.Extensions @model SearchStatementsInputModel @{ ViewBag.Title = "财务流水记录"; Layout = "~/Views/Shared/_Layout.cshtml"; var accountStatements = (QueryAccountStatementViewModel)ViewBag.AccountStatements; var channelUsers = (List)ViewBag.ChannelUsers; var cUsers = channelUsers.Select(c => new SelectListItem { Value = c.Value.ToString(), Text = c.Text, Selected = c.Value == Model.ChannelUserId }).ToList(); cUsers.InsertDefault(); } @section styles{ @Styles.Render("~/Content/select2") }
@using (Html.BeginForm("AccountStatements", "Transfer", FormMethod.Get, new { role = "form" })) { if (!Model.IsAgentUser) {
@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.ChannelUserId, new{@class="pull-left fht-control-label"})
@Html.DropDownListFor(m => m.ChannelUserId, cUsers, new { @class = "form-control", style = "padding-left:10px;" })
@Html.RequiredLabelFor(m => m.AccountStatementType, new{@class="pull-left fht-control-label"})
@Html.EditorFor(m => m.AccountStatementType, new { enumSource = typeof(AccountStatementType) })
@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.DateRange, new{@class="pull-left fht-control-label"}) @Html.EditorFor(m => m.DateRange)
} else {
@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.AccountStatementType, new{@class="pull-left fht-control-label"})
@Html.EditorFor(m => m.AccountStatementType, new { enumSource = typeof(AccountStatementType) })
@Html.RequiredLabelFor(m => m.DateRange, new{@class="pull-left fht-control-label"}) @Html.EditorFor(m => m.DateRange)
} }
@if (!Model.IsAgentUser) { } @foreach (var accountStatement in accountStatements.QueryResult.Data) { @if (!Model.IsAgentUser) { } } @if (!accountStatements.QueryResult.Data.Any()) { }
交易日期 凭证编码 入账金额(元) 支出金额(元) 账户余额(元)代理商名称 渠道人员交易描述 交易类型 客户名称
@accountStatement.CreatedTime.ToString("yyyy-MM-dd HH:mm:ss") @accountStatement.No @(accountStatement.Amount.HasValue ? accountStatement.Amount.Value.ToString() : "0") @(accountStatement.Payment.HasValue ? accountStatement.Payment.Value.ToString() : "0") @accountStatement.Remaining @accountStatement.AgentName @accountStatement.ChannelName@accountStatement.Description @accountStatement.AccountStatementType.GetEnumDescription() @((accountStatement.AccountStatementType == AccountStatementType.Deposit || accountStatement.AccountStatementType == AccountStatementType.Recharge) ? accountStatement.AgentName : accountStatement.CustomerName)
暂无数据
@if ((accountStatements.QueryResult.TotalCount - 1) / Model.Limit > 0) { @Html.Pager(Model.Limit, Model.CurrPage, (int)accountStatements.QueryResult.TotalCount).Options(opt => { opt.Action("AccountStatements") .PageRouteValueKey("currPage") .AddRouteValue("ChannelUserId", Model.ChannelUserId) .AddRouteValue("AgentOrganizationId", Model.AgentOrganizationId) .AddRouteValue("ClientId", Model.ClientId) .AddRouteValue("DateRange.BeginTime", Model.DateRange.BeginTime.HasValue ? Model.DateRange.BeginTime.Value.ToShortDateString() : "") .AddRouteValue("DateRange.EndTime", Model.DateRange.EndTime.HasValue ? Model.DateRange.EndTime.Value.ToShortDateString() : "") .AddRouteValue("AccountStatementType", Model.AccountStatementType.HasValue? Model.AccountStatementType.ToInt().ToString():"") .SetNextPageText(">") .DisplayTemplate("BootstrapPagination") .SetPreviousPageText("<"); }) }
@section scripts{ @Scripts.Render("~/bundles/select2") }