function Showitems(id) {
var url = "@System.Configuration.ConfigurationManager.AppSettings["webUrl"]";
url = url + "Inventory/Itemsrefer/" + id;
window.open(url, '_blank',"width=1200, height=800", 'resizable=No');
}
public ActionResult Itemsrefer(int id)
{
mpsonCRMEntities db = new mpsonCRMEntities();
var refi = (from i in db.t_InventoryCountEntry
join
e in db.t_InventoryCount on i.InventoryCountID equals e.ID
where i.InventoryCountID == id
select new Countitems
{
ItemID = i.ItemID,
Itemlookupcode = i.Itemlookupcode,
ItemDescription = i.ItemDescription,
CurrentInventory = i.CurrentInventory,
CountQty = i.CountQty
}).ToList();
return View(refi);
}
@model IEnumerable<ALThompsonCRM.Models.ViewModel.Countitems>
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
Items Refers
<div class="btn-group pull-right">
@*<a class="btn btn-primary btn-sm" title="Update data" onclick="SaveAllItems();" href="#">Update</a>*@
</div>
</div>
<div class="panel-body">
<div id="table-content" class="table-responsive">
<div id="content-table-inner">
<div id="table-content">
<form id="poitems">
<table class="table table-bordered">
<tr style="background-color: silver;">
<th>ItemID</th>
<th>Item Description</th>
<th>Current Inventory</th>
<th> Count Qty</th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>@item.ItemID </td>
<td>@item.ItemDescription </td>
<td style="text-align: center">@item.CurrentInventory </td>
<td style="text-align: center">@item.CountQty
</tr>
}
</table>
</form>
</div>
</div>
</div>
</div>
</div>
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE