SPLPC02100_세부파트팝업.xrw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPC02100_세부파트팝업.xrw
  4. * 설 명 : 세부파트 선택 공통 팝업화면
  5. * 설 계 자 : (주)에이씨케이 - 황상미
  6. * 작 성 자 : (주)에이씨케이 - 황상미
  7. * 작 성 일 : 2007.01.30
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <detlpartcnts>
  20. <detlpartlist>
  21. <instcd/>
  22. <detlpartcd/>
  23. <detlpartnm/>
  24. </detlpartlist>
  25. </detlpartcnts>
  26. </main>
  27. <send>
  28. </send>
  29. <init>
  30. </init>
  31. <hidden>
  32. </hidden>
  33. </root>
  34. </instance>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  37. <submission id="TRLPC02101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/detlpartcnts/detlpartlist"/>
  38. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. fExeInitialize();
  42. ]]>
  43. </script>
  44. <!-- public Script Start -->
  45. <script type="javascript">
  46. <![CDATA[
  47. /* @group : 세부파트선택 공통 팝업화면
  48. * @ver : 2007.01.30 (CMCDEV-0001)
  49. * @by : 황상미(ACK)
  50. * @-----------------------------------
  51. * @type : function
  52. * @access : public
  53. * @desc : 화면초기화 함수
  54. */
  55. function fExeInitialize(){
  56. model.resetInstanceNode("/root/main/detlpartcnts/detlpartlist");
  57. fGetRefData();
  58. }
  59. /* @group : 세부파트선택 공통 팝업화면
  60. * @ver : 2007.01.30 (CMCDEV-0001)
  61. * @by : 황상미(ACK)
  62. * @-----------------------------------
  63. * @type : function
  64. * @access : public
  65. * @desc : 세부파트코드조회 함수
  66. */
  67. function fGetRefData(){
  68. var vBaseCd = opener.model.getValue("/root/hidden/scrndata/basepartcd");
  69. if(vBaseCd == ""){
  70. messageBox("기본파트를 먼저", "C002");
  71. fExeClsScrn();
  72. }
  73. model.removeNodeset("/root/send");
  74. model.makeValue("/root/send/delflag", "0");
  75. model.makeValue("/root/send/instcd", opener.model.getValue("/root/hidden/userinfo/instcd"));
  76. model.makeValue("/root/send/basepartcd", vBaseCd);
  77. submit("TRLPC02101");
  78. }
  79. /* @group : 세부파트선택 공통 팝업화면
  80. * @ver : 2007.01.30 (CMCDEV-0001)
  81. * @by : 황상미(ACK)
  82. * @-----------------------------------
  83. * @type : function
  84. * @access : public
  85. * @desc : 세부파트선택 확인 함수
  86. */
  87. function fExeChoidetlPart(){
  88. var curRow = grd_detlpartlist.row;
  89. model.setValue(opener.root.hidden.scrndata.detlpartcd,
  90. model.getValue("/root/main/detlpartcnts/detlpartlist[" + curRow + "]/detlpartcd")); //메인화면 세부파트코드 setting
  91. model.setValue(opener.root.hidden.scrndata.detlpartnm,
  92. model.getValue("/root/main/detlpartcnts/detlpartlist[" + curRow + "]/detlpartnm")); //메인화면 세부파트코드 setting
  93. opener.model.refresh(); //메인화면 Refresh();
  94. model.close();
  95. }
  96. /* @group : 세부파트선택 공통 팝업화면
  97. * @ver : 2007.01.30 (CMCDEV-0001)
  98. * @by : 황상미(ACK)
  99. * @-----------------------------------
  100. * @type : function
  101. * @access : public
  102. * @desc : 화면 닫기 함수
  103. */
  104. function fExeClsScrn(){
  105. model.close();
  106. }
  107. ]]>
  108. </script>
  109. <!-- public Script End -->
  110. </model>
  111. </xhtml:head>
  112. <xhtml:body pagewidth="345" pageheight="410" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  113. <group id="group3" style="left:0px; top:380px; width:325px; height:27px; ">
  114. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:325px; y2:0px; "/>
  115. <button id="btn_cls" class="btn4_letter2" style="left:269px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  116. <caption>닫기</caption>
  117. <script type="javascript" ev:event="onclick">
  118. <![CDATA[
  119. fExeClsScrn();
  120. ]]>
  121. </script>
  122. </button>
  123. <button id="btn_cfm" class="btn4_letter2" style="left:210px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  124. <caption>확인</caption>
  125. <script type="javascript" ev:event="onclick">
  126. <![CDATA[
  127. fExeChoidetlPart();
  128. ]]>
  129. </script>
  130. </button>
  131. </group>
  132. <group id="grp_popup" style="left:0px; top:0px; width:325px; height:380px; ">
  133. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:121px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">세부파트</caption>
  134. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:325px; y2:25px; "/>
  135. <datagrid id="grd_detlpartlist" nodeset="/root/main/detlpartcnts/detlpartlist" caption="병원코드^세부파트코드^세부파트명칭" colwidth="0,100, 200" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:30px; width:325px; height:347px; border-color:#c0c0c0; ">
  136. <col ref="hospcd"/>
  137. <col ref="detlpartcd"/>
  138. <col ref="detlpartnm"/>
  139. <script type="javascript" ev:event="ondblclick">
  140. <![CDATA[
  141. fExeChoidetlPart();
  142. ]]>
  143. </script>
  144. </datagrid>
  145. </group>
  146. </xhtml:body>
  147. </xhtml:html>