SMLVF00300_검증자동소견관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF01300_사용자기능관리.xrw
  4. * 설 명 : 사용자기능관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2006.12.21
  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. <usercmtlist>
  20. <autcmtcd/>
  21. <judgrank/>
  22. <tclsnm/>
  23. <cmtjudgmthd/>
  24. <judgrslt/>
  25. <readcmttitl/>
  26. <tclscd/>
  27. <readcmtcd/>
  28. </usercmtlist>
  29. <tclslist>
  30. <tclsnm/>
  31. <tclscd/>
  32. </tclslist>
  33. <readcmtlist>
  34. <readcmttitl/>
  35. <readcmtcd/>
  36. </readcmtlist>
  37. </main>
  38. <send>
  39. <codeflag/>
  40. <testlrgcd/>
  41. <testmdlcd/>
  42. <userid/>
  43. <data1/>
  44. </send>
  45. <init>
  46. </init>
  47. <hidden>
  48. <ref>
  49. <testlrgcd>00</testlrgcd>
  50. <testmdlcd>00</testmdlcd>
  51. </ref>
  52. <userid/>
  53. </hidden>
  54. </root>
  55. </instance>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. model.setValue("/root/send/userid", getUserId());
  61. model.setValue("/root/send/codeflag", "0104|0102|"); //0104 대분류 0102 중분류
  62. model.removeNodeset("/root/main/tclslist");
  63. submit("TRLZZ00101");
  64. submit("TRLVF00301");
  65. fuserlist();
  66. ]]>
  67. </script>
  68. <submission id="TRLZZ00101" ref="/root/send/codeflag" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/LB"/>
  69. <submission id="TRLVF00301" ref="/root/send/codeflag" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/readcmtlist"/>
  70. <submission id="TRLVF00302" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/tclslist"/>
  71. <submission id="TRLVF00303" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/usercmtlist"/>
  72. <submission id="TXLVF00301" ref="/root/send/data1" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  73. </model>
  74. <script type="javascript">
  75. <![CDATA[
  76. function fuserlist(){
  77. submit("TRLVF00303");
  78. checkKeyColumn("usercmtlist");
  79. }
  80. function ftestcombo(){
  81. var CD = model.getValue("/root/hidden/ref/testlrgcd");
  82. if(CD == "00"){
  83. testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  84. model.setvalue("/root/hidden/ref/testmdlcd" , "00");
  85. testmdlcd.disabled = true;
  86. }
  87. else{
  88. testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ CD +"']";
  89. model.setvalue("/root/hidden/ref/testmdlcd" , "00");
  90. testmdlcd.disabled = false;
  91. }
  92. testmdlcd.refresh();
  93. }
  94. function fGettclstlist() {
  95. model.removenodeset("/root/main/tclslist");
  96. model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
  97. model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/ref/testmdlcd"));
  98. submit("TRLVF00302");
  99. }
  100. function fdatemove() {
  101. if(tclslist.row != -1 && readcmtlist.row != -1){
  102. if(usercmtlist.row == -1){
  103. faddrow();
  104. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/tclscd" ,model.getValue("/root/main/tclslist["+tclslist.row+"]/tclscd"));
  105. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/tclsnm" ,model.getValue("/root/main/tclslist["+tclslist.row+"]/tclsnm"));
  106. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/readcmttitl" ,model.getValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmttitl"));
  107. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/readcmtcd" ,model.getValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmtcd"));
  108. }else{
  109. if(model.getValue("/root/main/usercmtlist["+usercmtlist.row+"]/tclscd") != model.getValue("/root/main/tclslist["+tclslist.row+"]/tclscd") &&
  110. (usercmtlist.rowStatus(usercmtlist.row) == 0||usercmtlist.rowStatus(usercmtlist.row) == 2||usercmtlist.rowStatus(usercmtlist.row) == 4)){
  111. alert("검사코드는 수정할수 없습니다");
  112. //alert(usercmtlist.rowStatus(usercmtlist.row));
  113. tclslist.rebuild();
  114. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/readcmttitl" ,model.getValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmttitl"));
  115. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/readcmtcd" ,model.getValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmtcd"));
  116. usercmtlist.rowStatus(usercmtlist.row) = 2;
  117. } else{
  118. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/tclscd" ,model.getValue("/root/main/tclslist["+tclslist.row+"]/tclscd"));
  119. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/tclsnm" ,model.getValue("/root/main/tclslist["+tclslist.row+"]/tclsnm"));
  120. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/readcmttitl" ,model.getValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmttitl"));
  121. model.setValue("/root/main/usercmtlist["+usercmtlist.row+"]/readcmtcd" ,model.getValue("/root/main/readcmtlist["+readcmtlist.row+"]/readcmtcd"));
  122. }
  123. }
  124. } else {
  125. alert("검사항목과 판독소견을 선택해 주십시오");
  126. }
  127. model.refresh();
  128. }
  129. function faddrow() {
  130. usercmtlist.addRow();
  131. }
  132. function fdelrow() {
  133. usercmtlist.rowStatus(usercmtlist.row) = 4;
  134. }
  135. function fExeEqmtSave() {
  136. model.setValue("/root/send/data1", usercmtlist.getUpdateData());
  137. submit("TXLVF00301");
  138. submit("TRLVF00303");
  139. }
  140. ]]>
  141. </script>
  142. </xhtml:head>
  143. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  144. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  145. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:700px; y2:70px; "/>
  146. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">자동소견목록</caption>
  147. <caption id="caption3" class="tit_2" style="left:760px; top:55px; width:131px; height:13px; ">검사항목</caption>
  148. <line id="line2" class="line_1" style="x1:760px; y1:70px; x2:975px; y2:70px; "/>
  149. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  150. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  151. <select1 id="testlrgcd" ref="/root/hidden/ref/testlrgcd" appearance="minimal" itemcount="10" style="left:846px; top:8px; width:124px; height:19px; ">
  152. <choices>
  153. <itemset nodeset="/root/init/LB0104">
  154. <label ref="nm"/>
  155. <value ref="cd"/>
  156. </itemset>
  157. </choices>
  158. <script type="javascript" ev:event="xforms-value-changed">
  159. <![CDATA[
  160. ftestcombo();
  161. ]]>
  162. </script>
  163. </select1>
  164. <select1 id="testmdlcd" ref="/root/hidden/ref/testmdlcd" disabled="true" appearance="minimal" itemcount="10" style="left:974px; top:8px; width:124px; height:19px; ">
  165. <choices>
  166. <itemset nodeset="/root/init/LB0102">
  167. <label ref="nm"/>
  168. <value ref="cd"/>
  169. </itemset>
  170. </choices>
  171. </select1>
  172. <caption id="caption2" class="search_name" style="left:755px; top:9px; width:89px; height:17px; ">검사분류 :</caption>
  173. <button id="button3" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
  174. <caption>조회</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. fGettclstlist();
  178. ]]>
  179. </script>
  180. </button>
  181. <line id="line3" class="line_4" style="x1:1111px; y1:7px; x2:1111px; y2:29px; "/>
  182. </group>
  183. <button id="button1" class="btn2_letter3" style="left:647px; top:49px; width:53px; height:19px; ">
  184. <caption>행삭제</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. fdelrow();
  188. ]]>
  189. </script>
  190. </button>
  191. <button id="button102" class="icon_left" style="left:717px; top:380px; width:26px; height:19px; ">
  192. <caption/>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. fdatemove();
  196. ]]>
  197. </script>
  198. </button>
  199. <datagrid id="usercmtlist" nodeset="/root/main/usercmtlist" caption="자동소견코드^판정순위^검사명^판정방법^판정결과^판정소견명^tclscd^readcmtcd" colwidth="90, 80, 200, 90, 80, 130,80" dataheight="23" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:700px; height:669px; ">
  200. <col ref="autcmtcd" type="input" _key="true"/>
  201. <col ref="judgrank" type="input"/>
  202. <col ref="tclsnm"/>
  203. <col ref="cmtjudgmthd" type="combo">
  204. <choices>
  205. <item>
  206. <label>증가</label>
  207. <value>1</value>
  208. </item>
  209. <item>
  210. <label>감소</label>
  211. <value>2</value>
  212. </item>
  213. <item>
  214. <label>결과패턴</label>
  215. <value>3</value>
  216. </item>
  217. </choices>
  218. </col>
  219. <col ref="judgrslt" type="input"/>
  220. <col ref="readcmttitl"/>
  221. <col ref="tclscd" visibility="hidden"/>
  222. <col ref="readcmtcd" visibility="hidden"/>
  223. </datagrid>
  224. <datagrid id="tclslist" nodeset="/root/main/tclslist" caption="검사명^검사코드" colwidth="175, 50" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:760px; top:75px; width:215px; height:669px; ">
  225. <col ref="tclsnm"/>
  226. <col ref="tclscd" visibility="hidden"/>
  227. </datagrid>
  228. <datagrid id="readcmtlist" nodeset="/root/main/readcmtlist" caption="판독소견명^판독코드" colwidth="191, 50" dataheight="23" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:980px; top:75px; width:214px; height:669px; ">
  229. <col ref="readcmttitl"/>
  230. <col ref="readcmtcd" visibility="hidden"/>
  231. </datagrid>
  232. <line id="line4" class="line_1" style="x1:980px; y1:70px; x2:1194px; y2:70px; "/>
  233. <caption id="caption4" class="tit_2" style="left:980px; top:55px; width:131px; height:13px; ">판독소견명</caption>
  234. <button id="button2" class="btn2_letter3" style="left:592px; top:49px; width:53px; height:19px; ">
  235. <caption>행추가</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. faddrow();
  239. ]]>
  240. </script>
  241. </button>
  242. </group>
  243. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  244. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  245. <caption>초기화</caption>
  246. <script type="javascript" ev:event="onclick">
  247. <![CDATA[
  248. model.reset();
  249. ]]>
  250. </script>
  251. </button>
  252. <button id="button11" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  253. <caption>저장</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. fExeEqmtSave();
  257. ]]>
  258. </script>
  259. </button>
  260. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  261. </group>
  262. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  263. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">검증자동소견관리</caption>
  264. </group>
  265. </xhtml:body>
  266. </xhtml:html>