public ActionResult PrintHtmlInovice(int?POId) { PDService service = new PDService(); PO Model = new PO(); Model = service.GetPO(POId); Model.POIList = service.GetPOItemList(POId); return(View("PO", Model)); }
public ActionResult ReviewPO(int?POId) { PDService service = new PDService(); PO user = new PO(); //ViewBag.Divisions = new SelectList(AllDivisions(), "Value", "Text"); user = service.GetPO(POId); user.POIList = service.GetPOItemList(POId); return(View("ReviewPurchaseOrder", user)); }
public ActionResult AddEditPO(int?POId) { PDService service = new PDService(); PO user = new PO(); user = service.GetPO(POId); if (user == null) { user = new PO(); } ViewBag.Suppliers = new SelectList(AllSuppliers(), "Value", "Text"); return(View("AddEditPurchaseOrder", user)); }