public ActionResult StockLedger() { StockLedger obj = new Models.StockLedger(); obj.getMultipleItems(); obj.getMultipleUnit(); return(View(obj)); }
public ActionResult ViewStockLeader() { StockLedger obj = new Models.StockLedger(); DBConnection cn = new DBConnection(); obj.CMD = "View"; obj.hid = Convert.ToInt32(Session["hospital"].ToString()); string xml = Common.ToXML(obj); DataSet dataset = cn.ExecuteProcedure("SP_StockLedger", xml); return(View(dataset)); }
public ViewResult StockLedgerUpdate(int treatmentid) { StockLedger obj = new Models.StockLedger(); if (treatmentid > 0) { obj.CMD = "Update"; obj = obj.GetSingleStockItem(treatmentid); obj.getMultipleItems(); obj.getMultipleUnit(); } return(View("StockLedger", obj)); }