public static int updateKitTemplate(KitTemplate kt)
        {
            string q = DatabaseQuery.updateKitTemplate(kt.getId(), kt.getName(), (int)kt.getCategory(), kt.getPrice(), kt.getProperties(), kt.getStockQtt(), kt.getStockLocationX(), kt.getStockLocationY(), kt.getBikeQtt());

            return(Database.setData(q));
        }
 public static string link_kit_to_tbike(BikeTemplate bt, KitTemplate kt)
 {
     return("INSERT INTO `bv_templatebikekit` (`id_tBike`, `id_tKit`) VALUES (" + bt.getId() + ", " + kt.getId() + ")");
 }
示例#3
0
        public static int unlinkKTCB(CatalogBike cb, KitTemplate kt)
        {
            string q = DatabaseQuery.delCompatibleKit(cb.getId(), kt.getId());

            return(Database.setData(q));
        }