SMLLP00900_결과조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP00900_결과조회.xrw
  4. * 설 명 : 결과조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.06.15
  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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getResultList>
  20. <result/>
  21. <level/>
  22. </getResultList>
  23. <getResultDetail>
  24. <reptrslt/>
  25. </getResultDetail>
  26. </main>
  27. <send>
  28. <data1/>
  29. </send>
  30. <init>
  31. <LB0106>
  32. <cd/>
  33. <nm/>
  34. </LB0106>
  35. </init>
  36. <hidden>
  37. <refparam>
  38. <startdd/>
  39. <enddd/>
  40. <searchtext/>
  41. <refflag>1</refflag>
  42. <refddflag>1</refddflag>
  43. </refparam>
  44. <testgroup>
  45. <tsected/>
  46. </testgroup>
  47. </hidden>
  48. <temp>
  49. <subordlist1>
  50. <subresultdetail1/>
  51. </subordlist1>
  52. </temp>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-model-construct-done">
  56. <![CDATA[
  57. var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3, "M");
  58. // model.setvalue("/root/hidden/testgroup/tsectcd", "00");
  59. model.setvalue("/root/hidden/refparam/startdd",mDate.getDateFormat("YYYYMMDD"));
  60. model.setvalue("/root/hidden/refparam/enddd",getCurrentDate());
  61. fBaseInfoRef("0124|0106|");
  62. combo11.select(0);
  63. model.refresh();
  64. ]]>
  65. </script>
  66. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  72. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  73. <submission id="TRLLP00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getResultList"/>
  74. <submission id="TRLLP00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getResultDetail"/>
  75. <submission id="TRLLP00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/subordlist1/"/>
  76. </model>
  77. <script type="javascript">
  78. <![CDATA[
  79. function fSetInit() {
  80. // model.setvalue("/root/hidden/testgroup/tsectcd", "00");
  81. //
  82. fBaseInfoRef("0124|0106|");
  83. model.removeNodeset("/root/main/getResultList");
  84. model.removeNodeset("/root/main/getResultDetail");
  85. model.removeNodeset("/root/temp/subordlist1/getResultDetail");
  86. model.removeNodeset("/root/temp/subordlist2/getResultDetail");
  87. model.refresh();
  88. }
  89. function fGetResultListRef(){
  90. if(model.getvalue("/root/hidden/refparam/searchtext") == ""){
  91. messageBox("검색어를","C001","");
  92. return;
  93. }
  94. fSetInit();
  95. model.copyNode("/root/send/data1" , "/root/hidden/refparam");
  96. //이재오 20141 20
  97. // model.copyNode("/root/send/data1","/root/hidden/testgroup");
  98. // alert(model.getValue("/root/hidden/testgroup/tsected"));
  99. //이재오 20141 20
  100. // model.copyNode("/root/send/data1","/root/hidden/testgroup");
  101. model.makeValue("/root/send/data1/tsected", model.getValue("/root/hidden/testgroup/tsected")); //결과일, 접수일 구분 조회때문에 추가함_20090522 승현
  102. // alert(model.getValue("/root/send/data1/tsected"));
  103. submit("TRLLP00901");
  104. fSetMakeTree();
  105. }
  106. function fSetMakeTree(){
  107. for(var i = 1; i < grd_spclist.rows; i++) {
  108. grd_spclist.IsSubtotal(i) = true;
  109. grd_spclist.outlinelevel(i) = grd_spclist.valueMatrix(i,1);
  110. }
  111. grd_spclist.OutlineCol = 0;
  112. grd_spclist.OutlineBar = 4;
  113. }
  114. function fPidRef(){
  115. if(event.keyCode == "13"){
  116. if(event.target == "iptSearch"){
  117. model.setvalue("/root/hidden/refparam/searchtext",iptSearch.currentText);
  118. model.refresh();
  119. fGetResultListRef();
  120. iptSearch.selBegin = 0;
  121. iptSearch.selEnd = iptSearch.currentText.length;
  122. }
  123. }
  124. }
  125. function fClickResultList(){
  126. if(grd_spclist.isCell(event.target) && grd_spclist.row >= grd_spclist.fixedRows ){
  127. var row = grd_spclist.row;
  128. var sLevel = model.getvalue("/root/main/getResultList["+row+"]/level");
  129. if(sLevel == "1") return;
  130. datagrid1.rebuildStyle();
  131. model.removeNodeset("/root/main/getResultDetail");
  132. model.removeNodeset("/root/temp/subordlist1/getResultDetail");
  133. model.removeNodeset("/root/temp/subordlist2/getResultDetail");
  134. model.copyNode("/root/send/data1" , "/root/main/getResultList["+row+"]");
  135. model.makeValue("/root/send/data1/refddflag", model.getValue("/root/hidden/refparam/refddflag")); //결과일, 접수일 구분 조회때문에 추가함_20090522 승현
  136. submit("TRLLP00902");
  137. submit("TRLLP00903");
  138. fGrdRemake();
  139. }
  140. }
  141. function fGrdRemake(){
  142. for(i=1;i<datagrid1.rows;i++){
  143. if(model.getvalue("/root/main/getResultDetail["+i+"]/judgmark") == "IMG"){
  144. datagrid1.cellstyle("background-image", i, 0) = "../../../com/commonweb/images/icon_picture.gif";
  145. datagrid1.cellstyle("background-position", i, 0) = "left";
  146. datagrid1.cellstyle("padding-left", i, 0) = 15;
  147. }
  148. }
  149. }
  150. function fGetMouseDown(){
  151. model.removeNodeset("/root/hidden/popupmenu");
  152. if(event.button == 3){ // 라이트클릭 메뉴만들기...
  153. model.makeNode("/root/hidden/popupmenu/grid");
  154. model.makeNode("/root/hidden/popupmenu/grid/item");
  155. datagrid1.row = datagrid1.mouseRow
  156. var row = datagrid1.row;
  157. if(model.getvalue("/root/main/getResultDetail["+row+"]/judgmark") == "IMG"){
  158. model.makeValue("/root/hidden/popupmenu/grid/item/name" , "▶ 이미지 보기");
  159. model.makeValue("/root/hidden/popupmenu/grid/item/func" , "fGetimg");
  160. }
  161. }
  162. if(datagrid1.isCell(event.target) && datagrid1.mouseRow >= datagrid1.fixedrows){
  163. window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , true);
  164. //setPopupMenu("grd_TestInfoCnts" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
  165. }else{
  166. window.setPopupMenu(false);
  167. }
  168. }
  169. function fGetimg(){
  170. var row = datagrid1.row;
  171. if(model.getvalue("/root/main/getResultDetail["+row+"]/judgmark") == "IMG"){
  172. modal("SMLRR01500","", "", "","", "/root/main/getResultDetail["+row+"]", "/root/hidden/spcltestinfo");
  173. }
  174. }
  175. function fOnmenu(popupParam){
  176. if(popupParam == "fGetimg"){
  177. fGetimg();
  178. }
  179. }
  180. function fExcPrint(){
  181. model.removenode("/root/hidden/subordlist");
  182. //model.makeNode("/root/hidden/subordlist");
  183. var result = "";
  184. var nodeCount = 1;
  185. var nodeCnt = getNodesetCount("/root/temp/subordlist1/getResultDetail");
  186. //alert(nodeCnt);
  187. for (var i =1; i <= nodeCnt; i++) {
  188. //result = "";
  189. var tclsscrnnnm = model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/tclsscrnnnm");
  190. var reptrslt = model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/reptrslt");
  191. if (tclsscrnnnm == reptrslt) {
  192. result = model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/tclsscrnnnm");
  193. if(result != ""){
  194. if(nodeCount == 1){
  195. }else{
  196. nodeCount++;
  197. }
  198. model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/result", result.getTrim());
  199. }
  200. } else {
  201. model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/tclsscrnnnm",
  202. model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/tclsscrnnnm"));
  203. model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/reptrslt",
  204. model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/reptrslt"));
  205. model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/rsltunit",
  206. model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/rsltunit"));
  207. model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount+ "]/ref",
  208. model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/ref"));
  209. model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/lastreptdt",
  210. model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/lastreptdt"));
  211. model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/testpsn",
  212. model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/testpsn"));
  213. nodeCount++;
  214. result = "";
  215. }
  216. }
  217. //return;
  218. exeReportPreview("RPLLP00800", "XMLSTR");
  219. }
  220. ]]>
  221. </script>
  222. </xhtml:head>
  223. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  224. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  225. <group id="group1" style="left:0px; top:10px; width:1195px; height:55px; ">
  226. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  227. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  228. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  229. <caption>조회</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. fGetResultListRef();
  233. ]]>
  234. </script>
  235. </button>
  236. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">결과일자 :</caption>
  237. <caption id="caption3" class="search_no_b" style="left:209px; top:10px; width:13px; height:17px; ">~</caption>
  238. <caption id="caption5" class="search_no_b" style="left:455px; top:9px; width:75px; height:17px; ">성 명 :</caption>
  239. <caption id="caption4" class="search_name" style="left:733px; top:9px; width:86px; height:17px; ">검색구분 :</caption>
  240. <input id="input1" ref="/root/hidden/refparam/startdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:100px; height:19px; "/>
  241. <input id="input2" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:226px; top:8px; width:100px; height:19px; "/>
  242. <input id="iptSearch" ref="/root/hidden/refparam/searchtext" class="input_s_button" navindex="1" inputtype="button" style="left:955px; top:8px; width:140px; height:19px; ">
  243. <script type="javascript" ev:event="onbuttonclick">
  244. <![CDATA[
  245. fGetResultListRef();
  246. ]]>
  247. </script>
  248. <script type="javascript" ev:event="onkeypress">
  249. <![CDATA[
  250. fPidRef();
  251. ]]>
  252. </script>
  253. </input>
  254. <select1 id="combo2" ref="/root/hidden/refparam/refflag" class="combo_search" appearance="minimal" style="left:823px; top:8px; width:130px; height:19px; ">
  255. <choices>
  256. <item>
  257. <label>등록번호</label>
  258. <value>1</value>
  259. </item>
  260. <item>
  261. <label>환자성명</label>
  262. <value>2</value>
  263. </item>
  264. <item>
  265. <label>주민등록번호</label>
  266. <value>3</value>
  267. </item>
  268. <item>
  269. <label>바코드번호</label>
  270. <value>4</value>
  271. </item>
  272. </choices>
  273. </select1>
  274. <select1 id="radio1" ref="/root/hidden/refparam/refddflag" appearance="full" cols="2" overflow="visible" style="left:330px; top:10px; width:120px; height:15px; border-style:none; ">
  275. <choices>
  276. <item>
  277. <label>결과일</label>
  278. <value>1</value>
  279. </item>
  280. <item>
  281. <label>접수일</label>
  282. <value>2</value>
  283. </item>
  284. </choices>
  285. <script type="javascript" ev:event="xforms-value-changed">
  286. <![CDATA[
  287. if(model.getValue("/root/hidden/refparam/refddflag") == 1){
  288. caption2.value = "결과일자 : ";
  289. grd_spclist.caption = "결 과 일 자 ^level";
  290. }else{
  291. caption2.value = "접수일자 : ";
  292. grd_spclist.caption = "접 수 일 자 ^level";
  293. }
  294. model.removeNodeset("/root/main/getResultList");
  295. model.removeNodeset("/root/main/getResultDetail");
  296. model.refresh();
  297. ]]>
  298. </script>
  299. </select1>
  300. <output id="combo1" ref="/root/main/getResultList/patnm" class="output_fix" appearance="output" style="left:495px; top:8px; width:70px; height:19px; text-align:center; "/>
  301. <select1 id="combo11" ref="/root/hidden/testgroup/tsected" class="combo_search" appearance="minimal" style="left:575px; top:10px; width:159px; height:19px; ">
  302. <choices>
  303. <itemset nodeset="/root/init/LB0106">
  304. <label ref="nm"/>
  305. <value ref="cd"/>
  306. </itemset>
  307. </choices>
  308. </select1>
  309. </group>
  310. <line id="line1" class="line_1" style="x1:2px; y1:70px; x2:355px; y2:70px; "/>
  311. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">결과조회</caption>
  312. <datagrid id="grd_spclist" nodeset="/root/main/getResultList" caption="결 과 일 자 ^level" colsep="^" colwidth="295,0" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:355px; height:664px; ">
  313. <col ref="result" format="yyyy-mm-dd"/>
  314. <col ref="level"/>
  315. <script type="javascript" ev:event="onclick">
  316. <![CDATA[
  317. fClickResultList();
  318. ]]>
  319. </script>
  320. <script type="javascript" ev:event="onaftersort">
  321. <![CDATA[
  322. grd_spclist.gridToInstance();
  323. ]]>
  324. </script>
  325. </datagrid>
  326. <datagrid id="datagrid1" nodeset="/root/main/getResultDetail" caption="결 과 내 역" colsep="^" colwidth="1100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:360px; top:75px; width:835px; height:664px; font-family:굴림체; ">
  327. <col ref="reptrslt" format="yyyy-mm-dd" style="font-family:굴림체; "/>
  328. <script type="javascript" ev:event="onmousedown">
  329. <![CDATA[
  330. fGetMouseDown();
  331. ]]>
  332. </script>
  333. <script type="javascript" ev:event="onaftersort">
  334. <![CDATA[
  335. datagrid1.gridToInstance();
  336. ]]>
  337. </script>
  338. <script type="javascript" ev:event="DOMFocusOut">
  339. <![CDATA[
  340. window.setPopupMenu(false);
  341. ]]>
  342. </script>
  343. <script type="javascript" ev:event="onmouseout">
  344. <![CDATA[
  345. window.setPopupMenu(false);
  346. ]]>
  347. </script>
  348. </datagrid>
  349. <line id="line2" class="line_1" style="x1:360px; y1:70px; x2:1194px; y2:70px; "/>
  350. </group>
  351. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  352. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  353. <caption>초기화</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. fSetInit();
  357. ]]>
  358. </script>
  359. </button>
  360. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  361. <button id="button3" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  362. <caption>출력</caption>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. fExcPrint();
  366. ]]>
  367. </script>
  368. </button>
  369. </group>
  370. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  371. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">결과조회</caption>
  372. </group>
  373. <script type="javascript" ev:event="onmenu">
  374. <![CDATA[
  375. var popupParam = event.description;
  376. fOnmenu(popupParam);
  377. ]]>
  378. </script>
  379. </xhtml:body>
  380. </xhtml:html>