123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378 |
- <?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>외래 선처치 미수금 발생내역</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <srchfromdd/>
- <srchtodd/>
- <orddeptcd/>
- <orddrid/>
- <precureprcpflag/>
- <prcpcd/>
- <prcpclscd/>
- <prcpinptflag/>
- <pid/>
- <hngnm/>
- <seoulyn/>
- </cond>
- <precureprcpuncopatlist>
- <precureprcpuncopatinfo>
- <pid/>
- <hngnm/>
- <prcpdd/>
- <prcpcd/>
- <prcpnm/>
- <prcpclsnm/>
- <orddeptnm/>
- <orddrnm/>
- <rgstdeptnm/>
- <rgstrnm/>
- <prcpinptflag/>
- <precureprcpflag/>
- <ownbamt/>
- <orddt/>
- </precureprcpuncopatinfo>
- </precureprcpuncopatlist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send/>
- <init>
- <orddept>
- <orddept>
- <deptcd/>
- <deptnm/>
- </orddept>
- </orddept>
- <orddr>
- <orddr>
- <usernm/>
- <userid/>
- </orddr>
- </orddr>
- <M0005list/>
- <M0034list/>
- </init>
- <code/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit(); // 화면초기화
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 화면초기화
- var seoulinstcd = ""; //20090811-kys
-
- function fInit(){
- var currentdate= getCurrentDate();
- var dutplcecd = getUserInfo("dutplcecd");
- var instcd = getUserInfo("dutplceinstcd");
-
- zsdfGetCareOutOrderDepartmentList(instcd, "/root/init/orddept", currentdate); // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- addComboItem("cmb_orddept", "전체", "0000000000", "above"); // 진료부서 콤보 전체추가_ tfHelper.js
-
- zbcfGetCodeList( new Array("M0005", "M0034"), new Array("/root/init/M0005list", "/root/init/M0034list")); // 공통코드 스크립트 호출
-
- model.makeValue("/root/main/cond/srchfromdd", ((currentdate.toDate("YYYYMMDD")).getAddDate(-1,"M")).getDateFormat("YYYYMMDD"));
- model.makeValue("/root/main/cond/srchtodd" , currentdate);
-
- model.makeValue("/root/main/cond/orddeptcd" , dutplcecd);
- fGetOrdDrList(); // 진료의리스트 조회
-
- addComboItem("cmb_prcpclscd", "전체", "", "above"); // 처방분류 콤보 전체추가_ tfHelper.js
- addComboItem("cmb_prcpinptflag", "전체", "", "above"); // 처방입력구분 콤보 전체추가_ tfHelper.js
-
- ipt_srchfromdd.refresh();
- ipt_srchtodd.refresh();
- cmb_orddept.refresh();
- cmb_prcpclscd.refresh();
- cmb_prcpinptflag.refresh();
- cmb_prcpclscd.refresh();
- cmb_prcpinptflag.refresh();
-
- if(cmb_orddept.label == ""){
- model.makeValue("/root/main/cond/orddeptcd" , "0000000000"); // 전체진료과
- cmb_orddept.refresh();
- }
-
- // 간호 환경설정테이블 조회
- var pCode = "'077'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- for(var i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
- switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
- case "077": // 의정부성모병원기관코드_20090606
- switch(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid")){
- case "01": // (01:서울성모,02:의정부성모,03:부천성가, 04:성빈센트)-20090811
- seoulinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- }
- }
- }
- }
-
- // 진료의리스트 조회
- function fGetOrdDrList(){
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/reqdata/prcpspecflag", "Y");
- var sordclsdeptflag = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/ordclsdeptflag"); // 센터/대표/분과/서브 구분
- var ssupdeptcd = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/supdeptcd"); // 상위부서코드
- var sorddeptkind = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/orddeptkind"); // 센터/대표 구분
-
- var sorddeptflag = "";
-
- if (sorddeptkind == "C") { // 센터이면
- sorddeptflag = "C";
- } else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
- sorddeptflag = "A";
- } else { // 그외에 기타과
- sorddeptflag = "etc";
- }
-
- model.makeValue("/root/main/cond/ordclsdeptflag",sorddeptflag);
- model.makeValue("/root/main/cond/supdeptcd",ssupdeptcd);
-
- model.makeValue("/root/send/reqdata/orddd" , getCurrentDate());
- model.makeValue("/root/send/reqdata/ordclsdeptflag", model.getValue("/root/main/cond/ordclsdeptflag"));
- model.makeValue("/root/send/reqdata/supdeptcd" , model.getValue("/root/main/cond/supdeptcd"));
-
- submit("TRMNO00104");
- addComboItem("cmb_orddrid", "전체", "00000000", "above"); // 진료의 콤보 전체추가_ tfHelper.js
- if(getNodesetCount("/root/init/orddr/orddr") > 0){
- model.resetInstanceNode("/root/main/cond/orddr");
- } else {
- model.makenode("/root/init/orddr");
- model.makenode("/root/init/orddr/orddr");
- model.makenode("/root/init/orddr/orddr/userid");
- model.makenode("/root/init/orddr/orddr/usernm");
- cmb_orddrid.select(0);
- }
- model.makeValue("/root/main/cond/orddrid", "00000000");
- cmb_orddrid.refresh();
- }
-
- // 외래 선처치 미수금 발생내역 조회
- function fGetPreCurePrcpUncoPatList(){
- model.removeNodeset("/root/main/precureprcpuncopatlist");
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/srchfromdd" , model.getValue("/root/main/cond/srchfromdd"));
- model.makeValue("/root/send/reqdata/srchtodd" , model.getValue("/root/main/cond/srchtodd"));
- model.makeValue("/root/send/reqdata/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/reqdata/orddrid" , model.getValue("/root/main/cond/orddrid"));
- model.makeValue("/root/send/reqdata/precureprcpflag", model.getValue("/root/main/cond/precureprcpflag"));
- model.makeValue("/root/send/reqdata/prcpcd" , model.getValue("/root/main/cond/prcpcd"));
- model.makeValue("/root/send/reqdata/prcpclscd" , model.getValue("/root/main/cond/prcpclscd"));
- model.makeValue("/root/send/reqdata/prcpinptflag" , model.getValue("/root/main/cond/prcpinptflag"));
- model.makeValue("/root/send/reqdata/pid" , model.getValue("/root/main/cond/pid"));
- //20090811-kys(서울성모인경우 수납전에도 진료예약일시가 조회되어야 한다)
- if(getUserInfo("dutplceinstcd") == seoulinstcd){
- model.makeValue("/root/send/reqdata/seoulyn", "Y");
- }
- if(submit("TRMNO02801")){
-
- for(var i=1; i<=getNodesetCount("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo"); i++){
- var a_pid = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + i + "]/pid");
- var a_prcpdd = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + i + "]/prcpdd");
- var a_ownbamt = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + i + "]/ownbamt");
- var a_orddt = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + i + "]/orddt");
-
- for(var k=1; k<=getNodesetCount("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo"); k++){
- var b_pid = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + k + "]/pid");
- var b_prcpdd = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + k + "]/prcpdd");
- var b_ownbamt = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + k + "]/ownbamt");
- var b_orddt = model.getValue("/root/main/precureprcpuncopatlist/precureprcpuncopatinfo[" + k + "]/orddt");
-
- if( i < k ){
- if(a_pid == b_pid && a_prcpdd == b_prcpdd && a_ownbamt == b_ownbamt){
- grd_prcpendlist.mergeByFree(i, grd_prcpendlist.colRef("ownbamt"), k, grd_prcpendlist.colRef("ownbamt"));
- }
- if(a_pid == b_pid && a_prcpdd == b_prcpdd && a_orddt == b_orddt){
- grd_prcpendlist.mergeByFree(i, grd_prcpendlist.colRef("orddt"), k, grd_prcpendlist.colRef("orddt"));
- }
-
- }
-
- }
- }
- grd_prcpendlist.refresh();
-
- }
- }
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMNO00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/orddr"/>
- <submission id="TRMNO02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="main/precureprcpuncopatinfo"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- </model>
- <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="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" style="left:0px; top:18px; width:1194px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:1px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1192px; height:60px; "/>
- <caption id="cap_ward" class="search_name" style="left:330px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <button id="button1" class="btn1_letter4" navindex="5" style="left:1095px; top:17px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "외래 선처치 미수금 발생내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- var sheetName = model.getValue("/root/main/cond/srchfromdd")+"~"+model.getValue("/root/main/cond/srchtodd")+"_";
- if (fileName != ""){
- grd_prcpendlist.saveExcel(fileName, sheetName, true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
- <input id="ipt_srchfromdd" ref="/root/main/cond/srchfromdd" class="input_s_essential" navindex="3" inputtype="date" style="left:103px; top:8px; width:90px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1024px; y1:11px; x2:1024px; y2:46px; "/>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" navindex="2" appearance="minimal" style="left:404px; top:8px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetOrdDrList(); // 진료의리스트 조회
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_search" appearance="minimal" style="left:682px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddr/orddr">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:608px; top:9px; width:73px; height:17px; ">진료의 :</caption>
- <input id="ipt_srchtodd" ref="/root/main/cond/srchtodd" class="input_s_essential" navindex="3" inputtype="date" style="left:208px; top:8px; width:90px; height:19px; "/>
- <caption id="caption1" style="left:194px; top:10px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <caption id="caption2" class="search_name" style="left:797px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <select id="checkbox2" ref="/root/main/cond/precureprcpflag" class="checkbox_search" overflow="visible" appearance="full" style="left:884px; top:9px; width:126px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>선처치 미등록 포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption4" class="search_name" style="left:16px; top:34px; width:86px; height:17px; ">처방코드 :</caption>
- <input id="ipt_pid" ref="/root/main/cond/prcpcd" class="input_search" navindex="5" style="left:103px; top:33px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_srchprecureprcpuncopatlist", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_prcpclscd" ref="/root/main/cond/prcpclscd" class="combo_search" appearance="minimal" style="left:348px; top:33px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0005list/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:217px; top:34px; width:130px; height:17px; ">처방분류별 조회 :</caption>
- <select1 id="cmb_prcpinptflag" ref="/root/main/cond/prcpinptflag" class="combo_search" appearance="minimal" style="left:587px; top:33px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0034list/M0034">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:472px; top:34px; width:112px; height:17px; ">처방입력구분 :</caption>
- <button id="btn_srchprecureprcpuncopatlist" class="btn1_letter2" navindex="5" style="left:1036px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPreCurePrcpUncoPatList(); // 외래 선처치 미수금 발생내역 조회
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/cond/pid" class="input_search" navindex="5" style="left:830px; top:33px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_pid", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" style="left:912px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 외래간호환자조회로 변경_20090218(ByJA)
- modal("../../../emr/outcareweb/xrw/SPMNO02400", "1","150", "150", "SPMNO02400", "/root/source", "/root/main/cond");
-
- //환자번호 copy
- model.makeValue("/root/main/cond/pid", "");
- model.makeValue("/root/main/cond/hngnm", "");
- var popupendflag = model.getValue("/root/main/popupendflag");
- if (popupendflag == "ok"){
- model.makeValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- ipt_pid.refresh();
- opt_hngnm.refresh();
- }
-
- fGetPreCurePrcpUncoPatList(); // 외래 선처치 미수금 발생내역 조회
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_srchprecureprcpuncopatlist", "DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:743px; top:34px; width:86px; height:17px; ">등록번호 :</caption>
- <output id="opt_hngnm" ref="/root/main/cond/hngnm" class="output_fix" style="left:930px; top:33px; width:85px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1193px; y2:70px; "/>
- <datagrid id="grd_prcpendlist" nodeset="/root/main/precureprcpuncopatlist/precureprcpuncopatinfo" class="datagrid2" allowselection="false" caption="등록번호^환자명^처방일자^처방코드^처방명^처방분류^진료과^진료의^처방과^처방자^처방입력구분^선처치
등록여부^미수액
(본인부담금)^진료예약일시" colsep="^" colwidth="64, 65, 70, 78, 212, 65, 81, 55, 80, 55, 79, 54, 87, 100" ellipsis="true" explorerbar="sort" mergecells="byrestriccol" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:75px; width:1193px; height:665px; ">
- <col ref="pid"/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpcd" style="text-align:left; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="prcpclsnm" style="text-align:left; "/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="orddrnm" style="text-align:left; "/>
- <col ref="rgstdeptnm" style="text-align:left; "/>
- <col ref="rgstrnm" style="text-align:left; "/>
- <col ref="prcpinptflag" style="text-align:left; "/>
- <col ref="precureprcpflag" style="text-align:left; "/>
- <col ref="ownbamt" format="000,000,000,000,000,000" style="text-align:right; "/>
- <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcpendlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외래 선처치 미수금 발생내역</caption>
- </xhtml:body>
- </xhtml:html>
|