modifiche x gestione rivista controller flusso

This commit is contained in:
Samuele E. Locatelli
2016-09-26 19:08:21 +02:00
parent 54d3d6c606
commit 24252081dd
4 changed files with 25 additions and 19 deletions
@@ -231,7 +231,7 @@ namespace StockManMVC.Controllers
public ActionResult CreatePrecompiled([Bind(Include = "ID,ItemID,LocationID,MovTypeID,ExtLocationID,Qta,TotValue,UnitVal,Note")] ItemFlux itemFlux)
{
// aggiungo campi mancanti...
itemFlux.dtMov = DateTime.Now;
if (itemFlux.dtMov == null) itemFlux.dtMov = DateTime.Now;
itemFlux.dtExport = null;
string currOpID = "ND"; // default
try
+8
View File
@@ -41,6 +41,14 @@ namespace StockManMVC.Models
[Display(Name = "Importo")]
[Range(0.1D, 99.9D)]
public string TotValue;
[Display(Name = "Data Documento")]
[DataType(DataType.Date)]
public DateTime dtMov;
[Display(Name = "Data Exp")]
[DataType(DataType.Date)]
public DateTime dtExport;
}
//public class ItemsMetadata
-10
View File
@@ -178,7 +178,6 @@
<Compile Include="Controllers\ItemFluxesController.cs" />
<Compile Include="Controllers\ItemsController.cs" />
<Compile Include="Controllers\ItemStocksController.cs" />
<Compile Include="Controllers\ItemStockStatusController.cs" />
<Compile Include="Controllers\LocationsController.cs" />
<Compile Include="Controllers\LocTypesController.cs" />
<Compile Include="Controllers\MovTypesController.cs" />
@@ -199,9 +198,6 @@
<Compile Include="Models\ItemStock.cs">
<DependentUpon>SMModel.tt</DependentUpon>
</Compile>
<Compile Include="Models\ItemStockStatus.cs">
<DependentUpon>SMModel.tt</DependentUpon>
</Compile>
<Compile Include="Models\Location.cs">
<DependentUpon>SMModel.tt</DependentUpon>
</Compile>
@@ -415,12 +411,6 @@
<Content Include="Views\Items\Details.cshtml" />
<Content Include="Views\Items\Edit.cshtml" />
<Content Include="Views\Items\Index.cshtml" />
<Content Include="Views\ItemStockStatus\Create.cshtml" />
<Content Include="Views\ItemStockStatus\Delete.cshtml" />
<Content Include="Views\ItemStockStatus\Details.cshtml" />
<Content Include="Views\ItemStockStatus\Edit.cshtml" />
<Content Include="Views\ItemStockStatus\Index.cshtml" />
<Content Include="Views\ItemStockStatus\Consolidate.cshtml" />
<Content Include="Views\Operators\Create.cshtml" />
<Content Include="Views\Operators\Delete.cshtml" />
<Content Include="Views\Operators\Details.cshtml" />
@@ -17,14 +17,6 @@
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<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.ExtLocationID, "Riferimento", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@@ -33,6 +25,14 @@
</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">
@@ -49,6 +49,14 @@
</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">