1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIS00600_청구삭감조회.xrw
- * 수정이력
- * - 2008.09.25 / 최초작성 / 강종태
- ************************************************
- * [ Maps ]
- * TRZBC00102 : 공통코드
- * TRPID20309 : 진료과, 주치의
- * TRPID20407 : 청구차수
- * TRPID20201 : 청구과
- -->
- <?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>
- <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <grdlist>
- <clamcutlist>
- <pid/>
- <hngnm/>
- <ioflag/>
- <clamym/>
- <clamflagcd/>
- <clamdg/>
- <insukind/>
- <suppkind/>
- <clamdeptcd/>
- <orddeptcd/>
- <orddrnm/>
- <diagcd/>
- <acptno/>
- <docuseqno/>
- <edilnno/>
- <snglcalcscorcd/>
- <edicd/>
- <calchngnm/>
- <unitcost/>
- <drugqty/>
- <tims/>
- <dayno/>
- <totdrugqty/>
- <amt/>
- <indd/>
- <cretfromdd/>
- <crettodd/>
- <clamdrid/>
- <judgyn/>
- <cutdrugqty/>
- <cuttims/>
- <cutdayno/>
- <totcutqty/>
- <adjtamt/>
- <obtappamt/>
- <orgreduamt/>
- <oprcp/>
- <payflag/>
- <judgrnm/>
- </clamcutlist>
- </grdlist>
- </main>
- <init>
- <!-- 진료과 -->
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- <!-- 진료의 -->
- <orddrid>
- <cd/>
- <nm/>
- </orddrid>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- 청구구분 -->
- <P0155list>
- <P0155>
- <cdnm/>
- <cdid/>
- <cdengabbrnm/>
- </P0155>
- </P0155list>
- <!-- 급여구분 -->
- <P0104list>
- <P0104>
- <cdnm/>
- <cdid/>
- </P0104>
- </P0104list>
- <!-- 청구년월 -->
- <clamdg/>
- <clamdgfrom>
- <clamdglist>
- <clamdgnm/>
- <clamdgcd/>
- </clamdglist>
- </clamdgfrom>
- <clamdgto>
- <clamdglist>
- <clamdgnm/>
- <clamdgcd/>
- </clamdglist>
- </clamdgto>
- <U0001list/>
- <earnclslist/>
- <trustinstnmlist>
- </trustinstnmlist>
- </init>
- <send>
- <clamflag/>
- <clamym/>
- <clamymfrom/>
- <clamdgfrom/>
- <clamymto/>
- <clamdgto/>
- <insukind/>
- <ioflag/>
- <clamdeptid/>
- <orddeptcd/>
- <orddrid/>
- <code/>
- <patunitsrch/>
- <cutonly/>
- <codecond/>
- <cancer/>
- <large/>
- <middle/>
- <small/>
- <judgrid/>
- <edicd/>
- <trustinstcd/>
- </send>
- <hidden>
- <smpic00200>
- <judgsrch>
- <con1_dd/>
- <con2_gsflag/>
- <con3_search1/>
- <con4_search2/>
- <con5_insu/>
- </judgsrch>
- <rslt>
- <mech/>
- <picmmech/>
- <edicd/>
- </rslt>
- </smpic00200>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- </cond>
- </sppmc02500>
- <chkym/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면 초기화
- fInitialize();
- ]]>
- </script>
- <!-- submission -->
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPIS00600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/clamcutlist"/>
- <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
- <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" resultref="/root/init/clamdg"/>
- <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
- <submission id="TRPIB00603" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
- <submission id="TRPIS00510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/earnclslist"/>
- <submission id="TRPIS00601" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/trustinstnmlist"/>
- </model>
- <!-- js import -->
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <!-- 뽕숑 -->
- <script type="javascript">
- <![CDATA[
- // 화면 초기화
- function fInitialize()
- {
-
- //rdo_code.value = "calcscorcd"; // 수가 선택
- model.removeNodeset("/root/main/grdlist/calcorderlist"); // 그리드 초기화
- submit("TRPIB00603"); // 심사자 콤보리스트
- submit("TRPIS00510"); // 수가 수익분류 리스트
- submit("TRPIS00601"); // 위탁기관명 리스트
-
- rdo_searchcond.value = "calc";
-
- zbcfGetCodeList(
- new Array("P0008" // 보험유형
- ,"P0155" // 청구구분
- ),
- new Array("/root/init/P0008list"
- ,"/root/init/P0155list"
- )
- ,false
- );
- cmb_clamflag.refresh();
- cmb_insukind.refresh();
-
- if (checkOpener()){
-
- var flag = opener.javascript.getParameter("openflag");
- var orddeptcd = opener.javascript.getParameter("SMPMB00900_orddeptcd");
- var pid = opener.javascript.getParameter("pid");
-
- //외래사후심사대상자조회에서 팝업호출할 경우
- if(flag == "O"){
- var curDate = getCurrentDate();
- fromDate = curDate.toDate().getAddDate(-6,"M").getDateFormat("YYYYMM");
-
- rdo_ioflag.value = "A"; // 내원유형:전체
- combo3.value = "N";
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var currentym = baseyear + basemonth;
- model.setValue("/root/send/clamymfrom",fromDate);
- model.setValue("/root/send/clamymto",currentym);
- model.setValue("/root/send/patunitsrch", pid);
- model.setValue("/root/send/cutonly", "true");
- button1.dispatch("DOMActivate");
-
- }else{
- var curDate = getCurrentDate();
- fromDate = curDate.toDate().getAddDate(-12,"M").getDateFormat("YYYYMM");
-
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var currentym = baseyear + basemonth;
- model.setValue("/root/send/clamymfrom",fromDate);
- model.setValue("/root/send/clamymto",currentym);
-
- model.setValue("/root/hidden/chkym","oney");
- rdo_ioflag.value = "A";
- model.makeNode("/root/send/trustinstcd");
- model.makeNode("/root/send/large");
- model.makeNode("/root/send/middle");
- model.makeNode("/root/send/small");
- model.setValue("/root/send/trustinstcd", "N");
- model.setValue("/root/send/cutonly", "true");
- //combo3.value = "N";
- cmb_clamdgfrom.refresh();
- combo3.refresh();
- pidfGetClamdg();
-
- fSearch();
- }
-
- }else{
- rdo_ioflag.value = "A"; // 내원유형:전체
- combo3.value = "N";
- // 청구년월, 차수 셋팅 시작
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var currentym = baseyear + basemonth;
- model.setValue("/root/send/clamymfrom",currentym);
- model.setValue("/root/send/clamymto",currentym);
- model.setValue("/root/send/cutonly", "true");
- model.setValue("/root/hidden/chkym","oney");
- ipt_clamymfrom.refresh();
- ipt_clamymto.refresh();
-
- pidfGetClamdg();
- }
- /*
- // 초기화 할 때 PID가 존재하면 조회를 실행 한다 (팝업으로 호출된 경우 PID를 가지고 있다)
- if ( model.getValue("/root/send/patunitsrch") != "" )
- {
- pidfGetClamdg();
- cmb_clamdgfrom.refresh();
- rdo_ioflag.value = "A";
- combo3.value = "N";
- fSearch();
- // model.setValue("/root/send/item1/pid",""); // 최초 실행 후 PID 제거
- }
- else
- {
- rdo_ioflag.value = "A"; // 내원유형:전체
- combo3.value = "N";
- // 청구년월, 차수 셋팅 시작
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var currentym = baseyear + basemonth;
- model.setValue("/root/send/clamymfrom",currentym);
- model.setValue("/root/send/clamymto",currentym);
- ipt_clamymfrom.refresh();
- ipt_clamymto.refresh();
-
- pidfGetClamdg();
- //cmb_clamdgfrom.select(0);
- //cmb_clamdgfrom.refresh();
- //cmb_clamdgto.select(0);
- //cmb_clamdgto.refresh();
- // 청구년월 셋팅 끝
- }
- */
- // IOFLAG를 파라메터로 받아야 하므로 IOFLAG가 정해진 후 호출 한다
- fGetOrdDept(); // 진료과,진료의 콤보 리스트
- fGetClamDept(); // 청구과 콤보 리스트
-
- model.refresh();
- // fGetOrdDrid(); // 진료의 콤보 리스트
- }
-
- // 진료과 리스트 가져오기
- function fGetOrdDept()
- {
- submit("TRPID20309");
- }
-
- // // 진료의 리스트 가져오기
- // function fGetOrdDrid()
- // {
- // submit("TRPID20309");
- // }
-
- // 환자단위 조회
- function fPatSrch()
- {
- var ipt_pid = model.getValue("/root/send/patunitsrch");
- if (ipt_pid) {
- if ( !isNaN(ipt_pid) )
- {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
- else
- {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
- model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
- }
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
- modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
- model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
- model.setValue("/root/send/patunitsrch", srch_pid);
- }
- model.refresh();
- }
-
- function fGetSnglcalcscorcd() {
- // 처방시작일을 수가조회 기준일자로 설정
- model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_clamymfrom.value);
- // 싱글수가코드
- model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
- // SMPIC00200_수가조회 화면의 검색조건 combo 조건값 설정
- // 수가 > calcscorcd , edi > edicd , 한글 hngnm
- // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", rdo_code.value);
- model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "calcscorcd");
-
- // SMPIC00200_수가조회 용
- model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", "");
- // 보험으로 박아서 날린다
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
-
- model.removeNodeset("/root/hidden/smpic00200/rslt/mech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
- model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
- modal("SMPIC00200", "1", "10", "10", "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", ""); // SMPIC00200_수가조회.xrw
-
- var mechSelect = instance1.selectSingleNode("/root/temp/mech");
- if (mechSelect == null) { // 선택한 코드가 없는 경우
- messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
- return;
- }
-
- // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
- model.makeNode("/root/hidden/smpic00200/rslt/mech");
- model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
- model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
- model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
- model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
-
- if (model.getValue("/root/hidden/smpic00200/rslt/mech/ordinptflag") != "A") { // 처방입력구분(코드군 P0141) A: 가능
- messageBox("처방이 불가한 코드", "E008"); ///처방이 불가한 코드입니다.
- return;
- }
-
- // 수가코드만 조회하기 때문에 수가코드로 박는다 2009.02.23
- model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
-
- ipt_code.refresh();
- }
-
- // 청구년월 함수
- function pidfGetClamdg() {
-
- if ( model.getValue("/root/send/clamymfrom") > model.getValue("/root/send/clamymto") ) {
- messageBox("종료일은 시작일보다 클 수 ", "I004");
- model.setValue("/root/send/clamymto","")
- } else {
- model.removeNodeset("/root/init/clamdg");
- model.makeNode("/root/init/clamdg");
- model.setValue("/root/send/clamym",model.getValue("/root/send/clamymfrom"));
- submit("TRPID20407");
- model.copyNode("/root/init/clamdgfrom","/root/init/clamdg");
- /*
- cmb_clamdgfrom.refresh();
- cmb_clamdgfrom.select(0);
- */
- model.setValue("/root/send/clamym",model.getValue("/root/send/clamymto"));
- submit("TRPID20407");
- model.copyNode("/root/init/clamdgto","/root/init/clamdg");
- addComboItem("cmb_clamdgfrom","전체","","above");
- addComboItem("cmb_clamdgto","전체","","above");
- cmb_clamdgfrom.refresh();
- cmb_clamdgfrom.select(0);
- cmb_clamdgto.refresh();
- cmb_clamdgto.select(0);
- }
-
- }
-
- // 청구년월 차수 기간 체크
- function fChkClamym()
- {
- var fromym = model.getValue("/root/send/clamymfrom");
- var toym = model.getValue("/root/send/clamymto");
-
- if ( fromym != toym )
- {
- cmb_clamdgfrom.value = "";
- cmb_clamdgto.value = "";
- cmb_clamdgfrom.disabled = true;
- cmb_clamdgto.disabled = true;
- }
- else
- {
- cmb_clamdgfrom.disabled = false;
- cmb_clamdgto.disabled = false;
- cmb_clamdgfrom.select(0);
- cmb_clamdgto.select(0);
- }
-
- cmb_clamdgto.refresh();
- cmb_clamdgfrom.refresh();
- }
-
- // 청구과 함수
- function fGetClamDept()
- {
- submit("TRPID20201");
- }
-
- // 조회
- function fSearch()
- {
- var chk_clamymfrom = model.getValue("/root/send/clamymfrom");
- var chk_clamymto = model.getValue("/root/send/clamymto");
- var ipt_patunitsrch = model.getValue("/root/send/patunitsrch");
- var ipt_code = model.getValue("/root/send/code");
-
- // 무한루프 오류때문에 수정
- chk_clamymfrom = chk_clamymfrom.substr(0,6);
- chk_clamymto = chk_clamymto.substr(0,6);
-
- model.setValue("/root/send/clamymfrom",chk_clamymfrom);
- model.setValue("/root/send/clamymto",chk_clamymto);
-
- if ( chk_clamymfrom == "" || chk_clamymto == "")
- {
- messageBox("청구년월은 ", "I003");
- model.setFocus("chk_clamymfrom");
- return;
- }
- else if ( ipt_patunitsrch == "" && ipt_code == "")
- {
- if(model.getValue("/root/send/codecond") == "calc"){
- if(model.getValue("/root/send/trustinstcd") == "N"){
- messageBox("수가코드는 ", "I003");
- model.setFocus("ipt_code");
- return;
- }
- }
- }
- // else if ( ipt_patunitsrch == "")
- // {
- // messageBox("환자등록번호는 ", "I003");
- // model.setFocus(ipt_patunitsrch);
- // }
-
- model.removeNodeset("/root/main/grdlist/clamcutlist");
- submit("TRPIS00600");
- }
-
- function fGetEdicd() {
-
- // 처방시작일을 수가조회 기준일자로 설정
- model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_clamymfrom.value);
- // 싱글수가코드
- model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
- // SMPIC00200_수가조회 화면의 검색조건 combo 조건값 설정
- // 수가 > calcscorcd , edi > edicd , 한글 hngnm
- // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", rdo_code.value); // 2009.02.18 수가,EDI 라디오 버튼 제거
- model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
-
- // SMPIC00200_수가조회 용
- model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", "");
- // 보험으로 박아서 날린다
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
-
- //setParameter("iParam_mother_view", "SMPIS00600_청구삭감조회");
-
- model.removeNodeset("/root/hidden/smpic00200/rslt/edicd");
- model.removeNodeset("/root/hidden/smpic00200/rslt/mech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
- model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
- modal("SMPIC00200", "1", "10", "10", "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", ""); // SMPIC00200_수가조회.xrw
-
- var edicdSelect = instance1.selectSingleNode("/root/temp/edicd");
- if (edicdSelect == null) { // 선택한 코드가 없는 경우
- messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
- return;
- }
-
- // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
- model.makeNode("/root/hidden/smpic00200/rslt/mech");
- model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
- model.makeNode("/root/hidden/smpic00200/rslt/edicd");
- model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
- model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
- model.copyNode("/root/hidden/smpic00200/rslt/edicd", "/root/temp/edicd");
- model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
-
- if (model.getValue("/root/hidden/smpic00200/rslt/mech/ordinptflag") != "A") { // 처방입력구분(코드군 P0141) A: 가능
- messageBox("처방이 불가한 코드", "E008"); ///처방이 불가한 코드입니다.
- return;
- }
-
- // 수가코드만 조회하기 때문에 수가코드로 박는다 2009.02.23
- model.setValue("/root/send/edicd", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
- ipt_edicd.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1213;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <!-- TITLE -->
- <group id="group1" style="left:0px; top:0px; width:1190px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">청구삭감 환자조회</caption>
- </group>
- <!-- 전체 그룹 -->
- <group id="group2" scroll="no" style="left:0px; top:13px; width:1190px; height:722px; ">
- <!-- 조회조건 -->
- <group id="group4" style="left:0px; top:10px; width:1190px; height:120px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:120px; "/>
- <caption id="caption5" class="search_name" style="left:5px; top:10px; width:76px; height:17px; ">청구년월</caption>
- <input id="ipt_clamymfrom" ref="/root/send/clamymfrom" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:85px; top:10px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/clamymto",model.getValue("/root/send/clamymfrom"));
- pidfGetClamdg();
- fChkClamym();
- ]]>
- </script>
- </input>
- <select1 id="cmb_clamdgfrom" ref="/root/send/clamdgfrom" class="combo_search" appearance="minimal" style="left:162px; top:10px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdgfrom/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/clamdgto", model.getValue("/root/send/clamdgfrom"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:575px; top:10px; width:65px; height:17px; ">진료과</caption>
- <select1 id="combo2" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:655px; top:10px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddeptcd = model.getValue("/root/send/orddeptcd");
-
- if (orddeptcd) {
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/tmp/orddrid/orddridlist[dp='" + orddeptcd + "']";
- cmb_orddrid.disabled = false;
- } else {
- cmb_orddrid.disabled = true;
- }
- model.setValue("/root/send/orddrid", ""); // 주치의 선택을 초기화한다.
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line2" class="line_4" style="x1:1114px; y1:5px; x2:1114px; y2:109px; "/>
- <button id="button1" class="btn1_letter2" navindex="2" style="left:1125px; top:50px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:575px; top:35px; width:70px; height:17px; ">진료의</caption>
- <caption id="caption9" class="search_name" style="left:5px; top:60px; width:76px; height:17px; ">내원유형</caption>
- <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="combo_search" appearance="minimal" style="left:85px; top:60px; width:67px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetOrdDept(); // 진료과,진료의 콤보 리스트
- // fGetOrdDrid(); // 진료의 콤보 리스트
- fGetClamDept(); // 청구과 콤보 리스트
- ]]>
- </script>
- </select1>
- <input id="ipt_code" ref="/root/send/code" class="input_search" inputtype="button" maxlength="10" _chartype="upper" style="left:1015px; top:35px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetSnglcalcscorcd();
- ]]>
- </script>
- </input>
- <input id="ipt_patunitsrch" ref="/root/send/patunitsrch" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:835px; top:35px; width:90px; height:19px; ">
- <hint>
- <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
- </hint>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- if( isNaN(model.getValue("/root/send/patunitsrch")) ) // PID로 검색시 조회
- {
- fPatSrch();
- }
- else
- {
- fSearch();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fPatSrch();
- ]]>
- </script>
- </input>
- <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:655px; top:35px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:380px; top:10px; width:76px; height:17px; ">청구구분</caption>
- <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" appearance="minimal" style="left:475px; top:10px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_clamdept" ref="/root/send/clamdeptid" class="combo_search" appearance="minimal" style="left:475px; top:35px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/clamdept/clamdeptlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:380px; top:35px; width:65px; height:17px; ">청구과</caption>
- <caption id="caption13" class="search_name" style="left:755px; top:10px; width:76px; height:17px; ">보험유형</caption>
- <output id="opt_insukind" ref="/root/send/insukind" class="output_search" style="left:905px; top:10px; width:20px; height:19px; "/>
- <select1 id="cmb_insukind" ref="/root/send/insukind" class="combo_search" appearance="minimal" style="left:835px; top:10px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:755px; top:35px; width:102px; height:17px; ">환자조회</caption>
- <input id="ipt_clamymto" ref="/root/send/clamymto" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:230px; top:10px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- pidfGetClamdg();
- fChkClamym();
- ]]>
- </script>
- </input>
- <select1 id="cmb_clamdgto" ref="/root/send/clamdgto" class="combo_search" appearance="minimal" style="left:307px; top:10px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdgto/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/clamdgfrom", model.getValue("/root/send/clamdgto"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" style="left:215px; top:10px; width:15px; height:20px; ">~</caption>
- <caption id="cp_code" class="search_name" style="left:937px; top:35px; width:76px; height:17px; ">수가코드</caption>
- <caption id="caption8" class="search_name" style="left:380px; top:88px; width:89px; height:17px; ">삭감처방만</caption>
- <bool id="bool1" ref="/root/send/cutonly" style="left:465px; top:87px; width:30px; height:20px; "/>
- <select1 id="rdo_searchcond" ref="/root/send/codecond" class="radio_search" overflow="visible" appearance="full" cols="3" style="left:83px; top:85px; width:167px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드별</label>
- <value>calc</value>
- </item>
- <item>
- <label>항암제</label>
- <value>cancer</value>
- </item>
- <item>
- <label>분류별</label>
- <value>kind</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- ipt_code.value = "";
- rdo_cancer.value = "";
- cmb_large.value = "";
- cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden";
- cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden";
-
- var choice = rdo_searchcond.value;
-
- if ( choice == "calc" ) {
- cp_code.disabled = false;
- ipt_code.disabled = false;
- cp_edicd.disabled = false;
- ipt_edicd.disabled = false;
-
- rdo_cancer.disabled = true;
- cp_large.disabled = true;
- cp_middle.disabled = true;
- cp_small.disabled = true;
- cmb_large.disabled = true;
- cmb_middle.disabled = true;
- cmb_small.disabled = true;
- } else if ( choice == "cancer" ) {
- rdo_cancer.select(0);
-
- cp_code.disabled = true;
- ipt_code.disabled = true;
- cp_edicd.disabled = true;
- ipt_edicd.disabled = true;
-
- rdo_cancer.disabled = false;
- cp_large.disabled = true;
- cp_middle.disabled = true;
- cp_small.disabled = true;
- cmb_large.disabled = true;
- cmb_middle.disabled = true;
- cmb_small.disabled = true;
- } else if ( choice == "kind" ) {
- cp_code.disabled = true;
- ipt_code.disabled = true;
- cp_edicd.disabled = true;
- ipt_edicd.disabled = true;
- rdo_cancer.disabled = true;
-
- cp_large.disabled = false;
- cp_middle.disabled = false;
- cp_small.disabled = false;
- cmb_large.disabled = false;
- cmb_middle.disabled = false;
- cmb_small.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption14" class="search_name" style="left:6px; top:86px; width:76px; height:17px; ">검색조건</caption>
- <select1 id="rdo_cancer" ref="/root/send/cancer" class="radio_search" disabled="true" visibility="visible" overflow="visible" appearance="full" cols="3" style="left:256px; top:85px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>1군</label>
- <value>1</value>
- </item>
- <item>
- <label>2군</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_edicd" ref="/root/send/edicd" class="input_search" inputtype="button" maxlength="10" _chartype="upper" style="left:1015px; top:60px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetEdicd();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/code", "");
- ipt_code.refresh();
- ]]>
- </script>
- </input>
- <caption id="cp_edicd" class="search_name" style="left:937px; top:60px; width:76px; height:17px; ">EDI코드</caption>
- <select1 id="cmb_middle" ref="/root/send/middle" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:655px; top:59px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hidden/">
- <label ref="earncls2nm"/>
- <value ref="earncls2"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden/earnclslist[step='S' and earncls1='" + cmb_large.value + "' and earncls2='" + cmb_middle.value + "']";
- cmb_small.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cp_middle" class="search_name" style="left:575px; top:60px; width:64px; height:17px; ">중분류</caption>
- <select1 id="cmb_small" ref="/root/send/small" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:835px; top:60px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hidden/">
- <label ref="earncls3nm"/>
- <value ref="earncls3"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cp_small" class="search_name" style="left:755px; top:60px; width:65px; height:17px; ">소분류</caption>
- <select1 id="cmb_large" ref="/root/send/large" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:476px; top:59px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hidden/earnclslist[step='L']">
- <label ref="earncls1nm"/>
- <value ref="earncls1"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden";
- cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden";
- cmb_middle.value = "";
- cmb_small.value = "";
- cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden/earnclslist[step='M' and earncls1='" + cmb_large.value + "']";
- cmb_middle.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cp_large" class="search_name" style="left:380px; top:60px; width:89px; height:17px; ">처방대분류</caption>
- <caption id="caption15" class="search_name" style="left:937px; top:10px; width:73px; height:17px; ">심사자</caption>
- <caption id="caption4" class="search_name" style="left:576px; top:86px; width:95px; height:17px; ">위탁기관명</caption>
- <select1 id="combo3" ref="/root/send/trustinstcd" appearance="minimal" style="left:670px; top:85px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/trustinstnmlist/trust">
- <label ref="trustinstnm"/>
- <value ref="trustinstcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/send/judgrid" navindex="1" appearance="minimal" style="left:1015px; top:10px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/U0001list/U0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_year" ref="/root/hidden/chkym" overflow="visible" appearance="full" cols="4" style="left:85px; top:35px; width:185px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>6개월</label>
- <value>sixm</value>
- </item>
- <item>
- <label>1년</label>
- <value>oney</value>
- </item>
- <item>
- <label>2년</label>
- <value>twoy</value>
- </item>
- <item>
- <label>3년</label>
- <value>threey</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var choice = rdo_year.value;
- var curDate = getCurrentDate();
-
-
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var currentym = baseyear + basemonth;
-
-
- if (choice == "sixm")
- {
- fromDate = curDate.toDate().getAddDate(-6,"M").getDateFormat("YYYYMM");
-
- }
- else if (choice == "oney")
- {
- fromDate = curDate.toDate().getAddDate(-12,"M").getDateFormat("YYYYMM");
- }
- else if (choice == "twoy")
- {
- fromDate = curDate.toDate().getAddDate(-24,"M").getDateFormat("YYYYMM");
- }
- else if (choice == "threey")
- {
- fromDate = curDate.toDate().getAddDate(-36,"M").getDateFormat("YYYYMM");
- }
-
- model.setValue("/root/send/clamymfrom",fromDate);
- model.setValue("/root/send/clamymto",currentym);
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption12" class="tit_2" style="left:0px; top:140px; width:100px; height:13px; ">환자 리스트</caption>
- <button id="button2" class="btn2_letter4" style="left:1121px; top:136px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_outjudg.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "청구삭감 환자조회_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
- grd_outjudg.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/clamcutlist" class="datagrid2" caption="등록번호^성명^내원유형^청구월^구분^차수^유형^보조^청구과^진료과^진료의^주상병^접수번호^명일련^줄번호^처방코드^EDI코드^한글명^단가^수량^횟수^일수^총투여량^금액^입원일자^유형시작일^종료일^처방의^심사결정^삭감투여량^삭감횟수^삭감일수^총투삭감량^조정금액^이의신청금액^실삭감금액^원외^급비^심사자" colsep="^" colwidth="76, 59, 37, 67, 40, 45, 20, 23, 100, 54, 66, 66, 75, 48, 47, 86, 86, 205, 78, 54, 46, 37, 56, 83, 75, 75, 83, 60, 36, 70, 62, 67, 85, 100, 100, 100, 31, 24, 55" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:155px; width:1190px; height:565px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="clamym" format="yyyy-mmd" style="text-align:center; "/>
- <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdengabbrnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="clamdg" style="text-align:center; "/>
- <col ref="insukind"/>
- <col ref="suppkind"/>
- <col ref="clamdeptcd"/>
- <col ref="orddeptcd"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="diagcd"/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:center; "/>
- <col ref="edilnno" style="text-align:center; "/>
- <col ref="snglcalcscorcd"/>
- <col ref="edicd"/>
- <col ref="calchngnm" style="left:1015px; top:32px; width:205px; height:23px; "/>
- <col ref="unitcost" format="#,###" style="text-align:right; "/>
- <col ref="drugqty" format="#,###.00" style="text-align:center; "/>
- <col ref="tims" format="#,###" style="text-align:center; "/>
- <col ref="dayno" format="#,###" style="text-align:center; "/>
- <col ref="totdrugqty" format="#,###.00" style="text-align:center; "/>
- <col ref="amt" format="#,###" style="text-align:right; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cretfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="crettodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamdrid" style="text-align:center; "/>
- <col ref="judgyn" style="text-align:center; "/>
- <col ref="cutdrugqty" format="#,###.00" style="text-align:right; "/>
- <col ref="cuttims" format="#,###" style="text-align:right; "/>
- <col ref="cutdayno" format="#,###" style="text-align:right; "/>
- <col ref="totcutqty" format="#,###.00" style="text-align:right; "/>
- <col ref="adjtamt" format="#,###" style="text-align:right; "/>
- <col ref="obtappamt" format="#,###" style="text-align:right; "/>
- <col ref="orgreduamt" format="#,###" style="text-align:right; "/>
- <col ref="oprcp"/>
- <col disabled="true" ref="payflag" type="combo">
- <choices>
- <item>
- <label>급</label>
- <value>0</value>
- </item>
- <item>
- <label>100</label>
- <value>1</value>
- </item>
- <item>
- <label>비</label>
- <value>2</value>
- </item>
- <item>
- <label>선</label>
- <value>8</value>
- </item>
- <item>
- <label>선</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="judgrnm"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|