Repository
Repository
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Dapper;
using sims_web_api.Dapper;
using sims_web_api.Infrastucture.IRepositories;
using sims_web_api.Models;
namespace sims_web_api.Infrastucture.Repositories
{
public class ProductionPlanRepository : IProductionPlanRepository
{
private readonly DapperContext _dapperContext;
public List<Vw_QCDashWithTransfer>
GetAllQualityControlDashboardWithTransfers(string itemNo, string prodTypeUID)
{
const string query = @"
SELECT ITEMNO, SUM(ProdQty) AS BALQTY
FROM Vw_QCDashWithTransfer
WHERE ProdQty > 0 AND ITEMNO = @ItemNo AND ProdTypeUID =
@ProdTypeUID
GROUP BY ITEMNO";
}
}