Exemplo n.º 1
0
 private void setupView()
 {
   super.setContentView(R.layout.review_succeed_view);
   super.setTitleButton("关闭", this);
   MeasuredListView localMeasuredListView = (MeasuredListView)findViewById(R.id.commend_shops);
   localMeasuredListView.setAdapter(this.adapter);
   localMeasuredListView.setOnItemClickListener(this);
 }
Exemplo n.º 2
0
 public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   super.setContentView(R.layout.huihui_rules_activity);
   super.getWindow().setBackgroundDrawable(null);
   setTitle("使用规则");
   this.rules = getIntent().getParcelableArrayListExtra("rules");
   this.tip = getStringParam("tip");
   initView();
 }
 public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   super.setContentView(R.layout.submit_scenery_order);
   paramBundle = getIntent().getData().getQueryParameter("shopid");
   try {
     this.shopID = Integer.valueOf(paramBundle).intValue();
     this.ticket = ((DPObject) getIntent().getParcelableExtra("ticket"));
     initView();
     return;
   } catch (Exception paramBundle) {
     while (true) Log.e("FormatException , ex = " + paramBundle.getMessage());
   }
 }
Exemplo n.º 4
0
 public void onCreate(Bundle paramBundle)
 {
   super.onCreate(paramBundle);
   paramBundle = new ListView(this);
   this.shopAdapter = new ShopAdapter();
   paramBundle.setAdapter(this.shopAdapter);
   this.dataList = getConfigList(getIntent().getStringExtra("shop_config"));
   this.shopAdapter.setData(this.dataList);
   setContentView(paramBundle);
   getTitleBar().findViewById(R.id.title_button).setVisibility(0);
   ((TextView)getTitleBar().findViewById(R.id.title_button)).setText("全部展开");
   getTitleBar().findViewById(R.id.title_button).setOnClickListener(new View.OnClickListener()
   {
     public void onClick(View paramView)
     {
       if (!DebugShopConfigActivity.this.isExpandAll)
       {
         DebugShopConfigActivity.access$002(DebugShopConfigActivity.this, true);
         ((TextView)DebugShopConfigActivity.this.getTitleBar().findViewById(R.id.title_button)).setText("全部收起");
         paramView = DebugShopConfigActivity.this.dataList.iterator();
         while (paramView.hasNext())
           ((DebugShopConfigActivity.ConfigData)paramView.next()).setVisibile(true);
         DebugShopConfigActivity.this.shopAdapter.setData(DebugShopConfigActivity.this.dataList);
         return;
       }
       DebugShopConfigActivity.access$002(DebugShopConfigActivity.this, false);
       ((TextView)DebugShopConfigActivity.this.getTitleBar().findViewById(R.id.title_button)).setText("全部展开");
       paramView = DebugShopConfigActivity.this.dataList.iterator();
       while (paramView.hasNext())
         ((DebugShopConfigActivity.ConfigData)paramView.next()).setVisibile(false);
       DebugShopConfigActivity.this.shopAdapter.setData(DebugShopConfigActivity.this.dataList);
     }
   });
 }
