123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLVP_검증보고서출력.xrw
- * 설 명 : 검증보고서출력
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2007.09.10
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <reptlist>
- <chk/>
- <orddeptroom/>
- <atdrnm/>
- <pid/>
- <patnm/>
- <sexage/>
- <orddd/>
- <readdt/>
- <printdt/>
- <printid/>
- <termhngnm/>
- <verimthd/>
- <verimthdother/>
- <addreadcont/>
- <readcont/>
- <usernm/>
- <prcpnm/>
- <reptrslt/>
- <spcscrnnm/>
- <testlrgnm/>
- <chk1/>
- <chk2/>
- <chk3/>
- <chk4/>
- <chk5/>
- <chk6/>
- </reptlist>
- </main>
- <send>
- <usdd/>
- <uedd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <refrgstsdd/>
- <refrgstedd/>
- <ne/>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fsetstart();
-
- ]]>
- </script>
- <submission id="TRLVP00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/reptlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //보고서 조회
- function fGetReptlist(){
- model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/refrgstsdd"));
- model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/refrgstedd"));
- submit("TRLVP00101");
- fchkvalue();
- fhidenrow();
-
- //fsettestlist();
-
-
- }
- function fsetstart(){
- var toDay = getCurrentDate();
- model.setValue("/root/hidden/ref/refrgstsdd", toDay);
- model.setValue("/root/hidden/ref/refrgstedd", toDay);
- model.removeNodeset("/root/main/reptlist");
- model.refresh();
- }
-
- function fwritemthd() {
- var newcode = '';
- for(i = 1; i < reptlist.rows ; i++){
- if(model.getValue("/root/main/reptlist["+i+"]/verimthd") != ''){
- var code = model.getValue("/root/main/reptlist["+i+"]/verimthd");
- newcode = '';
- for(i=0;i<6;i++){
- if(code.charAt(i)=='Y'){
- newcode = newcode + ""+(i+1)+"▦";
- }
- }
- model.setValue("/root/hidden/ref/ne", newcode);
- }
- model.setValue("/root/main/reptlist["+i+"]/verimthd", model.getValue("/root/hidden/ref/ne"));
- }
- }
-
- function fchkvalue() {
- for(i = 1; i < reptlist.rows ; i++){
- var code = model.getValue("/root/main/reptlist["+i+"]/verimthd");
- if(code.charAt(0)=='Y'){
- model.setValue("/root/main/reptlist["+i+"]/chk1" , "●");
- }else{
- model.setValue("/root/main/reptlist["+i+"]/chk1" , "○");
- }
- if(code.charAt(1)=='Y'){
- model.setValue("/root/main/reptlist["+i+"]/chk2" , "●");
- }else{
- model.setValue("/root/main/reptlist["+i+"]/chk2" , "○");
- }
- if(code.charAt(2)=='Y'){
- model.setValue("/root/main/reptlist["+i+"]/chk3" , "●");
- }else{
- model.setValue("/root/main/reptlist["+i+"]/chk3" , "○");
- }
- if(code.charAt(3)=='Y'){
- model.setValue("/root/main/reptlist["+i+"]/chk4" , "●");
- }else{
- model.setValue("/root/main/reptlist["+i+"]/chk4" , "○");
- }
- if(code.charAt(4)=='Y'){
- model.setValue("/root/main/reptlist["+i+"]/chk5" , "●");
- }else{
- model.setValue("/root/main/reptlist["+i+"]/chk5" , "○");
- }
- if(code.charAt(5)=='Y'){
- model.setValue("/root/main/reptlist["+i+"]/chk6" , "●");
- }else{
- model.setValue("/root/main/reptlist["+i+"]/chk6" , "○");
- }
- }
- }
-
- function fsettestlist() {
- var row = 1;
- var test = model.getValue("/root/main/reptlist["+1+"]/testlrgnm");
- for(i = 2 ; i < reptlist.rows ; i++){
- if(model.getValue("/root/main/reptlist["+(i-1)+"]/pid") == model.getValue("/root/main/reptlist["+i+"]/pid")){
- if(model.getValue("/root/main/reptlist["+(i-1)+"]/testlrgnm") != model.getValue("/root/main/reptlist["+i+"]/testlrgnm")){
- test = test + ", " + model.getValue("/root/main/reptlist["+i+"]/testlrgnm");
- model.setValue("/root/main/reptlist["+row+"]/testlrgnm", test);
- }
- }
- else{
- test = model.getValue("/root/main/reptlist["+i+"]/testlrgnm");
- row = i;
- model.setValue("/root/main/reptlist["+row+"]/testlrgnm", test);
- }
- }
- }
-
- function fhidenrow(){
- for(i = 2 ; i < reptlist.rows; i++){
- if(model.getValue("/root/main/reptlist["+(i-1)+"]/pid") == model.getValue("/root/main/reptlist["+i+"]/pid")){
- reptlist.rowHidden(i) = true;
- }
- }
- }
-
-
- function fprint() {
- fselectnode();
- makeReportPreview(0,50,1194,600);
- exeReportPreview("RPLVP00101", "XMLSTR", "", "", true);
- }
-
- function fselectnode() {
- var pid = "";
- for(i = 1 ; i < reptlist.rows ; i++) {
- if(model.getValue("/root/main/reptlist["+i+"]/chk") == "Y"){
- pid = model.getValue("/root/main/reptlist["+i+"]/pid");
- for(j=i ; j< reptlist.rows; j++){
- if(model.getValue("/root/main/reptlist["+j+"]/pid") == pid){
- model.removeNodeset("/root/main/reptlist["+j+"]");
- j--;
- }
- }
- }
- }
- }
-
-
-
- ]]>
- </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; ">
- <line id="line1" class="line_1" style="x1:5px; y1:80px; x2:1199px; y2:80px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
- <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; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">보고일시 :</caption>
- <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetReptlist();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_n_b" style="left:226px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_usdt" ref="/root/hidden/ref/refrgstsdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:115px; height:19px; "/>
- <input id="ipt_uedt" ref="/root/hidden/ref/refrgstedd" class="input_s_essential" inputtype="date" style="left:242px; top:8px; width:115px; height:19px; "/>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">보고서 조회</caption>
- <datagrid id="reptlist" nodeset="/root/main/reptlist" caption="^병동/진료과^주치의^등록번호^환자명^Sex/Age^입원일^보고일^출력일^출력자" colwidth="25, 150, 115, 115, 115, 120, 130, 130, 130, 120" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1194px; height:646px; ">
- <col ref="chk" type="checkbox" checkvalue="Y,N"/>
- <col ref="orddeptroom"/>
- <col ref="atdrnm"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="sexage"/>
- <col ref="orddd"/>
- <col ref="readdt"/>
- <col ref="printdt"/>
- <col ref="printid"/>
- </datagrid>
- </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>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsetstart();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fprint();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fselectnode();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|