Ejemplo n.º 1
0
 @Override
 public void onClick(View v) {
   // TODO Auto-generated method stub
   if (v == goback) {
     finish();
   }
   if (v == save) {
     startIntents();
   }
   if (v == rela_salary_mode) {
     selectionsDialog.show(SalaryEnum.SALARY_MODE);
   }
   if (v == rela_salary_currency) {
     selectionsDialog.show(SalaryEnum.SALARY_CURRENCY);
   }
   if (v == rela_salary_scope) {
     selectionsDialog.show(SalaryEnum.SALARY_SCOPE);
   }
 }
Ejemplo n.º 2
0
  private void initDialog() {

    selectionsDialog = new SalarySelectDialog(context);
    selectionsDialog.setOnDataFlashListener(
        new OptSalaryActivity.IflashViewsCallback() {

          @Override
          public void doFlash(SalaryEnum opt, String key, Integer value) {
            // TODO Auto-generated method stub
            if (StringUtils.isEmpty(key)) {
              return;
            }
            switch (opt) {
              case SALARY_MODE:
                if (!mode_value.equalsIgnoreCase(key)) {
                  scope_code = "0";
                  scope_value = "不限";
                  txt_salary_scope.setText(scope_value);
                }
                mode_code = value + "";
                mode_value = key;
                txt_salary_mode.setText(key);
                break;

              case SALARY_CURRENCY:
                currency_code = value + "";
                currency_value = key;
                txt_salary_currency.setText(key);
                break;
              case SALARY_SCOPE:
                scope_code = value + "";
                scope_value = key;
                txt_salary_scope.setText(key);
                break;
            }
          }
        });
  }