@OnCheckedChanged(R.id.tgbtnCollection) public void mTgbtnCollectionOnCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked == true) { mKnouNoticeInfo.iread = "2"; } else { mKnouNoticeInfo.iread = "1"; } NoticeList.mSelectediread = mIread; setChangeKnouNoticeInfo(mKnouNoticeInfo); }
private void setRead() throws Exception { System.out.println("setRead1"); String blngDc = mPref.getString(Main.GUBUN, "DP"); String blngCd = mPref.getString(Main.DEPARTMENT, "34"); if (blngDc.equals("DP")) { blngCd = mPref.getString(Main.DEPARTMENT, "34"); } else if (blngDc.equals("LU")) { blngCd = mPref.getString(Main.LOCATION, "010"); } else if (blngDc.equals("VT")) { blngCd = ""; } else { blngCd = ""; } System.out.println("blngCd:" + blngCd); System.out.println("anncNo:" + mAnncNo.trim()); mKnouNoticeInfo = mKnouNoticeAbs.getInfo(mAnncNo, blngDc, blngCd); mKnouNoticeInfo.blngDc = mPref.getString(Main.GUBUN, ""); if (mKnouNoticeInfo.blngDc.equals("DP")) { mKnouNoticeInfo.blngCd = mPref.getString(Main.DEPARTMENT, ""); } else if (mKnouNoticeInfo.blngDc.equals("LU")) { mKnouNoticeInfo.blngCd = mPref.getString(Main.LOCATION, ""); } else if (mKnouNoticeInfo.blngDc.equals("VT")) { mKnouNoticeInfo.blngCd = ""; } List<KnouNoticeInfo> knouNoticeInfoList = getListKnouNoticeInfo(mKnouNoticeInfo.blngDc, mKnouNoticeInfo.blngCd, mAnncNo.trim()); int totCount = knouNoticeInfoList.size(); /* 저장 */ if (knouNoticeInfoList.size() != 1) { throw new Exception("1만 나와야 한다구요 knouNoticeInfoList.size() : " + knouNoticeInfoList.size()); } System.out.println("knouNoticeInfoList.size():" + knouNoticeInfoList.size()); if (knouNoticeInfoList.size() > 0) { System.out.println("knouNoticeInfoList.get(0):" + knouNoticeInfoList.get(0)._ID.toString()); KnouNoticeInfo knouNoticeInfo = knouNoticeInfoList.get(0); knouNoticeInfo.tit = mKnouNoticeInfo.tit; knouNoticeInfo.content = mKnouNoticeInfo.content; if (knouNoticeInfo.iread == null || knouNoticeInfo.iread.equals("0")) { knouNoticeInfo.iread = "1"; } mIread = Integer.parseInt(knouNoticeInfo.iread); knouNoticeInfo = setChangeKnouNoticeInfo(knouNoticeInfo); knouNoticeInfo.AttacheFileArrayList = mKnouNoticeInfo.AttacheFileArrayList; mKnouNoticeInfo = setChangeKnouNoticeFileInfo(knouNoticeInfo); } else { } NoticeList.mSelectediread = mIread; }