示例#1
0
        public ActionResult NewAddOnItem(Int64 ItemId)
        {
            HG_Items   ObjItem       = new HG_Items().GetOne(ItemId);
            AddOnItems AddOnItemList = new AddOnItems();

            AddOnItemList.ItemId    = ObjItem.ItemID;
            AddOnItemList.Title     = ObjItem.Items;
            AddOnItemList.CostPrice = ObjItem.CostPrice;
            AddOnItemList.Tax       = ObjItem.Tax;
            AddOnItemList.Price     = ObjItem.Price;
            return(View("AddOnItem", AddOnItemList));
        }
        public ActionResult NewAddonSS(int SSID)
        {
            HG_Items   ObjItem       = new HG_Items().GetOne(SSID);
            AddOnItems AddOnItemList = new AddOnItems();

            AddOnItemList.ItemId         = ObjItem.ItemID;
            AddOnItemList.Title          = ObjItem.Items;
            AddOnItemList.CostPrice      = ObjItem.CostPrice;
            AddOnItemList.Tax            = ObjItem.Tax;
            AddOnItemList.Price          = ObjItem.Price;
            AddOnItemList.IsServingAddon = true;
            return(View("AddOnItem", AddOnItemList));
        }