123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMPMC04100_가정간호수납내역조회.xrw
- * 설 명 : 가정간호중간금수납내역조회
- * 설 계 자 : 이형재
- * 작 성 자 : 이형재
- * 작 성 일 : 2008.3.12.
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <grid>
- <gridlist1/>
- </grid>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <source>
- <srchcond/>
- <autoflag/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- <checkfnexam/>
- <sex/>
- <age/>
- </source>
- <send>
- <search>
- <fromdd/>
- <todd/>
- <pid/>
- <hngnm/>
- <sexage/>
- <radio>
- <radio2/>
- <radio3/>
- </radio>
- <nurse/>
- <chrnursid/>
- <churchcd/>
- <grdclick>
- <selectedpid/>
- <selectedhngnm/>
- <selectedfromdd/>
- <selectedtodd/>
- <selectedendflag/>
- <selectedcareflag/>
- </grdclick>
- <chrrgstkind/>
- <misugoobun>1</misugoobun>
- <grdclickmisu>
- <orddd/>
- <specpid/>
- <specfromdd/>
- <spectodd/>
- <cretno/>
- <calcstat/>
- </grdclickmisu>
- <careflag/>
- </search>
- </send>
- <receive>
- <rcvgrid>
- <gridlist2/>
- </rcvgrid>
- <rcvgridmisu>
- <gridlistpatmisu/>
- </rcvgridmisu>
- </receive>
- <hidden>
- <currentdate/>
- <tmp/>
- <money>
- <preinamt/>
- <uncoyn/>
- <uncoamt/>
- </money>
- </hidden>
- <init>
- <church>
- <churchcd>
- <nm/>
- <cd/>
- <instdispseq/>
- </churchcd>
- </church>
- <nurse>
- <nursecd>
- <usernm/>
- <userid/>
- <gubn/>
- </nursecd>
- </nurse>
- <churnurse>
- <churnursecd>
- <usernm/>
- <userid/>
- <gubn/>
- </churnursecd>
- </churnurse>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P6585list/>
- </init>
- <tmp>
- <uncoref>
- <info>
- <popup/>
- <pid/>
- <kind/>
- </info>
- </uncoref>
- </tmp>
- </root>
- </instance>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMC04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finitialize();
- reqnursid(); //병원 소속 가정간호사 조회
-
- radio2.select(0);
-
- zbcfGetCodeList(new Array("P0008"), new Array("/root/init/P0008list"));
- // 구분값 조회(본원과 칠곡을 분기시킴)(20160623)
- pamfGetCodeList(new Array("P6585"), new Array("/root/init/P6585list"));
- //20091211 zzui 가정간호 김숙인선생님 요청 - 환자정보설정
- if(isPopup() == true){
- if(model.getValue("/root/tmp/uncoref/info/popup") == "homecare"){ //팝업사용처구분 : homecare(가정간호)
-
- input3.value = model.getValue("/root/tmp/uncoref/info/pid"); //환자번호
-
- if(model.getValue("/root/tmp/uncoref/info/kind") == "1") {//병원
- radio2.value = 1
- radio3.value = 1
- }else{ //본당
- radio2.value = 2
- radio3.value = 2
- }
- }else{
- ;
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMC04102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/nurse"/>
- <submission id="TRPMC04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/init/churnurse"/>
- <submission id="TRPMC04104" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/church"/>
- <submission id="TRPMC04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search/grdclick" resultref="/root/receive/rcvgrid"/>
- <submission id="TRPMC04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search/grdclick" resultref="/root/receive/rcvgrid"/>
- <submission id="TRPMC04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search/grdclickmisu" resultref="/root/receive/rcvgridmisu"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function finitialize()
- {
- model.resetInstanceNode("/root/send/search/fromdd");
- model.resetInstanceNode("/root/send/search/todd");
- model.resetInstanceNode("/root/send/search/pid");
- model.resetInstanceNode("/root/send/search/hngnm");
- model.resetInstanceNode("/root/send/search/sexage");
- model.resetInstanceNode("/root/source/rrgstno1");
- model.resetInstanceNode("/root/source/rrgstno2");
- model.resetInstanceNode("/root/hidden/money/preinamt");
- model.resetInstanceNode("/root/hidden/money/uncoyn");
- model.resetInstanceNode("/root/send/search/radio/radio2");
- model.resetInstanceNode("/root/send/search/nurse");
- model.resetInstanceNode("/root/send/search/radio/radio3");
- model.resetInstanceNode("/root/send/search/churchcd");
- model.resetInstanceNode("/root/send/search/chrrgstkind");
- model.resetInstanceNode("/root/send/search/chrnursid");
- model.resetInstanceNode("/root/main/grid/gridlist1");
- model.resetInstanceNode("/root/receive/rcvgrid/gridlist2");
- model.resetInstanceNode("/root/receive/rcvgridmisu/gridlistpatmisu");
-
- // 시스템 날자
- model.setValue("/root/hidden/currentdate", getCurrentDate());
-
- // 방문일정을 오늘날자로 세팅
- model.setValue("/root/send/search/fromdd",model.getValue("/root/hidden/currentdate"));
- model.setValue("/root/send/search/todd",model.getValue("/root/hidden/currentdate"));
- model.setValue("/root/send/search/careflag" , "ALL");
-
- model.refresh();
- }
-
- function reqnursid(){
- submit("TRPMC04102");
- model.refresh();
- }
-
- function reqchurnursid(){
- submit("TRPMC04103");
- model.refresh();
- }
- // 이름의 길이를 체크 한다.
- function fHngNmVeri(gubn)
- {
- var ptbs_hngnm;
- if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- else if (gubn == "onkeypress" || gubn == "onkeyup")
- {
- ptbs_hngnm = (ipt_hngnm.currentText).toString();
- }
- //한글 한글자를 그냥 길이1로 계산
- if (eval((ptbs_hngnm.length).toString()) < 2)
- {
- messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
- model.setFocus("ipt_hngnm");
- return false;
- }
- }
-
- function calAmt(){
- // 개인별 선수금 합계를 위한 로직
- var inamt =0;
- var outamt=0;
- var retamt=0;
- var restamt =0;
- var total=0;
-
- for(var i =1 ; i < datagrid2.rows ; i++){
- restamt =0;
- inamt += parseInt(datagrid2.valueMatrix(i,2)) ;
- outamt += parseInt(datagrid2.valueMatrix(i,3));
- retamt += parseInt(datagrid2.valueMatrix(i,4));
- restamt += inamt+outamt-retamt;
-
- }
- if(datagrid2.rows>1){
- datagrid2.additem();
- model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/inamt", (String(inamt)));
- model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/outamt", (String(outamt)));
- model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/rcptamt", (String(retamt)));
- model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/restamt", (String(restamt)));
- model.setValue("/root/receive/rcvgrid/gridlist2[" +((datagrid2.rows)-1)+ "]/remark", " 소 계");
- }
-
- //model.setValue("/root/receive/totgrid/totgridlist3/totinamt", inamt);
- //model.setvalue("/root/receive/totgrid/totgridlist3/totretamt", outamt);
- //model.setValue("/root/receive/totgrid/totgridlist3/totoutamt", retamt);
- //model.setValue("/root/receive/totgrid/totgridlist3/totamt", (inamt+outamt-retamt));
- //total = model.getValue("/root/receive/totgrid/totgridlist3/totamt");
- //if(total>0){
- // model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 있습니다.")
- //}else if(total == 0){
- // model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 없습니다.")
- //}else {
- // model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 부족합니다.")
- //}
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:760px; ">
- <group id="group3" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:8px; width:90px; height:17px; ">조회일자 :</caption>
- <input id="input2" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:201px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
-
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:300px; top:8px; width:90px; height:17px; vertical-align:middle; ">등록번호 :</caption>
- <input id="input3" ref="/root/send/search/pid" style="left:388px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if ( event.keyCode == "13" ) {
- inputEnterKey("btn_search", "DOMActivate");
- }
-
-
- ]]>
- </script>
- </input>
- <caption id="caption8" style="left:189px; top:10px; width:20px; height:15px; ">~</caption>
- <button id="btn_ptbs_search" class="icon_search" style="left:493px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회건수가 1건일 경우 팝업창을 바로 닫는다.
- model.setValue("/root/source/checkfnexam", "1");
- model.setValue("/root/source/autoflag", "N");
-
- if( model.getValue("/root/source/srchcond") == '' ){
- model.setValue("/root/source/srchcond", '4');
- }
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", " /root/send");
- model.resetInstanceNode("/root/source");
- //환자번호 copy
- var popupendflag = model.getValue("/root/main/popupendflag");
-
- if (popupendflag == "ok") {
- var test = model.getValue("/root/main/patinfo/patinfolist/pid");
-
- model.setValue("/root/send/search/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/search/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/source/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/source/age", model.getValue("/root/main/patinfo/patinfolist/age"));
-
-
- }
- var sexage ="";
-
- sexage += model.getValue("/root/source/sex");
- sexage +="/"
- sexage +=model.getValue("/root/source/age");
- model.setValue("/root/send/search/sexage", sexage);
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_hngnm" ref="/root/send/search/hngnm" disabled="true" style="left:517px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode =="13"){
- if(fHngNmVeri("onkeypress")==false)return;
-
- model.setValue("/root/source/srchcond", "2");
- model.setValue("/root/source/hngnm", ipt_hngnm.currentText);
- inputEnterKey("btn_ptbs_search", "DOMActivate");
-
- }
- ]]>
- </script>
- </input>
- <input id="opt_sexage" ref="/root/send/search/sexage" disabled="true" style="left:615px; top:8px; width:50px; height:19px; text-align:center; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:33px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/grid/gridlist1");
- model.resetInstanceNode("/root/receive/rcvgrid/gridlist2");
- model.resetInstanceNode("/root/receive/rcvgridmisu/gridlistpatmisu");
-
- model.resetInstanceNode("/root/send/search/hngnm");
- model.resetInstanceNode("/root/send/search/sexage");
- model.resetInstanceNode("/root/source/rrgstno1");
- model.resetInstanceNode("/root/source/rrgstno2");
- model.resetInstanceNode("/root/hidden/money/preinamt");
- model.resetInstanceNode("/root/hidden/money/uncoyn");
-
- submit("TRPMC04101");
- if(ipt_hngnm.value == ""){
- model.setValue("/root/send/search/sexage", "");
- }
-
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:103px; top:8px; width:85px; height:19px; "/>
- <caption id="caption11" class="search_name" style="left:513px; top:33px; width:135px; height:17px; vertical-align:middle; ">미결 총미수잔액 :</caption>
- <input id="input1" ref="/root/hidden/money/uncoyn" disabled="true" format="(-)#,###" style="left:646px; top:33px; width:100px; height:19px; text-align:right; "/>
- <caption id="caption13" class="search_name" style="left:300px; top:33px; width:104px; height:17px; vertical-align:middle; ">선수잔액 :</caption>
- <input id="input4" ref="/root/hidden/money/preinamt" disabled="true" format="(-)#,###" style="left:388px; top:33px; width:100px; height:19px; text-align:right; "/>
- <caption id="caption14" class="search_name" style="left:15px; top:33px; width:90px; height:17px; vertical-align:middle; ">주민번호 :</caption>
- <input id="input5" ref="/root/source/rrgstno1" disabled="true" style="left:103px; top:33px; width:85px; height:19px; text-align:center; "/>
- <caption id="caption15" style="left:190px; top:35px; width:20px; height:15px; ">-</caption>
- <input id="input6" ref="/root/source/rrgstno2" disabled="true" style="left:201px; top:33px; width:85px; height:19px; text-align:center; "/>
- <caption id="caption16" class="search_name" style="left:800px; top:35px; width:143px; height:17px; vertical-align:middle; ">미결 기간미수잔액 :</caption>
- <input id="input7" ref="/root/hidden/money/uncoamt" disabled="true" format="(-)#,###" style="left:946px; top:35px; width:100px; height:19px; text-align:right; "/>
- <caption id="caption17" class="search_name" style="left:800px; top:10px; width:70px; height:17px; ">구분 :</caption>
- <select1 id="radio5" ref="/root/send/search/careflag" appearance="full" cols="3" overflow="visible" style="left:863px; top:10px; width:252px; height:15px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/P6585list/P6585">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <select1 id="radio2" ref="/root/send/search/radio/radio2" appearance="full" cols="2" overflow="visible" style="left:15px; top:80px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병원</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //model.resetInstanceNode("/root/send/search/pid");
- model.resetInstanceNode("/root/send/search/hngnm");
- model.resetInstanceNode("/root/send/search/sexage");
- model.resetInstanceNode("/root/source/rrgstno1");
- model.resetInstanceNode("/root/source/rrgstno2");
- model.resetInstanceNode("/root/hidden/money/preinamt");
- model.resetInstanceNode("/root/hidden/money/uncoyn");
-
- var select = radio2.value;
-
- if (select ==1){
- radio3.select(0);
- radio3.visible = false;
- caption5.visible= false;
- cmb_church.visible=false;
- caption6.visible=false;
- cmb_nurse2.visible=false;
- radio4.visible=false;
- line2.visible=false;
-
- radio4.select(0);
- cmb_nurse1.select(0);
-
- reqnursid(); //병원 소속 가정간호사 조회
-
- model.resetInstanceNode("/root/send/search/hngnm");
- //model.resetInstanceNode("/root/send/search/pid");
- model.resetInstanceNode("/root/send/search/sexage");
-
- }
- else {
-
- model.resetInstanceNode("/root/send/search/hngnm");
- //model.resetInstanceNode("/root/send/search/pid");
- model.resetInstanceNode("/root/send/search/sexage");
-
- radio2.visible = false;
- caption4.visible =false;
- cmb_nurse1.visible=false;
- radio3.select(1);
- radio3.visible = true;
- caption5.visible= true;
- cmb_church.visible=true;
- caption6.visible=true;
- cmb_nurse2.visible=true;
- radio4.visible=true;
- line2.visible =true;
-
- cmb_church.disabled=false;
- line3.visible = false;
- submit("TRPMC04104"); //본당조회
- reqchurnursid(); //본당소속 가정간호사
- cmb_nurse2.select(0);
- cmb_church.select(0);
-
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="cell_1" style="left:120px; top:80px; width:70px; height:20px; vertical-align:middle; ">담당간호사</caption>
- <select1 id="radio3" ref="/root/send/search/radio/radio3" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:15px; top:103px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병원</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //model.resetInstanceNode("/root/send/search/pid");
- model.resetInstanceNode("/root/send/search/hngnm");
- model.resetInstanceNode("/root/send/search/sexage");
- model.resetInstanceNode("/root/source/rrgstno1");
- model.resetInstanceNode("/root/source/rrgstno2");
- model.resetInstanceNode("/root/hidden/money/preinamt");
- model.resetInstanceNode("/root/hidden/money/uncoyn");
-
- var select = radio3.value;
- if (select ==1){
- radio3.select(0);
- radio3.visible = false;
- caption5.visible= false;
- cmb_church.visible=false;
- caption6.visible=false;
- cmb_nurse2.visible=false;
- radio4.visible=false;
-
- radio2.select(0);
- radio2.visible = true;
- caption4.visible= true;
- cmb_nurse1.visible=true;
- line3.visible = true;
-
- }
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="cell_1" visibility="hidden" style="left:120px; top:103px; width:70px; height:20px; vertical-align:middle; ">본당명</caption>
- <caption id="caption6" class="cell_1" visibility="hidden" style="left:472px; top:103px; width:80px; height:20px; vertical-align:middle; ">담당간호사</caption>
- <datagrid id="datagrid1" nodeset="/root/main/grid/gridlist1" visibility="visible" scroll="auto" caption="구분^등록번호^환자명^S/A^종결^총미수^기간미수^선수잔액^선수금차액^rrgstno1^rrgstno2^종결일자" colsep="^" colwidth="30, 62, 56, 36, 35, 60, 60, 55, 66, 74, 70, 76" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:15px; top:160px; width:430px; height:570px; ">
- <col disabled="true" ref="careflag" type="combo">
- <choices>
- <item>
- <label>가정</label>
- <value>H</value>
- </item>
- <item>
- <label>방문</label>
- <value>V</value>
- </item>
- </choices>
- </col>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="endflag" style="text-align:center; "/>
- <col ref="uncoynnum" format="(-)#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="preminusamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /*
- if (isDataCell() == true) {
-
- model.resetInstanceNode("/root/receive/rcvgrid/gridlist2");
- model.resetInstanceNode("/root/receive/rcvgridmisu/gridlistpatmisu");
-
- var rowindex=0;
-
- rowindex = datagrid1.mouseRow;
-
- if(datagrid1.valueMatrix(rowindex,2) == ""){
- //
- }else{
- model.setValue("/root/send/search/grdclick/selectedpid", datagrid1.valueMatrix(rowindex,2));
- model.setValue("/root/send/search/grdclick/selectedfromdd",model.getValue("/root/send/search/fromdd") );
- model.setValue(" /root/send/search/grdclick/selectedtodd", model.getValue("/root/send/search/todd") );
- model.setValue("/root/send/search/grdclick/selectedcareflag", datagrid1.valueMatrix(rowindex,1));
-
- model.setValue("/root/hidden/money/uncoyn", datagrid1.valueMatrix(rowindex, 6) );
- model.setValue("/root/hidden/money/uncoamt", datagrid1.valueMatrix(rowindex, 7) );
- model.setValue("/root/hidden/money/preinamt", datagrid1.valueMatrix(rowindex, 8) );
-
- model.setValue("/root/source/rrgstno1", datagrid1.valueMatrix(rowindex, 10) );
- model.setValue("/root/source/rrgstno2", datagrid1.valueMatrix(rowindex, 11) );
-
- model.setValue("/root/send/search/pid", datagrid1.valueMatrix(rowindex, 2) );
- model.setValue("/root/send/search/hngnm", datagrid1.valueMatrix(rowindex, 3) );
- model.setValue("/root/send/search/sexage", datagrid1.valueMatrix(rowindex, 4) );
-
- submit("TRPMC04301");
-
- }
- model.refresh();
- }
- */
-
- if (isDataCell() == true) {
-
- model.removenodeset("/root/receive/rcvgridmisu/gridlistpatmisu");
-
- rowindex = datagrid1.mouseRow;
-
- model.setValue("/root/send/search/grdclick/selectedpid", datagrid1.valueMatrix(rowindex,2));
- model.setValue("/root/send/search/grdclick/selectedfromdd",model.getValue("/root/send/search/fromdd") );
- model.setValue(" /root/send/search/grdclick/selectedtodd", model.getValue("/root/send/search/todd") );
- model.setValue("/root/send/search/grdclick/selectedcareflag", datagrid1.valueMatrix(rowindex,1));
-
- model.setValue("/root/hidden/money/uncoyn", datagrid1.valueMatrix(rowindex, 6) );
- model.setValue("/root/hidden/money/uncoamt", datagrid1.valueMatrix(rowindex, 7) );
- model.setValue("/root/hidden/money/preinamt", datagrid1.valueMatrix(rowindex, 8) );
-
- model.setValue("/root/source/rrgstno1", datagrid1.valueMatrix(rowindex, 10) );
- model.setValue("/root/source/rrgstno2", datagrid1.valueMatrix(rowindex, 11) );
-
- model.setValue("/root/send/search/pid", datagrid1.valueMatrix(rowindex, 2) );
- model.setValue("/root/send/search/hngnm", datagrid1.valueMatrix(rowindex, 3) );
- model.setValue("/root/send/search/sexage", datagrid1.valueMatrix(rowindex, 4) );
-
- submit("TRPMC04301");
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/receive/rcvgrid/gridlist2" caption="종결^처방일^과^보험유형^총진료비^공단부담^환자부담^수납액^미수금^선수대체^미수예정^장애기금^희귀난치^계정감면^임의감면^약번호^접수번호^감면^비고" colsep="^" colwidth="30, 70, 30, 75, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 66, 70, 42, 72" mergecellsfixedrows="bycolrec" rowsep="|" style="left:450px; top:160px; width:729px; height:220px; ">
- <col ref="endyn"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dept" style="text-align:center; "/>
- <col disabled="true" ref="insukind" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="totamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="insupayamt" format="(-)#,###" style="left:262px; top:23px; width:71px; height:23px; text-align:right; "/>
- <col ref="ownpayamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="payamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="mdlrcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="bercptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="handcapfund" format="(-)#,###" style="text-align:right; "/>
- <col ref="suppamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="discamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="reduamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="hosoutdrugno" style="text-align:right; "/>
- <col ref="cretno" style="text-align:right; "/>
- <col ref="disccd"/>
- <col ref="remark" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var rowindex=0;
-
- rowindex = datagrid2.mouseRow;
-
- if( rowindex < 1 ){
- messageBox("조회할 데이타가 없습니다..","E999","");
- }else{
- model.setvalue("/root/send/search/grdclickmisu/orddd", model.getValue("/root/receive/rcvgrid/gridlist2["+rowindex+"]/orddd"));
- model.setvalue("/root/send/search/grdclickmisu/cretno", model.getValue("/root/receive/rcvgrid/gridlist2["+rowindex+"]/cretno"));
- model.setvalue("/root/send/search/grdclickmisu/specpid", model.getValue("/root/receive/rcvgrid/gridlist2["+rowindex+"]/pid"));
- model.setvalue("/root/send/search/grdclickmisu/calcstat", model.getValue("/root/receive/rcvgrid/gridlist2["+rowindex+"]/calcstat"));
-
- submit("TRPMC04302");
- }
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/receive/rcvgridmisu/gridlistpatmisu" caption="처방일자^처방 코드^처방명^일수^수량^용법^급비^본인부담액^공단지급액^할인액" colsep="^" colwidth="70, 80, 190, 32, 30, 31, 82, 71, 75, 64" mergecellsfixedrows="bycolrec" rowsep="|" style="left:450px; top:410px; width:730px; height:320px; ">
- <col ref="visitdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="snglcalcscorcd" style="text-align:left; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="ordays" style="text-align:right; "/>
- <col ref="ordqty" style="text-align:right; "/>
- <col ref="ordtims" style="text-align:right; "/>
- <col ref="cdnm" style="text-align:center; "/>
- <col ref="totpayamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="totinsuamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="totdiscamt" format="(-)#,###" style="text-align:right; "/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:15px; y1:155px; x2:445px; y2:155px; "/>
- <button id="button5" class="btn2_letter4" style="left:334px; top:134px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <line id="line2" class="line_3" style="x1:15px; y1:123px; x2:680px; y2:123px; "/>
- <line id="line3" class="line_3" style="x1:15px; y1:100px; x2:315px; y2:100px; "/>
- <caption id="caption9" class="tit_2" style="left:451px; top:140px; width:135px; height:13px; ">미수 내역 조회</caption>
- <line id="line4" class="line_1" style="x1:450px; y1:155px; x2:1179px; y2:155px; "/>
- <caption id="caption10" class="tit_2" style="left:18px; top:140px; width:152px; height:13px; ">가정간호환자 조회내역</caption>
- <caption id="caption12" class="tit_2" style="left:451px; top:390px; width:135px; height:13px; ">처방 계산내역 조회</caption>
- <line id="line6" class="line_1" style="x1:450px; y1:405px; x2:1179px; y2:405px; "/>
- <select1 id="cmb_nurse1" ref="/root/send/search/nurse" appearance="minimal" style="left:195px; top:80px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/nurse/nursecd">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(cmb_nurse1.value=='1'){
- model.setValue("/root/send/search/nurse","/root/init/nurse/nursecd/usernm");
- }
-
- //model.resetInstanceNode("/root/send/search/pid");
- model.resetInstanceNode("/root/send/search/hngnm");
- model.resetInstanceNode("/root/send/search/sexage");
- model.resetInstanceNode("/root/source/rrgstno1");
- model.resetInstanceNode("/root/source/rrgstno2");
- model.resetInstanceNode("/root/hidden/money/preinamt");
- model.resetInstanceNode("/root/hidden/money/uncoyn");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_nurse2" ref="/root/send/search/chrnursid" visibility="hidden" appearance="minimal" style="left:555px; top:103px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/churnurse/churnursecd">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_nurse2.value=='1'){
- model.setValue("/root/send/search/chrnursid","/root/init/nurse/nursecd/usernm");
- }
-
- //model.resetInstanceNode("/root/send/search/pid");
- model.resetInstanceNode("/root/send/search/hngnm");
- model.resetInstanceNode("/root/send/search/sexage");
- model.resetInstanceNode("/root/source/rrgstno1");
- model.resetInstanceNode("/root/source/rrgstno2");
- model.resetInstanceNode("/root/hidden/money/preinamt");
- model.resetInstanceNode("/root/hidden/money/uncoyn");
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_church" ref="/root/send/search/churchcd" disabled="true" visibility="hidden" appearance="minimal" style="left:195px; top:103px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/church/churchcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_church.value=='1'){
- model.setvalue("/root/send/search/churchcd", "/root/init/church/churchcd/nm");
- }
-
- //model.resetInstanceNode("/root/send/search/pid");
- model.resetInstanceNode("/root/send/search/hngnm");
- model.resetInstanceNode("/root/send/search/sexage");
- model.resetInstanceNode("/root/source/rrgstno1");
- model.resetInstanceNode("/root/source/rrgstno2");
- model.resetInstanceNode("/root/hidden/money/preinamt");
- model.resetInstanceNode("/root/hidden/money/uncoyn");
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- submit("TRPMC04103");
- ]]>
- </script>
- </select1>
- <select1 id="radio4" ref="/root/send/search/chrrgstkind" appearance="full" cols="3" overflow="visible" style="left:322px; top:103px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>등록</label>
- <value>1</value>
- </item>
- <item>
- <label>무료</label>
- <value>2</value>
- </item>
- <item>
- <label>기타</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <button id="button2" class="btn2_letter2" style="left:403px; top:134px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPMC04301", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:1056px; top:134px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- datagrid2.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:1125px; top:134px; width:53px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPMC04302", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter4" style="left:1057px; top:384px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- datagrid3.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
-
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter3" style="left:1126px; top:384px; width:53px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPMC04303", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter3" style="left:1110px; top:735px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- finitialize();
- reqnursid(); //병원 소속 가정간호사 조회
-
- radio2.select(0);
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">가정간호 미수금 조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|