SPMNP01501.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /* ---------------------------------------------------------------------
  2. 수술코드 조회 팝업 (SPMNP01501.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By taebum
  6. : 2008-10-26 오후 2:44:31
  7. ---------------------------------------------------------------------- */
  8. /**
  9. * @group :
  10. * @ver : 2008-10-26 오후 2:44:38
  11. * @by :
  12. * @---------------------------------------------------
  13. * @type : function
  14. * @access : public
  15. * @desc : 초기화
  16. * @param :
  17. * @return :
  18. * @---------------------------------------------------
  19. */
  20. function fInit(){
  21. model.removeNodeSet("/root/main/opnmLists/opcdlists");
  22. datagrid1.refresh();
  23. model.removenode("/root/send");
  24. model.makeValue("/root/send/flag" , "TEMP" );
  25. //대분류코드 리스트 조회
  26. submit("TRMNP01506");
  27. //집도의 리스트 조회
  28. model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrp1","%");
  29. model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrp2","");
  30. model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrp3","");
  31. model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrpkname","전 체");
  32. model.makeValue("/root/hidden/condition/lcombolists/lists1/opgrpename","");
  33. combo1.refresh();
  34. model.setValue("/root/hidden/condition/searchcond/opgrp1", "%");
  35. model.setValue("/root/hidden/condition/searchcond/codeflag" , "knm");
  36. model.refresh();
  37. }
  38. /**
  39. * @group :
  40. * @ver : 2007.10.17
  41. * @by : Grace
  42. * @---------------------------------------------------
  43. * @type : function
  44. * @access : public
  45. * @desc : 집도과 클릭시 해당 집도의 정보 조회
  46. * @param :
  47. * @return :
  48. * @---------------------------------------------------
  49. */
  50. function fValueChangedDeptCombo(){
  51. var sLCode = model.getValue("/root/hidden/condition/searchcond/opgrp1");
  52. if(sLCode != "%" && sLCode != "undefined" && sLCode != "" && sLCode != null){
  53. model.removenode("/root/send");
  54. model.makeValue("/root/send/lcode" ,sLCode);
  55. submit("TRMNP01507");
  56. model.makeValue("/root/hidden/condition/scombolists/lists2/opgrp1","%");
  57. model.makeValue("/root/hidden/condition/scombolists/lists2/opgrp2","%");
  58. model.makeValue("/root/hidden/condition/scombolists/lists2/opgrp3","");
  59. model.makeValue("/root/hidden/condition/scombolists/lists2/opgrpkname","전 체");
  60. model.makeValue("/root/hidden/condition/scombolists/lists2/opgrpename","");
  61. combo2.refresh();
  62. model.setValue("/root/hidden/condition/searchcond/opgrp2", "%");
  63. }
  64. }
  65. /**
  66. * 조회
  67. *
  68. */
  69. function fOnClickSearchBtn(){
  70. model.removenode("/root/send");
  71. var sLcode = model.getValue("/root/hidden/condition/searchcond/opgrp1");
  72. var sScode = model.getValue("/root/hidden/condition/searchcond/opgrp2");
  73. var sCodeflag = model.getValue("/root/hidden/condition/searchcond/codeflag");
  74. var sCodenm = model.getValue("/root/hidden/condition/searchcond/codenm");
  75. if(sLcode == "%"){
  76. sScode = "%"
  77. }
  78. if((sLcode == null ||sLcode =="" ||sLcode =="undefined"||sLcode =="%" ) &&
  79. (sCodenm == "" || sCodenm == "undefined" || sCodenm == null)){
  80. model.alert("대분류 또는 수술코드 또는 명칭을 입력하셔야 합니다.");
  81. return;
  82. }
  83. if((sCodeflag == "" || sCodeflag == null || sCodeflag == "undefined") &&
  84. (sCodenm =="" || sCodenm == null || sCodenm == "undefined")){
  85. model.alert("수술코드 또는 수술명을 선택하셔야 합니다.");
  86. return;
  87. }
  88. model.makeValue("/root/send/opgrp1" ,sLcode);
  89. model.makeValue("/root/send/opgrp2" ,sScode);
  90. model.makeValue("/root/send/codeflag" ,sCodeflag);
  91. model.makeValue("/root/send/codenm" ,sCodenm);
  92. model.makeValue("/root/send/temp" ,"temp");
  93. model.removeNodeSet("/root/main/opnmLists/opcdlists");
  94. datagrid1.refresh();
  95. submit("TRMNP01508");
  96. }
  97. /**
  98. * Double click
  99. *
  100. */
  101. function fOnDoubleClick(){
  102. var iRow = datagrid1.row;
  103. if(iRow != null && iRow > 0){
  104. var sOpcd = model.getValue("/root/main/opnmLists/opcdlists["+iRow+"]/opcd");
  105. var sOpknm = model.getValue("/root/main/opnmLists/opcdlists["+iRow+"]/opkname");
  106. var sOpEnm = model.getValue("/root/main/opnmLists/opcdlists["+iRow+"]/opename");
  107. var sSendData = sOpcd + "▧" + sOpknm + "▧" + sOpEnm;
  108. opener.javascript.setParameter("SPMNP01501_ResultData",sSendData);
  109. }
  110. window.close();
  111. }