SPLMR90700_배양검사결과입력.xrw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLMR90400_항균제조회.xrw
  4. * 설 명 : 환자특이사항 관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.10.01
  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>배양검사 결과입력</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. <cultureParm>
  42. <bufParm/>
  43. <testcd/>
  44. </cultureParm>
  45. </hidden>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-model-construct-done">
  49. <![CDATA[
  50. datagrid1.fixedRows =0;
  51. datagrid1.removeRow();
  52. datagrid1.rowHidden(0) = true;
  53. var base = model.getValue("/root/hidden/cultureParm/bufParm");
  54. object1.PutInString(base);
  55. //datagrid1.fixedCols = 5;
  56. fBaseInfoRef("0109|");
  57. fRsltCodeSet();
  58. ]]>
  59. </script>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. function fRsltCodeSet(){
  68. var testcd1 = model.getvalue("/root/hidden/cultureParm/testcd");
  69. //var testcd1 = "LMR102";
  70. var n = getNodesetCount("/root/init/LB0109[etc01='" + testcd1+ "' and etc03='N' and etc04='Y']");
  71. //var n = getNodesetCount("/root/init/LB0109[etc01='" + testcd1+ "' and etc03='N']");
  72. var cdNodes = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd1 + "' and etc03='N' ]/cd");
  73. var cdNodes2 = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd1 + "' and etc03='N' ]/nm");
  74. //var disYN = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd1 + "' and etc03='"+code+"' ]/etc03");
  75. var gridRow = 1;
  76. var seq =0;
  77. datagrid1.addRow();
  78. datagrid1.rowHeight(1) = 32;
  79. datagrid1.rowStyle(1,"all","background-color" ) = "#EEFFFF";
  80. datagrid1.refresh();
  81. for(i=1;i<= n;i++){
  82. var cd = cdNodes.item(i - 1).text;
  83. var nm = cdNodes2.item(i - 1).text;
  84. //var dis = disYN.item(i - 1).text;
  85. //if(dis == "N"){
  86. seq++;
  87. model.setvalue("/root/main/Gram/RsltCode["+gridRow+"]/cd"+ seq , cd);
  88. datagrid1.tooltipText(gridRow ,seq - 1) = nm;
  89. if(i%5 == 0 && i !=n){
  90. seq = 0;
  91. gridRow++;
  92. datagrid1.addRow();
  93. datagrid1.rowHeight(gridRow) = 32;
  94. datagrid1.rowStyle(gridRow,"all","background-color" ) = "#EEFFFF";
  95. datagrid1.refresh();
  96. }
  97. //}
  98. }
  99. }
  100. function fRsltCodeClick(){
  101. var testcd1 = model.getvalue("/root/hidden/cultureParm/testcd");
  102. var row = datagrid1.row;
  103. var col = datagrid1.col;
  104. var code = datagrid1.valueMatrix(row,col);
  105. var nm = model.getvalue("/root/init/LB0109[etc01 = '"+testcd1+"' and cd='"+code+"']/nm") + " ";
  106. object1.PutInString(nm);
  107. }
  108. function fInput(){
  109. model.setValue("/root/hidden/cultureParm/bufParm", object1.GetString());
  110. opener.model.setvalue("/root/hidden/cultureParm/bufParm",model.getvalue("/root/hidden/cultureParm/bufParm"));
  111. window.close();
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="530" pageheight="650" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  117. <group id="group1" style="left:0px; top:0px; width:505px; height:615px; ">
  118. <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:145px; height:14px; ">배양검사 결과입력</caption>
  119. <button id="button9" class="btn4_letter2" style="left:445px; top:588px; width:56px; height:22px; ">
  120. <caption>취소</caption>
  121. <script type="javascript" ev:event="onclick">
  122. <![CDATA[
  123. window.close();
  124. ]]>
  125. </script>
  126. </button>
  127. <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:500px; y2:26px; "/>
  128. <button id="btn_cfm" class="btn4_letter2" style="left:389px; top:588px; width:56px; height:22px; ">
  129. <caption>확인</caption>
  130. <script type="javascript" ev:event="onclick">
  131. <![CDATA[
  132. fInput();
  133. ]]>
  134. </script>
  135. </button>
  136. <button id="button1" class="btn4_letter3" style="left:321px; top:588px; width:68px; height:22px; ">
  137. <caption>Clear</caption>
  138. <script type="javascript" ev:event="onclick">
  139. <![CDATA[
  140. object1.Clear();
  141. ]]>
  142. </script>
  143. </button>
  144. <caption id="caption5" class="tit_2" style="left:6px; top:42px; width:111px; height:13px; ">결과예문</caption>
  145. <datagrid id="datagrid1" nodeset="/root/main/Gram/RsltCode" backcoloralternate="transparent" caption="caption1^caption2^caption3^caption5^caption4" colsep="^" colwidth="99, 99, 99, 99, 99" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" tooltip="true" style="left:0px; top:60px; width:500px; height:330px; font-size:16pt; ">
  146. <col ref="cd1"/>
  147. <col ref="cd2"/>
  148. <col ref="cd3"/>
  149. <col ref="cd4"/>
  150. <col ref="cd5"/>
  151. <script type="javascript" ev:event="onclick">
  152. <![CDATA[
  153. fRsltCodeClick();
  154. ]]>
  155. </script>
  156. </datagrid>
  157. <caption id="caption1" class="tit_2" style="left:4px; top:410px; width:111px; height:13px; ">검사결과</caption>
  158. <object id="object1" navindex="-1" clsid="{CC980D81-CB5E-46A3-94F8-6925747F95E4}" style="left:0px; top:430px; width:500px; height:145px; border-color:#999999; border-width:1px; border-style:solid; "/>
  159. </group>
  160. </xhtml:body>
  161. </xhtml:html>