SMLVF00100_검증소견코드관리.xrw 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF00800_검증소견코드관리.xrw
  4. * 설 명 : 검증소견코드관리
  5. * 설 계 자 : (주)에이씨케이 - 송요셉
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2007.07.10
  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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <readcmtlist>
  20. <readcmtcd/>
  21. <readcmttitl/>
  22. <readcmtcnts/>
  23. </readcmtlist>
  24. <readcmtcnts/>
  25. </main>
  26. <send>
  27. <readkind/>
  28. <search/>
  29. <data1/>
  30. </send>
  31. <init>
  32. </init>
  33. <hidden>
  34. <ref>
  35. <readkind>0</readkind>
  36. <search/>
  37. </ref>
  38. </hidden>
  39. </root>
  40. </instance>
  41. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  42. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  43. <script ev:event="xforms-ready" type="javascript">
  44. <![CDATA[
  45. model.removeNodeset("/root/main/readcmtlist");
  46. model.refresh();
  47. ]]>
  48. </script>
  49. <submission id="TRLVF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/readcmtlist"/>
  50. <submission id="TXLVF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance"/>
  51. </model>
  52. <script type="javascript">
  53. <![CDATA[
  54. //초기화
  55. function fSetInit() {
  56. model.reset();
  57. }
  58. //행추가
  59. function fInsRowAdd(pGridId) {
  60. pGridId.additem();
  61. }
  62. //행삭제
  63. function fInsRowDel() {
  64. readcmtlist.rowStatus(readcmtlist.row) = 4;
  65. }
  66. //검색텍스트 박스 활성화
  67. function fviewtext() {
  68. model.setValue("/root/hidden/ref/search" , '');
  69. model.refresh();
  70. if(model.getValue("/root/hidden/ref/readkind") == 0){
  71. input1.visible = false;
  72. }
  73. else{
  74. input1.visible = true;
  75. }
  76. }
  77. function fgetreadlsit() {
  78. model.setValue("/root/send/readkind", model.getValue("/root/hidden/ref/readkind"));
  79. model.setValue("/root/send/search", model.getValue("/root/hidden/ref/search "));
  80. model.setValue("/root/main/readcmtcnts", '');
  81. submit("TRLVF00101");
  82. checkKeyColumn("readcmtlist");
  83. }
  84. function fExeReadCmtList() {
  85. for(i=1; i<readcmtlist.rows; i++){
  86. if(model.getValue("/root/main/readcmtlist["+i+"]/readcmtcnts") ==''){
  87. alert(model.getValue("/root/main/readcmtlist["+i+"]/readcmttitl") + "의 소견상세내용이 없습니다.");
  88. readcmtlist.rowStatus(i) = 0;
  89. }
  90. }
  91. model.setValue("/root/send/data1", readcmtlist.getUpdateData());
  92. //alert(model.getValue("/root/send/data1"));
  93. submit("TXLVF00101");
  94. fgetreadlsit();
  95. }
  96. function fviewcnts() {
  97. model.setValue("/root/main/readcmtcnts" , model.getValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmtcnts"));
  98. model.refresh();
  99. //readcmtcnts.refresh();
  100. }
  101. function fupcnts() {
  102. model.setValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmtcnts", model.getValue("/root/main/readcmtcnts"));
  103. model.refresh();
  104. if(readcmtlist.rowStatus(readcmtlist.row)==0){
  105. readcmtlist.rowStatus(readcmtlist.row) = 2;
  106. }
  107. }
  108. ]]>
  109. </script>
  110. </xhtml:head>
  111. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  112. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  113. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:445px; y2:70px; "/>
  114. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">판독소견목록</caption>
  115. <button id="button2" class="btn2_letter3" style="left:391px; top:50px; width:53px; height:19px; ">
  116. <caption>행추가</caption>
  117. <script ev:event="DOMActivate" type="javascript">
  118. <![CDATA[
  119. fInsRowAdd(readcmtlist);
  120. ]]>
  121. </script>
  122. </button>
  123. <button id="button1" class="btn2_letter3" style="left:335px; top:50px; width:53px; height:19px; ">
  124. <caption>행삭제</caption>
  125. <script ev:event="DOMActivate" type="javascript">
  126. <![CDATA[
  127. fInsRowDel();
  128. ]]>
  129. </script>
  130. </button>
  131. <datagrid id="readcmtlist" nodeset="/root/main/readcmtlist" caption="판독소견코드^판독소견코드명^소견" colsep="^" colwidth="120, 300, 200" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:445px; height:669px; ">
  132. <col ref="readcmtcd" type="input" _key="true" style="text-align:center; "/>
  133. <col ref="readcmttitl" type="input" _key="true"/>
  134. <col ref="readcmtcnts" type="input" visibility="hidden"/>
  135. <script ev:event="onclick" type="javascript">
  136. <![CDATA[
  137. fviewcnts();
  138. ]]>
  139. </script>
  140. </datagrid>
  141. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  142. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  143. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  144. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  145. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
  146. <caption>조회</caption>
  147. <script ev:event="DOMActivate" type="javascript">
  148. <![CDATA[
  149. fgetreadlsit();
  150. ]]>
  151. </script>
  152. </button>
  153. <select1 id="cmb_SectCd" ref="/root/hidden/ref/readkind" appearance="minimal" itemcount="10" style="left:108px; top:8px; width:162px; height:19px; ">
  154. <script ev:event="xforms-value-changed" type="javascript">
  155. <![CDATA[
  156. fviewtext();
  157. ]]>
  158. </script>
  159. <choices>
  160. <item>
  161. <label>전체</label>
  162. <value>0</value>
  163. </item>
  164. <item>
  165. <label>코드</label>
  166. <value>1</value>
  167. </item>
  168. <item>
  169. <label>코드명</label>
  170. <value>2</value>
  171. </item>
  172. </choices>
  173. </select1>
  174. <input id="input1" ref="/root/hidden/ref/search" visibility="hidden" style="left:285px; top:8px; width:162px; height:19px; "/>
  175. </group>
  176. <caption id="caption3" class="tit_2" style="left:460px; top:55px; width:131px; height:13px; ">소견상세내용</caption>
  177. <line id="line2" class="line_1" style="x1:460px; y1:70px; x2:1190px; y2:70px; "/>
  178. <textarea id="readcmtcnts" ref="/root/main/readcmtcnts" style="left:460px; top:75px; width:730px; height:669px; font-family:굴림체; font-size:20; font-weight:normal; ">
  179. <script ev:event="xforms-value-changed" type="javascript">
  180. <![CDATA[
  181. fupcnts();
  182. ]]>
  183. </script>
  184. </textarea>
  185. </group>
  186. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  187. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  188. <button id="btn_Save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  189. <caption>저장</caption>
  190. <script ev:event="DOMActivate" type="javascript">
  191. <![CDATA[
  192. fExeReadCmtList();
  193. ]]>
  194. </script>
  195. </button>
  196. <button id="btn_Init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  197. <caption>초기화</caption>
  198. <script ev:event="DOMActivate" type="javascript">
  199. <![CDATA[
  200. fSetInit();
  201. ]]>
  202. </script>
  203. </button>
  204. </group>
  205. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  206. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">판독소견코드관리</caption>
  207. </group>
  208. </xhtml:body>
  209. </xhtml:html>