コード例 #1
0
        public ActionResult StockLedger()
        {
            StockLedger obj = new Models.StockLedger();

            obj.getMultipleItems();
            obj.getMultipleUnit();
            return(View(obj));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }