SSMNP00300.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /* ---------------------------------------------------------------------
  2. 과별 집도의별 수술명별 수술방 사용시간 (SSMNP00300.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By taebum
  6. : 2008-10-23 오후 4:51:47
  7. ---------------------------------------------------------------------- */
  8. /**
  9. * @group :
  10. * @ver : 2008-09-28 오후 4:07:46
  11. * @by :
  12. * @---------------------------------------------------
  13. * @type : function
  14. * @access : public
  15. * @desc : 초기화
  16. * @param :
  17. * @return :
  18. * @---------------------------------------------------
  19. */
  20. function fInit(){
  21. model.setValue("/root/hidden/condition/frdd", getCurrentDate());
  22. model.setValue("/root/hidden/condition/todd" , getCurrentDate());
  23. model.refresh();
  24. model.setValue("/root/init/tab","day");
  25. model.removeNodeSet("/root/main/daylists/deptDoctDaylist");
  26. datagrid1.refresh();
  27. model.removeNodeSet("/root/main/doctlists/deptDoctDetaillist");
  28. datagrid4.refresh();
  29. model.removenode("/root/send");
  30. model.makeValue("/root/send/flag" , "X" );
  31. model.makeValue("/root/send/searchitem", "XX" );
  32. model.makeValue("/root/send/deptflag" , "011" );
  33. submit("TRMNP00107");
  34. //수술방 조회
  35. model.removenode("/root/send");
  36. model.makeValue("/root/send/flag" , "userid" );
  37. model.makeValue("/root/send/searchitem" , "00009006" );
  38. submit("TRMNP00301", false); // 수술실의 코드와 명칭을 가져온다.
  39. addComboItem("combo1" , "전 체", "%", "above" );
  40. addComboItem("combo2" , "전 체", "%", "above" );
  41. model.setValue("/root/hidden/condition/oproomcd", "%");
  42. model.setValue("/root/hidden/condition/deptcd", "%");
  43. model.refresh();
  44. }
  45. function fOnClickSearchBtn(){
  46. model.removenode("/root/send");
  47. model.makeValue("/root/send/frdd" ,model.getValue("/root/hidden/condition/frdd"));
  48. model.makeValue("/root/send/todd" ,model.getValue("/root/hidden/condition/todd"));
  49. model.makeValue("/root/send/ssflag1" ,model.getValue("/root/hidden/condition/ssflag1"));
  50. model.makeValue("/root/send/ssflag2" ,model.getValue("/root/hidden/condition/ssflag2"));
  51. model.makeValue("/root/send/ssflag3" ,model.getValue("/root/hidden/condition/ssflag3"));
  52. model.makeValue("/root/send/etcflag1",model.getValue("/root/hidden/condition/etcflag1"));
  53. model.makeValue("/root/send/etcflag2",model.getValue("/root/hidden/condition/etcflag2"));
  54. model.makeValue("/root/send/etcflag3",model.getValue("/root/hidden/condition/etcflag3"));
  55. model.makeValue("/root/send/deptcd" ,model.getValue("/root/hidden/condition/deptcd"));
  56. model.makeValue("/root/send/oproomcd",model.getValue("/root/hidden/condition/oproomcd"));
  57. model.makeValue("/root/send/opcd" ,model.getValue("/root/hidden/condition/opcd"));
  58. if(model.getValue("/root/send/frdd") == "" || model.getValue("/root/send/todd") == ""){
  59. messageBox("시작일, 종료일은 필수입력 사항입니다.", "I000");
  60. return;
  61. }
  62. var sCurrentTab = model.getValue("/root/init/tab");
  63. if(sCurrentTab == "day"){
  64. model.removeNodeSet("/root/main/daylists/deptDoctDaylist");
  65. datagrid1.refresh();
  66. submit("TRSNP00300");
  67. }else if(sCurrentTab == "doct"){
  68. model.removeNodeSet("/root/main/doctlists/deptDoctDetaillist");
  69. datagrid4.refresh();
  70. submit("TRSNP00301");
  71. }
  72. }
  73. /**
  74. * @group :
  75. * @ver : 2007.10.17
  76. * @by : Grace
  77. * @---------------------------------------------------
  78. * @type : function
  79. * @access : public
  80. * @desc : Exel 저장
  81. * @param :
  82. * @return :
  83. * @---------------------------------------------------
  84. */
  85. function fSaveExcel(){
  86. fileName = window.fileDialog("save", ",", false, "과별집도의별수술건수통계_일자별_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  87. if (fileName != "" && fileName != null) {
  88. datagrid3.saveExcel(fileName, "SheetName", true, true, "", "", false);
  89. }
  90. }
  91. /*
  92. * 수술코드 조회 팝업
  93. *
  94. */
  95. function fClickOpCodeHelp(){
  96. var xpos = event.screenX;
  97. var ypos = event.screenY-300;
  98. modal("SPMNP01501", 1, xpos, ypos);
  99. var sResult = getParameter("SPMNP01501_ResultData");
  100. setParameter("SPMNP01501_ResultData","");
  101. if(sResult != "" && sResult != null && sResult != "undefined"){
  102. var sResultArr = sResult.split("▧");
  103. model.setValue("/root/hidden/condition/opcd", sResultArr[0]);
  104. model.setValue("/root/hidden/condition/opnm", sResultArr[1]);
  105. input3.refresh();
  106. input2.refresh();
  107. }
  108. }