public PurchaseOrderController()
 {
     purchaseOrderEnt = new PurchaseOrderEnt();
     purchaseOrderDetailEnt = new PurchaseOrderDetailEnt();
     stockCardEnt = new StockCardEnt();
     supplierEnt = new SupplierEnt();
     dALUtilities = new DALUtilities();
 }
 public string getStockCardID(string itemCode)
 {
     StockCardEnt stCardEnt = new StockCardEnt();
     StockCard stCard=new StockCard();
     stCard.Item_Code=itemCode;
     string stCardId = stCardEnt.getStockCard(stCard).First().StockCard_ID;
     return stCardId;
 }