@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_RaceProject @**@ @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.TextBoxFor(p => p.SportCode, new { @class = "form-control", @id = "Name", @placeholder = "请输入比赛编码" })
@Html.TextAreaFor(p => p.ProjectDesc, new { @class = "form-control", @id = "ProjectDesc", @placeholder = "请输入项目描述", @datatype = "*", @nullmsg = "请输入项目描述!", @errormsg = "请输入项目描述!", rows = "3" })
@Html.DropDownListFor(p => p.SportType, ViewBag.SportTypes as IEnumerable, new { @class = "form-control select2", @id = "SportType", @placeholder = "请输入运动分类", @datatype = "*", @nullmsg = "请输入运动分类!", @errormsg = "请输入运动分类!" })
@Html.DropDownListFor(p => p.ProjectType, ViewBag.ProjectTypes as IEnumerable, new { @class = "form-control select2", @id = "ProjectType", @placeholder = "请输入运动类型", @datatype = "*", @nullmsg = "请输入运动类型!", @errormsg = "请输入运动类型!" })
@Html.DropDownListFor(p => p.Status, ViewBag.StatusItems as IEnumerable, new { @class = "form-control select2", @id = "Status", @placeholder = "请输入有效性", @datatype = "*", @nullmsg = "请输入有效性!", @errormsg = "请输入有效性!" })
} @section scripts{ }