SMLMP00600_결핵균외부의뢰조회.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>결핵균외부의뢰조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <rsltlist>
  11. <row>
  12. <a/>
  13. <b/>
  14. <c/>
  15. <d/>
  16. <e/>
  17. <f/>
  18. </row>
  19. <header/>
  20. </rsltlist>
  21. </main>
  22. <send>
  23. <ref/>
  24. </send>
  25. <init/>
  26. <hidden>
  27. <ref>
  28. <requestgbn>00</requestgbn>
  29. <fromdd/>
  30. <todd/>
  31. </ref>
  32. <temp>
  33. <rsltlist/>
  34. </temp>
  35. </hidden>
  36. </root>
  37. </instance>
  38. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  39. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  40. <script src="../../../lis/commonweb/js/LLZ001.js" type="javascript"/>
  41. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  42. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  43. <script src="../../../lis/commonweb/js/LZZ001.js" type="javascript"/>
  44. <script src="../../../lis/commonweb/js/LPZ001.js" type="javascript"/>
  45. <script ev:event="xforms-ready" type="javascript">
  46. <![CDATA[
  47. fsetinit();
  48. ]]>
  49. </script>
  50. <submission id="TRLMP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ref" replace="instance" resultref="/root/hidden/temp/rsltlist"/>
  51. </model>
  52. <script type="javascript">
  53. <![CDATA[
  54. function fsetinit(){
  55. model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
  56. model.setValue("/root/hidden/ref/todd", getCurrentDate());
  57. ipt_fromdd.value = ipt_fromdd.value.toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD");
  58. model.removeNodeset("/root/main/");
  59. model.refresh();
  60. }
  61. function fgetOutrequestlist(){
  62. // 그리드 컬럼 초기화
  63. var cols = grd_testlist.cols-grd_testlist.fixedCols;
  64. var rows = grd_testlist.rows-grd_testlist.fixedRows;
  65. //alert(cols)
  66. for( var i = 0; i < cols; i++ ) {
  67. grd_testlist.removeColumn(false);
  68. }
  69. for( var i = 0; i < rows; i++ ) {
  70. grd_testlist.removeRow(false);
  71. }
  72. model.removeNodeset("/root/main/");
  73. model.copyNode("/root/send/ref", "/root/hidden/ref");
  74. submit("TRLMP00601", false);
  75. var gridCaption = model.getValue("/root/hidden/temp/rsltlist/header/caption");
  76. if(gridCaption == "") return;
  77. //ref 정보
  78. var gridColRef = model.getValue("/root/hidden/temp/rsltlist/header/colref");
  79. var gridColRefArray = gridColRef.split("^");
  80. for( var i = 0; i < gridColRefArray.length; i++ ) {
  81. grd_testlist.addColumn("ref:" + gridColRefArray[i] + ";", false);
  82. }
  83. grd_testlist.colWidth(1) = 130;
  84. grd_testlist.colWidth(2) = 80;
  85. grd_testlist.colWidth(3) = 80;
  86. grd_testlist.colWidth(4) = 100;
  87. grd_testlist.colWidth(5) = 130;
  88. grd_testlist.colWidth(6) = 100;
  89. grd_testlist.colWidth(7) = 130;
  90. grd_testlist.colWidth(8) = 120;
  91. grd_testlist.colWidth(9) = 170;
  92. grd_testlist.ellipsis = true;
  93. grd_testlist.colAttribute(1, "format") = "yyyy-mm-dd : hh:nn:ss";
  94. for( i = 10; i < grd_testlist.cols; i++ ) {
  95. grd_testlist.colWidth(i) = 70;
  96. }
  97. grd_testlist.caption = gridCaption;
  98. var node = instance1.selectSingleNode("/root/main");
  99. node.replaceChild(instance1.root.hidden.temp.rsltlist, instance1.root.main.rsltlist);
  100. grd_testlist.rebuild();
  101. }
  102. ]]>
  103. </script>
  104. </xhtml:head>
  105. <xhtml:body>
  106. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  107. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  108. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  109. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  110. <caption id="caption2" class="search_name" style="left:341px; top:9px; width:86px; height:17px; ">조회일시 :</caption>
  111. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  112. <caption>조회</caption>
  113. <script ev:event="DOMActivate" type="javascript">
  114. <![CDATA[
  115. fgetOutrequestlist();
  116. ]]>
  117. </script>
  118. </button>
  119. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  120. <input id="ipt_fromdd" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" style="left:430px; top:8px; width:105px; height:19px; "/>
  121. <caption id="caption3" class="search_no_b" style="left:539px; top:9px; width:15px; height:17px; ">~</caption>
  122. <input id="ipt_todd" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:555px; top:8px; width:105px; height:19px; "/>
  123. <caption id="caption7" class="search_name" style="left:10px; top:9px; width:88px; height:17px; ">의뢰그룹 :</caption>
  124. <select1 id="combo2" ref="/root/hidden/ref/requestgbn" appearance="minimal" style="left:100px; top:8px; width:135px; height:19px; ">
  125. <choices>
  126. <item>
  127. <label>전체</label>
  128. <value>00</value>
  129. </item>
  130. <item>
  131. <label>LMA107</label>
  132. <value>LMA107</value>
  133. </item>
  134. <item>
  135. <label>LMA001</label>
  136. <value>LMA001</value>
  137. </item>
  138. <item>
  139. <label>LPD193</label>
  140. <value>LPD193</value>
  141. </item>
  142. </choices>
  143. </select1>
  144. </group>
  145. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:147px; height:14px; ">결핵균외부의뢰리스트</caption>
  146. <datagrid id="grd_testlist" nodeset="/root/main/rsltlist/row" backcoloralternate="transparent" colsep="^" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" selectionmode="byrow" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:669px; ">
  147. <script ev:event="onaftersort" type="javascript">
  148. <![CDATA[
  149. grd_testlist.gridToInstance();
  150. ]]>
  151. </script>
  152. </datagrid>
  153. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  154. <button id="btn_excel" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1153px; top:50px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  155. <caption>엑셀</caption>
  156. <script ev:event="DOMActivate" type="javascript">
  157. <![CDATA[
  158. var filename = window.fileDialog("save",",",false,"결핵균검사의뢰리스트","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  159. if(filename != "") {
  160. grd_testlist.saveExcel(filename);
  161. }
  162. ]]>
  163. </script>
  164. </button>
  165. </group>
  166. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  167. <button id="button5" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1127px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  168. <caption>초기화</caption>
  169. <script ev:event="DOMActivate" type="javascript">
  170. <![CDATA[
  171. fsetinit();
  172. ]]>
  173. </script>
  174. </button>
  175. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  176. </group>
  177. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  178. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">결핵균외부의뢰조회</caption>
  179. </group>
  180. </xhtml:body>
  181. </xhtml:html>