SMLBD01030.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /***********************************************************************************************************************************************
  2. * create date : 2008.02.12
  3. * author : dhkim
  4. * file name : SMLBD01030.js
  5. * desc : 문진 부적격 기록대장
  6. ***********************************************************************************************************************************************/
  7. var xDnorPath = '/root/main/dnorinfo';
  8. var xCondPath = '/root/cond';
  9. var xReqPath = '/root/send/reqdata';
  10. var currentDate = getCurrentDate();
  11. /*
  12. * 초기화
  13. */
  14. function fInit(){
  15. model.removeNodeset(xDnorPath);
  16. model.setValue(xCondPath + '/fromdd', currentDate);
  17. model.setValue(xCondPath + '/todd', currentDate);
  18. grd_dnorlist.extendLastCol = true;
  19. fSearch();
  20. }
  21. /*
  22. * 문진부적격 리스트를 조회한다.
  23. */
  24. function fSearch(){
  25. var fromdd = model.getValue(xCondPath+'/fromdd');
  26. var todd = model.getValue(xCondPath+'/todd');
  27. if(fromdd == '')
  28. fromdd = currentDate;
  29. if(todd == '')
  30. todd = currentDate;
  31. model.removeNodeset(xDnorPath + "/dnorlist");
  32. model.removeNodeset(xReqPath);
  33. model.makeValue(xReqPath + '/fromdd', fromdd);
  34. model.makeValue(xReqPath + '/todd', todd);
  35. if(!submit('TRLBD01031')){
  36. messageBox('조회를', 'E009');
  37. }
  38. }
  39. /*
  40. * 엑셀출력
  41. */
  42. function fExcel(){
  43. var pGrd = grd_dnorlist;
  44. if (pGrd.rows > pGrd.fixedrows ) {
  45. var fileName = window.fileDialog("save", ",", false, "문진부적격기록_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  46. if (fileName != "") {
  47. pGrd.saveExcel(fileName, "SheetName", true, true, "", "", false);
  48. messageBox("엑셀저장이 ", "I002", ""); //I002 : 완료되었습니다.
  49. }
  50. } else {
  51. messageBox("자료가 존재하지 않습니다.", "E999", "");
  52. }
  53. }