123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIS00500_계산처방시행조회.xrw
- * 수정이력
- * - 2008.09.25 / 최초작성 / 강종태
- * - 2009.04.02 / 수정 : 필드 추가, 조건 추가
- ************************************************
- * [ Maps ]
- * TRPID20309 : 진료과, 주치의
- -->
- <?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>
- <calcorderlist>
- <pid/>
- <hngnm/>
- <ioflag/>
- <prcpdd/>
- <execdd/>
- <insukind/>
- <suppkind/>
- <orddeptcd/>
- <orddrnm/>
- <atdrnm/>
- <diag/>
- <snglcalcscorcd/>
- <edicd/>
- <calchngnm/>
- <appunitcost/>
- <calcqty/>
- <calctims/>
- <calcdays/>
- <totqty/>
- <calcamt/>
- <calcscorpayflag/>
- <indd/>
- <fromdd/>
- <todd/>
- <oprcp/>
- <judgrid/>
- <acptno/>
- <cretfromdd/>
- <yn/>
- <orddd/>
- </calcorderlist>
- </grdlist>
- </main>
- <init>
- <!-- 진료과 -->
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- <!-- 진료의 -->
- <orddrid>
- <cd/>
- <nm/>
- </orddrid>
- <!-- 심사자 -->
- <U0001list/>
- <earnclslist/>
- </init>
- <send>
- <datecond/>
- <fromdd/>
- <todd/>
- <ioflag/>
- <orddeptcd/>
- <orddrid/>
- <codecond/>
- <code/>
- <edicd/>
- <patunitsrch/>
- <judgrid/>
- <cancer/>
- <large/>
- <middle/>
- <small/>
- <grupcalcscorcd/>
- </send>
- <hidden>
- <smpic00200>
- <judgsrch>
- <con1_dd/>
- <con2_gsflag/>
- <con3_search1/>
- <con4_search2/>
- <con5_insu/>
- </judgsrch>
- <rslt>
- <mech/>
- <picmmech/>
- </rslt>
- </smpic00200>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- </cond>
- </sppmc02500>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면 초기화
- fInitialize();
- ]]>
- </script>
- <!-- submission -->
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPIS00500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/calcorderlist"/>
- <submission id="TRPID20309" 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"/>
- </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" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <!-- 뽕숑 -->
- <script type="javascript">
- <![CDATA[
- // 화면 초기화
- function fInitialize()
- {
- // rdo_code.value = "calcscorcd"; // 2009.02.18 라디오버튼 제거
- model.removeNodeset("/root/main/grdlist/calcorderlist"); // 그리드 초기화
- fGetOrdDept(); // 진료과 콤보 리스트
- submit("TRPIB00603"); // 심사자 콤보리스트
- submit("TRPIS00510"); // 수가 수익분류 리스트
-
- rdo_searchcond.value = "calc";
-
- // 수정시 거지 같아서 분리해 놨다가 로드시 위치로
- //rdo_cancer.attribute("left") = 295;
- //cp_large.attribute("left") = 295;
- //cp_middle.attribute("left") = 475;
- //cp_small.attribute("left") = 635;
- //cmb_large.attribute("left") = 365;
- //cmb_middle.attribute("left") = 520;
- //cmb_small.attribute("left") = 685;
-
- // fGetOrdDrid(); // 진료의 콤보 리스트 (TRPID20309 호출시 진료과,진료의 모두 가져온다
-
- // 초기화 할 때 PID가 존재하면 조회를 실행 한다 (팝업으로 호출된 경우 PID를 가지고 있다)
- if ( model.getValue("/root/send/patunitsrch") != "" )
- {
- if ( model.getValue("/root/send/ioflag") == "" ) {
- model.setValue("/root/send/ioflag","A");
- }
- fSearch();
- }
- else
- {
- // 팝업 호출시 값을 가져오기 때문에 팝업이 아닐 경우에만 기본값으로 설정해 준다
- // rdo_datecond.value = "P"; // 처방 2009.02.18 라디오버튼 제거
- rdo_ioflag.value = "A"; // 내원유형:전체
- ipt_fromdd.value = getCurrentDate();
- ipt_todd.value = getCurrentDate();
- }
- }
-
- // 진료과 리스트 가져오기
- 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();
- }
-
- // 수가,EDI
- function fGetSnglcalcscorcd() {
- // 처방시작일을 수가조회 기준일자로 설정
- model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_fromdd.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", "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_수가조회 에서 선택된 결과가 직접 전달되는 경로임
-
- // 처방불가한 수가코드라도 조회 가능해야 한다!! (2015.11.02 칠곡 심사팀 김민혁 선생님 요청)
- //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"));
-
- // if ( model.getValue("/root/send/codecond") == "calcscorcd" )
- // {
- // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
- // }
- // else
- // {
- // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
- // }
-
- ipt_code.refresh();
-
- // model.setValue("/root/send/item1/choicdsrch1", "3");
- // rdo_mchrgcode.refresh();
- // ipt_choicdsrch.refresh();
- }
-
- function fGetGrupcalcscorcd() {
- // 처방시작일을 수가조회 기준일자로 설정
- model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_fromdd.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", "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/grupcalcscorcd", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
-
- // if ( model.getValue("/root/send/codecond") == "calcscorcd" )
- // {
- // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
- // }
- // else
- // {
- // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
- // }
-
- ipt_grupcalcscorcd.refresh();
-
- // model.setValue("/root/send/item1/choicdsrch1", "3");
- // rdo_mchrgcode.refresh();
- // ipt_choicdsrch.refresh();
- }
-
- function fGetEdicd() {
- // 처방시작일을 수가조회 기준일자로 설정
- model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_fromdd.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");
-
- 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_insuedicd"));
-
- // if ( model.getValue("/root/send/codecond") == "calcscorcd" )
- // {
- // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
- // }
- // else
- // {
- // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
- // }
-
- ipt_edicd.refresh();
-
- // model.setValue("/root/send/item1/choicdsrch1", "3");
- // rdo_mchrgcode.refresh();
- // ipt_choicdsrch.refresh();
- }
-
- // 조회
- function fSearch()
- {
- var chk_pid = model.getValue("/root/send/patunitsrch");
- var chk_fromdd = model.getValue("/root/send/fromdd");
- var chk_todd = model.getValue("/root/send/todd");
- var chk_code = model.getValue("/root/send/code");
- var chk_edicd = model.getValue("/root/send/edicd");
- var chk_cancer = model.getValue("/root/send/cancer");
- var chk_large = model.getValue("/root/send/large");
- var chk_grupcalcscorcd = model.getValue("/root/send/grupcalcscorcd");
-
- if ( chk_fromdd == "" )
- {
- messageBox("조회기간은 ", "I003");
- model.setFocus("ipt_fromdd");
- }
- else if (!isValidDateTime(chk_fromdd,"YYYYMMDD"))
- {
- messageBox("날짜 타입이 ", "E004");
- model.setFocus("ipt_fromdd");
- }
- else if ( chk_todd == "" )
- {
- messageBox("조회기간은 ", "I003");
- model.setFocus("ipt_todd");
- }
- else if (!isValidDateTime(chk_todd,"YYYYMMDD"))
- {
- messageBox("날짜 타입이 ", "E004");
- model.setFocus("ipt_todd");
- }
- // else if ( chk_large == "" )
- // {
- // messageBox("검색조건은 ", "I003");
- // model.setFocus("ipt_code");
- // }
- else
- {
- // 근무시간 중 31일 이내, 근무시간 외 365일 이내만 조회되도록 제어 기능 추가 (2015.10.27 L.E.J)
- var chk_Time = getCurrentTime() ;
- var chk_diff = getDateInterval(chk_fromdd, chk_todd, "dd");
- if (chk_Time >= "080000" && chk_Time <= "173000")
- {
- if ( chk_diff > "31" )
- {
- alert("근무시간 중(08:00~17:30)에는 한달 이내만 조회 가능합니다!! 조회 기간을 다시 설정하세요!!!");
- model.setFocus("ipt_fromdd");
- }
- else
- {
- model.removeNodeset("/root/main/grdlist/calcorderlist");
- submit("TRPIS00500");
-
- if (model.getValue("/root/main/grdlist/calcorderlist[1]/pid") == "over10000") {
- model.removeNodeset("/root/main/grdlist/calcorderlist");
- messageBox("조회된 건수가 만건을 초과하여 배치로 ", "I001");
- grd_outjudg.refresh();
- }
- }
- }
- else
- {
- if ( chk_diff > "365" )
- {
- alert("조회기간은 일년 이내만 가능합니다!! 조회 기간을 다시 설정하세요!!!");
- model.setFocus("ipt_fromdd");
- }
- else
- {
- model.removeNodeset("/root/main/grdlist/calcorderlist");
- submit("TRPIS00500");
-
- if (model.getValue("/root/main/grdlist/calcorderlist[1]/pid") == "over10000") {
- model.removeNodeset("/root/main/grdlist/calcorderlist");
- messageBox("조회된 건수가 만건을 초과하여 배치로 ", "I001");
- grd_outjudg.refresh();
- }
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1214;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:23px; width:1190px; height:732px; ">
- <!-- 조회조건 -->
- <group id="group3" style="left:0px; top:0px; width:1190px; height:80px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:80px; "/>
- <caption id="caption2" class="search_name" style="left:8px; top:31px; width:65px; height:17px; ">진료과</caption>
- <select1 id="base_date" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:91px; top:30px; width:100px; 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 + "']";
- } else {
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/tmp/orddrid/orddridlist";
- }
- model.setValue("/root/send/orddrid", ""); // 주치의 선택을 초기화한다.
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:74px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1123px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption26" class="search_name" style="left:212px; top:30px; width:70px; height:17px; ">진료의</caption>
- <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:283px; top:29px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:403px; top:7px; width:76px; height:17px; ">내원유형</caption>
- <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:502px; top:7px; width:183px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외퇴</label>
- <value>D</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetOrdDept(); // 진료과 콤보 리스트
- // fGetOrdDrid(); // 진료의 콤보 리스트
- ]]>
- </script>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:91px; top:5px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:211px; top:5px; width:100px; height:19px; "/>
- <caption id="caption4" style="left:196px; top:5px; width:15px; height:20px; ">~</caption>
- <input id="ipt_code" ref="/root/send/code" class="input_search" inputtype="button" _chartype="upper" style="left:502px; top:55px; width:183px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetSnglcalcscorcd();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/edicd", "");
- ipt_edicd.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_patunitsrch" ref="/root/send/patunitsrch" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:790px; top:5px; width:104px; 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>
- <caption id="caption5" class="search_name" style="left:707px; top:7px; width:76px; height:17px; ">환자조회</caption>
- <caption id="caption7" class="search_name" style="left:8px; top:7px; width:76px; height:17px; ">진료일자</caption>
- <select1 id="combo1" ref="/root/send/judgrid" navindex="1" appearance="minimal" style="left:984px; top:5px; width:104px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/U0001list/U0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:911px; top:7px; width:73px; height:17px; ">심사자</caption>
- <caption id="caption10" class="search_name" style="left:8px; top:56px; width:76px; height:17px; ">검색조건</caption>
- <select1 id="rdo_searchcond" ref="/root/send/codecond" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:90px; top:55px; 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;
- ipt_grupcalcscorcd.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;
- ipt_grupcalcscorcd.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;
- ipt_grupcalcscorcd.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>
- <select1 id="rdo_cancer" ref="/root/send/cancer" class="radio_search" disabled="true" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:263px; top:55px; 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>
- <select1 id="cmb_large" ref="/root/send/large" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:502px; top:29px; width:183px; 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>
- <select1 id="cmb_middle" ref="/root/send/middle" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:790px; top:29px; width:104px; 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>
- <select1 id="cmb_small" ref="/root/send/small" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:984px; top:30px; width:104px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/hidden/">
- <label ref="earncls3nm"/>
- <value ref="earncls3"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cp_large" class="search_name" style="left:403px; top:30px; width:89px; height:17px; ">처방대분류</caption>
- <caption id="cp_code" class="search_name" style="left:403px; top:55px; width:76px; height:17px; ">수가코드</caption>
- <caption id="cp_middle" class="search_name" style="left:707px; top:30px; width:64px; height:17px; ">중분류</caption>
- <caption id="cp_small" class="search_name" style="left:911px; top:30px; width:65px; height:17px; ">소분류</caption>
- <caption id="cp_edicd" class="search_name" style="left:912px; top:55px; width:76px; height:17px; ">EDI코드</caption>
- <input id="ipt_edicd" ref="/root/send/edicd" class="input_search" inputtype="button" maxlength="10" _chartype="upper" style="left:985px; top:55px; width:104px; 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>
- <input id="ipt_grupcalcscorcd" ref="/root/send/grupcalcscorcd" class="input_search" inputtype="button" _chartype="upper" style="left:790px; top:55px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetGrupcalcscorcd();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/edicd", "");
- ipt_edicd.refresh();
-
- ]]>
- </script>
- </input>
- <caption id="caption6" class="search_name" style="left:708px; top:55px; width:79px; height:17px; ">그룹코드</caption>
- </group>
- <caption id="caption8" class="tit_2" style="left:0px; top:90px; width:100px; height:13px; ">환자 리스트</caption>
- <button id="btn_excelsave" class="btn2_letter4" style="left:1120px; top:85px; 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/calcorderlist" class="datagrid2" caption="등록번호^성명^내원유형^처방일자^진료일자^실시일자^시행
여부^유형^보조^진료과^병동^진료의^진료의^주상병^수가코드^EDI코드^그룹코드^한글명^단가^수량^횟수^일수^총투^금액^급비^입원일자^유형시작일^종료일^원외^심사자^접수번호^생성일자" colsep="^" colwidth="62, 49, 35, 80, 80, 83, 42, 20, 23, 45, 58, 55, 55, 66, 72, 66, 80, 205, 70, 40, 40, 40, 40, 83, 28, 75, 75, 83, 31, 47, 61, 76" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:105px; width:1190px; height:610px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="ioflag"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="yn" style="text-align:center; "/>
- <col ref="insukind"/>
- <col ref="suppkind"/>
- <col ref="orddeptcd"/>
- <col ref="wardnm"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="atdrnm" style="text-align:center; "/>
- <col ref="diag"/>
- <col ref="snglcalcscorcd"/>
- <col ref="edicd"/>
- <col ref="grupcalcscorcd"/>
- <col ref="calchngnm"/>
- <col ref="appunitcost" format="#,###" style="text-align:right; "/>
- <col ref="calcqty" format="#,###.00" style="text-align:right; "/>
- <col ref="calctims" format="#,###" style="text-align:right; "/>
- <col ref="calcdays" style="text-align:right; "/>
- <col ref="totqty" format="#,###.00" style="text-align:right; "/>
- <col ref="calcamt" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="calcscorpayflag" type="combo" style="text-align:center; ">
- <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="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="oprcp"/>
- <col ref="judgrid" style="text-align:center; "/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="cretfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- </datagrid>
- <button id="btn_batch" class="btn2_letter6" style="left:1030px; top:85px; width:86px; height:19px; ">
- <caption>배치결과확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("aftjudgstatmgr.CalcOrderListBatch",getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|