예제 #1
0
파일: Product.cs 프로젝트: maorRoz/Sadna
 private static string GetProductID()
 {
     if (globalProductID == -1)
     {
         globalProductID = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllProductIDs());
     }
     globalProductID++;
     return("P" + globalProductID);
 }
예제 #2
0
파일: Discount.cs 프로젝트: maorRoz/Sadna
 private static string GetDiscountCode()
 {
     if (globalDiscountCode == -1)
     {
         globalDiscountCode = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllDiscountIDs());
     }
     globalDiscountCode++;
     return("D" + globalDiscountCode);
 }
예제 #3
0
 private static string GetLotteryTicketID()
 {
     if (globalLotteryTicketID == -1)
     {
         globalLotteryTicketID = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllLotteryTicketIDs());
     }
     globalLotteryTicketID++;
     return("T" + globalLotteryTicketID);
 }
예제 #4
0
 private static string GetDiscountCode()
 {
     if (_globalCategoryDiscountCode == -1)
     {
         _globalCategoryDiscountCode = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllCategoryDiscountIDs());
     }
     _globalCategoryDiscountCode++;
     return("d" + _globalCategoryDiscountCode);
 }
예제 #5
0
 private static string GetNextStoreId()
 {
     if (storeIdCounter == -1)
     {
         storeIdCounter = StockSyncher.GetMaxEntityID(StoreDL.Instance.GetAllStoresIDs());
     }
     storeIdCounter++;
     return("S" + storeIdCounter);
 }