/** * 수정 * * @param Dataset ds, int arg_row * @return */ private void updateExe(Dataset ds, int arg_row) throws Exception { if (ds.getId().equalsIgnoreCase("dsPT_C_RES_TRAFFIC_OUT")) { /** **** Dataset one_row 값 전체 자동 세팅 ***** */ Eent.setDsOnlyString(ds, arg_row); // String[] fields = {"SEQ", "WRT_ID", "SIDO_CODE", "INS_DT"}; /** ****특정한 필드를 제외한 수정 ***** */ Eent.setUPD_DT(KJFDate.getCurDatetime()); dao.updateExcludeOnly(Eent, fields); } }
/** * 입력 * * @param Dataset ds, int arg_row * @return */ private void insertExe(Dataset ds, int arg_row) throws Exception { if (ds.getId().equalsIgnoreCase("dsPT_C_RES_TRAFFIC_OUT")) { String WRT_ID = vl.getValueAsString("WRT_ID"); String SIDO_CODE = vl.getValueAsString("SIDO_CODE"); String SIGUNGU_CODE = vl.getValueAsString("SIGUNGU_CODE"); String SEQ = KJFDBUtil.getMaxID("SEQ", "PT_C_RES_TRAFFIC_OUT"); Eent.setDsOnlyString(ds, arg_row); KJFLog.debug(Eent.toString()); Eent.setSEQ(SEQ); Eent.setWRT_ID(WRT_ID); Eent.setSIDO_CODE(SIDO_CODE); Eent.setSIGUNGU_CODE(SIGUNGU_CODE); Eent.setINS_DT(KJFDate.getCurDatetime()); dao.insert(Eent); } }