SMAHA03180_사전질의코드관리.xrw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. </item>
  27. </cautlst>
  28. </main>
  29. <send>
  30. <srchcautcd/>
  31. <srchcautcnts/>
  32. <save>
  33. <savecautcd/>
  34. <instcd/>
  35. <cautflag/>
  36. <userid/>
  37. <savecautans/>
  38. <cautcd/>
  39. </save>
  40. <anscautcd/>
  41. </send>
  42. <init>
  43. <baseinfo>
  44. <cautflaglst/>
  45. <answflaglst/>
  46. </baseinfo>
  47. </init>
  48. <hidden/>
  49. </root>
  50. </instance>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  55. <submission id="TXAHA03181" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  56. <submission id="TRZBC00101"/>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. fGetcautlst();
  60. ]]>
  61. </script>
  62. <submission id="TRAHA03181" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cautlst"/>
  63. </model>
  64. <script type="javascript">
  65. <![CDATA[
  66. function fGetcautlst(){
  67. submit("TRAHA03181")
  68. }
  69. /**
  70. * Save function,문진코드
  71. */
  72. function fSavecautCd() {
  73. var ret = false;
  74. if( messageBox("주의사항 정보를","Q002") == 6){
  75. model.setValue("/root/send/save/savecautcd" , grd_cautlst.getUpdateData());
  76. ret = submit("TXAHA03181");
  77. if(ret)
  78. {
  79. fGetcautlst();
  80. }
  81. return ret;
  82. }
  83. return ret;
  84. }
  85. ]]>
  86. </script>
  87. </xhtml:head>
  88. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  89. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  90. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">주의사항 관리</caption>
  91. </group>
  92. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  93. <datagrid id="grd_cautlst" nodeset="/root/main/cautlst/item" visibility="visible" caption="코드^주의사항 내용^남여구분^사용여부" colsep="^" colwidth="104, 876, 91, 80" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:1194px; height:668px; ">
  94. <col disabled="true" ref="caucd" style="left:0px; top:23px; width:100px; height:23px; "/>
  95. <col ref="caucnts" type="input" style="left:100px; top:23px; width:441px; height:23px; "/>
  96. <col ref="gndrflag" type="combo">
  97. <choices>
  98. <item>
  99. <label>공통</label>
  100. <value>C</value>
  101. </item>
  102. <item>
  103. <label>남자</label>
  104. <value>M</value>
  105. </item>
  106. <item>
  107. <label>여자</label>
  108. <value>F</value>
  109. </item>
  110. </choices>
  111. </col>
  112. <col checkvalue="Y,N" ref="useyn" type="checkbox" style="left:541px; top:23px; width:53px; height:23px; "/>
  113. </datagrid>
  114. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  115. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  116. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:87px; height:17px; ">항목코드 :</caption>
  117. <input id="ipt_cautcnts" ref="/root/send/srchcautcnts" class="input_search" style="left:342px; top:8px; width:340px; height:19px; "/>
  118. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  119. <caption>조회</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. model.removenode("/root/main/anslst");
  123. model.removenode("/root/main/cautlst");
  124. fGetcautlst();
  125. ]]>
  126. </script>
  127. </button>
  128. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  129. <caption id="caption5" class="search_name" style="left:250px; top:9px; width:87px; height:17px; ">항목내용 :</caption>
  130. <input id="input1" ref="/root/send/srchcautcd" class="input_search" style="left:107px; top:8px; width:123px; height:19px; "/>
  131. </group>
  132. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:100px; height:14px; ">주의사항 코드</caption>
  133. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  134. <button id="btn_grddel" class="btn2_letter3" style="left:1140px; top:50px; width:53px; height:19px; ">
  135. <caption>행삭제</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. //grd_cautlst.addStatus(grd_cautlst.row,"delete");
  139. deleteSelectedRows(grd_cautlst,true);
  140. ]]>
  141. </script>
  142. </button>
  143. <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
  144. <caption>행추가</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. grd_cautlst.addRow();
  148. var rowNum = grd_cautlst.rows - 1;
  149. model.setValue("/root/main/cautlst/item[" + rowNum + "]/gndrflag", "C");
  150. model.setValue("/root/main/cautlst/item[" + rowNum + "]/useyn", "Y");
  151. model.refresh();
  152. ]]>
  153. </script>
  154. </button>
  155. </group>
  156. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  157. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:2px; width:56px; height:22px; ">
  158. <caption>저장</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. fSavecautCd();
  162. fGetcautlst();
  163. ]]>
  164. </script>
  165. </button>
  166. </group>
  167. </xhtml:body>
  168. </xhtml:html>