@using FHT.Utilities @using FHT.Agency.UI.ViewModels @model FHT.Agency.UI.InputModels.AllotChannelUserInputModel @{ ViewBag.Title = "渠道账户变更"; Layout = "~/Views/Shared/_Layout.cshtml"; } @{ var channelManagers = (IEnumerable)ViewBag.ChannelManagers; var channelManagerListItems = channelManagers.Select(r => new SelectListItem { Value = r.UserId.ToString(), Text = r.DescriptiveName }).ToList(); } @using (Html.BeginForm("AllotChannelUser", "Authorization", null, FormMethod.Post, new { @class = "", role = "form" })) {
@Html.AntiForgeryToken() @Html.ValidationSummary(false,"", new { @class = "text-danger" }) @Html.HiddenFor(m => m.UserId) @Html.HiddenFor(m => m.Role)
@Html.RequiredLabelFor(l => l.UserName, new { @class = "col-md-2 control-label" })
@(Model.UserName)
@Html.RequiredLabelFor(l => l.DescriptiveName, new { @class = "col-md-2 control-label" })
@(Model.DescriptiveName)
@Html.RequiredLabelFor(l => l.Role, new { @class = "col-md-2 control-label" })
@(Model.Role.GetEnumDescription())
@Html.RequiredLabelFor(l => l.CurrentParent, new { @class = "col-md-2 control-label" })
@(Model.CurrentParent)
@Html.RequiredLabelFor(l => l.ParentId, new { @class = "col-md-2 control-label" })
@Html.DropDownList("ParentId", channelManagerListItems, new { @class = "form-control select2 ", style = "width:200px;padding-left:10px;" })
}