SELECT
*
FROM 테이블
WHERE ISNUMERIC(컬럼) = 1
1 : 숫자 / 0 : 문자
SELECT
*
FROM 테이블
WHERE ISNUMERIC(컬럼) = 1
1 : 숫자 / 0 : 문자
//주유소 시도별 평균가격(현재)
String targetUrl = "http://www.opinet.co.kr/api/avgSidoPrice.do?out=xml&code=개인키";
String jsonData = "";
BufferedReader br = null;
StringBuffer sb = null;
URL url = new URL(targetUrl);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
conn.connect();
br = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8"));
sb = new StringBuffer();
while ((jsonData = br.readLine()) != null) {
sb.append(jsonData + "\n");
}
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new InputSource(new StringReader(sb.toString())));
NodeList nodelist = document.getElementsByTagName("OIL");
System.out.println(nodelist.getLength());
for(int i = 0 ; i < nodelist.getLength() ; i++) {
Node node = nodelist.item(i); //첫번째 element 얻기
String SIDOCD = getNodeContent(node.getChildNodes(), "SIDOCD");
String SIDONM = getNodeContent(node.getChildNodes(), "SIDONM");
String PRODCD = getNodeContent(node.getChildNodes(), "PRODCD");
String PRICE = getNodeContent(node.getChildNodes(), "PRICE");
String DIFF = getNodeContent(node.getChildNodes(), "DIFF");
String TRADE_DT = new SimpleDateFormat("yyyyMMdd").format(Calendar.getInstance().getTime());
Map<String, Object> row = new HashMap<String, Object>();
row.put("tradeDt", TRADE_DT);
row.put("prodCd", "PROD."+PRODCD);
row.put("sidoCd", "SIDO."+SIDOCD);
row.put("price", PRICE);
// 저장로직
// ...
}
데이터 조회전에
this.grd_main.set_enableredraw(false);
콜백에서
this.grd_main.set_enableredraw(true);
Grid.set_enableredraw : Grid 에 변경이 발생하면 화면을 자동으로 다시 그릴 지 설정하는 속성입니다.
nexacro]그리드내에 함수 쓰는 방법 (0) | 2021.04.15 |
---|---|
넥사크로 올림/반올림/버림 (0) | 2021.04.05 |
nexacro opensource chart (0) | 2020.09.28 |
uiadapter17 by egov 3.8 (0) | 2020.09.28 |
전자정부프레임워크 + 넥사크로 플랫폼 연동 관련 문서 정리 (0) | 2019.01.18 |
LOT (0) | 2016.11.02 |
---|---|
1·2·3·4자물류(1·2·3·4PL) (0) | 2012.12.13 |
物流用語 (0) | 2012.07.09 |
아두이노 IDE
Software
Open-source electronic prototyping platform enabling users to create interactive electronic objects.
www.arduino.cc
관련문서