Exemplo n.º 5
0
 public void onDestroy()
 {
   super.onDestroy();
   if (this.recommendReviewRequest != null)
   {
     mapiService().abort(this.recommendReviewRequest, null, true);
     this.recommendReviewRequest = null;
   }
 }
 protected void onDestroy()
 {
   super.onDestroy();
   this.mCartManager.removeCartChangedListener(this.dishCartListener);
   if (this.requestQuitRoom != null)
   {
     mapiService().abort(this.requestQuitRoom, this, true);
     this.requestQuitRoom = null;
   }
 }
 public void onCreate(Bundle paramBundle)
 {
   super.onCreate(paramBundle);
   setContentView(R.layout.selectdish_together_cart_layout);
   this.mShopId = this.mCartManager.getShopId();
   GAHelper.instance().setGAPageName(getPageName());
   this.gaUserInfo.shop_id = Integer.valueOf(this.mShopId);
   GAHelper.instance().contextStatisticsEvent(this, "cart", this.gaUserInfo, "view");
   this.mAverage = this.mCartManager.average;
   this.isEstimate = this.mCartManager.isEstimate;
   initViews();
   this.mCartManager.sortDishes();
   this.mCartManager.addCartChangedListener(this.dishCartListener);
 }
 public void onCreate(Bundle paramBundle)
 {
   super.onCreate(paramBundle);
   Uri localUri = getIntent().getData();
   if (localUri != null)
   {
     this.shopId = localUri.getQueryParameter("shopid");
     this.cityId = localUri.getQueryParameter("cityid");
   }
   if ((this.shopId == null) && (paramBundle != null))
   {
     this.shopId = paramBundle.getString("shopid");
     this.cityId = paramBundle.getString("cityid");
   }
   this.source = getStringParam("source");
   sendInfoRequest();
 }
 protected void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent)
 {
   super.onActivityResult(paramInt1, paramInt2, paramIntent);
   this.anim_lay = findViewById(R.id.animation_lay);
   Animation localAnimation = AnimationUtils.loadAnimation(this, R.anim.wedding_fuzzyrecommend_resume);
   this.anim_lay.startAnimation(localAnimation);
   if (paramIntent != null)
     this.selectedRegions = paramIntent.getStringArrayListExtra("selectedRegions");
   if (this.selectedRegions.size() <= 0)
   {
     paramIntent = (TextView)this.regionView.getChildAt(0);
     paramIntent.setBackgroundDrawable(getResources().getDrawable(R.drawable.red_line_round_corner_bk));
     paramIntent.setTextColor(getResources().getColor(R.color.light_red));
     paramIntent = (TextView)this.regionView.getChildAt(this.regionView.getCount() - 1);
     paramIntent.setBackgroundDrawable(getResources().getDrawable(R.drawable.black_line_round_corner_bk));
     paramIntent.setTextColor(getResources().getColor(R.color.deep_gray));
   }
 }
