SMLQP00400_QC결과연동.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLQP00400_QC결과연동.xrw
  4. * 설 명 : QC결과연동
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2006.12.26
  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>QC 결과연동</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <testrslt>
  20. <acptdt/>
  21. <testnm/>
  22. <orgrslt/>
  23. <testdt/>
  24. <run/>
  25. <oclevlcd/>
  26. <lotno/>
  27. <ocitemcd/>
  28. <ocmthdcd/>
  29. <eqmtcd/>
  30. <ocreagentcd/>
  31. <ocunitcd/>
  32. <octmprcd/>
  33. <comment/>
  34. <reserved/>
  35. <orgrslt/>
  36. <levlnm/>
  37. <point/>
  38. <testroom/>
  39. <matrnm/>
  40. <ocitemnm/>
  41. <ocmthdnm/>
  42. <ocunitnm/>
  43. <octmprnm/>
  44. <newElement/>
  45. <oclotno/>
  46. </testrslt>
  47. </main>
  48. <send>
  49. <fromdd/>
  50. <todd/>
  51. <testroom>00</testroom>
  52. <eqmtcd>00</eqmtcd>
  53. <fromtm/>
  54. <totm/>
  55. </send>
  56. <init>
  57. <LB0702/>
  58. </init>
  59. <hidden>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fSetInit();
  66. ]]>
  67. </script>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/LB0111"/>
  72. <submission id="TRLQP00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/testrslt"/>
  73. </model>
  74. <script type="javascript">
  75. <![CDATA[
  76. function fSetInit(){
  77. //var fromdate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30)
  78. //fromdate.getDateFormat("YYYYMMDD")
  79. var totm = getCurrentTime().substring(0,4)
  80. model.setValue("/root/send/fromdd" , getCurrentDate());
  81. model.setValue("/root/send/fromtm" , "0000");
  82. model.setValue("/root/send/todd" , getCurrentDate());
  83. model.setValue("/root/send/totm" , totm);
  84. model.makeValue("/root/send/codeflag" ,"0000|0111|0701|"); //0000:사용자부서코드, 0111:시행부서계 0707: 장비코드
  85. submit("TRLZZ00101", false);
  86. model.makeValue("/root/send/basecdid", model.getValue("/root/init/LB0000/nm"));
  87. model.setValue("/root/send/codeflag" , "0501|"); //사용자 부서별로 레벨코드를 조회하기 위해 사용자부서 코드를 가져온 다음 다시 레벨코드 조회
  88. submit("TRLZZ00101");
  89. }
  90. //장비코드설정
  91. function fSetEqmtCd(){
  92. model.removeNodeset("/root/init/LB0701");
  93. var testroom = model.getValue("/root/send/testroom");
  94. model.makeValue("/root/send/basecdid" , testroom); //검사실구분 코드(장비코드앞자리)
  95. model.makeValue("/root/send/codeflag" , "0701|");
  96. model.setValue("/root/send/eqmtcd" , '00');
  97. submit("TRLZZ00101");
  98. }
  99. //결과조회(검사항목별)
  100. function fGetRslt(){
  101. if(model.getValue("/root/send/eqmtcd") == "00"){
  102. messageBox("장비를", "C002","");
  103. return;
  104. }
  105. submit("TRLQP00401");
  106. }
  107. //결과저장할 그리드 숨겼다보이기
  108. function fGrdVisible(){
  109. if(grd_rslt2.visible == true){
  110. grd_rslt2.visible = false;
  111. }else{
  112. grd_rslt2.visible = true;
  113. }
  114. }
  115. ]]>
  116. </script>
  117. </xhtml:head>
  118. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  119. <group id="group4" scroll="auto" style="left:0px; top:11px; width:1195px; height:27px; ">
  120. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  121. <caption>초기화</caption>
  122. <script type="javascript" ev:event="onclick">
  123. <![CDATA[
  124. window.reload(); //초기화reload
  125. ]]>
  126. </script>
  127. </button>
  128. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  129. </group>
  130. <group id="group1" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  131. <group id="group5" style="left:0px; top:0px; width:1193px; height:40px; ">
  132. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:40px; "/>
  133. <caption id="caption1" class="search_no_b" style="left:245px; top:12px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  134. <caption id="caption3" class="search_name" style="left:500px; top:11px; width:75px; height:17px; ">검사실 :</caption>
  135. <caption id="caption4" class="search_name" style="left:790px; top:11px; width:75px; height:17px; ">장비 :</caption>
  136. <select1 id="cbo_testRoom" ref="/root/send/testroom" class="combo_search" appearance="minimal" style="left:580px; top:10px; width:100px; height:19px; ">
  137. <choices>
  138. <itemset nodeset="/root/init/LB0111">
  139. <label ref="nm"/>
  140. <value ref="cd"/>
  141. </itemset>
  142. </choices>
  143. <script type="javascript" ev:event="xforms-select">
  144. <![CDATA[
  145. fSetEqmtCd(); //검사실에 대한 장비 조회
  146. ]]>
  147. </script>
  148. </select1>
  149. <select1 id="cbo_emqt" ref="/root/send/eqmtcd" class="combo_search" appearance="minimal" style="left:855px; top:10px; width:100px; height:19px; ">
  150. <choices>
  151. <itemset nodeset="/root/init/LB0701">
  152. <label ref="nm"/>
  153. <value ref="cd"/>
  154. </itemset>
  155. </choices>
  156. </select1>
  157. <button id="btn_getRslt" class="btn1_letter2" style="left:1123px; top:9px; width:56px; height:22px; ">
  158. <caption>조회</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. fGetRslt();
  162. ]]>
  163. </script>
  164. </button>
  165. <line id="line1" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:32px; "/>
  166. <caption id="caption6" class="search_name" style="left:15px; top:11px; width:90px; height:17px; ">접수일자 :</caption>
  167. <input id="ipt_acptFromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:105px; top:10px; width:85px; height:19px; "/>
  168. <input id="ipt_acptTodd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:260px; top:10px; width:85px; height:19px; "/>
  169. <input id="ipt_acpfromtm" ref="/root/send/fromtm" class="input_search" format="hh:nn" style="left:191px; top:10px; width:50px; height:19px; "/>
  170. <input id="ipt_acpttotm" ref="/root/send/totm" class="input_search" format="hh:nn" style="left:346px; top:10px; width:50px; height:19px; "/>
  171. </group>
  172. <datagrid id="grd_rslt" nodeset="/root/main/testrslt" caption="접수일자^검사명^결과^검사(확인)일시^횟수^물질^레벨^LOT번호^항목코드^방법^장비^시약^단위^온도^Comment^검사자" colsep="^" colwidth="120, 140, 50, 120, 30, 110, 60, 60, 110, 110, 40, 110, 60, 40, 80,80" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1194px; height:666px; ">
  173. <col ref="acptdt" format="yyyy-mm-dd hh:nn:ss"/>
  174. <col ref="testnm" style="left:140px; top:23px; width:100px; height:23px; "/>
  175. <col ref="orgrslt"/>
  176. <col ref="testdt" format="yyyy-mm-dd hh:nn:ss"/>
  177. <col ref="run"/>
  178. <col ref="matrnm"/>
  179. <col ref="levlnm"/>
  180. <col ref="lotno"/>
  181. <col ref="ocitemnm"/>
  182. <col ref="ocmthdnm"/>
  183. <col ref="eqmtcd" visibility="hidden"/>
  184. <col ref="ocreagentnm"/>
  185. <col ref="ocunitnm"/>
  186. <col ref="octmprnm"/>
  187. <col ref="comment" visibility="hidden"/>
  188. <col ref="operator"/>
  189. </datagrid>
  190. <caption id="caption9" class="tit_2" style="left:5px; top:48px; width:130px; height:13px; ">검체정보상세내역</caption>
  191. <button id="button6" class="btn2_letter2" style="left:1148px; top:42px; width:42px; height:19px; ">
  192. <caption>엑셀</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. var fileName = window.fileDialog("save", ",", false, "QC_"+getCurrentDate()+"_"+(cbo_emqt.label).substr(6, (cbo_emqt.label).length), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  196. if (fileName != ""){
  197. grd_rslt.saveExcel(fileName);
  198. }
  199. ]]>
  200. </script>
  201. </button>
  202. <line id="line2" class="line_1" style="x1:0px; y1:63px; x2:1194px; y2:63px; "/>
  203. <datagrid id="grd_rslt2" nodeset="/root/main/testrslt" visibility="hidden" caption="Point^검사(접수)일시^횟수^레벨^시행부서^LOT번호^항목코드^방법^장비^시약^단위^온도^검사자^Comment^Reserved^결과^colseq" colsep="^" colwidth="70,130,70,70,60,60,60,60,60,70,70,70,70,70,80^60^80^30" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:430px; width:1194px; height:306px; ">
  204. <col ref="point"/>
  205. <col ref="acptdt"/>
  206. <col ref="run"/>
  207. <col ref="oclevlcd"/>
  208. <col ref="testroom"/>
  209. <col ref="oclotno"/>
  210. <col ref="ocitemcd"/>
  211. <col ref="ocmthdcd"/>
  212. <col ref="eqmtcd2"/>
  213. <col ref="ocreagentcd"/>
  214. <col ref="ocunitcd"/>
  215. <col ref="octmprcd"/>
  216. <col ref="operator"/>
  217. <col ref="comment"/>
  218. <col ref="reserved"/>
  219. <col ref="orgrslt"/>
  220. <col ref="temp" visibility="hidden"/>
  221. </datagrid>
  222. <button id="btn_saveTxt" class="btn2_letter3" style="left:1092px; top:42px; width:53px; height:19px; ">
  223. <caption>TEXT</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. var fileName = window.fileDialog("save", ",", false, "QC_"+getCurrentDate()+"_"+(cbo_emqt.label).substr(6, (cbo_emqt.label).length), "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
  227. if (fileName != "")
  228. {
  229. grd_rslt2.saveText(fileName, "\n", "|");
  230. }
  231. ]]>
  232. </script>
  233. </button>
  234. </group>
  235. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  236. <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:95px; height:13px; ">
  237. <![CDATA[QC 결과연동]]>
  238. <script type="javascript" ev:event="ondblclick">
  239. <![CDATA[
  240. fGrdVisible();
  241. ]]>
  242. </script>
  243. </caption>
  244. </group>
  245. </xhtml:body>
  246. </xhtml:html>