@using MES.Production.Service; @using Central.Control.Domain; @using Ant.Service.Common; @using CommonToolHelper; @{ ViewBag.Title = "添加/修改学校"; Layout = "~/Views/Shared/_Layout.cshtml"; } @model MES.Production.Entity.YM_School @using (Ajax.BeginForm("Save", null, new AjaxOptions() { HttpMethod = "Post", OnBegin = "SubAjax.Loading", OnComplete = "SubAjax.Complate", OnFailure = "SubAjax.Failure", OnSuccess = "SubAjax.Success" }, new { @class = "form-horizontal dig-from", @role = "form" })) {
@Html.Hidden("hidfilename", Model.CertificateFileID) @Html.Hidden("hidfileid", Model.CertificateFileID)
@Html.HiddenFor(p => p.ID)
@Html.TextBoxFor(p => p.Name, new { @class = "form-control", @id = "Name", @placeholder = "请输入校名简称", @datatype = "*", @nullmsg = "请输入校名简称!", @errormsg = "请输入校名简称!" })
@Html.DropDownListFor(p => p.SchoolBigType, ViewBag.SchoolBigTypes as IEnumerable, new { @class = "form-control select2", @id = "SchoolBigType", @placeholder = "请输入大类", @datatype = "*", @nullmsg = "请输入大类!", @errormsg = "请输入大类!" }) @Html.DropDownListFor(p => p.SchoolSmallType, ViewBag.SchoolSmallTypes as IEnumerable, new { @class = "form-control select2", @id = "SchoolSmallType", @placeholder = "请输入小类", @datatype = "*", @nullmsg = "请输入小类!", @errormsg = "请输入小类!" })
@Html.TextBoxFor(p => p.FullName, new { @class = "form-control", @id = "FullName", @placeholder = "请输入校名全称", @datatype = "*", @nullmsg = "请输入校名全称!", @errormsg = "请输入校名全称!" })
@Html.TextAreaFor(p => p.Description, new { @class = "form-control", @id = "Description",rows = "3" })
@Html.TextBoxFor(p => p.UserName, new { @class = "form-control", @id = "UserName", @placeholder = "请输入用户名", @datatype = "*", @nullmsg = "请输入用户名!", @errormsg = "请输入用户名!" })
@Html.TextBoxFor(p => p.PassWord, new { @class = "form-control", @id = "PassWord", @placeholder = "请输入密码", @datatype = "*", @nullmsg = "请输入密码!", @errormsg = "请输入密码!" })
@if (Model.Status == 0) { } else { } @if (Model.Status == 1) { } else { } @if (Model.Status == 2) { } else { } @if (Model.Status == 3) { } else { }
} @section scripts{ }