SPLMR90100_미생물환자조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLMR90100.xrw
  4. * 설 명 : 미생물결과관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.04.23
  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>
  18. <main>
  19. <patlist>
  20. <selchk/>
  21. <workno/>
  22. <pid/>
  23. <hngnm/>
  24. <spcacptdt/>
  25. <bcno/>
  26. </patlist>
  27. </main>
  28. <send>
  29. <data1/>
  30. </send>
  31. <init>
  32. </init>
  33. <hidden>
  34. <ref>
  35. <sworkseq>00000</sworkseq>
  36. <eworkseq>99999</eworkseq>
  37. <workgroup/>
  38. <workgroup2/>
  39. <sworkdd/>
  40. <eworkdd/>
  41. <rsltstat>2</rsltstat>
  42. <searchflag>2</searchflag>
  43. <searchtext/>
  44. <refgbn>2</refgbn>
  45. </ref>
  46. <ref2>
  47. <sworkseq>00000</sworkseq>
  48. <eworkseq>99999</eworkseq>
  49. <workgroup/>
  50. <workgroup2/>
  51. <sworkdd/>
  52. <eworkdd/>
  53. <rsltstat>2</rsltstat>
  54. <refgbn>1</refgbn>
  55. <searchflag>3</searchflag>
  56. <searchtext/>
  57. </ref2>
  58. <refgbn>2</refgbn>
  59. </hidden>
  60. </root>
  61. </instance>
  62. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  63. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  64. <script src="../../../lis/commonweb/js/LLZ001.js" type="javascript"/>
  65. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  66. <script ev:event="xforms-model-construct-done" type="javascript">
  67. <![CDATA[
  68. fBaseInfoRef("0113|0112|");
  69. model.setValue("/root/hidden/ref2/workgroup", "00");
  70. cmb_workgroup2.attribute("visibility") = "hidden";
  71. model.setValue("/root/hidden/ref2/workgroup2", "00");
  72. model.setValue("/root/hidden/ref/workgroup", "00");
  73. cmb_workgroup.attribute("visibility") = "hidden";
  74. model.setValue("/root/hidden/ref/workgroup2", "00");
  75. model.setvalue("/root/hidden/ref2/sworkdd",getCurrentDate());
  76. model.setvalue("/root/hidden/ref2/eworkdd",getCurrentDate());
  77. model.setvalue("/root/hidden/ref/sworkdd",getCurrentDate());
  78. model.setvalue("/root/hidden/ref/eworkdd",getCurrentDate());
  79. if(opener.model.getValue("/root/main/TestInfo/getSpcInfo/pid") == ""){
  80. }else{
  81. model.setValue("/root/hidden/ref2/searchtext", opener.model.getValue("/root/main/TestInfo/getSpcInfo/pid"));
  82. model.setValue("/root/hidden/ref2/rsltstat","0");
  83. fPatListRef();
  84. }
  85. model.refresh();
  86. ]]>
  87. </script>
  88. <submission id="TRLMR90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  89. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  90. </model>
  91. <script type="javascript">
  92. <![CDATA[
  93. function fExeCancel(){
  94. window.close();
  95. }
  96. function fPatListRef(){
  97. if(model.getValue("/root/hidden/refgbn") == "1"){
  98. model.copyNode("/root/send/data1" ,"/root/hidden/ref");
  99. }
  100. else{
  101. model.copyNode("/root/send/data1" ,"/root/hidden/ref2");
  102. }
  103. submit("TRLMR90101");
  104. for(i=1 ;i<grd_patlist.rows;i++){
  105. if(model.getvalue("/root/main/patlist["+i+"]/rsltstat") == "-"){
  106. grd_patlist.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_N.gif";
  107. grd_patlist.cellstyle("background-position", i, 1) = "center"
  108. }else if(model.getvalue("/root/main/patlist["+i+"]/rsltstat") == "1"){
  109. grd_patlist.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_1.gif";
  110. grd_patlist.cellstyle("background-position", i, 1) = "center"
  111. }
  112. else if(model.getvalue("/root/main/patlist["+i+"]/rsltstat") == "2"){
  113. grd_patlist.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_2.gif";
  114. grd_patlist.cellstyle("background-position", i, 1) = "center"
  115. }
  116. else if(model.getvalue("/root/main/patlist["+i+"]/rsltstat") == "3"){
  117. grd_patlist.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_F.gif";
  118. grd_patlist.cellstyle("background-position", i, 1) = "center"
  119. }
  120. else if(model.getvalue("/root/main/patlist["+i+"]/rsltstat") == "4" || model.getvalue("/root/main/patlist["+i+"]/rsltstat") == "5"){
  121. grd_patlist.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_3.gif";
  122. grd_patlist.cellstyle("background-position", i, 1) = "center"
  123. }
  124. }
  125. }
  126. function fPatChio(){
  127. var row = grd_patlist.row;
  128. window.opener.model.setvalue("/root/hidden/refflag/searchflag", "2");
  129. window.opener.model.setvalue("/root/hidden/refflag/searchtext", model.getvalue("/root/main/patlist["+row+"]/bcno"));
  130. window.opener.javascript.fSpcInfoRef();
  131. }
  132. function fInputKeyup(){
  133. if(event.keyCode == "13"){
  134. model.setvalue("/root/hidden/ref2/searchtext", ipt_search.currentText);
  135. model.refresh();
  136. fPatListRef();
  137. ipt_search.selBegin = 0;
  138. ipt_search.selEnd = ipt_search.currentText.length;
  139. }
  140. }
  141. function fSetTestMdlcd() {
  142. var etc = model.getvalue("/root/hidden/ref/workgroup");
  143. if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc02") == "3") {
  144. cmb_workgroup.attribute("visibility") = "visible";
  145. model.setvalue("/root/hidden/ref/workgroup2", "00");
  146. }else {
  147. cmb_workgroup.attribute("visibility") = "hidden";
  148. }
  149. if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc01") == "3" ) {
  150. ipt_workfromdd.attribute("format") = "yyyy-mm-dd";
  151. ipt_worktodd.attribute("format") = "yyyy-mm-dd";
  152. }else if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc01") == "2") {
  153. ipt_workfromdd.attribute("format") = "yyyy-mm";
  154. ipt_worktodd.attribute("format") = "yyyy-mm";
  155. }else if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc01") == "1") {
  156. ipt_workfromdd.attribute("format") = "yyyy";
  157. ipt_worktodd.attribute("format") = "yyyy";
  158. }
  159. var workLeng = model.getvalue("/root/init/LB0112[cd='"+ etc +"']/etc03");
  160. var a= "0";
  161. var b="9";
  162. model.setvalue("/root/hidden/ref/sworkseq" , a.getLeftPad(workLeng , 0) );
  163. model.setvalue("/root/hidden/ref/eworkseq" , b.getLeftPad(workLeng , 9) );
  164. model.refresh();
  165. }
  166. function fSetTestMdlcd2() {
  167. var etc = model.getvalue("/root/hidden/ref2/workgroup");
  168. if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc02") == "3" ) {
  169. cmb_workgroup2.attribute("visibility") = "visible";
  170. model.setvalue("/root/hidden/ref2/workgroup2", "00");
  171. }else {
  172. cmb_workgroup2.attribute("visibility") = "hidden";
  173. }
  174. if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc01") == "3") {
  175. ipt_workfromdd2.attribute("format") = "yyyy-mm-dd";
  176. ipt_worktodd2.attribute("format") = "yyyy-mm-dd";
  177. }else if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc01") == "2") {
  178. ipt_workfromdd2.attribute("format") = "yyyy-mm";
  179. ipt_worktodd2.attribute("format") = "yyyy-mm";
  180. }else if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc01") == "1") {
  181. ipt_workfromdd2.attribute("format") = "yyyy";
  182. ipt_worktodd2.attribute("format") = "yyyy";
  183. }
  184. model.refresh();
  185. }
  186. ]]>
  187. </script>
  188. </xhtml:head>
  189. <xhtml:body pagewidth="430" pageheight="800" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  190. <group id="group1" style="left:0px; top:13px; width:400px; height:720px; ">
  191. <switch id="switch2" class="sw_box" style="left:0px; top:31px; width:400px; height:124px; ">
  192. <case id="case3" selected="true">
  193. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:5px; top:6px; width:390px; height:114px; "/>
  194. <select1 id="combo1" ref="/root/hidden/ref2/searchflag" class="combo_search" appearance="minimal" style="left:115px; top:14px; width:115px; height:19px; ">
  195. <choices>
  196. <item>
  197. <label>작업번호</label>
  198. <value>1</value>
  199. </item>
  200. <item>
  201. <label>검체번호</label>
  202. <value>2</value>
  203. </item>
  204. <item>
  205. <label>등록번호</label>
  206. <value>3</value>
  207. </item>
  208. </choices>
  209. </select1>
  210. <caption id="caption20" class="search_name" style="left:20px; top:15px; width:94px; height:17px; ">검색구분 :</caption>
  211. <line id="line9" class="line_7" style="x1:20px; y1:38px; x2:380px; y2:38px; "/>
  212. <caption id="caption21" class="search_name" style="left:20px; top:69px; width:94px; height:17px; ">작업그룹 :</caption>
  213. <select1 id="combo2" ref="/root/hidden/ref2/rsltstat" class="combo_default" appearance="minimal" style="left:115px; top:92px; width:115px; height:19px; ">
  214. <choices>
  215. <item>
  216. <label>전체</label>
  217. <value>0</value>
  218. </item>
  219. <item>
  220. <label>미검사</label>
  221. <value>1</value>
  222. </item>
  223. <item>
  224. <label>미완료</label>
  225. <value>2</value>
  226. </item>
  227. <item>
  228. <label>최종보고</label>
  229. <value>3</value>
  230. </item>
  231. </choices>
  232. </select1>
  233. <line id="line10" class="line_4" style="x1:289px; y1:92px; x2:289px; y2:114px; "/>
  234. <caption id="caption22" class="search_name" style="left:20px; top:93px; width:94px; height:17px; ">결과구분 :</caption>
  235. <button id="button6" class="btn1_letter2" style="left:304px; top:92px; width:56px; height:22px; ">
  236. <caption>조회</caption>
  237. <script ev:event="DOMActivate" type="javascript">
  238. <![CDATA[
  239. fPatListRef();
  240. ]]>
  241. </script>
  242. </button>
  243. <caption id="caption24" class="search_name" style="left:20px; top:45px; width:94px; height:17px; ">작업일자 :</caption>
  244. <caption id="caption3" class="search_no_b" style="left:231px; top:46px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  245. <input id="ipt_search" ref="/root/hidden/ref2/searchtext" class="input_button" inputtype="button" style="left:245px; top:14px; width:115px; height:19px; ">
  246. <script ev:event="onbuttonclick" type="javascript">
  247. <![CDATA[
  248. fPatListRef();
  249. ]]>
  250. </script>
  251. <script ev:event="onkeyup" type="javascript">
  252. <![CDATA[
  253. fInputKeyup();
  254. ]]>
  255. </script>
  256. </input>
  257. <input id="ipt_workfromdd2" ref="/root/hidden/ref2/sworkdd" class="input_search" inputtype="date" style="left:115px; top:44px; width:115px; height:19px; "/>
  258. <input id="ipt_worktodd2" ref="/root/hidden/ref2/eworkdd" class="input_search" inputtype="date" style="left:245px; top:44px; width:115px; height:19px; "/>
  259. <select1 id="cmb_mdlcd2" ref="/root/hidden/ref2/workgroup" class="combo_default" appearance="minimal" style="left:115px; top:68px; width:115px; height:19px; ">
  260. <choices>
  261. <itemset nodeset="/root/init/LB0112">
  262. <label ref="nm"/>
  263. <value ref="cd"/>
  264. </itemset>
  265. </choices>
  266. <script ev:event="xforms-value-changed" type="javascript">
  267. <![CDATA[
  268. fSetTestMdlcd2();
  269. ]]>
  270. </script>
  271. </select1>
  272. <select1 id="cmb_workgroup2" ref="/root/hidden/ref2/workgroup2" class="combo_default" appearance="minimal" style="left:245px; top:68px; width:115px; height:19px; ">
  273. <choices>
  274. <itemset nodeset="/root/init/LB0113">
  275. <label ref="nm"/>
  276. <value ref="cd"/>
  277. </itemset>
  278. </choices>
  279. </select1>
  280. </case>
  281. <case id="case4">
  282. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" style="left:5px; top:6px; width:390px; height:114px; "/>
  283. <caption id="caption25" class="search_name" style="left:20px; top:69px; width:94px; height:17px; ">작업그룹 :</caption>
  284. <caption id="caption26" class="search_name" style="left:20px; top:14px; width:94px; height:17px; ">작업번호 :</caption>
  285. <line id="line11" class="line_4" style="x1:289px; y1:92px; x2:289px; y2:114px; "/>
  286. <select1 id="combo12" ref="/root/hidden/ref/rsltstat" class="combo_default" appearance="minimal" style="left:115px; top:92px; width:115px; height:19px; ">
  287. <choices>
  288. <item>
  289. <label>전체</label>
  290. <value>0</value>
  291. </item>
  292. <item>
  293. <label>미검사</label>
  294. <value>1</value>
  295. </item>
  296. <item>
  297. <label>미완료</label>
  298. <value>2</value>
  299. </item>
  300. <item>
  301. <label>최종보고</label>
  302. <value>3</value>
  303. </item>
  304. </choices>
  305. </select1>
  306. <button id="button12" class="btn1_letter2" style="left:304px; top:92px; width:56px; height:22px; ">
  307. <caption>조회</caption>
  308. <script ev:event="DOMActivate" type="javascript">
  309. <![CDATA[
  310. fPatListRef();
  311. ]]>
  312. </script>
  313. </button>
  314. <caption id="caption27" class="search_name" style="left:20px; top:93px; width:94px; height:17px; ">결과구분 :</caption>
  315. <select1 id="cmb_workgroup" ref="/root/hidden/ref/workgroup2" class="combo_default" appearance="minimal" style="left:245px; top:68px; width:115px; height:19px; ">
  316. <choices>
  317. <itemset nodeset="/root/init/LB0113">
  318. <label ref="nm"/>
  319. <value ref="cd"/>
  320. </itemset>
  321. </choices>
  322. </select1>
  323. <select1 id="cmb_mdlcd" ref="/root/hidden/ref/workgroup" class="combo_default" appearance="minimal" style="left:115px; top:68px; width:115px; height:19px; ">
  324. <choices>
  325. <itemset nodeset="/root/init/LB0112">
  326. <label ref="nm"/>
  327. <value ref="cd"/>
  328. </itemset>
  329. </choices>
  330. <script ev:event="xforms-value-changed" type="javascript">
  331. <![CDATA[
  332. fSetTestMdlcd();
  333. ]]>
  334. </script>
  335. </select1>
  336. <caption id="caption29" class="search_name" style="left:20px; top:45px; width:94px; height:17px; ">작업일자 :</caption>
  337. <input id="input13" ref="/root/hidden/ref/sworkseq" class="input_search" style="left:115px; top:14px; width:115px; height:19px; "/>
  338. <input id="input14" ref="/root/hidden/ref/eworkseq" class="input_search" style="left:245px; top:14px; width:115px; height:19px; "/>
  339. <caption id="caption10" class="search_no_b" style="left:231px; top:15px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  340. <caption id="caption2" class="search_no_b" style="left:231px; top:46px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  341. <input id="ipt_workfromdd" ref="/root/hidden/ref/sworkdd" class="input_search" inputtype="date" style="left:115px; top:44px; width:115px; height:19px; "/>
  342. <input id="ipt_worktodd" ref="/root/hidden/ref/eworkdd" class="input_search" inputtype="date" style="left:245px; top:44px; width:115px; height:19px; "/>
  343. <line id="line1" class="line_7" style="x1:20px; y1:38px; x2:380px; y2:38px; "/>
  344. </case>
  345. </switch>
  346. <button id="button13" class="btn_sw" group="tab" selected="false" style="left:100px; top:10px; width:100px; height:22px; color:#000000; ">
  347. <caption>작업번호별</caption>
  348. <toggle case="case4" ev:event="onclick"/>
  349. <script ev:event="DOMActivate" type="javascript">
  350. <![CDATA[
  351. model.setvalue("/root/hidden/refgbn","1");
  352. ]]>
  353. </script>
  354. </button>
  355. <button id="button14" class="btn_sw" group="tab" selected="true" style="left:0px; top:10px; width:100px; height:22px; color:#000000; ">
  356. <caption>바코드번호별</caption>
  357. <toggle case="case3" ev:event="onclick"/>
  358. <script ev:event="DOMActivate" type="javascript">
  359. <![CDATA[
  360. model.setvalue("/root/hidden/refgbn","2");
  361. ]]>
  362. </script>
  363. </button>
  364. <line id="line8" class="line_1" style="x1:0px; y1:184px; x2:400px; y2:184px; "/>
  365. <caption id="caption19" class="tit_2" style="left:5px; top:169px; width:115px; height:13px; ">환자목록</caption>
  366. <datagrid id="grd_patlist" nodeset="/root/main/patlist" caption="^작업번호^등록번호^성명^접수일시" colsep="^" colwidth="20, 114, 64, 52, 106" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:189px; width:400px; height:531px; ">
  367. <col ref="selchk" style="text-align:center; "/>
  368. <col ref="workno"/>
  369. <col ref="pid"/>
  370. <col ref="hngnm"/>
  371. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn"/>
  372. <col ref="bcno" visibility="hidden"/>
  373. <script ev:event="ondblclick" type="javascript">
  374. <![CDATA[
  375. fPatChio();
  376. ]]>
  377. </script>
  378. <script ev:event="onaftersort" type="javascript">
  379. <![CDATA[
  380. grd_patlist.gridToInstance();
  381. ]]>
  382. </script>
  383. </datagrid>
  384. </group>
  385. <group id="group3" style="left:0px; top:736px; width:400px; height:27px; ">
  386. <button id="button2" class="btn4_letter2" style="left:285px; top:5px; width:56px; height:22px; ">
  387. <caption>선택</caption>
  388. <script ev:event="DOMActivate" type="javascript">
  389. <![CDATA[
  390. fPatChio();
  391. ]]>
  392. </script>
  393. </button>
  394. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:400px; y2:0px; "/>
  395. <button id="button5" class="btn4_letter2" style="left:344px; top:5px; width:56px; height:22px; ">
  396. <caption>취소</caption>
  397. <script ev:event="DOMActivate" type="javascript">
  398. <![CDATA[
  399. fExeCancel();
  400. ]]>
  401. </script>
  402. </button>
  403. </group>
  404. <group id="grp_tle" style="left:0px; top:0px; width:400px; height:13px; ">
  405. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:121px; height:14px; ">미생물환자조회</caption>
  406. </group>
  407. </xhtml:body>
  408. </xhtml:html>