@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_Product @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.Hidden("hidfilename", Model.Img, new { @class = "hidfilename" }) @Html.Hidden("hidfileid", Model.Img, new { @class = "hidfileid" })
@Html.TextBoxFor(p => p.BuyingPrice, new { @class = "form-control", @id = "BuyingPrice", @placeholder = "请输入进货价", @type = "number", @nullmsg = "请输入进货价!", @errormsg = "请输入进货价!" })
@Html.TextBoxFor(p => p.Price, new { @class = "form-control", @id = "Price", @placeholder = "请输入售卖价", @type = "number", @nullmsg = "请输入售卖价!", @errormsg = "请输入售卖价!" })
@Html.TextBoxFor(p => p.Stock, new { @class = "form-control", @id = "Stock", @placeholder = "请输入库存", @type = "number", @nullmsg = "请输入库存!", @errormsg = "请输入库存!" })
@Html.TextAreaFor(p => p.Info, new { @class = "form-control", @id = "Info" })
} @section scripts{ }