Пример #1
0
 private boolean haveGroupOnInfo()
 {
   if (this.isTogetherMenu);
   do
     return false;
   while (NewCartManager.getInstance().groupOnDealId <= 0);
   return true;
 }
Пример #2
0
 private double getTotalPrice()
 {
   if (this.isTogetherMenu)
   {
     TogetherCartManager localTogetherCartManager = TogetherCartManager.getInstance();
     if (localTogetherCartManager.isOwner == 1)
       return localTogetherCartManager.getTotalPrice();
     return localTogetherCartManager.getTotalPrice() + localTogetherCartManager.getOtherTotalPrice();
   }
   return NewCartManager.getInstance().getTotalPrice();
 }
Пример #3
0
 private int getTotalOtherTypeDishCount()
 {
   if (this.isTogetherMenu)
   {
     TogetherCartManager localTogetherCartManager = TogetherCartManager.getInstance();
     if (localTogetherCartManager.isOwner == 1)
       return localTogetherCartManager.getGenusTypeDishCount(-1);
     return localTogetherCartManager.getGenusTypeDishCount(-1) + localTogetherCartManager.getGenusFromOtherDish(-1);
   }
   return NewCartManager.getInstance().getTotalOtherTypeDishCount();
 }
Пример #4
0
 private int getTotalDishCount()
 {
   if (this.isTogetherMenu)
   {
     TogetherCartManager localTogetherCartManager = TogetherCartManager.getInstance();
     if (localTogetherCartManager.isOwner == 1)
       return localTogetherCartManager.getTotalDishCount();
     return localTogetherCartManager.getTotalDishCount() + localTogetherCartManager.getOtherTotalCount();
   }
   return NewCartManager.getInstance().getTotalDishCount();
 }
Пример #5
0
 private int getTotalSelectFreeDishCount()
 {
   if (this.isTogetherMenu)
     return TogetherCartManager.getInstance().getTotalSelectFreeDishCount();
   return NewCartManager.getInstance().getTotalSelectFreeDishCount();
 }
Пример #6
0
 private boolean hasHistoryFreeDish()
 {
   if (this.isTogetherMenu)
     return TogetherCartManager.getInstance().hasHistoryFreeDish();
   return NewCartManager.getInstance().hasHistoryFreeDish();
 }