SPMNN008.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. 분만장부(SMMNN00800_분만장부.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. var xPartRtnListPath = "/root/main/womanlist/womanlist";
  7. /**
  8. * @group :
  9. * @ver : 2007.06.15
  10. * @by : 최경용
  11. * @---------------------------------------------------
  12. * @type : function
  13. * @access : public
  14. * @desc : 초기화 작업을 합니다.
  15. * @param :
  16. * @param :
  17. * @return :
  18. * @---------------------------------------------------
  19. */
  20. function fInitialize(){
  21. model.setValue("/root/main/cond/bthddfromdd", getCurrentDate().substr(0,6) + "01");
  22. model.setValue("/root/main/cond/bthddtodd", getCurrentDate());
  23. fSearchClick();
  24. model.refresh();
  25. }
  26. /**
  27. * @group :
  28. * @ver : 2007.06.15
  29. * @by : 최경용
  30. * @---------------------------------------------------
  31. * @type : function
  32. * @access : public
  33. * @desc : 사용자 리스트 조회
  34. * @param :
  35. * @param :
  36. * @return :
  37. * @---------------------------------------------------
  38. */
  39. function fSearchClick(){
  40. model.copyNode("/root/send/reqdata", "/root/main/cond");
  41. submit("TRMNN00801");
  42. }
  43. /**
  44. * @group :
  45. * @ver : 2007.07.09
  46. * @by : 최경용
  47. * @---------------------------------------------------
  48. * @type : function
  49. * @access : public
  50. * @desc : 분만실 환자 정보 더블클릭시
  51. * @param :
  52. * @param :
  53. * @return :
  54. * @---------------------------------------------------
  55. */
  56. function fGridDbClick(row){
  57. if( grd_wardpatlist.row > 1 ) {
  58. condparam = "I" + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/pid")
  59. + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/indd")
  60. + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/cretno")
  61. + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/seqno")
  62. + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/instcd");
  63. setParameter("condparam", condparam);
  64. modal("SPMMO08900", "1", "450", "400");
  65. }
  66. var pid = setParameter("pid",model.getValue("/root/main/partrtn/partrtnlist[" + row + "]/pid"));
  67. var patnm = setParameter("patnm",model.getValue("/root/main/partrtn/partrtnlist[" + row + "]/patnm"));
  68. modal("SMMNN00700");
  69. }
  70. function fSaveExcel(grd){
  71. file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  72. if(file != "") {
  73. grd.saveExcel(file);
  74. }
  75. }
  76. /**
  77. * @group :
  78. * @ver : 2007.06.23
  79. * @by : 최경용
  80. * @---------------------------------------------------
  81. * @type : function
  82. * @access : public
  83. * @desc : Excel파일로 저장
  84. * @param : grid 명
  85. * @param :
  86. * @return :
  87. * @---------------------------------------------------
  88. */
  89. function fSaveExcel(){
  90. file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  91. if(file != "") {
  92. grd_wardpatlist.saveExcel(file);
  93. }
  94. }
  95. /**
  96. * @group :
  97. * @ver : 2007.06.23
  98. * @by : 최경용
  99. * @---------------------------------------------------
  100. * @type : function
  101. * @access : public
  102. * @desc : 분만장부 출력
  103. * @param : grid 명
  104. * @param :
  105. * @return :
  106. * @---------------------------------------------------
  107. */
  108. function fClickPrint(){
  109. model.removenode("/root/send/printdata");
  110. //send 재구성
  111. model.makeValue("/root/send/printdata/","");
  112. model.copynode("/root/send/printdata", "/root/main");
  113. exeReportPreview("RPMNN00801", "XMLSTR");
  114. }