102 lines
4.7 KiB
Plaintext
102 lines
4.7 KiB
Plaintext
@model StockManMVC.Models.ItemFlux
|
|
|
|
@{
|
|
ViewBag.Title = "Create";
|
|
var itemID = Request.Params["ItemID"];
|
|
}
|
|
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<div class="form-horizontal" style="margin-top: 0.5em;">
|
|
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.ItemID, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.DropDownList("ItemID", null, htmlAttributes: new { @class = "form-control" })
|
|
@Html.ValidationMessageFor(model => model.ItemID, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.MovTypeID, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.DropDownList("MovTypeID", null, htmlAttributes: new { @class = "form-control" })
|
|
@Html.ValidationMessageFor(model => model.MovTypeID, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.ExtLocationID, "Riferimento", htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.DropDownList("ExtLocationID", null, htmlAttributes: new { @class = "form-control" })
|
|
@Html.ValidationMessageFor(model => model.ExtLocationID, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.CodDoc, "Documento", htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.CodDoc, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.CodDoc, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.dtMov, "Data documento", htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.dtMov, new { htmlAttributes = new { @class = "form-control date-picker", type = "date" } })
|
|
@Html.ValidationMessageFor(model => model.dtMov, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Qta, "Quantità", htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.Qta, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Qta, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.TotValue, "Importo", htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.TotValue, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.TotValue, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.LocationID, "Posizione", htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.DropDownList("LocationID", null, htmlAttributes: new { @class = "form-control" })
|
|
@Html.ValidationMessageFor(model => model.LocationID, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Note, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.TextAreaFor(model => model.Note, 3, 70, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-6">
|
|
<button type="submit" class="btn btn-sm btn-primary form-control">Salva <i class="glyphicon glyphicon-ok-circle"></i></button>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<a href="@Url.Action("Details","Items", new { id = itemID, StockItemID = itemID })" class="btn btn-sm btn-info form-control">Annulla <i class="glyphicon glyphicon-remove-circle"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@section Scripts {
|
|
@Scripts.Render("~/bundles/jqueryval")
|
|
}
|