@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.Entity.YW_Packing @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.Hidden("hidfilename", Model.Img, new { @class = "hidfilename" }) @Html.Hidden("hidfileid", Model.Img, new { @class = "hidfileid" })
@Html.TextBoxFor(p => p.Name, new { @class = "form-control", @id = "Name", @placeholder = "请输入包装名称", @datatype = "*", @nullmsg = "请输入包装名称!", @errormsg = "请输入包装名称!" })
@Html.TextBoxFor(p => p.Min, new { @class = "form-control", @id = "Min", @placeholder = "请输入最小容量", @type = "number", @nullmsg = "请输入最小容量!", @errormsg = "请输入最小容量!" })
@Html.TextBoxFor(p => p.Max, new { @class = "form-control", @id = "Max", @placeholder = "请输入最大容量", @type = "number", @nullmsg = "请输入最大容量!", @errormsg = "请输入最大容量!" })
} @section scripts{ }