コード例 #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();
 }