SPAHA03180_사전질의코드관리.xrw 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB00100.xrw
  4. * 설 명 : 검사코드관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 박원희
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>주의사항코드 관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <pkgcdlst/>
  20. <cautlst>
  21. <item>
  22. <caucd/>
  23. <caucnts/>
  24. <gndrflag/>
  25. <useyn/>
  26. <selyn/>
  27. </item>
  28. </cautlst>
  29. </main>
  30. <send>
  31. <srchcautcd/>
  32. <srchcautcnts/>
  33. <save>
  34. <savecautcd/>
  35. <instcd/>
  36. <cautflag/>
  37. <userid/>
  38. <savecautans/>
  39. <cautcd/>
  40. </save>
  41. <anscautcd/>
  42. </send>
  43. <init>
  44. <baseinfo>
  45. <cautflaglst/>
  46. <answflaglst/>
  47. </baseinfo>
  48. </init>
  49. <hidden/>
  50. </root>
  51. </instance>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  56. <submission id="TXAHA03181" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  57. <submission id="TRZBC00101"/>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. fGetcautlst();
  61. ]]>
  62. </script>
  63. <submission id="TRAHA03181" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cautlst"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. function fGetcautlst(){
  68. submit("TRAHA03181")
  69. }
  70. /**
  71. * Save function,문진코드
  72. */
  73. function fSavecautCd() {
  74. var ret = false;
  75. if( messageBox("주의사항 정보를","Q002") == 6){
  76. model.setValue("/root/send/save/savecautcd" , grd_cautlst.getUpdateData());
  77. ret = submit("TXAHA03181");
  78. if(ret)
  79. {
  80. fGetcautlst();
  81. }
  82. return ret;
  83. }
  84. return ret;
  85. }
  86. ]]>
  87. </script>
  88. </xhtml:head>
  89. <xhtml:body pagewidth="600" pageheight="800" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  90. <group id="grp_tle" style="left:0px; top:0px; width:600px; height:13px; ">
  91. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">패키지별 주의사항 관리</caption>
  92. </group>
  93. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:600px; height:744px; ">
  94. <datagrid id="grd_cautlst" nodeset="/root/main/cautlst/item" visibility="visible" caption="선택^코드^주의사항 내용^남여구분^사용여부" colsep="^" colwidth="52, 69, 282, 78, 80" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:600px; height:668px; ">
  95. <col ref="selyn" type="checkbox"/>
  96. <col disabled="true" ref="caucd" style="left:0px; top:23px; width:100px; height:23px; "/>
  97. <col disabled="true" ref="caucnts" style="left:100px; top:23px; width:441px; height:23px; "/>
  98. <col disabled="true" ref="gndrflag" type="combo" style="text-align:center; ">
  99. <choices>
  100. <item>
  101. <label>공통</label>
  102. <value>C</value>
  103. </item>
  104. <item>
  105. <label>남자</label>
  106. <value>M</value>
  107. </item>
  108. <item>
  109. <label>여자</label>
  110. <value>F</value>
  111. </item>
  112. </choices>
  113. </col>
  114. <col checkvalue="Y,N" disabled="true" ref="useyn" type="checkbox" style="left:541px; top:23px; width:53px; height:23px; "/>
  115. </datagrid>
  116. <group id="grp_sea" style="left:0px; top:10px; width:600px; height:35px; vertical-align:top; ">
  117. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:600px; height:35px; "/>
  118. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:87px; height:17px; ">항목코드 :</caption>
  119. <input id="ipt_cautcnts" ref="/root/send/srchcautcnts" class="input_search" style="left:284px; top:7px; width:161px; height:19px; "/>
  120. <button id="btn_search" class="btn1_letter2" style="left:530px; top:5px; width:56px; height:22px; ">
  121. <caption>조회</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. model.removenode("/root/main/anslst");
  125. model.removenode("/root/main/cautlst");
  126. fGetcautlst();
  127. ]]>
  128. </script>
  129. </button>
  130. <caption id="caption5" class="search_name" style="left:193px; top:8px; width:87px; height:17px; ">항목내용 :</caption>
  131. <input id="input1" ref="/root/send/srchcautcd" class="input_search" style="left:107px; top:8px; width:78px; height:19px; "/>
  132. </group>
  133. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:100px; height:14px; ">주의사항 코드</caption>
  134. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:600px; y2:70px; "/>
  135. </group>
  136. <group id="grp_btn" style="left:0px; top:757px; width:600px; height:27px; ">
  137. <button id="btn_save" class="btn4_letter2" style="left:540px; top:2px; width:56px; height:22px; ">
  138. <caption>확인</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. model.makeNode("/root/temp/cautlst");
  142. model.makeNode("/root/main/pkgtestcdlst/itemcaut");
  143. opener.model.removeNodeset("/root/main/pkgtestcdlst/itemcaut");
  144. var desCnt = parseInt(opener.model.getXPathValue("count(/root/main/pkgtestcdlst/itemcaut)"));
  145. for(var i = 1; i < grd_cautlst.rows; i++)
  146. {
  147. if(model.getValue("/root/main/cautlst/item[" + i + "]/selyn") != "true")
  148. {
  149. continue;
  150. }
  151. desCnt = desCnt + 1;
  152. opener.grd_cautlst.addRow();
  153. opener.model.makeValue("/root/main/pkgtestcdlst/itemcaut[" + desCnt + "]/healexamflag", opener.model.getValue("/root/send/srchhealexamflag" ));
  154. opener.model.makeValue("/root/main/pkgtestcdlst/itemcaut[" + desCnt + "]/pkgflag", opener.model.getValue("/root/send/srchpkgflag"));
  155. opener.model.makeValue("/root/main/pkgtestcdlst/itemcaut[" + desCnt + "]/pkgcd", opener.model.getValue("/root/send/srchpkgcd2"));
  156. opener.model.makeValue("/root/main/pkgtestcdlst/itemcaut[" + desCnt + "]/caucd", model.getValue("/root/main/cautlst/item[" + i + "]/caucd"));
  157. opener.model.makeValue("/root/main/pkgtestcdlst/itemcaut[" + desCnt + "]/caucnts", model.getValue("/root/main/cautlst/item[" + i + "]/caucnts"));
  158. opener.model.makeValue("/root/main/pkgtestcdlst/itemcaut[" + desCnt + "]/gndrflag", model.getValue("/root/main/cautlst/item[" + i + "]/gndrflag"));
  159. opener.model.makeValue("/root/main/pkgtestcdlst/itemcaut[" + desCnt + "]/useyn", model.getValue("/root/main/cautlst/item[" + i + "]/useyn"));
  160. }
  161. window.close();
  162. ]]>
  163. </script>
  164. </button>
  165. </group>
  166. </xhtml:body>
  167. </xhtml:html>