123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <pid/>
- </patinfo>
- <baseinfo>
- <opmilist>
- <opmi/>
- </opmilist>
- </baseinfo>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <pid/>
- <cond>2</cond>
- </send>
- <hidden/>
- <source/>
- <init>
- <basecdlist>
- <orddeptcdnm>
- <cdnm/>
- <cdid/>
- </orddeptcdnm>
- </basecdlist>
- </init>
- <temp>
- <grid_bl/>
- <receipt/>
- </temp>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <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" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.makenode("/root/node_bk/temp");
- model.copynode("/root/node_bk/temp" ,"/root/temp");
-
- fInitialize();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- //세션정보 추출하기
- function fGetUserInfosSampling(){
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
-
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
-
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.makeNode("/root/hidden/session/" + "posdeptcd");
- model.makeNode("/root/hidden/session/" + "posdeptnm")
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- //if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
-
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",posinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
- model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
-
- model.refresh();
- }
-
- // 초기화
- function fInitialize() {
-
- model.resetinstancenode("/root/main/patinfo/pid");
- model.removeNodeset("/root/main/baseinfo/opmilist/opmi");
-
- model.setValue("/root/send/cond", "1");
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
- model.refresh();
-
- }
- ]]>
- </script>
- <submission id="TRPMC06401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/baseinfo/opmilist"/>
- </model>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:10px; top:10px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">가정간호진료비조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:10px; top:23px; width:1194px; height:697px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:48px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:0px; width:1188px; height:48px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:16px; width:86px; height:17px; ">환자번호 :</caption>
- <caption id="caption3" class="search_name" style="left:391px; top:16px; width:86px; height:17px; ">조회일자 :</caption>
- <caption id="caption4" style="left:573px; top:17px; width:10px; height:20px; ">-</caption>
- <input id="ipt_pid" ref="/root/main/patinfo/pid" accesskey="ctrl+keyCode(48)" class="input_s_essential" imemode="alpha" style="left:104px; top:15px; width:112px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
- ]]>
- </script>
- <script type="javascript" ev:event="onaccesskey">
- <![CDATA[
- // fkeyCode_pid("ipt_pid","onkeypress");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1115px; top:15px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 환자번호(pid) send로 보내기
- var pid = model.getValue("/root/main/patinfo/pid");
- model.makeValue("/root/send/pid", pid);
-
- // 조회 submission 날리기
- submit("TRPMC06401");
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:480px; top:15px; width:92px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:584px; top:15px; width:92px; height:19px; "/>
- <select1 id="rdo_cond" ref="/root/send/cond" visibility="visible" appearance="full" cols="2" rows="1" overflow="visible" style="left:244px; top:16px; width:141px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>수납일자</label>
- <value>1</value>
- </item>
- <item>
- <label>진료일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_opmilist" nodeset="/root/main/baseinfo/opmilist/opmi" caption="√^환자번호^환자성명^수납/진료일^진료과^진료의^선수금잔액^보험^보조^수납일자^급여액^비급여액^선택진료^총진료비^본인부담^감면금^미수금^수혈보상^기수납액^실수납액^수납자^영수번호^시간^원내^원외^순번^멀티^현금수납^카드수납^통장입금^산전지원금^건강유지비^장애기금^희귀난치지원금^기현금^기카드^기통장^기산전지원금^선수금^선수대체^처방상태^수납구분^MIG여부" colsep="^" colwidth="22, 75, 77, 92, 90, 58, 91, 30, 30, 67, 59, 60, 60, 60, 60, 60, 54, 55, 60, 60, 62, 63, 58, 40, 40, 51, 30, 60, 60, 60, 80, 80, 80, 100, 60, 60, 60, 100, 75, 68, 60, 60, 100" dataheight="25" defaultrows="1" ellipsis="false" explorerbar="sortshow" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="false" style="left:4px; top:66px; width:1186px; height:629px; ">
- <col type="checkbox" visibility="hidden">
- <![CDATA[1]]>
- </col>
- <col ref="opmi_pid" style="text-align:center; "/>
- <col ref="opmi_hngnm" style="text-align:center; "/>
- <col ref="opmi_orddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="opmi_orddeptcdnm">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddeptcdnm">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="opmi_orddridnm" style="text-align:center; "/>
- <col ref="opmi_mdlremamt2" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_insukind" visibility="hidden"/>
- <col ref="opmi_suppkind" visibility="hidden"/>
- <col ref="opmi_rcptexecdd" visibility="hidden" style="text-align:center; "/>
- <col ref="opmi_payamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_totnopyamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_specamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_totamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_totownbamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_discreduamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_bloddiscamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_prercptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_rcptexptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_rcptridnm" visibility="hidden"/>
- <col ref="opmi_rcptno" visibility="hidden"/>
- <col ref="opmi_rcpttm" visibility="hidden" format="hh:nn:ss"/>
- <col ref="opmi_hosindrugno" visibility="hidden"/>
- <col ref="opmi_hosoutdrugno" visibility="hidden"/>
- <col ref="opmi_rcptseqno" visibility="hidden"/>
- <col ref="opmi_cnt" visibility="hidden"/>
- <col ref="opmi_cashamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_cardamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_onlineamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_pregdmndamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_heallifeamtclamamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_handcapfund" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_suppamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_precashamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_precardamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_preonlineamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_prepregdmndamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_prepmntamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_mdlrcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="opmi_oprc" visibility="hidden"/>
- <col ref="opmi_opmiflag" visibility="hidden"/>
- <col ref="migyn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- ]]>
- </script>
- </datagrid>
- <bool id="bl_opmilist" visibility="hidden" checkvalue="Y,N" ref="/root/temp/grid_bl" style="left:7px; top:65px; width:17px; height:17px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //그리드 전체선택
- grd_opmilist.select(1,1,grd_opmilist.rows - 1,grd_opmilist.cols - 1) = true;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- //그리드 전체 선택해재
- grd_opmilist.select(1,1,grd_opmilist.rows - 1,grd_opmilist.cols - 1) = false;
- ]]>
- </script>
- </bool>
- </group>
- <group id="group6" scroll="auto" style="left:10px; top:727px; width:1194px; height:27px; ">
- <button id="btn_clear" accesskey="f9" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1126px; top:5px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <hint>
- <![CDATA[F9]]>
- </hint>
- </button>
- <button id="btn_rcptprint" class="btn4_letter5" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:1033px; top:5px; width:92px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
- <caption>영수증발행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var vpid = model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_pid");
- if (vpid == "" || vpid == " " || vpid == null ) {
- messageBox("선택된 내역이 없습니다.","E999","");
- return;
- }
-
- //ordtype : 외래영수증 / 외래중간금영수증 / 외래합산영수증
- model.makeValue("/root/temp/receipt/pid", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_pid"));
- model.makeValue("/root/temp/receipt/rcptdd", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_rcptdd") );
- model.makeValue("/root/temp/receipt/rcptno", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_rcptno") );
- model.makeValue("/root/temp/receipt/rcptseqno", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_rcptseqno") );
- model.makeValue("/root/temp/receipt/orddd", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_orddd") );
- //model.makeValue("/root/temp/receipt/orddeptcd", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_orddeptcd") );
- model.makeValue("/root/temp/receipt/orddeptcd", model.getValue("/root/send/orddeptcd"));
-
- model.makeValue("/root/temp/receipt/insukind", model.getValue("/root/send/insukind"));
- model.makeValue("/root/temp/receipt/suppkind", model.getValue("/root/send/suppkind"));
-
- model.makeValue("/root/temp/receipt/orddrid", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_orddrid") );
- model.makeValue("/root/temp/receipt/cretno", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_cretno") );
- model.makeValue("/root/temp/receipt/ioflag", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_ioflag") );
- model.makeValue("/root/temp/receipt/ordtype", "가정간호영수증" );
-
- if (model.getValue("/root/send/cond") == "1") { //수납일자
- model.makeValue("/root/temp/receipt/ordrcptflag","rcptdd");
- }
- else {//진료일자
- model.makeValue("/root/temp/receipt/ordrcptflag","orddd");
- }
-
- model.makeValue("/root/temp/receipt/instcd", model.getValue("/root/main/baseinfo/opmilist/opmi["+ grd_opmilist.row +"]/opmi_instcd") );
-
- model.makeValue("/root/temp/receipt/engYN", model.getValue("/root/init/option/engreceipt") );
- model.makeValue("/root/temp/receipt/reprintYN", model.getValue("/root/init/option/reprintyn") );
-
- model.makeValue("/root/temp/receipt/rcptsite", "S" );
-
- model.makeValue("/root/temp/receipt/fromdd", model.getValue("/root/send/fromdd") );
- model.makeValue("/root/temp/receipt/todd", model.getValue("/root/send/todd") );
-
- //영수증 팝업화면 호출
- //modal("../../../pam/pamcomnweb/xrw/SPPAO01900_영수증출력", "1", "100", "100" ,"SPPAO01900_영수증출력", "", "");
- open("SPPAO01900");
- */
-
- model.copynode("/root/temp" , "/root/node_bk/temp");
- model.makeNode("/root/temp/receipt");
-
- var selectedRows = grd_opmilist.selectedRows;
- var arr=new Array(selectedRows);
-
- for(var i=0; i<arr.length; i++) {
- arr[i] = grd_opmilist.selectedRow(i);
-
- var vpid = model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_pid");
- if (vpid == "" || vpid == " " || vpid == null ) {
- messageBox("선택된 내역이 없습니다.","E999","");
- return;
- }
-
- //ordtype : 외래영수증 / 외래중간금영수증 / 외래합산영수증
- model.makeValue("/root/temp/receipt/pid", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_pid"));
- model.makeValue("/root/temp/receipt/rcptdd", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_rcptdd") );
- model.makeValue("/root/temp/receipt/rcptno", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_rcptno") );
- model.makeValue("/root/temp/receipt/rcptseqno", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_rcptseqno") );
- model.makeValue("/root/temp/receipt/orddd", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_orddd") );
- model.makeValue("/root/temp/receipt/orddeptcd", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_orddeptcd") );
- //model.makeValue("/root/temp/receipt/orddeptcd", model.getValue("/root/send/orddeptcd"));
-
- //model.makeValue("/root/temp/receipt/insukind", model.getValue("/root/send/insukind"));
- //model.makeValue("/root/temp/receipt/suppkind", model.getValue("/root/send/suppkind"));
-
- model.makeValue("/root/temp/receipt/orddrid", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_orddrid") );
- model.makeValue("/root/temp/receipt/cretno", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_cretno") );
- model.makeValue("/root/temp/receipt/ioflag", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_ioflag") );
- model.makeValue("/root/temp/receipt/ordtype", "가정간호영수증" );
-
- if (model.getValue("/root/send/cond") == "1") { //수납일자
- model.makeValue("/root/temp/receipt/ordrcptflag","rcptdd");
- }
- else {//진료일자
- model.makeValue("/root/temp/receipt/ordrcptflag","orddd");
- }
-
- model.makeValue("/root/temp/receipt/instcd", model.getValue("/root/main/baseinfo/opmilist/opmi["+ arr[i] +"]/opmi_instcd") );
-
- model.makeValue("/root/temp/receipt/engYN" , "N" );
- model.makeValue("/root/temp/receipt/reprintYN" , "N" );
- model.makeValue("/root/temp/receipt/rcptsite" , "S" );
-
- model.makeValue("/root/temp/receipt/fromdd", model.getValue("/root/send/fromdd") );
- model.makeValue("/root/temp/receipt/todd" , model.getValue("/root/send/todd") );
-
- //2017/03/06 이정택 (인터넷 제증명 영수증과 분리 처리)
- model.makeValue("/root/temp/receipt/internetyn", "N" );
-
- //영수증 팝업화면 호출
- //modal("../../../pam/pamcomnweb/xrw/SPPAO01900_영수증출력", "1", "100", "100" ,"SPPAO01900_영수증출력", "", "");
- modal("SPPAO01900");
-
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:952px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_opmilist.rows == 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_opmilist.saveExcel(fileName, "가정간호", false, false, "", "", true);
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|