コード例 #1
0
        public static Inventory GetSelectedInventory(int invid)
        {
            var dal = new InventoryDAL();
            var ins = new Inventory();

            DataTable dt  = dal.GetSelectedInventory(invid);
            DataRow   row = dt.Rows[0];

            ins.Bind(row);

            return(ins);
        }
コード例 #2
0
        public static List <Inventory> GetAllByKiosk(int id)
        {
            var dal        = new InventoryDAL();
            var collection = new List <Inventory>();

            foreach (DataRow row in dal.GetAllByKiosk(id).Rows)
            {
                var instance = new Inventory();
                instance.Bind(row);
                collection.Add(instance);
            }

            return(collection);
        }
コード例 #3
0
        public static List<Inventory> GetAllByKiosk(int id)
        {
            var dal = new InventoryDAL();
            var collection = new List<Inventory>();

            foreach (DataRow row in dal.GetAllByKiosk(id).Rows)
            {
                var instance = new Inventory();
                instance.Bind(row);
                collection.Add(instance);
            }

            return collection;
        }
コード例 #4
0
        public static Inventory GetSelectedInventory(int invid)
        {
            var dal = new InventoryDAL();
            var ins = new Inventory();

            DataTable dt = dal.GetSelectedInventory(invid);
            DataRow row = dt.Rows[0];

            ins.Bind(row);

            return ins;
        }