SMLLF10600_CDSS마스터관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF10600_CDSS마스터관리.xrw
  4. * 설 명 : 검사결과코드관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 이재민
  7. * 작 성 일 : 2010.04.09
  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. <testlist>
  20. <tclscd/>
  21. <tclsnm/>
  22. <yn/>
  23. </testlist>
  24. <cdsslist>
  25. <seqno/>
  26. <tclscd/>
  27. <msgkind/>
  28. <rsltstat/>
  29. <rulekind/>
  30. <refs/>
  31. <rulerst/>
  32. <resendday/>
  33. <sendyn/>
  34. <recipient1/>
  35. <recipient2/>
  36. <ioflag/>
  37. </cdsslist>
  38. </main>
  39. <send>
  40. <codeflag/>
  41. <testlrgcd/>
  42. <testmdlcd/>
  43. <tclscd/>
  44. <cdsslist/>
  45. <userdeptflagcd/>
  46. <seqno/>
  47. </send>
  48. <init>
  49. </init>
  50. <hidden>
  51. <ref>
  52. <testlrgcd>00</testlrgcd>
  53. <testmdlcd>00</testmdlcd>
  54. </ref>
  55. </hidden>
  56. </root>
  57. </instance>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. model.setValue("/root/send/codeflag", "0104|0102|0000|"); //0104 대분류 0102 중분류
  63. submit("TRLZZ00101");
  64. ]]>
  65. </script>
  66. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
  67. <submission id="TRLLF90804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cdsslist"/>
  68. <submission id="TXLLF90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cdsslist"/>
  69. <submission id="TRLLF90803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testlist"/>
  70. </model>
  71. <script type="javascript">
  72. <![CDATA[
  73. // 조회구분에서 대분류와 중분류의 값을 받아 검사목록을 출력
  74. function fGettestRsltlist(){
  75. model.removeNodeset("/root/main/rsltcdlist");
  76. model.refresh();
  77. model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
  78. model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/ref/testmdlcd"));
  79. //model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  80. //alert(model.getValue("/root/send/userdeptflagcd"));
  81. submit("TRLLF90803");
  82. }
  83. //검사목록 조회
  84. function fClickResultList(){
  85. var row = testlist.row;
  86. model.removeNodeset("/root/main/cdsslist");
  87. model.setValue("/root/send/tclscd" , model.getValue("/root/main/testlist["+row+"]/tclscd"));
  88. submit("TRLLF90804");
  89. }
  90. //행추가
  91. function fInsRowAdd() {
  92. var row = testlist.row;
  93. cdsslist.addRow();
  94. model.setValue("root/main/cdsslist["+cdsslist.row+"]/tclscd", model.getValue("root/main/testlist["+row+"]/tclscd"));
  95. model.setValue("root/main/cdsslist["+cdsslist.row+"]/msgkind", "S");
  96. model.setValue("root/main/cdsslist["+cdsslist.row+"]/rsltstat", "2");
  97. model.setValue("root/main/cdsslist["+cdsslist.row+"]/rulekind", "C");
  98. model.setValue("root/main/cdsslist["+cdsslist.row+"]/refs", "-");
  99. model.setValue("root/main/cdsslist["+cdsslist.row+"]/rulerst", "-");
  100. model.setValue("root/main/cdsslist["+cdsslist.row+"]/resendday", "-");
  101. model.setValue("root/main/cdsslist["+cdsslist.row+"]/sendyn", "Y");
  102. model.setValue("root/main/cdsslist["+cdsslist.row+"]/recipient1" , "N");
  103. model.setValue("root/main/cdsslist["+cdsslist.row+"]/recipient2" , "N");
  104. model.setValue("root/main/cdsslist["+cdsslist.row+"]/ioflag" , "A");
  105. }
  106. //행삭제
  107. function fInsRowdel() {
  108. var row = cdsslist.row;
  109. cdsslist.rowStatus(row) = 4;
  110. }
  111. //저장 데이터 확인
  112. function checkGridUpdate(grid){
  113. var iData = grid.getUpdateDataXml("insert");
  114. var uData = grid.getUpdateDataXml("update");
  115. var dData = grid.getUpdateDataXml("delete");
  116. if (iData=="" && uData=="" && dData=="") return false;
  117. else{
  118. return true;
  119. }
  120. }
  121. // 결과목록 삽입, 삭제, 수정
  122. function fExeEqmtSave() {
  123. if(messageBox("", "Q002")==6){
  124. if(!checkGridUpdate(cdsslist)){
  125. alert("저장할 자료가 존재하지 않습니다.");
  126. return;
  127. }
  128. if(testlist.row == -1){
  129. messageBox("검사항목을 선택하십시오", "I");
  130. return;
  131. }
  132. var row = cdsslist.row;
  133. model.setValue("/root/send/cdsslist", cdsslist.getUpdateData());
  134. //alert(model.getValue("/root/send/cdsslist"));
  135. //model.setValue("/root/send/seqno", model.getValue("/root/main/cdsslist["+row+"]/tclscd/@seqno")
  136. submit("TXLLF90901");
  137. fClickResultList();
  138. }
  139. }
  140. // 콤보박스 활성화
  141. function ftestcombo(){
  142. var CD = model.getValue("/root/hidden/ref/testlrgcd");
  143. if(CD == "00"){
  144. testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  145. model.setvalue("/root/hidden/ref/testmdlcd" , "00");
  146. testmdlcd.disabled = true;
  147. }
  148. else{
  149. testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ CD +"']";
  150. model.setvalue("/root/hidden/ref/testmdlcd" , "00");
  151. testmdlcd.disabled = false;
  152. }
  153. testmdlcd.refresh();
  154. }
  155. ]]>
  156. </script>
  157. </xhtml:head>
  158. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  160. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:490px; y2:70px; "/>
  161. <datagrid id="testlist" nodeset="/root/main/testlist" caption="검사코드^검사명^룰여부" colsep="^" colwidth="100, 281, 60" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:490px; height:669px; ">
  162. <col ref="tclscd"/>
  163. <col ref="tclsnm"/>
  164. <col ref="yn"/>
  165. <script type="javascript" ev:event="onclick">
  166. <![CDATA[
  167. if(testlist.isCell(event.target) && testlist.row >= testlist.fixedRows){
  168. fClickResultList();
  169. }
  170. ]]>
  171. </script>
  172. <script type="javascript" ev:event="onaftersort">
  173. <![CDATA[
  174. cdsslist.gridToInstance();
  175. ]]>
  176. </script>
  177. </datagrid>
  178. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">검사코드목록</caption>
  179. <button id="button2" class="btn2_letter3" style="left:1142px; top:49px; width:53px; height:19px; ">
  180. <caption>행추가</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. fInsRowAdd();
  184. ]]>
  185. </script>
  186. </button>
  187. <datagrid id="cdsslist" nodeset="/root/main/cdsslist" caption="일련번호^검사코드^전송유형^결과유형^룰유형^부등호^룰값^재전송구간^전송여부^주치의^처방의^입원외래구분" colsep="^" colwidth="55, 75, 85, 80, 80, 60, 110, 80, 65, 50, 50" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:500px; top:75px; width:694px; height:669px; ">
  188. <col ref="seqno" visibility="hidden"/>
  189. <col ref="tclscd" visibility="hidden"/>
  190. <col ref="msgkind" type="combo" _key="true">
  191. <choices>
  192. <item>
  193. <label>SMS</label>
  194. <value>S</value>
  195. </item>
  196. <item>
  197. <label>notify</label>
  198. <value>N</value>
  199. </item>
  200. </choices>
  201. </col>
  202. <col ref="rsltstat" type="combo" style="left:120px; top:23px; width:402px; height:23px; ">
  203. <choices>
  204. <item>
  205. <label>중간보고</label>
  206. <value>2</value>
  207. </item>
  208. <item>
  209. <label>최종보고</label>
  210. <value>4</value>
  211. </item>
  212. </choices>
  213. </col>
  214. <col ref="rulekind" type="combo">
  215. <choices>
  216. <item>
  217. <label>Critical</label>
  218. <value>C</value>
  219. </item>
  220. <item>
  221. <label>Low</label>
  222. <value>L</value>
  223. </item>
  224. <item>
  225. <label>High</label>
  226. <value>H</value>
  227. </item>
  228. <item>
  229. <label>배양(양성)</label>
  230. <value>M</value>
  231. </item>
  232. <item>
  233. <label>패턴(포함)</label>
  234. <value>P</value>
  235. </item>
  236. <item>
  237. <label>범위</label>
  238. <value>R</value>
  239. </item>
  240. </choices>
  241. </col>
  242. <col ref="refs" type="combo">
  243. <choices>
  244. <item>
  245. <label>없음</label>
  246. <value>-</value>
  247. </item>
  248. <item>
  249. <label>
  250. <![CDATA[이상 (>=)]]>
  251. </label>
  252. <value>1</value>
  253. </item>
  254. <item>
  255. <label>
  256. <![CDATA[초과 (>)]]>
  257. </label>
  258. <value>2</value>
  259. </item>
  260. <item>
  261. <label>
  262. <![CDATA[이하 (<=)]]>
  263. </label>
  264. <value>3</value>
  265. </item>
  266. <item>
  267. <label>
  268. <![CDATA[미만 (<)]]>
  269. </label>
  270. <value>4</value>
  271. </item>
  272. <item>
  273. <label>일치 (=)</label>
  274. <value>5</value>
  275. </item>
  276. <item>
  277. <label>포함 (like)</label>
  278. <value>6</value>
  279. </item>
  280. </choices>
  281. </col>
  282. <col ref="rulerst" type="input"/>
  283. <col ref="resendday" type="input"/>
  284. <col ref="sendyn" type="combo">
  285. <choices>
  286. <item>
  287. <label>YES</label>
  288. <value>Y</value>
  289. </item>
  290. <item>
  291. <label>NO</label>
  292. <value>N</value>
  293. </item>
  294. </choices>
  295. </col>
  296. <col checkvalue="Y,N" ref="recipient1" type="checkbox"/>
  297. <col checkvalue="Y,N" ref="recipient2" type="checkbox"/>
  298. <col ref="ioflag" type="combo" style="left:120px; top:23px; width:402px; height:23px; ">
  299. <choices>
  300. <item>
  301. <label>전체</label>
  302. <value>A</value>
  303. </item>
  304. <item>
  305. <label>입원</label>
  306. <value>I</value>
  307. </item>
  308. <item>
  309. <label>외래</label>
  310. <value>O</value>
  311. </item>
  312. </choices>
  313. </col>
  314. <script type="javascript" ev:event="onaftersort">
  315. <![CDATA[
  316. rsltcdlist.gridToInstance();
  317. ]]>
  318. </script>
  319. </datagrid>
  320. <caption id="caption3" class="tit_2" style="left:500px; top:55px; width:131px; height:14px; ">CDSS RULE 목록</caption>
  321. <line id="line2" class="line_1" style="x1:500px; y1:70px; x2:1194px; y2:70px; "/>
  322. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  323. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  324. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  325. <button id="button3" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
  326. <caption>조회</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. fGettestRsltlist() ;
  330. ]]>
  331. </script>
  332. </button>
  333. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검사분류 :</caption>
  334. <select1 id="testlrgcd" ref="/root/hidden/ref/testlrgcd" appearance="minimal" itemcount="10" style="left:106px; top:8px; width:150px; height:19px; ">
  335. <choices>
  336. <itemset nodeset="/root/init/LB0104">
  337. <label ref="nm"/>
  338. <value ref="cd"/>
  339. </itemset>
  340. </choices>
  341. <script type="javascript" ev:event="xforms-value-changed">
  342. <![CDATA[
  343. ftestcombo();
  344. ]]>
  345. </script>
  346. </select1>
  347. <select1 id="testmdlcd" ref="/root/hidden/ref/testmdlcd" disabled="true" appearance="minimal" itemcount="10" style="left:259px; top:8px; width:150px; height:19px; ">
  348. <choices>
  349. <itemset nodeset="/root/init/LB0102">
  350. <label ref="nm"/>
  351. <value ref="cd"/>
  352. </itemset>
  353. </choices>
  354. <script type="javascript" ev:event="xforms-value-changed">
  355. <![CDATA[
  356. fGettestRsltlist() ;
  357. ]]>
  358. </script>
  359. </select1>
  360. </group>
  361. <button id="button1" class="btn2_letter3" style="left:1086px; top:49px; width:53px; height:19px; ">
  362. <caption>행삭제</caption>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. fInsRowdel();
  366. ]]>
  367. </script>
  368. </button>
  369. </group>
  370. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  371. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  372. <caption>초기화</caption>
  373. <script type="javascript" ev:event="onclick">
  374. <![CDATA[
  375. model.reset();
  376. ]]>
  377. </script>
  378. </button>
  379. <button id="button11" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  380. <caption>저장</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. fExeEqmtSave();
  384. ]]>
  385. </script>
  386. </button>
  387. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  388. </group>
  389. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  390. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">CDSS RULE 관리</caption>
  391. </group>
  392. </xhtml:body>
  393. </xhtml:html>