@using FHT.Agency.UI.ViewModels.Agent @using FHT.Agency.CommonTypes @using FHT.Utilities @using System.Web.Mvc @model AgentOrganizationViewModel @{ ViewBag.Title = "代理商详情"; Layout = "~/Views/Shared/_Layout.cshtml"; } @{ var channelUsers = (List)ViewBag.ChannelUsers; var isView = Request.QueryString["actions"] == "detail"; } @using (Html.BeginForm("AllotAgentOrganization", "ManageAgent", FormMethod.Post, new { @class = "form-horizontal" })) { @Html.HiddenFor(m => m.Id) @Html.AntiForgeryToken() @if (Model.AgentSource == AgentSource.Channel) { } @**@ @if (isView) { } else { }
代理商名称 @Model.Name
成立日期 @Model.RegisteredDate.ToShortDateString()
法人姓名 @Model.LegalEntityName
业务联系人 @Model.ContactName
电话 @Model.Telephone
手机号 @Model.Mobile
邮箱 @Model.Email
等级 @Model.LevelType.GetEnumDescription()
来源 @Model.AgentSource.GetEnumDescription()
渠道经理 @Model.ChannelManagerName
种类 @Model.AgentType.GetEnumDescription()
业务区域 @Model.FirstLevelRegionName / @Model.SecondLevelRegionName
详细地址 @Model.Address
邮编 @Model.PostalCode
开户行 @Model.BankName
银行账号 @Model.AccountNumber
税号 @Model.TaxReferenceNumber
备注 @Model.Remark
状态 @Model.Status.GetEnumDescription()
渠道经理 @Model.ChannelManagerName
渠道经理 @Html.DropDownList("ChannelManagerId", channelUsers, new { @class = "form-control select2 ", style = "width:200px;padding-left:10px;" })
@Html.ActionLink("返回", "AllotOrganizations", "ManageAgent", null, new { @class = "btn btn-default" }) @if (!isView) { }
} @{ }