123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLP00900_결과조회.xrw
- * 설 명 : 결과조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.06.15
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <getResultList>
- <result/>
- <level/>
- </getResultList>
- <getResultDetail>
- <reptrslt/>
- </getResultDetail>
- </main>
- <send>
- <data1/>
- </send>
- <init>
- <LB0106>
- <cd/>
- <nm/>
- </LB0106>
- </init>
- <hidden>
- <refparam>
- <startdd/>
- <enddd/>
- <searchtext/>
- <refflag>1</refflag>
- <refddflag>1</refddflag>
- </refparam>
- <testgroup>
- <tsected/>
- </testgroup>
- </hidden>
- <temp>
- <subordlist1>
- <subresultdetail1/>
- </subordlist1>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3, "M");
- // model.setvalue("/root/hidden/testgroup/tsectcd", "00");
- model.setvalue("/root/hidden/refparam/startdd",mDate.getDateFormat("YYYYMMDD"));
- model.setvalue("/root/hidden/refparam/enddd",getCurrentDate());
- fBaseInfoRef("0124|0106|");
- combo11.select(0);
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLP00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getResultList"/>
- <submission id="TRLLP00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getResultDetail"/>
- <submission id="TRLLP00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/subordlist1/"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fSetInit() {
- // model.setvalue("/root/hidden/testgroup/tsectcd", "00");
- //
- fBaseInfoRef("0124|0106|");
- model.removeNodeset("/root/main/getResultList");
- model.removeNodeset("/root/main/getResultDetail");
- model.removeNodeset("/root/temp/subordlist1/getResultDetail");
- model.removeNodeset("/root/temp/subordlist2/getResultDetail");
- model.refresh();
- }
-
- function fGetResultListRef(){
-
- if(model.getvalue("/root/hidden/refparam/searchtext") == ""){
- messageBox("검색어를","C001","");
- return;
- }
-
- fSetInit();
-
- model.copyNode("/root/send/data1" , "/root/hidden/refparam");
- //이재오 20141 20
- // model.copyNode("/root/send/data1","/root/hidden/testgroup");
- // alert(model.getValue("/root/hidden/testgroup/tsected"));
- //이재오 20141 20
- // model.copyNode("/root/send/data1","/root/hidden/testgroup");
- model.makeValue("/root/send/data1/tsected", model.getValue("/root/hidden/testgroup/tsected")); //결과일, 접수일 구분 조회때문에 추가함_20090522 승현
- // alert(model.getValue("/root/send/data1/tsected"));
-
- submit("TRLLP00901");
- fSetMakeTree();
- }
-
- function fSetMakeTree(){
-
- for(var i = 1; i < grd_spclist.rows; i++) {
-
- grd_spclist.IsSubtotal(i) = true;
- grd_spclist.outlinelevel(i) = grd_spclist.valueMatrix(i,1);
- }
- grd_spclist.OutlineCol = 0;
- grd_spclist.OutlineBar = 4;
-
-
- }
-
- function fPidRef(){
- if(event.keyCode == "13"){
- if(event.target == "iptSearch"){
- model.setvalue("/root/hidden/refparam/searchtext",iptSearch.currentText);
- model.refresh();
-
- fGetResultListRef();
-
- iptSearch.selBegin = 0;
- iptSearch.selEnd = iptSearch.currentText.length;
-
-
- }
- }
-
- }
-
- function fClickResultList(){
- if(grd_spclist.isCell(event.target) && grd_spclist.row >= grd_spclist.fixedRows ){
-
- var row = grd_spclist.row;
- var sLevel = model.getvalue("/root/main/getResultList["+row+"]/level");
-
- if(sLevel == "1") return;
-
-
- datagrid1.rebuildStyle();
-
- model.removeNodeset("/root/main/getResultDetail");
- model.removeNodeset("/root/temp/subordlist1/getResultDetail");
- model.removeNodeset("/root/temp/subordlist2/getResultDetail");
-
- model.copyNode("/root/send/data1" , "/root/main/getResultList["+row+"]");
- model.makeValue("/root/send/data1/refddflag", model.getValue("/root/hidden/refparam/refddflag")); //결과일, 접수일 구분 조회때문에 추가함_20090522 승현
-
- submit("TRLLP00902");
- submit("TRLLP00903");
-
-
- fGrdRemake();
- }
-
- }
-
- function fGrdRemake(){
- for(i=1;i<datagrid1.rows;i++){
- if(model.getvalue("/root/main/getResultDetail["+i+"]/judgmark") == "IMG"){
-
- datagrid1.cellstyle("background-image", i, 0) = "../../../com/commonweb/images/icon_picture.gif";
- datagrid1.cellstyle("background-position", i, 0) = "left";
- datagrid1.cellstyle("padding-left", i, 0) = 15;
- }
- }
- }
-
- function fGetMouseDown(){
- model.removeNodeset("/root/hidden/popupmenu");
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
- datagrid1.row = datagrid1.mouseRow
- var row = datagrid1.row;
-
- if(model.getvalue("/root/main/getResultDetail["+row+"]/judgmark") == "IMG"){
- model.makeValue("/root/hidden/popupmenu/grid/item/name" , "▶ 이미지 보기");
- model.makeValue("/root/hidden/popupmenu/grid/item/func" , "fGetimg");
- }
- }
-
- if(datagrid1.isCell(event.target) && datagrid1.mouseRow >= datagrid1.fixedrows){
- window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , true);
- //setPopupMenu("grd_TestInfoCnts" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
-
- function fGetimg(){
- var row = datagrid1.row;
-
- if(model.getvalue("/root/main/getResultDetail["+row+"]/judgmark") == "IMG"){
- modal("SMLRR01500","", "", "","", "/root/main/getResultDetail["+row+"]", "/root/hidden/spcltestinfo");
- }
- }
-
- function fOnmenu(popupParam){
-
- if(popupParam == "fGetimg"){
- fGetimg();
- }
- }
-
- function fExcPrint(){
-
- model.removenode("/root/hidden/subordlist");
- //model.makeNode("/root/hidden/subordlist");
-
- var result = "";
- var nodeCount = 1;
- var nodeCnt = getNodesetCount("/root/temp/subordlist1/getResultDetail");
- //alert(nodeCnt);
- for (var i =1; i <= nodeCnt; i++) {
- //result = "";
-
- var tclsscrnnnm = model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/tclsscrnnnm");
- var reptrslt = model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/reptrslt");
-
- if (tclsscrnnnm == reptrslt) {
- result = model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/tclsscrnnnm");
- if(result != ""){
- if(nodeCount == 1){
- }else{
- nodeCount++;
- }
- model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/result", result.getTrim());
- }
- } else {
-
- model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/tclsscrnnnm",
- model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/tclsscrnnnm"));
- model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/reptrslt",
- model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/reptrslt"));
- model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/rsltunit",
- model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/rsltunit"));
- model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount+ "]/ref",
- model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/ref"));
- model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/lastreptdt",
- model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/lastreptdt"));
- model.makeValue("/root/temp/subordlist2/getResultDetail[" + nodeCount + "]/testpsn",
- model.getValue("/root/temp/subordlist1/getResultDetail[" + i + "]/testpsn"));
- nodeCount++;
-
- result = "";
-
- }
-
- }
-
-
-
-
- //return;
- exeReportPreview("RPLLP00800", "XMLSTR");
-
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <group id="group1" style="left:0px; top:10px; width:1195px; height:55px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetResultListRef();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">결과일자 :</caption>
- <caption id="caption3" class="search_no_b" style="left:209px; top:10px; width:13px; height:17px; ">~</caption>
- <caption id="caption5" class="search_no_b" style="left:455px; top:9px; width:75px; height:17px; ">성 명 :</caption>
- <caption id="caption4" class="search_name" style="left:733px; top:9px; width:86px; height:17px; ">검색구분 :</caption>
- <input id="input1" ref="/root/hidden/refparam/startdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:226px; top:8px; width:100px; height:19px; "/>
- <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; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetResultListRef();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fPidRef();
- ]]>
- </script>
- </input>
- <select1 id="combo2" ref="/root/hidden/refparam/refflag" class="combo_search" appearance="minimal" style="left:823px; top:8px; width:130px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자성명</label>
- <value>2</value>
- </item>
- <item>
- <label>주민등록번호</label>
- <value>3</value>
- </item>
- <item>
- <label>바코드번호</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>결과일</label>
- <value>1</value>
- </item>
- <item>
- <label>접수일</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/refparam/refddflag") == 1){
- caption2.value = "결과일자 : ";
- grd_spclist.caption = "결 과 일 자 ^level";
- }else{
- caption2.value = "접수일자 : ";
- grd_spclist.caption = "접 수 일 자 ^level";
- }
- model.removeNodeset("/root/main/getResultList");
- model.removeNodeset("/root/main/getResultDetail");
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <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; "/>
- <select1 id="combo11" ref="/root/hidden/testgroup/tsected" class="combo_search" appearance="minimal" style="left:575px; top:10px; width:159px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:2px; y1:70px; x2:355px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">결과조회</caption>
- <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; ">
- <col ref="result" format="yyyy-mm-dd"/>
- <col ref="level"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fClickResultList();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spclist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <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:굴림체; ">
- <col ref="reptrslt" format="yyyy-mm-dd" style="font-family:굴림체; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fGetMouseDown();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:360px; y1:70px; x2:1194px; y2:70px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button3" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcPrint();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">결과조회</caption>
- </group>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
-
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|