Exemplo n.º 10
0
 public void onCreate(Bundle paramBundle)
 {
   super.onCreate(paramBundle);
   paramBundle = getIntent();
   try
   {
     this.orderId = Integer.parseInt(paramBundle.getStringExtra("orderId"));
     this.shopName = paramBundle.getStringExtra("shopName");
   }
   catch (NumberFormatException localNumberFormatException2)
   {
     try
     {
       this.shopId = Integer.parseInt(paramBundle.getStringExtra("shopId"));
       setTitle(this.shopName);
       this.adapter = new Adapter(this);
       setupView();
       initData(paramBundle);
       initBottomAd(paramBundle);
       this.source = getIntent().getData().getQueryParameter("source");
       paramBundle = new Intent("tuan:add_review_successfully");
       paramBundle.putExtra("shopId", this.shopId);
       paramBundle.putExtra("orderId", this.orderId);
       sendBroadcast(paramBundle);
       requestRecommendReview();
       return;
       localNumberFormatException1 = localNumberFormatException1;
       localNumberFormatException1.printStackTrace();
     }
     catch (NumberFormatException localNumberFormatException2)
     {
       while (true)
         localNumberFormatException2.printStackTrace();
     }
   }
 }
  private void setupView()
  {
    super.setContentView(R.layout.wedding_feast_fuzzy_recommend);
    this.phoneNumEdit = ((EditText)findViewById(R.id.phoneNum));
    this.phoneNumEdit.setOnFocusChangeListener(new View.OnFocusChangeListener()
    {
      public void onFocusChange(View paramView, boolean paramBoolean)
      {
        if (paramBoolean)
          if (WeddingFeastFuzzyRecommendActivity.this.gaExtra.shop_id == null)
          {
            if ((WeddingFeastFuzzyRecommendActivity.this.shopId == null) || ("null".equals(WeddingFeastFuzzyRecommendActivity.this.shopId)) || ("".equals(WeddingFeastFuzzyRecommendActivity.this.shopId)))
              break label132;
            if (!TextUtils.isDigitsOnly(WeddingFeastFuzzyRecommendActivity.this.shopId))
              break label115;
            WeddingFeastFuzzyRecommendActivity.this.gaExtra.shop_id = Integer.valueOf(WeddingFeastFuzzyRecommendActivity.this.shopId);
          }
        while (true)
        {
          GAHelper.instance().contextStatisticsEvent(WeddingFeastFuzzyRecommendActivity.this.getApplicationContext(), "mobile", WeddingFeastFuzzyRecommendActivity.this.gaExtra, "tap");
          return;
          label115: WeddingFeastFuzzyRecommendActivity.this.gaExtra.shop_id = Integer.valueOf(0);
          continue;
          label132: WeddingFeastFuzzyRecommendActivity.this.gaExtra.shop_id = Integer.valueOf(0);
        }
      }
    });
    this.phoneNumEdit.addTextChangedListener(new TextWatcher()
    {
      public void afterTextChanged(Editable paramEditable)
      {
      }

      public void beforeTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
      {
      }

      public void onTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
      {
        WeddingFeastFuzzyRecommendActivity.this.setSubmitButtonState();
      }
    });
    this.submitBtn = ((NovaButton)findViewById(R.id.find_conditions_go_btn));
    this.submitBtn.setGAString("submit");
    this.submitBtn.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramView)
      {
        WeddingFeastFuzzyRecommendActivity.this.checkAndSubmitBookingInfo();
      }
    });
    setSubmitButtonState();
    TextView localTextView = (TextView)findViewById(R.id.orderCountView);
    this.regionView = ((MeasuredGridView)findViewById(R.id.regionView));
    MeasuredGridView localMeasuredGridView1 = (MeasuredGridView)findViewById(R.id.tableView);
    MeasuredGridView localMeasuredGridView2 = (MeasuredGridView)findViewById(R.id.priceView);
    MeasuredGridView localMeasuredGridView3 = (MeasuredGridView)findViewById(R.id.categoryView);
    localTextView.setText(this.orderCount + "");
    this.regionView.setAdapter(new GridViewAdapter(this, this.regions, "region"));
    localMeasuredGridView1.setAdapter(new GridViewAdapter(this, this.tables, "table"));
    localMeasuredGridView2.setAdapter(new GridViewAdapter(this, this.prices, "price"));
    localMeasuredGridView3.setAdapter(new GridViewAdapter(this, this.categorys, "category"));
  }
