inizio aggiunta vista stock detail
da collegare x navigazione...
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using StockManMVC.Models;
|
||||
|
||||
namespace StockManMVC.Controllers
|
||||
{
|
||||
public class ItemFluxesController : Controller
|
||||
{
|
||||
private StockManEntities db = new StockManEntities();
|
||||
|
||||
// GET: ItemFluxes
|
||||
public ActionResult Index()
|
||||
{
|
||||
var itemFlux = db.ItemFlux.Include(i => i.Item).Include(i => i.Location).Include(i => i.MovType);
|
||||
return View(itemFlux.ToList());
|
||||
}
|
||||
|
||||
// GET: ItemFluxes/Details/5
|
||||
public ActionResult Details(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
ItemFlux itemFlux = db.ItemFlux.Find(id);
|
||||
if (itemFlux == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
return View(itemFlux);
|
||||
}
|
||||
|
||||
// GET: ItemFluxes/Create
|
||||
public ActionResult Create()
|
||||
{
|
||||
ViewBag.ItemID = new SelectList(db.Item, "ID", "Descr");
|
||||
ViewBag.LocationID = new SelectList(db.Location, "ID", "Descr");
|
||||
ViewBag.MovTypeID = new SelectList(db.MovType, "ID", "Descr");
|
||||
return View();
|
||||
}
|
||||
|
||||
// POST: ItemFluxes/Create
|
||||
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
|
||||
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult Create([Bind(Include = "ID,ItemID,LocationID,MovTypeID,ExtLocationID,dtMov,Qta,TotValue,UnitVal,Note,dtExport")] ItemFlux itemFlux)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
db.ItemFlux.Add(itemFlux);
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
ViewBag.ItemID = new SelectList(db.Item, "ID", "Descr", itemFlux.ItemID);
|
||||
ViewBag.LocationID = new SelectList(db.Location, "ID", "Descr", itemFlux.LocationID);
|
||||
ViewBag.MovTypeID = new SelectList(db.MovType, "ID", "Descr", itemFlux.MovTypeID);
|
||||
return View(itemFlux);
|
||||
}
|
||||
|
||||
// GET: ItemFluxes/Edit/5
|
||||
public ActionResult Edit(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
ItemFlux itemFlux = db.ItemFlux.Find(id);
|
||||
if (itemFlux == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
ViewBag.ItemID = new SelectList(db.Item, "ID", "Descr", itemFlux.ItemID);
|
||||
ViewBag.LocationID = new SelectList(db.Location, "ID", "Descr", itemFlux.LocationID);
|
||||
ViewBag.MovTypeID = new SelectList(db.MovType, "ID", "Descr", itemFlux.MovTypeID);
|
||||
return View(itemFlux);
|
||||
}
|
||||
|
||||
// POST: ItemFluxes/Edit/5
|
||||
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
|
||||
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult Edit([Bind(Include = "ID,ItemID,LocationID,MovTypeID,ExtLocationID,dtMov,Qta,TotValue,UnitVal,Note,dtExport")] ItemFlux itemFlux)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
db.Entry(itemFlux).State = EntityState.Modified;
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
ViewBag.ItemID = new SelectList(db.Item, "ID", "Descr", itemFlux.ItemID);
|
||||
ViewBag.LocationID = new SelectList(db.Location, "ID", "Descr", itemFlux.LocationID);
|
||||
ViewBag.MovTypeID = new SelectList(db.MovType, "ID", "Descr", itemFlux.MovTypeID);
|
||||
return View(itemFlux);
|
||||
}
|
||||
|
||||
// GET: ItemFluxes/Delete/5
|
||||
public ActionResult Delete(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
ItemFlux itemFlux = db.ItemFlux.Find(id);
|
||||
if (itemFlux == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
return View(itemFlux);
|
||||
}
|
||||
|
||||
// POST: ItemFluxes/Delete/5
|
||||
[HttpPost, ActionName("Delete")]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult DeleteConfirmed(int id)
|
||||
{
|
||||
ItemFlux itemFlux = db.ItemFlux.Find(id);
|
||||
db.ItemFlux.Remove(itemFlux);
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
db.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using StockManMVC.Models;
|
||||
|
||||
namespace StockManMVC.Controllers
|
||||
{
|
||||
public class ItemStocksController : Controller
|
||||
{
|
||||
private StockManEntities db = new StockManEntities();
|
||||
|
||||
// GET: ItemStocks
|
||||
public ActionResult Index()
|
||||
{
|
||||
var itemStock = db.ItemStock.Include(i => i.Item).Include(i => i.Location);
|
||||
return View(itemStock.ToList());
|
||||
}
|
||||
|
||||
// GET: ItemStocks/Details/5
|
||||
public ActionResult Details(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
ItemStock itemStock = db.ItemStock.Find(id);
|
||||
if (itemStock == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
return View(itemStock);
|
||||
}
|
||||
|
||||
// GET: ItemStocks/Create
|
||||
public ActionResult Create()
|
||||
{
|
||||
ViewBag.ItemID = new SelectList(db.Item, "ID", "Descr");
|
||||
ViewBag.LocationID = new SelectList(db.Location, "ID", "Descr");
|
||||
return View();
|
||||
}
|
||||
|
||||
// POST: ItemStocks/Create
|
||||
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
|
||||
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult Create([Bind(Include = "ID,ItemID,LocationID,QtyConf,Note,dtLastUpd")] ItemStock itemStock)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
db.ItemStock.Add(itemStock);
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
ViewBag.ItemID = new SelectList(db.Item, "ID", "Descr", itemStock.ItemID);
|
||||
ViewBag.LocationID = new SelectList(db.Location, "ID", "Descr", itemStock.LocationID);
|
||||
return View(itemStock);
|
||||
}
|
||||
|
||||
// GET: ItemStocks/Edit/5
|
||||
public ActionResult Edit(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
ItemStock itemStock = db.ItemStock.Find(id);
|
||||
if (itemStock == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
ViewBag.ItemID = new SelectList(db.Item, "ID", "Descr", itemStock.ItemID);
|
||||
ViewBag.LocationID = new SelectList(db.Location, "ID", "Descr", itemStock.LocationID);
|
||||
return View(itemStock);
|
||||
}
|
||||
|
||||
// POST: ItemStocks/Edit/5
|
||||
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
|
||||
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult Edit([Bind(Include = "ID,ItemID,LocationID,QtyConf,Note,dtLastUpd")] ItemStock itemStock)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
db.Entry(itemStock).State = EntityState.Modified;
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
ViewBag.ItemID = new SelectList(db.Item, "ID", "Descr", itemStock.ItemID);
|
||||
ViewBag.LocationID = new SelectList(db.Location, "ID", "Descr", itemStock.LocationID);
|
||||
return View(itemStock);
|
||||
}
|
||||
|
||||
// GET: ItemStocks/Delete/5
|
||||
public ActionResult Delete(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
ItemStock itemStock = db.ItemStock.Find(id);
|
||||
if (itemStock == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
return View(itemStock);
|
||||
}
|
||||
|
||||
// POST: ItemStocks/Delete/5
|
||||
[HttpPost, ActionName("Delete")]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult DeleteConfirmed(int id)
|
||||
{
|
||||
ItemStock itemStock = db.ItemStock.Find(id);
|
||||
db.ItemStock.Remove(itemStock);
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
db.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using StockManMVC.Models;
|
||||
|
||||
namespace StockManMVC.Controllers
|
||||
{
|
||||
public class ItemsController : Controller
|
||||
{
|
||||
private StockManEntities db = new StockManEntities();
|
||||
|
||||
// GET: Items
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View(db.Item.ToList());
|
||||
}
|
||||
|
||||
// GET: Items/Details/5
|
||||
public ActionResult Details(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
Item item = db.Item.Find(id);
|
||||
if (item == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
return View(item);
|
||||
}
|
||||
|
||||
// GET: Items/Create
|
||||
public ActionResult Create()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
// POST: Items/Create
|
||||
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
|
||||
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult Create([Bind(Include = "ID,Descr,CodInt,Family,CodExt,DescrExt,QtaMin,QtaBatch,CurrValue")] Item item)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
db.Item.Add(item);
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
return View(item);
|
||||
}
|
||||
|
||||
// GET: Items/Edit/5
|
||||
public ActionResult Edit(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
Item item = db.Item.Find(id);
|
||||
if (item == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
return View(item);
|
||||
}
|
||||
|
||||
// POST: Items/Edit/5
|
||||
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
|
||||
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult Edit([Bind(Include = "ID,Descr,CodInt,Family,CodExt,DescrExt,QtaMin,QtaBatch,CurrValue")] Item item)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
db.Entry(item).State = EntityState.Modified;
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
return View(item);
|
||||
}
|
||||
|
||||
// GET: Items/Delete/5
|
||||
public ActionResult Delete(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
}
|
||||
Item item = db.Item.Find(id);
|
||||
if (item == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
return View(item);
|
||||
}
|
||||
|
||||
// POST: Items/Delete/5
|
||||
[HttpPost, ActionName("Delete")]
|
||||
[ValidateAntiForgeryToken]
|
||||
public ActionResult DeleteConfirmed(int id)
|
||||
{
|
||||
Item item = db.Item.Find(id);
|
||||
db.Item.Remove(item);
|
||||
db.SaveChanges();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
db.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
// Manual changes to this file may cause unexpected behavior in your application.
|
||||
// Manual changes to this file will be overwritten if the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace StockManMVC.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class ItemStockStatus
|
||||
{
|
||||
public int ItemID { get; set; }
|
||||
public string Descr { get; set; }
|
||||
public string CodInt { get; set; }
|
||||
public string Family { get; set; }
|
||||
public string CodExt { get; set; }
|
||||
public string DescrExt { get; set; }
|
||||
public int QtaMin { get; set; }
|
||||
public int QtaBatch { get; set; }
|
||||
public int QtyConf { get; set; }
|
||||
public decimal ValConf { get; set; }
|
||||
public Nullable<int> QtaPend { get; set; }
|
||||
public Nullable<decimal> ValPend { get; set; }
|
||||
public Nullable<int> QtaNew { get; set; }
|
||||
public Nullable<decimal> ValNew { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,8 @@ namespace StockManMVC.Models
|
||||
public virtual DbSet<Location> Location { get; set; }
|
||||
public virtual DbSet<LocType> LocType { get; set; }
|
||||
public virtual DbSet<MovType> MovType { get; set; }
|
||||
public virtual DbSet<vItemFlux2Save> vItemFlux2Save { get; set; }
|
||||
public virtual DbSet<vLocationVal> vLocationVal { get; set; }
|
||||
public virtual DbSet<vItemFlux2Save> vItemFlux2Save { get; set; }
|
||||
public virtual DbSet<ItemStockStatus> ItemStockStatus { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
+101
-18
@@ -78,10 +78,32 @@ warning 6002: The table/view 'StockMan.dbo.vItemFlux2Save' does not have a prima
|
||||
<PropertyRef Name="ItemID" />
|
||||
</Key>
|
||||
<Property Name="ItemID" Type="int" Nullable="false" />
|
||||
<Property Name="NumMov" Type="int" />
|
||||
<Property Name="TotQta" Type="int" />
|
||||
<Property Name="TotVal" Type="decimal" Precision="38" Scale="6" />
|
||||
</EntityType>
|
||||
<!--Errors Found During Generation:
|
||||
warning 6002: The table/view 'StockMan.dbo.vItemStockStatus' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
|
||||
<EntityType Name="vItemStockStatus">
|
||||
<Key>
|
||||
<PropertyRef Name="ItemID" />
|
||||
</Key>
|
||||
<Property Name="ItemID" Type="int" Nullable="false" />
|
||||
<Property Name="Descr" Type="nvarchar" MaxLength="250" Nullable="false" />
|
||||
<Property Name="CodInt" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="Family" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="CodExt" Type="nvarchar" MaxLength="250" Nullable="false" />
|
||||
<Property Name="DescrExt" Type="nvarchar" MaxLength="250" Nullable="false" />
|
||||
<Property Name="QtaMin" Type="int" Nullable="false" />
|
||||
<Property Name="QtaBatch" Type="int" Nullable="false" />
|
||||
<Property Name="QtyConf" Type="int" Nullable="false" />
|
||||
<Property Name="ValConf" Type="decimal" Precision="18" Scale="6" Nullable="false" />
|
||||
<Property Name="QtaPend" Type="int" />
|
||||
<Property Name="ValPend" Type="decimal" Precision="38" Scale="6" />
|
||||
<Property Name="QtaNew" Type="int" />
|
||||
<Property Name="ValNew" Type="decimal" Precision="38" Scale="6" />
|
||||
</EntityType>
|
||||
<!--Errors Found During Generation:
|
||||
warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
|
||||
<EntityType Name="vLocationVal">
|
||||
<Key>
|
||||
@@ -172,9 +194,28 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
<EntitySet Name="vItemFlux2Save" EntityType="Self.vItemFlux2Save" store:Type="Views" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
[vItemFlux2Save].[ItemID] AS [ItemID],
|
||||
[vItemFlux2Save].[NumMov] AS [NumMov],
|
||||
[vItemFlux2Save].[TotQta] AS [TotQta],
|
||||
[vItemFlux2Save].[TotVal] AS [TotVal]
|
||||
FROM [dbo].[vItemFlux2Save] AS [vItemFlux2Save]</DefiningQuery>
|
||||
</EntitySet>
|
||||
<EntitySet Name="vItemStockStatus" EntityType="Self.vItemStockStatus" store:Type="Views" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
[vItemStockStatus].[ItemID] AS [ItemID],
|
||||
[vItemStockStatus].[Descr] AS [Descr],
|
||||
[vItemStockStatus].[CodInt] AS [CodInt],
|
||||
[vItemStockStatus].[Family] AS [Family],
|
||||
[vItemStockStatus].[CodExt] AS [CodExt],
|
||||
[vItemStockStatus].[DescrExt] AS [DescrExt],
|
||||
[vItemStockStatus].[QtaMin] AS [QtaMin],
|
||||
[vItemStockStatus].[QtaBatch] AS [QtaBatch],
|
||||
[vItemStockStatus].[QtyConf] AS [QtyConf],
|
||||
[vItemStockStatus].[ValConf] AS [ValConf],
|
||||
[vItemStockStatus].[QtaPend] AS [QtaPend],
|
||||
[vItemStockStatus].[ValPend] AS [ValPend],
|
||||
[vItemStockStatus].[QtaNew] AS [QtaNew],
|
||||
[vItemStockStatus].[ValNew] AS [ValNew]
|
||||
FROM [dbo].[vItemStockStatus] AS [vItemStockStatus]</DefiningQuery>
|
||||
</EntitySet>
|
||||
<EntitySet Name="vLocationVal" EntityType="Self.vLocationVal" store:Type="Views" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
@@ -218,7 +259,6 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
<EntitySet Name="Location" EntityType="StockManModel.Location" />
|
||||
<EntitySet Name="LocType" EntityType="StockManModel.LocType" />
|
||||
<EntitySet Name="MovType" EntityType="StockManModel.MovType" />
|
||||
<EntitySet Name="vItemFlux2Save" EntityType="StockManModel.vItemFlux2Save" />
|
||||
<EntitySet Name="vLocationVal" EntityType="StockManModel.vLocationVal" />
|
||||
<AssociationSet Name="FK_ItemFlux_Item" Association="StockManModel.FK_ItemFlux_Item">
|
||||
<End Role="Item" EntitySet="Item" />
|
||||
@@ -244,6 +284,8 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
<End Role="LocType" EntitySet="LocType" />
|
||||
<End Role="Location" EntitySet="Location" />
|
||||
</AssociationSet>
|
||||
<EntitySet Name="vItemFlux2Save" EntityType="StockManModel.vItemFlux2Save" />
|
||||
<EntitySet Name="ItemStockStatus" EntityType="StockManModel.ItemStockStatus" />
|
||||
</EntityContainer>
|
||||
<EntityType Name="Item">
|
||||
<Key>
|
||||
@@ -323,14 +365,6 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
<Property Name="Descr" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
|
||||
<NavigationProperty Name="ItemFlux" Relationship="StockManModel.FK_StockMov_MovType" FromRole="MovType" ToRole="ItemFlux" />
|
||||
</EntityType>
|
||||
<EntityType Name="vItemFlux2Save">
|
||||
<Key>
|
||||
<PropertyRef Name="ItemID" />
|
||||
</Key>
|
||||
<Property Name="ItemID" Type="Int32" Nullable="false" />
|
||||
<Property Name="TotQta" Type="Int32" />
|
||||
<Property Name="TotVal" Type="Decimal" Precision="38" Scale="6" />
|
||||
</EntityType>
|
||||
<EntityType Name="vLocationVal">
|
||||
<Key>
|
||||
<PropertyRef Name="LocationID" />
|
||||
@@ -410,6 +444,34 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<EntityType Name="vItemFlux2Save">
|
||||
<Key>
|
||||
<PropertyRef Name="ItemID" />
|
||||
</Key>
|
||||
<Property Name="ItemID" Type="Int32" Nullable="false" />
|
||||
<Property Name="NumMov" Type="Int32" />
|
||||
<Property Name="TotQta" Type="Int32" />
|
||||
<Property Name="TotVal" Type="Decimal" Precision="38" Scale="6" />
|
||||
</EntityType>
|
||||
<EntityType Name="ItemStockStatus">
|
||||
<Key>
|
||||
<PropertyRef Name="ItemID" />
|
||||
</Key>
|
||||
<Property Name="ItemID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Descr" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
|
||||
<Property Name="CodInt" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Family" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="CodExt" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
|
||||
<Property Name="DescrExt" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
|
||||
<Property Name="QtaMin" Type="Int32" Nullable="false" />
|
||||
<Property Name="QtaBatch" Type="Int32" Nullable="false" />
|
||||
<Property Name="QtyConf" Type="Int32" Nullable="false" />
|
||||
<Property Name="ValConf" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
|
||||
<Property Name="QtaPend" Type="Int32" />
|
||||
<Property Name="ValPend" Type="Decimal" Precision="38" Scale="6" />
|
||||
<Property Name="QtaNew" Type="Int32" />
|
||||
<Property Name="ValNew" Type="Decimal" Precision="38" Scale="6" />
|
||||
</EntityType>
|
||||
</Schema>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
@@ -488,15 +550,6 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="vItemFlux2Save">
|
||||
<EntityTypeMapping TypeName="StockManModel.vItemFlux2Save">
|
||||
<MappingFragment StoreEntitySet="vItemFlux2Save">
|
||||
<ScalarProperty Name="TotVal" ColumnName="TotVal" />
|
||||
<ScalarProperty Name="TotQta" ColumnName="TotQta" />
|
||||
<ScalarProperty Name="ItemID" ColumnName="ItemID" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="vLocationVal">
|
||||
<EntityTypeMapping TypeName="StockManModel.vLocationVal">
|
||||
<MappingFragment StoreEntitySet="vLocationVal">
|
||||
@@ -505,6 +558,36 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="vItemFlux2Save">
|
||||
<EntityTypeMapping TypeName="StockManModel.vItemFlux2Save">
|
||||
<MappingFragment StoreEntitySet="vItemFlux2Save">
|
||||
<ScalarProperty Name="TotVal" ColumnName="TotVal" />
|
||||
<ScalarProperty Name="TotQta" ColumnName="TotQta" />
|
||||
<ScalarProperty Name="NumMov" ColumnName="NumMov" />
|
||||
<ScalarProperty Name="ItemID" ColumnName="ItemID" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="ItemStockStatus">
|
||||
<EntityTypeMapping TypeName="StockManModel.ItemStockStatus">
|
||||
<MappingFragment StoreEntitySet="vItemStockStatus">
|
||||
<ScalarProperty Name="ValNew" ColumnName="ValNew" />
|
||||
<ScalarProperty Name="QtaNew" ColumnName="QtaNew" />
|
||||
<ScalarProperty Name="ValPend" ColumnName="ValPend" />
|
||||
<ScalarProperty Name="QtaPend" ColumnName="QtaPend" />
|
||||
<ScalarProperty Name="ValConf" ColumnName="ValConf" />
|
||||
<ScalarProperty Name="QtyConf" ColumnName="QtyConf" />
|
||||
<ScalarProperty Name="QtaBatch" ColumnName="QtaBatch" />
|
||||
<ScalarProperty Name="QtaMin" ColumnName="QtaMin" />
|
||||
<ScalarProperty Name="DescrExt" ColumnName="DescrExt" />
|
||||
<ScalarProperty Name="CodExt" ColumnName="CodExt" />
|
||||
<ScalarProperty Name="Family" ColumnName="Family" />
|
||||
<ScalarProperty Name="CodInt" ColumnName="CodInt" />
|
||||
<ScalarProperty Name="Descr" ColumnName="Descr" />
|
||||
<ScalarProperty Name="ItemID" ColumnName="ItemID" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
</edmx:Mappings>
|
||||
|
||||
@@ -5,13 +5,12 @@
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<edmx:Diagrams>
|
||||
<Diagram DiagramId="90fba38c44f34d7a9b6bcfa5e573a90c" Name="Diagram1" >
|
||||
<EntityTypeShape EntityType="StockManModel.Item" Width="1.5" PointX="3.25" PointY="0.5" />
|
||||
<EntityTypeShape EntityType="StockManModel.ItemFlux" Width="1.5" PointX="5.5" PointY="4.375" />
|
||||
<EntityTypeShape EntityType="StockManModel.ItemStock" Width="1.5" PointX="1" PointY="1.75" />
|
||||
<EntityTypeShape EntityType="StockManModel.Location" Width="1.5" PointX="3.25" PointY="5.125" />
|
||||
<EntityTypeShape EntityType="StockManModel.LocType" Width="1.5" PointX="1" PointY="5.125" />
|
||||
<EntityTypeShape EntityType="StockManModel.MovType" Width="1.5" PointX="3.25" PointY="7.75" />
|
||||
<EntityTypeShape EntityType="StockManModel.vItemFlux2Save" Width="1.5" PointX="10.375" PointY="4" />
|
||||
<EntityTypeShape EntityType="StockManModel.Item" Width="1.5" PointX="6.125" PointY="0.75" />
|
||||
<EntityTypeShape EntityType="StockManModel.ItemFlux" Width="1.5" PointX="8.375" PointY="4.625" />
|
||||
<EntityTypeShape EntityType="StockManModel.ItemStock" Width="1.5" PointX="3.875" PointY="2" />
|
||||
<EntityTypeShape EntityType="StockManModel.Location" Width="1.5" PointX="6.125" PointY="5.375" />
|
||||
<EntityTypeShape EntityType="StockManModel.LocType" Width="1.5" PointX="3.875" PointY="5.375" />
|
||||
<EntityTypeShape EntityType="StockManModel.MovType" Width="1.5" PointX="6.125" PointY="8" />
|
||||
<EntityTypeShape EntityType="StockManModel.vLocationVal" Width="1.5" PointX="10.375" PointY="2.25" />
|
||||
<AssociationConnector Association="StockManModel.FK_ItemFlux_Item" />
|
||||
<AssociationConnector Association="StockManModel.FK_Stock_Items" />
|
||||
@@ -19,6 +18,8 @@
|
||||
<AssociationConnector Association="StockManModel.FK_StockMov_MovType" />
|
||||
<AssociationConnector Association="StockManModel.FK_Stock_Location1" />
|
||||
<AssociationConnector Association="StockManModel.FK_Location_LocType1" />
|
||||
<EntityTypeShape EntityType="StockManModel.vItemFlux2Save" Width="1.5" PointX="1" PointY="5.625" />
|
||||
<EntityTypeShape EntityType="StockManModel.ItemStockStatus" Width="1.5" PointX="0.75" PointY="0.75" />
|
||||
</Diagram>
|
||||
</edmx:Diagrams>
|
||||
</edmx:Designer>
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace StockManMVC.Models
|
||||
public partial class vItemFlux2Save
|
||||
{
|
||||
public int ItemID { get; set; }
|
||||
public Nullable<int> NumMov { get; set; }
|
||||
public Nullable<int> TotQta { get; set; }
|
||||
public Nullable<decimal> TotVal { get; set; }
|
||||
}
|
||||
|
||||
@@ -153,6 +153,9 @@
|
||||
<Compile Include="App_Start\FilterConfig.cs" />
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Controllers\ItemFluxesController.cs" />
|
||||
<Compile Include="Controllers\ItemsController.cs" />
|
||||
<Compile Include="Controllers\ItemStocksController.cs" />
|
||||
<Compile Include="Controllers\LocationsController.cs" />
|
||||
<Compile Include="Controllers\LocTypesController.cs" />
|
||||
<Compile Include="Controllers\MovTypesController.cs" />
|
||||
@@ -169,6 +172,9 @@
|
||||
<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>
|
||||
@@ -288,6 +294,21 @@
|
||||
<Content Include="Views\MovTypes\Details.cshtml" />
|
||||
<Content Include="Views\MovTypes\Edit.cshtml" />
|
||||
<Content Include="Views\MovTypes\Index.cshtml" />
|
||||
<Content Include="Views\Items\Create.cshtml" />
|
||||
<Content Include="Views\Items\Delete.cshtml" />
|
||||
<Content Include="Views\Items\Details.cshtml" />
|
||||
<Content Include="Views\Items\Edit.cshtml" />
|
||||
<Content Include="Views\Items\Index.cshtml" />
|
||||
<Content Include="Views\ItemFluxes\Create.cshtml" />
|
||||
<Content Include="Views\ItemFluxes\Delete.cshtml" />
|
||||
<Content Include="Views\ItemFluxes\Details.cshtml" />
|
||||
<Content Include="Views\ItemFluxes\Edit.cshtml" />
|
||||
<Content Include="Views\ItemFluxes\Index.cshtml" />
|
||||
<Content Include="Views\ItemStocks\Create.cshtml" />
|
||||
<Content Include="Views\ItemStocks\Delete.cshtml" />
|
||||
<Content Include="Views\ItemStocks\Details.cshtml" />
|
||||
<Content Include="Views\ItemStocks\Edit.cshtml" />
|
||||
<Content Include="Views\ItemStocks\Index.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
@model StockManMVC.Models.ItemFlux
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-horizontal">
|
||||
<h4>ItemFlux</h4>
|
||||
<hr />
|
||||
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.ItemID, "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.LocationID, "LocationID", 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.MovTypeID, "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, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.ExtLocationID, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.ExtLocationID, "", 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.EditorFor(model => model.dtMov, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@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" } })
|
||||
@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" } })
|
||||
@Html.ValidationMessageFor(model => model.TotValue, "", 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.EditorFor(model => model.Note, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.dtExport, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.dtExport, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.dtExport, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@Scripts.Render("~/bundles/jqueryval")
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
@model StockManMVC.Models.ItemFlux
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>ItemFlux</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ExtLocationID)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ExtLocationID)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtMov)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtMov)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Qta)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Qta)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.TotValue)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.TotValue)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UnitVal)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UnitVal)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Note)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Note)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtExport)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtExport)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Item.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Item.Descr)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Location.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Location.Descr)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.MovType.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.MovType.Descr)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
@using (Html.BeginForm()) {
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
@@ -0,0 +1,98 @@
|
||||
@model StockManMVC.Models.ItemFlux
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>ItemFlux</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ExtLocationID)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ExtLocationID)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtMov)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtMov)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Qta)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Qta)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.TotValue)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.TotValue)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UnitVal)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UnitVal)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Note)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Note)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtExport)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtExport)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Item.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Item.Descr)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Location.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Location.Descr)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.MovType.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.MovType.Descr)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
@Html.ActionLink("Edit", "Edit", new { id = Model.ID }) |
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</p>
|
||||
@@ -0,0 +1,114 @@
|
||||
@model StockManMVC.Models.ItemFlux
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-horizontal">
|
||||
<h4>ItemFlux</h4>
|
||||
<hr />
|
||||
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||
@Html.HiddenFor(model => model.ID)
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.ItemID, "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.LocationID, "LocationID", 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.MovTypeID, "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, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.ExtLocationID, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.ExtLocationID, "", 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.EditorFor(model => model.dtMov, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@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" } })
|
||||
@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" } })
|
||||
@Html.ValidationMessageFor(model => model.TotValue, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.UnitVal, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.UnitVal, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.UnitVal, "", 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.EditorFor(model => model.Note, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.dtExport, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.dtExport, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.dtExport, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@Scripts.Render("~/bundles/jqueryval")
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
@model IEnumerable<StockManMVC.Models.ItemFlux>
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
@Html.ActionLink("Create New", "Create")
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ExtLocationID)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.dtMov)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Qta)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.TotValue)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.UnitVal)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Note)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.dtExport)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Item.Descr)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Location.Descr)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.MovType.Descr)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ExtLocationID)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.dtMov)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Qta)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.TotValue)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.UnitVal)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Note)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.dtExport)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Item.Descr)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Location.Descr)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.MovType.Descr)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
|
||||
@Html.ActionLink("Details", "Details", new { id=item.ID }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { id=item.ID })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
</table>
|
||||
@@ -0,0 +1,72 @@
|
||||
@model StockManMVC.Models.ItemStock
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-horizontal">
|
||||
<h4>ItemStock</h4>
|
||||
<hr />
|
||||
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.ItemID, "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.LocationID, "LocationID", 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.QtyConf, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.QtyConf, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.QtyConf, "", 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.EditorFor(model => model.Note, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.dtLastUpd, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.dtLastUpd, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.dtLastUpd, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@Scripts.Render("~/bundles/jqueryval")
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
@model StockManMVC.Models.ItemStock
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>ItemStock</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.QtyConf)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.QtyConf)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Note)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Note)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtLastUpd)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtLastUpd)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Item.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Item.Descr)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Location.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Location.Descr)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
@using (Html.BeginForm()) {
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
@@ -0,0 +1,58 @@
|
||||
@model StockManMVC.Models.ItemStock
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>ItemStock</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.QtyConf)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.QtyConf)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Note)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Note)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtLastUpd)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtLastUpd)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Item.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Item.Descr)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Location.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Location.Descr)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
@Html.ActionLink("Edit", "Edit", new { id = Model.ID }) |
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</p>
|
||||
@@ -0,0 +1,74 @@
|
||||
@model StockManMVC.Models.ItemStock
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-horizontal">
|
||||
<h4>ItemStock</h4>
|
||||
<hr />
|
||||
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||
@Html.HiddenFor(model => model.ID)
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.ItemID, "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.LocationID, "LocationID", 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.QtyConf, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.QtyConf, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.QtyConf, "", 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.EditorFor(model => model.Note, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.dtLastUpd, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.dtLastUpd, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.dtLastUpd, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@Scripts.Render("~/bundles/jqueryval")
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
@model IEnumerable<StockManMVC.Models.ItemStock>
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
@Html.ActionLink("Create New", "Create")
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.QtyConf)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Note)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.dtLastUpd)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Item.Descr)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Location.Descr)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.QtyConf)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Note)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.dtLastUpd)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Item.Descr)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Location.Descr)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
|
||||
@Html.ActionLink("Details", "Details", new { id=item.ID }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { id=item.ID })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
</table>
|
||||
@@ -0,0 +1,96 @@
|
||||
@model StockManMVC.Models.Item
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-horizontal">
|
||||
<h4>Item</h4>
|
||||
<hr />
|
||||
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.Descr, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.Descr, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.Descr, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.CodInt, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.CodInt, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.CodInt, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.Family, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.Family, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.Family, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.CodExt, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.CodExt, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.CodExt, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.DescrExt, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.DescrExt, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.DescrExt, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.QtaMin, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.QtaMin, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.QtaMin, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.QtaBatch, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.QtaBatch, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.QtaBatch, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.CurrValue, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.CurrValue, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.CurrValue, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@Scripts.Render("~/bundles/jqueryval")
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
@model StockManMVC.Models.Item
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>Item</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Descr)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.CodInt)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.CodInt)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Family)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Family)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.CodExt)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.CodExt)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DescrExt)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DescrExt)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.QtaMin)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.QtaMin)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.QtaBatch)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.QtaBatch)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.CurrValue)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.CurrValue)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
@using (Html.BeginForm()) {
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
@@ -0,0 +1,82 @@
|
||||
@model StockManMVC.Models.Item
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>Item</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Descr)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Descr)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.CodInt)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.CodInt)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Family)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Family)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.CodExt)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.CodExt)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DescrExt)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DescrExt)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.QtaMin)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.QtaMin)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.QtaBatch)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.QtaBatch)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.CurrValue)
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.CurrValue)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
@Html.ActionLink("Edit", "Edit", new { id = Model.ID }) |
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</p>
|
||||
@@ -0,0 +1,98 @@
|
||||
@model StockManMVC.Models.Item
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<div class="form-horizontal">
|
||||
<h4>Item</h4>
|
||||
<hr />
|
||||
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||
@Html.HiddenFor(model => model.ID)
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.Descr, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.Descr, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.Descr, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.CodInt, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.CodInt, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.CodInt, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.Family, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.Family, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.Family, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.CodExt, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.CodExt, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.CodExt, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.DescrExt, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.DescrExt, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.DescrExt, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.QtaMin, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.QtaMin, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.QtaMin, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.QtaBatch, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.QtaBatch, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.QtaBatch, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.CurrValue, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.CurrValue, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.CurrValue, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div>
|
||||
@Html.ActionLink("Back to List", "Index")
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@Scripts.Render("~/bundles/jqueryval")
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
@model IEnumerable<StockManMVC.Models.Item>
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Anagrafica Articoli";
|
||||
}
|
||||
|
||||
<h2>Anagrafica Articoli</h2>
|
||||
|
||||
<p>
|
||||
@Html.ActionLink("Create New", "Create")
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Descr)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.CodInt)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Family)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.CodExt)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DescrExt)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.QtaMin)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.QtaBatch)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.CurrValue)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Descr)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CodInt)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Family)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CodExt)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DescrExt)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.QtaMin)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.QtaBatch)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CurrValue)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
|
||||
@Html.ActionLink("Details", "Details", new { id=item.ID }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { id=item.ID })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
</table>
|
||||
@@ -23,12 +23,13 @@
|
||||
<li>@Html.ActionLink("Home", "Index", "Home")</li>
|
||||
@*<li>@Html.ActionLink("About", "About", "Home")</li>
|
||||
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>*@
|
||||
<li>@Html.ActionLink("Items", "Index", "Items")</li>
|
||||
<li>@Html.ActionLink("Stock", "Index", "ItemStocks")</li>
|
||||
<li>@Html.ActionLink("Flux", "Index", "ItemFluxs")</li>
|
||||
<li>@Html.ActionLink("Locations", "Index", "Locations")</li>
|
||||
<li>@Html.ActionLink("Location Type", "Index", "LocTypes")</li>
|
||||
<li>@Html.ActionLink("Move Type", "Index", "MovTypes")</li>
|
||||
<li>@Html.ActionLink("Articoli", "Index", "Items")</li>
|
||||
<li>@Html.ActionLink("Magazzino Articoli", "Index", "ItemStockStatus")</li>
|
||||
@*<li>@Html.ActionLink("Stock", "Index", "ItemStocks")</li>
|
||||
<li>@Html.ActionLink("Flux", "Index", "ItemFluxes")</li>*@
|
||||
<li>@Html.ActionLink("Posizioni", "Index", "Locations")</li>
|
||||
<li>@Html.ActionLink("Tipo Posizioni", "Index", "LocTypes")</li>
|
||||
<li>@Html.ActionLink("Tipo Movimenti", "Index", "MovTypes")</li>
|
||||
</ul>
|
||||
<p class="nav navbar-text navbar-right">Hello, @User.Identity.Name!</p>
|
||||
</div>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user