SPPIZ01500_의약분업예외사유코드조회.xrw 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPIZ01500_의약분업예외사유코드조회.xrw
  4. * 수정이력
  5. * - 2007.10.01 / 최초작성 / 정주미
  6. *
  7. -->
  8. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>의약분업 예외사유 코드조회</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. </main>
  17. <send>
  18. </send>
  19. <init>
  20. <P0150list>
  21. <P0150/>
  22. </P0150list>
  23. </init>
  24. <hidden>
  25. <sppiz01500>
  26. <cond>
  27. <cdid/>
  28. </cond>
  29. <rslt>
  30. <cdid/>
  31. </rslt>
  32. </sppiz01500>
  33. </hidden>
  34. </root>
  35. </instance>
  36. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. fInitialize(); // 화면을 초기화한다..
  40. ]]>
  41. </script>
  42. </model>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. // 화면을 초기화한다.
  48. function fInitialize() {
  49. model.removeNodeset("/root/init/P0150list/P0150");
  50. // 공통코드를 조회한다.
  51. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  52. zbcfGetCodeList( new Array("P0150"), new Array("/root/init/P0150list"), false ); // minimum을 'false'로 설정한 경우에는 코드의 모든속성을 가져온다.
  53. model.refresh();
  54. for (var i = 1; i < grd_hosinresn.rows; i++) {
  55. var detldesc = model.getValue("/root/init/P0150list/P0150[" + i + "]/detldesc");
  56. if (detldesc) {
  57. model.setValue("/root/init/P0150list/P0150[" + i + "]/detldesc", detldesc.substr(detldesc.length - 2, 2));
  58. }
  59. }
  60. model.refresh();
  61. grd_hosinresn.resizeCells();
  62. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  63. var selectedCd = model.getValue("/root/hidden/sppiz01500/cond/cdid");
  64. for (var i = 1; i < grd_hosinresn.rows; i++) {
  65. if (selectedCd == model.getValue("/root/init/P0150list/P0150[" + i + "]/cdid")) {
  66. grd_hosinresn.row = i;
  67. i = grd_hosinresn.rows;
  68. }
  69. }
  70. }
  71. }
  72. ]]>
  73. </script>
  74. </xhtml:head>
  75. <xhtml:body pagewidth="688" pageheight="541" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  76. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:672px; height:514px; ">
  77. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:69px; height:14px; ">예외사유</caption>
  78. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:672px; y2:25px; "/>
  79. <datagrid id="grd_hosinresn" nodeset="/root/init/P0150list/P0150" autoresize="true" caption="구분^코드^사유명칭" colsep="^" colwidth="40, 30, 573" dataheight="25" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:672px; height:484px; ">
  80. <col ref="detldesc"/>
  81. <col ref="cdid"/>
  82. <col ref="cdnm"/>
  83. <script type="javascript" ev:event="ondblclick">
  84. <![CDATA[
  85. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점 UID와 비교하여 변경되었는지 여부를 반환
  86. var exptresn = model.getValue( "/root/init/P0150list/P0150[" + grd_hosinresn.row + "]/cdid");
  87. model.setValue(opener.root.hidden.sppiz01500.rslt.cdid, exptresn);
  88. window.close(); // F5 실행시 IE를 종료시킨다.
  89. }
  90. ]]>
  91. </script>
  92. </datagrid>
  93. </group>
  94. <group id="grp_btn" scroll="auto" style="left:0px; top:514px; width:672px; height:27px; ">
  95. <button id="btn_confirm" class="btn4_letter2" style="left:557px; top:5px; width:56px; height:22px; ">
  96. <caption>확인</caption>
  97. <script type="javascript" ev:event="DOMActivate">
  98. <![CDATA[
  99. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  100. var exptresn = model.getValue( "/root/init/P0150list/P0150[" + grd_hosinresn.row + "]/cdid");
  101. model.setValue(opener.root.hidden.sppiz01500.rslt.cdid, exptresn);
  102. } else {
  103. messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
  104. }
  105. window.close(); // F5 실행시 IE를 종료시킨다.
  106. ]]>
  107. </script>
  108. </button>
  109. <button id="btn_cancel" class="btn4_letter2" style="left:616px; top:5px; width:56px; height:22px; ">
  110. <caption>취소</caption>
  111. <close ev:event="DOMActivate"/>
  112. </button>
  113. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:672px; y2:0px; "/>
  114. </group>
  115. </xhtml:body>
  116. </xhtml:html>