Exemplo n.º 12
0
 protected void onDestroy() {
   if (this.request != null) mapiService().abort(this.request, this, true);
   super.onDestroy();
 }
 private void initViews()
 {
   boolean bool2 = false;
   this.tipBarLayout = ((RelativeLayout)findViewById(R.id.tip_bar));
   this.tipCloseImg = ((ImageView)findViewById(R.id.tip_close));
   this.tipDivider = findViewById(R.id.tip_divider);
   Object localObject = getSharedPreferences("selectdish_together_tipbar", 0);
   label196: int i;
   if ((this.mCartManager.isOwner == 0) && (((SharedPreferences)localObject).getInt("closed", 0) == 0))
   {
     this.tipBarLayout.setVisibility(0);
     this.tipDivider.setVisibility(0);
     this.tipCloseImg.setOnClickListener(new View.OnClickListener((SharedPreferences)localObject)
     {
       public void onClick(View paramView)
       {
         SelectDishCartTogetherActivity.this.tipBarLayout.setVisibility(8);
         SelectDishCartTogetherActivity.this.tipDivider.setVisibility(8);
         paramView = this.val$prefs.edit();
         paramView.putInt("closed", 1);
         paramView.apply();
       }
     });
     this.mListView = ((PullToRefreshListView)findViewById(R.id.sd_cart_list));
     localObject = findViewById(R.id.sd_cart_empty);
     this.mListView.setEmptyView((View)localObject);
     findViewById(R.id.backlist).setOnClickListener(new View.OnClickListener()
     {
       public void onClick(View paramView)
       {
         SelectDishCartTogetherActivity.this.finish();
       }
     });
     this.mBottomLayout = findViewById(R.id.sd_cart_bottom);
     this.mSubmit = ((NovaButton)findViewById(R.id.submit));
     NovaButton localNovaButton = this.mSubmit;
     if (!this.mCartManager.supportPrepay)
       break label495;
     localObject = "确认支付";
     localNovaButton.setText((CharSequence)localObject);
     this.mSubmit.setGAString("submit", this.gaUserInfo);
     this.mSubmit.setOnClickListener(new View.OnClickListener()
     {
       public void onClick(View paramView)
       {
         if (SelectDishCartTogetherActivity.this.accountService().token() != null)
         {
           SelectDishCartTogetherActivity.this.mCartManager.stopPollingRequeset();
           SelectDishCartTogetherActivity.this.requestQuitOrderDishRoom();
           new TogetherSubmitOrderManager().submit(SelectDishCartTogetherActivity.this);
           SelectDishCartTogetherActivity.this.mListView.setMode(PullToRefreshBase.Mode.DISABLED);
           return;
         }
         SelectDishCartTogetherActivity.this.accountService().login(SelectDishCartTogetherActivity.this);
       }
     });
     localObject = (TextView)findViewById(R.id.submit_button_subtitle);
     ((TextView)localObject).setText(this.mCartManager.orderButtonSubTitle);
     if (!TextUtils.isEmpty(this.mCartManager.orderButtonSubTitle))
       break label502;
     i = 8;
     label268: ((TextView)localObject).setVisibility(i);
     this.mTotalPrice = ((RMBLabelItem)findViewById(R.id.sd_cart_price));
     this.mSummary1 = ((TextView)findViewById(R.id.sd_cart_summary1));
     this.mSummary2 = ((TextView)findViewById(R.id.sd_cart_summary2));
     this.mCartAdapter = new SelectDishCartAdapter(null, this.mCartManager, this);
     this.mListView.setAdapter(this.mCartAdapter);
     this.mListView.setOnRefreshListener(this);
     if (this.mCartManager.isOwner != 1)
       break label507;
     super.getTitleBar().addRightViewItem("清空", "clearcart", new View.OnClickListener()
     {
       public void onClick(View paramView)
       {
         SelectDishCartTogetherActivity.this.showClearConfirmAlert();
       }
     });
     updateCartInfos(this.mCartManager.getTotalDishCount() + this.mCartManager.getTotalSelectFreeDishCount(), this.mCartManager.getTotalDishCount() + this.mCartManager.getTotalFreeDishCount(), this.mCartManager.getTotalSingleDishCount() + this.mCartManager.getTotalSelectFreeDishCount());
   }
   while (true)
   {
     boolean bool1 = bool2;
     if (this.mCartManager.getAllDishesinTotalDish() != null)
     {
       bool1 = bool2;
       if (this.mCartManager.getAllDishesinTotalDish().size() > 0)
         bool1 = true;
     }
     setCartClearButtonEnabled(bool1);
     return;
     this.tipBarLayout.setVisibility(8);
     this.tipDivider.setVisibility(8);
     break;
     label495: localObject = "去下单";
     break label196;
     label502: i = 0;
     break label268;
     label507: updateCartInfos(this.mCartManager.getTotalDishCount() + this.mCartManager.getOtherTotalCount(), this.mCartManager.getTotalDishCount() + this.mCartManager.getOtherTotalCount(), this.mCartManager.getTotalSingleDishCount());
   }
 }