123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHA04520.xrw
- * 설 명 : 서직지출력
- * 설 계 자 : 손범성
- * 작 성 자 : 손범성
- * 작 성 일 : 2008.12.24
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>공단결과출력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <prntoptinfo>
- <prntflag>paper</prntflag>
- <prntsize>01</prntsize>
- </prntoptinfo>
- <prntpatlst>
- <item>
- <sel/>
- <hopedd/>
- <rrgstno/>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <statflag/>
- <pkgcd/>
- <pkgnm/>
- <remcnts/>
- <healexamflag/>
- <healexamdetlflag/>
- <rsrvdd/>
- <rsrvno/>
- <cretno/>
- <orddd/>
- </item>
- </prntpatlst>
- <info>
- <patinfo>
- <item>
- <pid/>
- <rgstno1/>
- <rgstno2/>
- <hngnm/>
- <engnm/>
- <sex/>
- <age/>
- <brthdd/>
- <zipcd1/>
- <zipcd2/>
- <addr/>
- <detladdr1/>
- <mpphon/>
- <telno/>
- <emailid/>
- <emailtype/>
- <healexampid/>
- <emailkind/>
- <zipcd21/>
- <zipcd22/>
- <addr2/>
- <detladdr2/>
- <psptno/>
- <brthareacnts/>
- <pidcretfg/>
- <zipcdseq1/>
- <zipcdseq2/>
- <clntgrde/>
- <patremcnts/>
- <notice/>
- </item>
- </patinfo>
- </info>
- <prntinfo>
- <prnt>
- </prnt>
- </prntinfo>
- </main>
- <send>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchpnm/>
- <srchpkgcd/>
- <srchpkgnm/>
- <prnt/>
- </send>
- <init>
- <baseinfo>
- <contypelst/>
- <statlst/>
- <healexamflag>
- <item/>
- </healexamflag>
- <hedetlflaglst/>
- <brtharealst/>
- <chealexamflag/>
- <ghealexamflag/>
- <initaddrinfo/>
- </baseinfo>
- </init>
- <hidden>
- <count/>
- <pkginfo/>
- </hidden>
- <temp>
- <coninfolst/>
- <prntinfo/>
- <cdlst>
- </cdlst>
- <preview>Y</preview>
- <language>H</language>
- </temp>
- <report>
- <cmpyrslt>
- <item/>
- </cmpyrslt>
- <iteminfo/>
- <itemjudg/>
- <patinfo/>
- </report>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var sFlag = getScreenMenuParameter();
-
- if(sFlag != "") {
- m_vHealexamflag = sFlag.substr(0,1);
- m_vHealexamdetlflag = sFlag;
- }
- fGetBaseInfo();
- fInitInfo();
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
- <submission id="TRAHA04541" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prntpatlst"/>
- <submission id="TRAHA04542" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prnt" replace="instance" resultref="root/main/prntinfo/prnt"/>
- <submission id="TXAHA04521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updata/req" replace="instance" resultref="/root/hidden/count"/>
- <submission id="TRAHA00001"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var m_vHealexamflag = "";
- var m_vHealexamdetlflag = "";
-
- /*=======================================================================================
- *공통코드 가져오기
- =======================================================================================*/
- function fGetBaseInfo(){
-
- //건진분류(종건/일건) , 건진상태구분, 계약종류
- zbcfGetCodeList( new Array( "A0069","A0070" ,"A0107","A0113","A0465" ),
- new Array ("/root/init/baseinfo/chealexamflag"
- ,"/root/init/baseinfo/ghealexamflag"
- ,"/root/init/baseinfo/statlst"
- ,"/root/init/baseinfo/contypelst"
- ,"/root/init/baseinfo/brtharealst" ) );
-
- healGetCodeList( new Array("S040", "S050", "R001"),
- new Array("/root/init/baseinfo/initsendaddressflag", "/root/init/baseinfo/initsendaddressflag2", "/root/init/baseinfo/initaddrinfo") );
-
- model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
- model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
- model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
- model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
- model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
- model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
- model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
- model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
- model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
- model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
- model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
- model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
- model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
- model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
- model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
-
- copyNodesetType("/root/init/baseinfo/healexamflag/item","/root/init/baseinfo/chealexamflag/A0069", "replace");
- copyNodesetType("/root/init/baseinfo/healexamflag/item","/root/init/baseinfo/ghealexamflag/A0070", "after");
-
- cmb_srchhealexamdetlflag.refresh();
- }
- /*=======================================================================================
- *초기화
- =======================================================================================*/
- function fInitInfo(){
- var cur_date = getCurrentDate() ;
- model.setValue( ipt_srchfromdd.attribute("ref") , cur_date) ;
- model.setValue(ipt_srchtodd.attribute("ref") , cur_date) ;
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
-
- grd_prntlst.fixedcellcheckbox(0,1) = true;
-
- }
-
- /**=======================================================================================
- * 건진 결과 출력 대상자 리스트 조회
- =======================================================================================*/
- function fGetPrntPatList(){
- submit("TRAHA04541");
- }
- /**=======================================================================================
- @desc : 결과지 출력
- =======================================================================================*/
- function fPrintRslt(){
- setParameter("reportprintyn", ""); //출력여부 확인하기
- var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- var ret = false;
-
- for( var i = 0 ; i < nodeList.length ; i++){
- model.makeValue("/root/send/prnt/healexamflag", nodeList.item(i).healexamflag.text ); //건진구분
- model.makeValue("/root/send/prnt/healexamdetlflag", nodeList.item(i).healexamdetlflag.text ); //건진상세구분
- model.makeValue("/root/send/prnt/rsrvdd", nodeList.item(i).rsrvdd.text ); //예약등록일자
- model.makeValue("/root/send/prnt/rsrvno", nodeList.item(i).rsrvno.text ); //예약등록번호
- model.makeValue("/root/send/prnt/pid", nodeList.item(i).pid.text ); //등록번호
- model.makeValue("/root/send/prnt/orddd", nodeList.item(i).orddd.text ); //건진일자
- model.makeValue("/root/send/prnt/cretno", nodeList.item(i).cretno.text ); //건진일자
-
- //그리드에 뿌려주기
- if( submit("TRAHA04542") ) {
- var bDirectPrnt = "true";
- if( chk_preview.value == "Y" ){
- bDirectPrnt = "false";
- }
- copyNodeType("/root/main/prntinfo/prnt/patinfo","/root/init/addrinfo", "after");
-
- if (bDirectPrnt == "false") { //미리보기
- exeReportPreview("RPAHR04540", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- } else {
- exeReportPreview("RPAHR04540", "XMLSTR", "", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }
- }
- }
- /*
- if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
- grd_prntlst.clearStatus();
- for( var i = 0 ; i <= grd_prntlst.rows ; i++){
- if(grd_prntlst.valueMatrix(i,grd_prntlst.colRef("sel")) == "Y") {
- grd_prntlst.rowStatus(i) = 2;
- }
- }
- model.setValue("/root/send/updata/req" , grd_prntlst.getUpdateData());
- submit("TXAHA04521");
- }*/
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1220" pageheight="820" guideline="2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">공단결과출력</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:739px; ">
- <group id="group2" style="left:0px; top:5px; width:1195px; height:45px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:45px; "/>
- <caption id="caption10" class="search_name" style="left:215px; top:12px; width:91px; height:17px; ">건진기간 :</caption>
- <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:302px; top:11px; width:95px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:420px; top:11px; width:95px; height:19px; "/>
- <line id="line5" class="line_4" style="x1:1127px; y1:6px; x2:1127px; y2:39px; "/>
- <caption id="caption13" class="search_name" style="left:825px; top:11px; width:86px; height:17px; ">환자검색 :</caption>
- <caption id="caption14" class="search_n_b" style="left:403px; top:12px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" style="left:912px; top:11px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_srchpat" , "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_srchpat" class="icon_search" style="left:997px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHR00900", "pid", model.getValue("/root/send/srchpid") , "N","", ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:1134px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회 버튼 클릭 이벤트
- fGetPrntPatList();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:5px; top:11px; width:91px; height:17px; ">건진구분 :</caption>
- <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" disabled="true" appearance="minimal" style="left:92px; top:9px; width:113px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamflag/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetPrntPatList();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:525px; top:12px; width:91px; height:17px; ">패키지 :</caption>
- <input id="ipt_pkgcd" ref="/root/send/srchpkgcd" style="left:601px; top:11px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_srchpkg" , "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_srchpkg" class="icon_search" style="left:686px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/pkginfo");
- fGetPkgCd("SMAHA00300", "P", "N","cd" , model.getValue("/root/send/srchpkgcd") ,model.getValue("/root/send/srchhealexamdetlflag") , "" , "/root/hidden/pkginfo","Y","" , "" );
-
- if( fCheckNodeExist("/root/hidden/pkginfo/pkgcd" , false) ) {
- model.setValue("/root/send/srchpkgcd" , model.getValue("/root/hidden/pkginfo/pkgcd") == "" ? model.getValue("/root/send/srchpkgcd") : model.getValue("/root/hidden/pkginfo/pkgcd"));
- ipt_pkgcd.refresh();
- }
- if( fCheckNodeExist("/root/hidden/pkginfo/pkgnm" , false) ) {
- model.setValue("/root/send/srchpkgnm" , model.getValue("/root/hidden/pkginfo/pkgnm") == "" ? model.getValue("/root/send/srchpkgnm") : model.getValue("/root/hidden/pkginfo/pkgnm"));
- ipt_pkgnm.refresh();
- }
-
- ]]>
- </script>
- </button>
- <input id="ipt_pkgnm" ref="/root/send/srchpkgnm" disabled="true" style="left:707px; top:11px; width:110px; height:19px; "/>
- <input id="ipt_pnm" ref="/root/send/srchpnm" disabled="true" style="left:1018px; top:11px; width:100px; height:19px; "/>
- </group>
- <datagrid id="grd_prntlst" nodeset="/root/main/prntpatlst/item" autoresize="true" caption="선택^건진일자^주민번호^등록번호^한글이름^성별^나이^건진상태^패키지코드^패키지명^비고^healexamflag^healexamdetlflag^rsrvdd^rsrvno^cretno^orddd^출력일시^orddd^판정의^caption1" colsep="^" colwidth="50, 80, 120, 100, 100, 40, 40, 80, 150, 230, 160, 100, 100, 100, 100, 100, 100" defaultrows="1" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:83px; width:1185px; height:651px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="pid" style="text-align:left; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="age" style="text-align:left; "/>
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pkgcd" style="text-align:left; "/>
- <col ref="pkgnm" style="text-align:left; "/>
- <col ref="remcnts" style="text-align:left; "/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prntlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="tit_2" style="left:5px; top:63px; width:144px; height:13px; ">상세내역</caption>
- <line id="line3" class="line_1" style="x1:5px; y1:78px; x2:1190px; y2:78px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:751px; width:1195px; height:28px; ">
- <button id="button1" class="btn6_letter4" style="left:0px; top:4px; width:80px; height:22px; ">
- <caption>결과출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fPrintRslt();
- ]]>
- </script>
- </button>
- <select id="chk_preview" ref="/root/temp/preview" overflow="visible" appearance="full" cols="4" rows="1" style="left:90px; top:7px; width:75px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>미리보기</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/temp/preview","Y");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.setValue("/root/temp/preview","");
- ]]>
- </script>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|