コード例 #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    command = (InstCommand) this.getIntent().getSerializableExtra(InstCommand.PARAM_COMMAND);
    if (AssertValue.isNotNull(command) && AssertValue.isNotNullAndNotEmpty(command.getUserid())) {
      userid = command.getUserid();
    } else {
      userid = sessionManager.getUser().getId();
    }
    queryUserByIdAndSetName(userid);
    initInstTitle.getTitleLeft().setOnClickListener(onBackClickListener);
    staffNumLayout.setOnClickListener(onStaffNumClickListener);
    initInstTitle.getTitleRightTv().setOnClickListener(onInitInstClickListener);
  }
コード例 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    command = (OrgPhoneUserCommand) this.getIntent().getSerializableExtra("command");
    if (AssertValue.isNotNull(command) && AssertValue.isNotNullAndNotEmpty(command.getUserid())) {
      userid = command.getUserid();
    }

    if (AssertValue.isNotNull(command) && AssertValue.isNotNullAndNotEmpty(command.getInstid())) {
      instid = command.getInstid();
    }
    if (!AssertValue.isNotNullAndNotEmpty(userid)) {
      userid = sessionManager.getUser().getId();
    }

    if (!AssertValue.isNotNullAndNotEmpty(instid)) {
      instid = sessionManager.getInst().getId();
    }
    jupiterSearchInputLayout = (JupiterSearchInputLayout) this.findViewById(R.id.searchRL);
    jupiterSearchInputLayout.getSearchET().addTextChangedListener(textWatcher);
    titleBarLayout.getTitleLeft().setOnClickListener(onCancelClickListener);
    initView();
  }