SPLMR90500_GRAM결과입력.xrw 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLMR90400_항균제조회.xrw
  4. * 설 명 : 환자특이사항 관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.07.22
  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>Gram Stain 결과입력</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <Gram>
  20. <RsltCode>
  21. <cd1/>
  22. <cd2/>
  23. <cd3/>
  24. <cd4/>
  25. <cd5/>
  26. <cd6/>
  27. <cd7/>
  28. </RsltCode>
  29. </Gram>
  30. </main>
  31. <send>
  32. <data1/>
  33. </send>
  34. <init>
  35. <LB0109>
  36. <cd/>
  37. <nm/>
  38. </LB0109>
  39. </init>
  40. <hidden>
  41. <GRAMParm>
  42. <bufParm/>
  43. </GRAMParm>
  44. </hidden>
  45. </root>
  46. </instance>
  47. <script ev:event="xforms-model-construct-done" type="javascript">
  48. <![CDATA[
  49. datagrid1.fixedRows =0;
  50. datagrid1.removeRow();
  51. datagrid1.rowHidden(0) = true;
  52. var gram = model.getValue("/root/hidden/GRAMParm/bufParm");
  53. object1.PutInString(gram);
  54. //datagrid1.fixedCols = 5;
  55. fBaseInfoRef("0109|");
  56. fRsltCodeSet();
  57. ]]>
  58. </script>
  59. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  60. <script src="../../../lis/commonweb/js/LLZ001.js" type="javascript"/>
  61. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  62. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  63. </model>
  64. <script type="javascript">
  65. <![CDATA[
  66. function fRsltCodeSet(){
  67. var testcd1 = "LMR100";
  68. var n = getNodesetCount("/root/init/LB0109[etc01='" + testcd1+ "']");
  69. var cdNodes = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd1 + "']/cd");
  70. var cdNodes2 = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd1 + "']/nm");
  71. var gridRow = 1;
  72. var seq =0;
  73. datagrid1.addRow();
  74. datagrid1.rowHeight(1) = 32;
  75. datagrid1.rowStyle(1,"all","background-color" ) = "#EEFFFF";
  76. datagrid1.refresh();
  77. for(i=1;i<= n;i++){
  78. var cd = cdNodes.item(i - 1).text;
  79. var nm = cdNodes2.item(i - 1).text;
  80. seq++;
  81. model.setvalue("/root/main/Gram/RsltCode["+gridRow+"]/cd"+ seq , cd);
  82. datagrid1.tooltipText(gridRow ,seq - 1) = nm;
  83. if(i%7 == 0 && i !=n){
  84. seq = 0;
  85. gridRow++;
  86. datagrid1.addRow();
  87. datagrid1.rowHeight(gridRow) = 32;
  88. datagrid1.rowStyle(gridRow,"all","background-color" ) = "#EEFFFF";
  89. datagrid1.refresh();
  90. }
  91. }
  92. }
  93. function fRsltCodeClick(){
  94. var testcd1 = "LMR100";
  95. var row = datagrid1.row;
  96. var col = datagrid1.col;
  97. var code = datagrid1.valueMatrix(row,col);
  98. var nm = model.getvalue("/root/init/LB0109[etc01 = '"+testcd1+"' and cd='"+code+"']/nm") ;
  99. object1.PutInString(nm);
  100. }
  101. function fSputumInput(code){
  102. var testcd2 = "LMR10001";
  103. var nm = model.getvalue("/root/init/LB0109[etc01 = '"+testcd2+"' and cd='"+code+"']/nm") + " ";
  104. object1.PutInString(nm);
  105. }
  106. function fInput(){
  107. model.setValue("/root/hidden/GRAMParm/bufParm", object1.GetString());
  108. opener.model.setvalue("/root/hidden/GRAMParm/bufParm",model.getvalue("/root/hidden/GRAMParm/bufParm"));
  109. window.close();
  110. }
  111. ]]>
  112. </script>
  113. </xhtml:head>
  114. <xhtml:body pagewidth="740" pageheight="650" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  115. <group id="group1" style="left:0px; top:0px; width:720px; height:615px; ">
  116. <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:145px; height:14px; ">Gram Stain 결과입력</caption>
  117. <button id="button9" class="btn4_letter2" style="left:661px; top:590px; width:56px; height:22px; ">
  118. <caption>취소</caption>
  119. <script ev:event="onclick" type="javascript">
  120. <![CDATA[
  121. window.close();
  122. ]]>
  123. </script>
  124. </button>
  125. <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:720px; y2:26px; "/>
  126. <caption id="caption4" class="cell_1" style="left:0px; top:31px; width:105px; height:23px; ">Sputum Grade</caption>
  127. <line id="line4" class="line_3" style="x1:0px; y1:53px; x2:720px; y2:53px; "/>
  128. <button id="btn_cfm" class="btn4_letter2" style="left:605px; top:590px; width:56px; height:22px; ">
  129. <caption>확인</caption>
  130. <script ev:event="onclick" type="javascript">
  131. <![CDATA[
  132. fInput();
  133. ]]>
  134. </script>
  135. </button>
  136. <button id="button1" class="btn4_letter3" style="left:537px; top:590px; width:68px; height:22px; ">
  137. <caption>Clear</caption>
  138. <script ev:event="onclick" type="javascript">
  139. <![CDATA[
  140. object1.Clear();
  141. ]]>
  142. </script>
  143. </button>
  144. <caption id="caption5" class="tit_2" style="left:5px; top:60px; width:111px; height:14px; ">결과예문</caption>
  145. <button id="button2" class="btn2_letter2" style="left:108px; top:32px; width:42px; height:19px; ">
  146. <caption>1</caption>
  147. <script ev:event="DOMActivate" type="javascript">
  148. <![CDATA[
  149. fSputumInput("1");
  150. ]]>
  151. </script>
  152. <hint>
  153. <![CDATA[Group 1 ; WBC(<10), EP(>25)]]>
  154. </hint>
  155. </button>
  156. <button id="button3" class="btn2_letter2" style="left:151px; top:32px; width:42px; height:19px; ">
  157. <caption>2</caption>
  158. <script ev:event="DOMActivate" type="javascript">
  159. <![CDATA[
  160. fSputumInput("2");
  161. ]]>
  162. </script>
  163. <hint>
  164. <![CDATA[Group 2 ; WBC(10~25), EP(>25) ]]>
  165. </hint>
  166. </button>
  167. <button id="button4" class="btn2_letter2" style="left:194px; top:32px; width:42px; height:19px; ">
  168. <caption>3</caption>
  169. <script ev:event="DOMActivate" type="javascript">
  170. <![CDATA[
  171. fSputumInput("3");
  172. ]]>
  173. </script>
  174. <hint>
  175. <![CDATA[Group 3 ; WBC(>25), EP(>25) ]]>
  176. </hint>
  177. </button>
  178. <button id="button5" class="btn2_letter2" style="left:237px; top:32px; width:42px; height:19px; ">
  179. <caption>4</caption>
  180. <script ev:event="DOMActivate" type="javascript">
  181. <![CDATA[
  182. fSputumInput("4");
  183. ]]>
  184. </script>
  185. <hint>
  186. <![CDATA[Group 4 ; WBC(>25), EP(10~25) ]]>
  187. </hint>
  188. </button>
  189. <button id="button6" class="btn2_letter2" style="left:280px; top:32px; width:42px; height:19px; ">
  190. <caption>5</caption>
  191. <script ev:event="DOMActivate" type="javascript">
  192. <![CDATA[
  193. fSputumInput("5");
  194. ]]>
  195. </script>
  196. <hint>
  197. <![CDATA[Group 5 ; WBC(>25), EP(<10) ]]>
  198. </hint>
  199. </button>
  200. <button id="button7" class="btn2_letter2" style="left:323px; top:32px; width:42px; height:19px; ">
  201. <caption>6</caption>
  202. <script ev:event="DOMActivate" type="javascript">
  203. <![CDATA[
  204. fSputumInput("6");
  205. ]]>
  206. </script>
  207. <script ev:event="onmouseup" type="javascript">
  208. <![CDATA[
  209. ]]>
  210. </script>
  211. <hint>
  212. <![CDATA[Group 6 ; WBC (<10), EP(<10) ]]>
  213. </hint>
  214. </button>
  215. <button id="button8" class="btn2_letter2" style="left:366px; top:32px; width:42px; height:19px; ">
  216. <caption>7</caption>
  217. <script ev:event="DOMActivate" type="javascript">
  218. <![CDATA[
  219. fSputumInput("7");
  220. ]]>
  221. </script>
  222. <hint>
  223. <![CDATA[WBC(10~25), EP (<10) ]]>
  224. </hint>
  225. </button>
  226. <datagrid id="datagrid1" nodeset="/root/main/Gram/RsltCode" backcoloralternate="transparent" caption="caption1^caption2^caption3^caption5^caption4^caption6^caption7" colsep="^" colwidth="99, 99, 99, 99, 99, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" tooltip="true" style="left:0px; top:80px; width:720px; height:310px; font-size:16pt; ">
  227. <col ref="cd1"/>
  228. <col ref="cd2"/>
  229. <col ref="cd3"/>
  230. <col ref="cd4"/>
  231. <col ref="cd5"/>
  232. <col ref="cd6"/>
  233. <col ref="cd7"/>
  234. <script ev:event="onclick" type="javascript">
  235. <![CDATA[
  236. fRsltCodeClick();
  237. ]]>
  238. </script>
  239. </datagrid>
  240. <caption id="caption1" class="tit_2" style="left:4px; top:410px; width:111px; height:13px; ">검사결과</caption>
  241. <object id="object1" navindex="-1" clsid="{CC980D81-CB5E-46A3-94F8-6925747F95E4}" style="left:0px; top:430px; width:720px; height:140px; font-size:20; border-color:#999999; border-width:1px; border-style:solid; "/>
  242. </group>
  243. </xhtml:body>
  244. </xhtml:html>