break;
case DiagnosisDocument.CATEGORY_COL:
// JComboBox から選択
String saveCategory = rd.getCategory();
DiagnosisCategoryModel dcm = (DiagnosisCategoryModel) value;
String test = dcm.getDiagnosisCategory();
test = test != null && (!test.equals("")) ? test : null;
if (saveCategory != null) {
if (test != null) {
if (!test.equals(saveCategory)) {
// undo 用に保存
offerQueue(undoMap, rd);
rd.setCategory(dcm.getDiagnosisCategory());
rd.setCategoryDesc(dcm.getDiagnosisCategoryDesc());
rd.setCategoryCodeSys(dcm.getDiagnosisCategoryCodeSys());
update(row, rd);
}
} else {
// undo 用に保存
offerQueue(undoMap, rd);
rd.setDiagnosisCategoryModel(null);
update(row, rd);
}
} else {
if (test != null) {
// undo 用に保存
offerQueue(undoMap, rd);
rd.setCategory(dcm.getDiagnosisCategory());
rd.setCategoryDesc(dcm.getDiagnosisCategoryDesc());
rd.setCategoryCodeSys(dcm.getDiagnosisCategoryCodeSys());
update(row, rd);
}
}
break;