SMMNN02500.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. 분만실 처치장부(SMMNN02500_출생 100일 대상자 조회.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. var xnbabyhoundListPath = "/root/main/nbabyinfo/nbabyinfolist";
  7. var xPrintListPath = "/root/send/printdata/nbabyinfo/nbabyinfolist";
  8. /**
  9. * @group :
  10. * @ver : 2008.11.20
  11. * @by : 정경화
  12. * @---------------------------------------------------
  13. * @type : function
  14. * @access : public
  15. * @desc : 초기화 작업을 합니다.
  16. * @param :
  17. * @param :
  18. * @return :
  19. * @---------------------------------------------------
  20. */
  21. function fInitialize(){
  22. model.removenode(xnbabyhoundListPath);
  23. //model.setValue("/root/main/cond/fromdd", getCurrentDate().substr(0,6) + "01");
  24. model.setValue("/root/main/cond/fromdd", getCurrentDate());
  25. model.setValue("/root/main/cond/todd", getCurrentDate());
  26. model.refresh();
  27. fGetnbabyhoundInfo();
  28. }
  29. /**
  30. * @group :
  31. * @ver : 2008.11.20
  32. * @by : 정경화
  33. * @---------------------------------------------------
  34. * @type : function
  35. * @access : public
  36. * @desc : 분만실 처치장부 조회.
  37. * @param :
  38. * @param :
  39. * @return :
  40. * @---------------------------------------------------
  41. */
  42. function fGetnbabyhoundInfo(){
  43. model.copyNode("/root/send/reqdata", "/root/main/cond");
  44. submit("TRMNN02501");
  45. }
  46. /**
  47. * @group :
  48. * @ver : 2008.11.20
  49. * @by : 정경화
  50. * @---------------------------------------------------
  51. * @type : function
  52. * @access : public
  53. * @desc : 그리드 데이터 엑셀 전환
  54. * @param :
  55. * @param :
  56. * @return :
  57. * @---------------------------------------------------
  58. */
  59. function fSaveExcel(){
  60. grd_nbabyhoundlist.gridToInstance();
  61. file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  62. if(file != "") {
  63. grd_nbabyhoundlist.saveExcel(file);
  64. }
  65. }
  66. /**
  67. * @group :
  68. * @ver : 2008.11.20
  69. * @by : 정경화
  70. * @---------------------------------------------------
  71. * @type : function
  72. * @access : public
  73. * @desc : 출생 100일대상자 출력
  74. * @param : grid 명
  75. * @param :
  76. * @return :
  77. * @---------------------------------------------------
  78. */
  79. function fClickPrint(){
  80. grd_nbabyhoundlist.gridToInstance();
  81. model.removenode("/root/send/printdata");
  82. model.makeValue("/root/send/printdata","");
  83. model.copynode("/root/send/printdata", "/root/main");
  84. var nodecnt = getNodesetCount(xPrintListPath);
  85. if(nodecnt > 0){
  86. exeReportPreview("RPMNN02501", "XMLSTR");
  87. }else{
  88. messageBox("출력할 내용이","I004");
  89. }
  90. }