review pagina valorizzazione magazizno

This commit is contained in:
Samuele E. Locatelli
2016-10-03 12:53:09 +02:00
parent 417a52147b
commit 2f8024eba0
6 changed files with 16 additions and 3 deletions
+3 -1
View File
@@ -135,12 +135,14 @@ namespace StockManMVC.Models
public class vLocationValMetadata
{
[Display(Name = "Valore Articoli")]
[DisplayFormat(DataFormatString = "{0:C2}", ApplyFormatInEditMode = true)]
public String TotVal;
[Display(Name = "Tot num Articoli")]
public String NumArt;
[Display(Name = "Giacenza (totale)")]
public String TotCurr;
[Display(Name = "Mov. aperti")]
+1 -1
View File
@@ -1,4 +1,4 @@
// T4 code generation is enabled for model 'C:\Users\samuele\Documents\Visual Studio 2015\Projects\StockMan\StockManMVC\Models\SMModel.edmx'.
// T4 code generation is enabled for model 'C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\StockMan\StockManMVC\Models\SMModel.edmx'.
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
// property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
// is open in the designer.
+5 -1
View File
@@ -112,6 +112,7 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
</Key>
<Property Name="LocationID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="TotVal" Type="decimal" Precision="38" Scale="6" />
<Property Name="NumArt" Type="int" />
<Property Name="TotCurr" Type="int" />
<Property Name="TotPend" Type="int" />
</EntityType>
@@ -267,6 +268,7 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
<DefiningQuery>SELECT
[vLocationVal].[LocationID] AS [LocationID],
[vLocationVal].[TotVal] AS [TotVal],
[vLocationVal].[NumArt] AS [NumArt],
[vLocationVal].[TotCurr] AS [TotCurr],
[vLocationVal].[TotPend] AS [TotPend]
FROM [dbo].[vLocationVal] AS [vLocationVal]</DefiningQuery>
@@ -504,7 +506,7 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
<Parameter Name="QtyMov" Mode="In" Type="Int32" />
</FunctionImport>
<FunctionImport Name="stp_ItemShrinkHist">
<Parameter Name="ItemID" Mode="In" Type="Int32" />
<Parameter Name="ItemID" Mode="In" Type="Int32" />
</FunctionImport>
</EntityContainer>
<EntityType Name="ItemFamily">
@@ -650,6 +652,7 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
<Property Name="TotCurr" Type="Int32" />
<Property Name="TotPend" Type="Int32" />
<NavigationProperty Name="Location" Relationship="StockManModel.LocationvLocationVal" FromRole="vLocationVal" ToRole="Location" />
<Property Name="NumArt" Type="Int32" />
</EntityType>
<Association Name="LocationvLocationVal">
<End Type="StockManModel.Location" Role="Location" Multiplicity="1" />
@@ -790,6 +793,7 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
<EntitySetMapping Name="vLocationVal">
<EntityTypeMapping TypeName="StockManModel.vLocationVal">
<MappingFragment StoreEntitySet="vLocationVal">
<ScalarProperty Name="NumArt" ColumnName="NumArt" />
<ScalarProperty Name="TotPend" ColumnName="TotPend" />
<ScalarProperty Name="TotCurr" ColumnName="TotCurr" />
<ScalarProperty Name="TotVal" ColumnName="TotVal" />
+1
View File
@@ -18,6 +18,7 @@ namespace StockManMVC.Models
public Nullable<decimal> TotVal { get; set; }
public Nullable<int> TotCurr { get; set; }
public Nullable<int> TotPend { get; set; }
public Nullable<int> NumArt { get; set; }
public virtual Location Location { get; set; }
}
+6
View File
@@ -16,6 +16,9 @@
<th>
@Html.DisplayNameFor(model => model.Location.Descr)
</th>
<th>
@Html.DisplayNameFor(model => model.NumArt)
</th>
<th>
@Html.DisplayNameFor(model => model.TotCurr)
</th>
@@ -33,6 +36,9 @@
<td>
@Html.DisplayFor(modelItem => item.Location.Descr)
</td>
<td>
@Html.DisplayFor(modelItem => item.NumArt)
</td>
<td>
@Html.DisplayFor(modelItem => item.TotCurr)
</td>
Binary file not shown.