12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- /***********************************************************************************************************************************************
- * create date : 2008.02.12
- * author : dhkim
- * file name : SMMNA01030.js
- * desc : 문진 부적격 기록대장
- ***********************************************************************************************************************************************/
- var xDnorPath = '/root/main/dnorinfo';
- var xCondPath = '/root/cond';
- var xReqPath = '/root/send/reqdata';
- var currentDate = getCurrentDate();
- /*
- * 초기화
- */
- function fInit(){
- model.removeNodeset(xDnorPath);
-
- model.setValue(xCondPath + '/fromdd', currentDate);
-
- var getlastDate = currentDate.substring(0, 6) + getLastDay(currentDate.substring(0, 4), currentDate.substring(4, 6));
- model.setValue(xCondPath + '/todd', getlastDate);
-
- grd_dnorlist.extendLastCol = true;
- fSearch();
- }
- /*
- * 문진부적격 리스트를 조회한다.
- */
- function fSearch(){
-
- var fromdd = model.getValue(xCondPath+'/fromdd');
- var todd = model.getValue(xCondPath+'/todd');
-
- if(fromdd == '')
- fromdd = currentDate;
- if(todd == '')
- todd = currentDate;
-
- model.removeNodeset(xDnorPath + "/dnorlist");
- model.removeNodeset(xReqPath);
- model.makeValue(xReqPath + '/fromdd', fromdd);
- model.makeValue(xReqPath + '/todd', todd);
-
- if(!submit('TRMNA01031')){
- messageBox('조회를', 'E009');
- }
- }
- /*
- * 엑셀출력
- */
- function fExcel(){
- var pGrd = grd_dnorlist;
-
- if (pGrd.rows > pGrd.fixedrows ) {
- var fileName = window.fileDialog("save", ",", false, "문진부적격기록_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") {
- pGrd.saveExcel(fileName, "SheetName", true, true, "", "", false);
- messageBox("엑셀저장이 ", "I002", ""); //I002 : 완료되었습니다.
- }
- } else {
- messageBox("자료가 존재하지 않습니다.", "E999", "");
- }
- }
|