@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_CoachExted @**@ @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.HiddenFor(p => p.ID)
@Html.TextBoxFor(p => p.Name, new { @class = "form-control", @id = "Name", @placeholder = "请输入教练姓名", @datatype = "*", @nullmsg = "请输入教练姓名!", @errormsg = "请输入教练姓名!" })
@Html.DropDownListFor(p => p.Sex, ViewBag.Sexs as IEnumerable, new { @class = "form-control select2", @id = "Level", @placeholder = "请输入性别", @datatype = "*", @nullmsg = "请输入性别!", @errormsg = "请输入性别!" })
@Html.TextBoxFor(p => p.IDCard, new { @class = "form-control", @id = "IDCard", @placeholder = "请输入身份证", @datatype = "*", @nullmsg = "请输入身份证!", @errormsg = "请输入身份证!" })
@*
@Html.DropDownListFor(p => p.SchoolID, ViewBag.Schools as IEnumerable, new { @class = "form-control select2", @id = "SchoolID", @placeholder = "请输入学校", @datatype = "*", @nullmsg = "请输入学校!", @errormsg = "请输入学校!" })
*@
@Html.TextBoxFor(p => p.MobilePhone, new { @class = "form-control", @id = "MobilePhone", @placeholder = "请输入手机号码", @datatype = "*", @nullmsg = "请输入手机号码!", @errormsg = "请输入手机号码!" })
@Html.TextBoxFor(p => p.Title, new { @class = "form-control", @id = "Title", @placeholder = "请输入职称", @datatype = "*", @nullmsg = "请输入职称!", @errormsg = "请输入职称!" })
@Html.ListBoxFor(p => p.Projects, ViewBag.MultiProjects as MultiSelectList, new { @class = "form-control select2", @id = "Projects", @placeholder = "请输入指导项目", @datatype = "*", @nullmsg = "请输入指导项目!", @errormsg = "请输入指导项目!", multiple = "multiple" })
} @section scripts{ }