@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.YW_SportsEvent @**@ @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.TeamUpCode, ViewBag.TeamUpCodes as IEnumerable, new { @class = "form-control select2", @id = "TeamUpCode", @placeholder = "请输入组队参赛", @datatype = "*", @nullmsg = "请输入组队参赛!", @errormsg = "请输入组队参赛!" })
*@
@Html.DropDownListFor(p => p.State, ViewBag.States as IEnumerable, new { @class = "form-control select2", @id = "State", @placeholder = "请输入状态", @datatype = "*", @nullmsg = "请输入状态!", @errormsg = "请输入状态!" })
@Html.DropDownListFor(p => p.RaceProjectID, ViewBag.Projects as IEnumerable, new { @class = "form-control select2", @id = "RaceProject", @placeholder = "请输入项目", @datatype = "*", @nullmsg = "请输入项目!", @errormsg = "请输入项目!" })
@*
@Html.TextBoxFor(p => p.EventEndTime, new { @class = "form-control", @id = "EventEndTime", @placeholder = "请输入赛事时间", @datatype = "*", @nullmsg = "请输入赛事时间!", @errormsg = "请输入赛事时间!" })
*@
@Html.TextBoxFor(p => p.EventAddress, new { @class = "form-control", @id = "EventAddress", @placeholder = "请输入赛事地址", @datatype = "*", @nullmsg = "请输入赛事地址!", @errormsg = "请输入赛事地址!" })
@*
*@ @*
@Html.DropDownListFor(p => p.MatchCode, ViewBag.MatchCodes as IEnumerable, new { @class = "form-control select2", @id = "MatchCode", @placeholder = "请输入比赛编码", @datatype = "*", @nullmsg = "请输入比赛编码!", @errormsg = "请输入比赛编码!" })
*@
@Html.TextAreaFor(p => p.Precautions, new { @class = "form-control", @id = "Precautions" })
} @section scripts{ }