121 lines
7.0 KiB
Plaintext
121 lines
7.0 KiB
Plaintext
@model StockManMVC.Models.ItemFlux
|
|
|
|
@{
|
|
ViewBag.Title = "Edit";
|
|
}
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<strong>Modifica Movimento</strong>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
<div class="form-horizontal @ViewBag.CurrStyle">
|
|
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
|
@Html.HiddenFor(model => model.ID)
|
|
@*@Html.DropDownList("ItemID", null, htmlAttributes: new { @class = "form-control", disabled = "disabled", @readonly = "readonly" })*@
|
|
@*@Html.DropDownList("MovTypeID", null, htmlAttributes: new { @class = "form-control", disabled = "disabled", @readonly = "readonly" })*@
|
|
|
|
@*<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", disabled = "disabled", @readonly = "readonly" })
|
|
@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", disabled = "disabled", @readonly = "readonly" })
|
|
@Html.ValidationMessageFor(model => model.MovTypeID, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.ExtLocationID, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.DropDownList("ExtLocationID", null, htmlAttributes: new { @class = "form-control", disabled = "disabled", @readonly = "readonly" })
|
|
@Html.ValidationMessageFor(model => model.ExtLocationID, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.CodDoc, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.CodDoc, new { htmlAttributes = new { @class = "form-control", disabled = "disabled", @readonly = "readonly" } })
|
|
@Html.ValidationMessageFor(model => model.CodDoc, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.dtMov, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.TextBoxFor(model => model.dtMov, new { @Value = Model.dtMov.ToString("yyyy-MM-dd"), @class = "form-control date-picker", type = "date", disabled = "disabled", @readonly = "readonly" })
|
|
@*@Html.EditorFor(model => model.dtMov, "DateTime", 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, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.Qta, new { htmlAttributes = new { @class = "form-control", disabled = "disabled", @readonly = "readonly" } })
|
|
@Html.ValidationMessageFor(model => model.Qta, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.TotValue, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.TotValue, new { htmlAttributes = new { @class = "form-control", disabled = "disabled", @readonly = "readonly" } })
|
|
@Html.ValidationMessageFor(model => model.TotValue, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.LocationID, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.DropDownList("LocationID", null, htmlAttributes: new { @class = "form-control", disabled = "disabled", @readonly = "readonly" })
|
|
@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, 50, new { htmlAttributes = new { @class = "form-control", @disabled = "disabled"} })*@
|
|
@Html.EditorFor(model => model.Note, new { htmlAttributes = new { @class = "form-control", disabled = "disabled", @readonly = "readonly" } })
|
|
@Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
@*<div class="form-group">
|
|
@Html.LabelFor(model => model.OperatorID, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.DropDownList("OperatorID", null, htmlAttributes: new { @class = "form-control", disabled = "disabled", @readonly = "readonly" })
|
|
@Html.ValidationMessageFor(model => model.OperatorID, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>*@
|
|
|
|
@*<div class="form-group no-color row">
|
|
<div class="col-sm-6">
|
|
<button type="submit" value="Save" class="btn btn-primary form-control">Salva modifiche <i class="glyphicon glyphicon-ok-circle"></i></button>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<a href="@Url.Action("Details", "Items", new { id=Model.ItemID, StockItemID= Model.ItemID })" class="btn btn-info form-control">Annulla <i class="glyphicon glyphicon-retweet"></i></a>
|
|
</div>
|
|
</div>*@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
|
|
@section Scripts {
|
|
@Scripts.Render("~/bundles/jqueryval")
|
|
}
|