private static string GetProductID() { if (globalProductID == -1) { globalProductID = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllProductIDs()); } globalProductID++; return("P" + globalProductID); }
private static string GetDiscountCode() { if (globalDiscountCode == -1) { globalDiscountCode = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllDiscountIDs()); } globalDiscountCode++; return("D" + globalDiscountCode); }
private static string GetLotteryTicketID() { if (globalLotteryTicketID == -1) { globalLotteryTicketID = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllLotteryTicketIDs()); } globalLotteryTicketID++; return("T" + globalLotteryTicketID); }
private static string GetDiscountCode() { if (_globalCategoryDiscountCode == -1) { _globalCategoryDiscountCode = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllCategoryDiscountIDs()); } _globalCategoryDiscountCode++; return("d" + _globalCategoryDiscountCode); }
private static string GetNextStoreId() { if (storeIdCounter == -1) { storeIdCounter = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllStoresIDs()); } storeIdCounter++; return("S" + storeIdCounter); }