@{ ViewBag.Title = "Detail"; Layout = "~/Views/Shared/_Layout.cshtml"; } @using MES.Production.Service; @using Central.Control.Domain; @using Ant.Service.Common; @using Ant.Service.Common.Enums; @using MES.Production.Entity.Entity @model SYS_Device @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.Code, new { @class = "form-control", @id = "Code", @placeholder = "请输入设备编码", @datatype = "*", @nullmsg = "请输入设备编码!", @errormsg = "请输入设备编码!" })
@Html.TextBoxFor(p => p.Address, new { @class = "form-control", @id = "Address", @placeholder = "请输入设备地址" })
} @section scripts{ }