@model StockManMVC.Models.ItemFlux @{ ViewBag.Title = "Create"; var itemID = Request.Params["ItemID"]; } @using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ItemID, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("ItemID", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.ItemID, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.MovTypeID, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("MovTypeID", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.MovTypeID, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ExtLocationID, "Riferimento", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("ExtLocationID", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.ExtLocationID, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.CodDoc, "Documento", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.CodDoc, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.CodDoc, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.dtMov, "Data documento", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.dtMov, new { htmlAttributes = new { @class = "form-control date-picker", type = "date" } }) @Html.ValidationMessageFor(model => model.dtMov, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Qta, "Quantità", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Qta, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Qta, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.TotValue, "Importo", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.TotValue, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.TotValue, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.LocationID, "Posizione", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("LocationID", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.LocationID, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Note, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.TextAreaFor(model => model.Note, 3, 70, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" })
} @section Scripts { @Scripts.Render("~/bundles/jqueryval") }