SPPID23100_급비변경관리.xrw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPID23100_급비변경관리.xrw
  4. * 수정이력
  5. * - 2008.12.03 / 최초작성 / 김상진
  6. * /root/hidden/sppid23100/cond/cdcls : opener종류(사후입원, 사후외래, 재원)
  7. * /root/hidden/sppid23100/cond/cdid : 이전에 선택된 급여구분
  8. * /root/hidden/sppid23100/rslt/cdid : 현재 선택된 급여구분
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  12. <xhtml:head>
  13. <xhtml:title>급비변경관리</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. </main>
  19. <send>
  20. </send>
  21. <init>
  22. <P0469list>
  23. <P0469/>
  24. </P0469list>
  25. </init>
  26. <hidden>
  27. <sppid23100>
  28. <cond>
  29. <cdnm/>
  30. <cdid/>
  31. </cond>
  32. <rslt>
  33. <cdid/>
  34. </rslt>
  35. </sppid23100>
  36. </hidden>
  37. </root>
  38. </instance>
  39. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. fInitialize(); // 화면을 초기화한다..
  43. ]]>
  44. </script>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  48. <script type="javascript">
  49. <![CDATA[
  50. // 화면을 초기화한다.
  51. function fInitialize() {
  52. model.removeNodeset("/root/init/P0469list/P0469");
  53. // 공통코드를 조회한다.
  54. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  55. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  56. zbcfGetCodeList( new Array("P0469"), new Array("/root/init/P0469list" ));
  57. model.refresh();
  58. var selectedCd = model.getValue("/root/hidden/sppid23100/cond/cdid");
  59. if (selectedCd) { // 기존에 선택된 사유
  60. for (var i = 1; i < grd_P0469.rows; i++) {
  61. if (selectedCd == model.getValue("/root/init/P0469list/P0469[" + i + "]/cdid")) {
  62. grd_P0469.row = i;
  63. i = grd_P0469.rows;
  64. }
  65. }
  66. }
  67. }
  68. }
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body pagewidth="240" pageheight="205" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:215px; height:170px; ">
  74. <datagrid id="grd_P0469" nodeset="/root/init/P0469list/P0469" caption="코드^코드명" colsep="^" colwidth="45, 158" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:215px; height:140px; ">
  75. <col ref="cdid" style="text-align:center; "/>
  76. <col ref="cdnm"/>
  77. <script type="javascript" ev:event="ondblclick">
  78. <![CDATA[
  79. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  80. var resncd = model.getValue( "/root/init/P0469list/P0469[" + grd_P0469.row + "]/cdid");
  81. model.setValue(opener.root.hidden.sppid23100.rslt.cdid, resncd);
  82. window.close(); // F5 실행시 IE를 종료시킨다.
  83. }
  84. ]]>
  85. </script>
  86. </datagrid>
  87. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; ">급여구분 변경</caption>
  88. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:215px; y2:26px; "/>
  89. </group>
  90. <group id="grp_btn" scroll="auto" style="left:0px; top:172px; width:215px; height:27px; ">
  91. <button id="btn_confirm" class="btn4_letter2" visibility="visible" style="left:94px; top:3px; width:56px; height:22px; ">
  92. <caption>확인</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  96. var resncd = model.getValue( "/root/init/P0469list/P0469[" + grd_P0469.row + "]/cdid");
  97. model.setValue(opener.root.hidden.sppid23100.rslt.cdid, resncd);
  98. } else {
  99. messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
  100. }
  101. window.close(); // F5 실행시 IE를 종료시킨다.
  102. ]]>
  103. </script>
  104. </button>
  105. <button id="btn_cancel" class="btn4_letter2" visibility="visible" style="left:155px; top:3px; width:56px; height:22px; ">
  106. <caption>취소</caption>
  107. <close ev:event="DOMActivate"/>
  108. </button>
  109. </group>
  110. </xhtml:body>
  111. </xhtml:html>