private void initView() { mTextName = (TextView) findViewById(R.id.tv_name); mClose = (ImageView) findViewById(R.id.iv_close); mGridView = (GridView) findViewById(R.id.gridview); mSave = (Button) findViewById(R.id.btn_save); if (group != null) { mTextName.setText(group.getName()); } mClose.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); mSave.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { if (group != null) { saveDutyBedData(LoginInfo.OFFICE_ID, group.getId(), mBedList); } } }); }
public void getInfo() { group = (DutyGroup) getIntent().getSerializableExtra("group"); if (group != null) { noList = group.getNoList(); } }