예제 #1
0
  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);
            }
          }
        });
  }
예제 #2
0
 public void getInfo() {
   group = (DutyGroup) getIntent().getSerializableExtra("group");
   if (group != null) {
     noList = group.getNoList();
   }
 }