@using FHT.Agency.CommonTypes @using FHT.Agency.UI.ViewModels.Agent @using FHT.Utilities @model FHT.Agency.UI.InputModels.Agent.UpdateAgentAccountInputModel @Styles.Render("~/Content/select2") @{ ViewBag.Title = "修改代理商用户"; var agentRoles = EnumHelpers.Enum2Dictionary().Where(r => r.Value.Contains("代理商")).ToList(); var agentOrganizations = (IEnumerable)(ViewBag.AgentOrganizations); } @using (Html.BeginForm("UpdateAgent", "ManageAgent", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { @Html.AntiForgeryToken() @Html.ValidationSummary(false, "", new { @class = "text-danger" }) @Html.HiddenFor(m => m.Id)
@Html.RequiredLabelFor(m => m.AgentOrganizationId, new { @class = "col-md-2 control-label" })
@Html.EditorFor(m => m.AgentOrganizationId) @Html.ValidationMessageFor(m => m.AgentOrganizationId)
没有找到对应的代理商? @Html.ActionLink("创建代理商机构", "CreateAgentOrganization", "ManageAgent")
@Html.RequiredLabelFor(m => m.Role, new { @class = "col-md-2 control-label" }) @{ var radioIndex = 0; foreach (var role in agentRoles) { radioIndex++;
@{ string fileldId = "RoleRadio" + radioIndex; }
} } @Html.ValidationMessageFor(m => m.Role)
@Html.RequiredLabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })
@Html.EditorFor(m => m.UserName, new { @readonly = "readonly" }) @Html.ValidationMessageFor(m => m.UserName)
@Html.RequiredLabelFor(m => m.DescriptiveName, new { @class = "col-md-2 control-label" })
@Html.EditorFor(m => m.DescriptiveName) @Html.ValidationMessageFor(m => m.DescriptiveName)
@Html.RequiredLabelFor(m => m.Mobile, new { @class = "col-md-2 control-label" })
@Html.EditorFor(m => m.Mobile) @Html.ValidationMessageFor(m => m.Mobile)
@Html.RequiredLabelFor(m => m.Telephone, new { @class = "col-md-2 control-label" })
@Html.EditorFor(m => m.Telephone) @Html.ValidationMessageFor(m => m.Telephone)
} @section scripts{ @Scripts.Render("~/bundles/select2") @Scripts.Render("~/bundles/views/upDateAgent") }