123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPID21200_코드별일괄수정.xrw
- * 수정이력
- * - 2007.05.202 / 최초작성 / 정주미
- *
- -->
- <?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>
- <list1>
- <mech/>
- </list1>
- <list2>
- <clod/>
- </list2>
- </main>
- <send>
- <mech>
- <calcscorcd/>
- <edicd/>
- <insukind/>
- <ediunitcost/>
- <ediunitcostcond/>
- </mech>
- <clod>
- <clamym/>
- <srchflag/>
- <insukind/>
- <pid/>
- <calcscorcd/>
- <edicd/>
- <offset/>
- <pagesize>50</pagesize>
- </clod>
- <updt/>
- </send>
- <init>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- EDI코드구분 -->
- <P0131list>
- <P0131>
- <cdnm/>
- <cdid/>
- </P0131>
- </P0131list>
- <!-- 심사완료여부 -->
- <P0151list>
- <P0151>
- <cdnm/>
- <cdid/>
- </P0151>
- </P0151list>
- </init>
- <hidden>
- <base>
- <basedd/>
- <list2>
- <clod>
- <orddd/>
- <ioflag/>
- <insukind/>
- <pid/>
- <refresh/>
- </clod>
- </list2>
- </base>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <smpic00200>
- <judgsrch>
- <con1_dd/>
- <con2_gsflag/>
- <con3_search1/>
- <con4_search2/>
- <con5_insu/>
- <con6_calcscorcd/>
- <con7_todd/>
- <con8_instcd/>
- </judgsrch>
- </smpic00200>
- <clod/>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPID21201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/mech" resultref="/root/main/list1"/>
- <submission id="TRPID21202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/clod" add="bottom" resultref="/root/main/list2/clod"/>
- <!--
- -->
- <submission id="TXPID21201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updt"/>
- <!--
- <submission id="TXPID21201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updt" resultref="/root/main/list2/clod"/>
- -->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var currentym = baseyear + basemonth;
- model.setValue("/root/hidden/base/basedd", currentym);
- model.setValue("/root/send/clod/clamym", currentym);
-
- ipt_calcscorcd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
- ipt_edicd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
-
- // 공통코드를 조회한다.
- // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- zbcfGetCodeList( new Array("P0008", "P0131", "P0151"), new Array("/root/init/P0008list", "/root/init/P0131list", "/root/init/P0151list") );
-
- // (PAM.js) submission id="TRPAM00101" 를 사용하여 진료과 / 의사명 Combo item을 가져온다.
- pamGetDeptCDDrIDList();
-
- fInitializeAll(); // 화면을 초기화한다.
- fCheckAuth(); // 화면 권한을 설정한다.
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 권한을 설정한다.
- function fCheckAuth() {
- var xAuth = !checkAuth("X"); // 처리권한(입력, 수정, 삭제 등)
- btn_batupdt.disabled = xAuth;
- grd_mechmast.disabled = xAuth;
- grd_clodhist.disabled = xAuth;
-
- var pAuth = !checkAuth("P"); // 출력권한(보고서 출력, 엑셀 내려받기 등)
- btn_excelsave.disabled = pAuth;
- }
-
- // 처방용 조회 조건과 조회Btn disabled 상태 설정
- function fSetAuthGrpOrdsrch(isDisabled) {
- ipt_fromdd.disabled = isDisabled;
- rdo_srchflag.disabled = isDisabled;
- cmb_clodinsukind.disabled = isDisabled;
- ipt_pid.disabled = isDisabled;
- btn_ordsrch.disabled = isDisabled;
- btn_nextpage.disabled = isDisabled;
- }
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitializeAll() {
- // 수가코드 부분을 초기화한다.
- model.resetInstanceNode("/root/send/mech");
- model.removeNodeset("/root/main/list1/mech");
- model.setValue("/root/send/mech/ediunitcostcond", "2"); // 단가 조회 기준 (2: 원이상)
- fInitOrdSrch(true); // 처방목록, 조건 초기화
- model.refresh();
- }
- // 처방목록 부분을 초기화한다.
- function fInitOrdSrch(isCond) {
- model.removeNodeset("/root/main/list2/clod");
- if (isCond) { // 처방목록 조건 초기화
- model.resetInstanceNode("/root/send/clod");
- model.setValue("/root/send/clod/srchflag", "-"); // 검색구분 Radio의 초기값을 설정한다.
- // 검색 청구월표시
- var clamym = model.getValue("/root/hidden/base/basedd");
- model.setValue("/root/send/clod/clamym", clamym);
- }
- // 처방용 조회 조건과 조회Btn disabled 상태 설정
- fSetAuthGrpOrdsrch(true);
- }
-
- // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
- function fGetMechMastList() {
- var calcscorcd = model.getValue("/root/send/mech/calcscorcd");
- var edicd = model.getValue("/root/send/mech/edicd");
- model.setValue("/root/send/clod/calcscorcd", calcscorcd);
- model.setValue("/root/send/clod/edicd", edicd);
-
- if (calcscorcd || edicd) {
- fSetAuthGrpOrdsrch(true); // 처방용 조회 조건과 조회Btn disabled 상태 설정
- fInitOrdSrch(false); // 처방목록 초기화
-
- model.removeNodeset("/root/main/list1/mech");
- submit("TRPID21201");
-
- if (model.getValue("/root/main/list1/mech/calcscorcd")) {
- if (model.getValue("/root/main/list1/mech/grupsnglflag") == "S") {
- fSetAuthGrpOrdsrch(false); // 처방용 조회 조건과 조회Btn disabled 상태 설정
- if (model.getValue("/root/send/mech/insukind")) { // 보험유형 조건이 입력된 경우
- cmb_clodinsukind.disabled = true;
- }
- } else {
- messageBox("그룹코드는 코드일괄수정을 할 수", "I004"); ///그룹코드는 코드일괄수정을 할 수 없습니다.
- }
- }
- grd_mechmast.row = 0;
- } else {
- messageBox("수가코드 또는 EDI코드는", "I003"); ///수가코드 또는 EDI코드는 필수입력입니다.
- return;
- }
- }
-
- // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
- function fGetOrdHistList(nextyn) {
- if (fCheckOrdSrchCond()) { // 처방목록 조회조건 체크
- model.removeNodeset("/root/main/list2/clod"); // 처방목록 Grid 초기화
- if (nextyn == "Y") {
- // 조회버튼으로 조회 시 offset은 "0"으로 설정하고 submit() 을 수행한다.
- model.setValue("/root/send/clod/offset", "0");
- } else {
- // 다음페이지버튼으로 조회 시 offset은 마지막clamkey"으로 설정하고 submit() 을 수행한다.
- model.setValue("/root/send/clod/offset", "0");
- }
-
- model.setValue("/root/send/clod/calcscorcd", model.getValue("/root/send/mech/calcscorcd"));
- model.setValue("/root/send/clod/edicd", model.getValue("/root/send/mech/edicd"));
-
- // 페이지 단위 조회시 기존 조회조건이 변경되었는지 체크한다.
- model.copyNode("/root/hidden/clod", "/root/send/clod");
- //setAlertOn();
- submit("TRPID21202");
-
- if (instance1.selectSingleNode("/root/main/list2/clod") == null) {
- messageBox("조회된 결과가", "I004"); ///조회된 결과가 없습니다.
- return;
- } else {
- for (var i = 1; i < grd_mechmast.rows; i++) {
- var calcscorcd = model.getValue("/root/main/list1/mech["+ i +"]/calcscorcd");
- var fromdd = model.getValue("/root/main/list1/mech["+ i +"]/fromdd");
- var todd = model.getValue("/root/main/list1/mech["+ i +"]/todd");
- for (var j = 1; j < grd_clodhist.rows; j++) {
- var snglcalcscorcd = model.getValue("/root/main/list2/clod["+ j +"]/snglcalcscorcd");
- if (snglcalcscorcd == calcscorcd) {
- var orddd = model.getValue("/root/main/list2/clod["+ j +"]/orddd");
- var ordfromdd = model.getValue("/root/main/list2/clod["+ j +"]/ordfromdd");
- var ordtodd = model.getValue("/root/main/list2/clod["+ j +"]/ordtodd");
- // if (fromdd <= ordfromdd && ordfromdd <= todd) {
- // if (fromdd >= ordfromdd && fromdd <= ordtodd) {
- if (todd >= ordfromdd && todd <= ordtodd) { // 수가종료일자가 처방from~to 사이라면 중간에 수가코드가 종결되고 바뀐 것이므로
- model.setValue("/root/main/list2/clod["+ j +"]/mode", "u");
- grd_clodhist.rowStatus(j) = 2;
- }
- }
- var estmmncd = model.getValue("/root/main/list2/clod["+ j +"]/estmmncd");
- if (estmmncd == "-") { // 초기값 '0000' 셋팅 전에 입력된 data 오류로 인해
- model.setValue("/root/main/list2/clod["+ j +"]/estmmncd", "");
- }
- }
- }
- }
- grd_clodhist.row = 0;
- }
- }
- // 처방목록 조회조건 체크
- function fCheckOrdSrchCond() {
- // 검색기간(fromdd ~ todd)을 확인한다.
- var clamym = model.getValue("/root/send/clod/clamym");
-
- if (clamym == "") {
- messageBox("청구월은", "I003"); ///청구월은 필수입력입니다.
- return false;
- }
- return true;
- }
- // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
- function fGetSelectedOrderData() {
- //var orddd = model.getValue("/root/hidden/base/list2/clod/orddd");
- var ioflag = model.getValue("/root/hidden/base/list2/clod/ioflag");
- var insukind = model.getValue("/root/hidden/base/list2/clod/insukind");
- var pid = model.getValue("/root/hidden/base/list2/clod/pid");
-
- var selCon = "";
- /*
- if (orddd) {
- selCon += orddd;
- }
- if (ioflag) {
- if (selCon) {
- selCon += " and " + ioflag;
- } else {
- selCon += ioflag;
- }
- }
- */
- if (ioflag) {
- selCon = ioflag;
- }
- if (insukind) {
- if (selCon) {
- selCon += " and " + insukind;
- } else {
- selCon = insukind;
- }
- }
- if (pid) {
- if (selCon) {
- selCon += " and " + pid;
- } else {
- selCon = pid;
- }
- }
- if (selCon) {
- grd_clodhist.attribute("nodeset") = "/root/main/list2/clod[" + selCon + "]";
- } else {
- grd_clodhist.attribute("nodeset") = "/root/main/list2/clod";
- }
-
- grd_clodhist.rebuild();
- //grd_clodhist.resizeCells();
- grd_clodhist.row = 0; // 그리드의 첫줄부터 표시되도록 포커스를 0으로 설정한다.
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:106px; height:13px; ">코드별일괄수정</caption>
- </group>
- <group id="grp_biz" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_mechsrch" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">수가코드 :</caption>
- <input id="ipt_calcscorcd" ref="/root/send/mech/calcscorcd" class="input_search" navindex="1" inputtype="button" style="left:105px; top:8px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- if (ipt_calcscorcd.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // // 검색기간 시작일 또는 종료일이 입력된 경우 해당 날짜를 수가조회 기준일자로 설정
- // var fromdd = model.getValue("/root/send/clod/fromdd");
- // var todd = model.getValue("/root/send/clod/todd");
- // if (fromdd) {
- // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", fromdd);
- // }
- // if (todd) {
- // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", todd);
- // }
- // if (fromdd == "" && todd == "") {
- // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
- // }
- // 보험유형을 설정한다.
- var insukindcd = model.getValue("/root/send/mech/insukind");
- if (insukindcd == "11") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
- }
- else if (insukindcd == "21" || insukindcd == "22") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "proc");
- }
- else if (insukindcd == "31" || insukindcd == "32") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "indus");
- }
- else if (insukindcd == "41") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "autm");
- }
- // 코드 종류와 현재 input 컨트롤에 입력된 코드 값을 전달한다.
- model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "calcscorcd");
- model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/send/mech/calcscorcd"));
-
- // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로를 초기화한다.
- model.removeNodeset("/root/hidden/smpic00200/rslt/mech");
- model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech");
- modal("SMPIC00200", 1, 150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
-
- var mechSelect = instance1.selectSingleNode("/root/temp/mech");
- if (mechSelect == null) { // 선택한 코드가 없는 경우
- messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
- return;
- }
- // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
- model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
- model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
- model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
- model.setValue("/root/send/mech/calcscorcd", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:340px; top:9px; width:83px; height:17px; ">EDI코드 :</caption>
- <input id="ipt_edicd" ref="/root/send/mech/edicd" class="input_search" navindex="2" inputtype="button" style="left:429px; top:8px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- if (ipt_edicd.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // 검색기간 시작일 또는 종료일이 입력된 경우 해당 날짜를 수가조회 기준일자로 설정
- // var fromdd = model.getValue("/root/send/clod/fromdd");
- // var todd = model.getValue("/root/send/clod/todd");
- // if (fromdd) {
- // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", fromdd);
- // }
- // if (todd) {
- // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", todd);
- // }
- // if (fromdd == "" && todd == "") {
- // modaael.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
- // }
- // 보험유형을 설정한다.
- var insukindcd = model.getValue("/root/send/mech/insukind");
- if (insukindcd == "11") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
- }
- else if (insukindcd == "21" || insukindcd == "22") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "proc");
- }
- else if (insukindcd == "31" || insukindcd == "32") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "indus");
- }
- else if (insukindcd == "41") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "autm");
- }
- // 코드 종류와 현재 input 컨트롤에 입력된 코드 값을 전달한다.
- model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
- model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/send/mech/edicd"));
-
- // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로를 초기화한다.
- model.removeNodeset("/root/hidden/smpic00200/rslt/mech");
- model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech");
- modal("SMPIC00200", 1, 150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
-
- var mechSelect = instance1.selectSingleNode("/root/temp/mech");
- if (mechSelect == null) { // 선택한 코드가 없는 경우
- messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
- return;
- }
- // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
- model.makeNode("/root/hidden/smpic00200/rslt/mech");
- model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
- model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
- if (insukindcd == "11") {
- model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
- }
- else if (insukindcd == "21" || insukindcd == "22") {
- model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/procedicd"));
- }
- else if (insukindcd == "31" || insukindcd == "32") {
- model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/inducsedicd"));
- }
- else if (insukindcd == "41") {
- model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/autmbedicd"));
- } else {
- model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:599px; top:9px; width:87px; height:17px; ">보험유형 :</caption>
- <select1 id="cmb_mechinsukind" ref="/root/send/mech/insukind" class="combo_search" navindex="3" appearance="minimal" style="left:689px; top:8px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008[cdid != '51' and cdid != '61']">
- <!-- 일반, 외국인 항목을 삭제한다. -->
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var clodList = instance1.selectSingleNode("/root/main/list2/clod");
- if (clodList == null) { // 조회된 처방이 없다면
- cmb_clodinsukind.select(cmb_mechinsukind.focusIndex);
- }
- ]]>
- </script>
- </select1>
- <output id="opt_mechinsukind" ref="/root/send/mech/insukind" class="output_fix" style="left:789px; top:8px; width:17px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:826px; top:11px; width:60px; height:17px; ">단가 :</caption>
- <input id="inp_ediunitcost" ref="/root/send/mech/ediunitcost" class="input_search" navindex="4" format="#,###" style="left:889px; top:10px; width:90px; height:19px; "/>
- <select1 id="cmb_ediunitcostcond" ref="/root/send/mech/ediunitcostcond" class="combo_search" navindex="5" appearance="minimal" style="left:982px; top:10px; width:62px; height:19px; ">
- <choices>
- <item>
- <label>원미만</label>
- <value>1</value>
- </item>
- <item>
- <label>원이상</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="btn_mechsrch" class="btn1_letter2" navindex="6" style="left:1118px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption20" class="tit_2" style="left:5px; top:55px; width:113px; height:14px; ">검색된 코드목록</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_mechmast" nodeset="/root/main/list1/mech" class="datagrid2" caption="그룹
싱글^수가코드^EDI코드^산정
코드^EDI
코드구분^재행^항목^항목^시작일자^종료일자^수가단가^EDI단가^한글명^준용명" colsep="^" colwidth="30, 97, 80, 30, 54, 30, 28, 22, 66, 66, 66, 66, 300, 285" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:149px; ">
- <col ref="grupsnglflag"/>
- <col ref="calcscorcd"/>
- <col ref="edicd"/>
- <col ref="estmmncd"/>
- <col disabled="true" ref="edicdflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0131list/P0131">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="matractflag" type="combo">
- <choices>
- <item>
- <label>재</label>
- <value>1</value>
- </item>
- <item>
- <label>가O</label>
- <value>2</value>
- </item>
- <item>
- <label>가X</label>
- <value>3</value>
- </item>
- <item>
- <label>약</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="lrg"/>
- <col ref="mdl"/>
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col ref="todd" format="yyyy-mm-dd"/>
- <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
- <col ref="ediuamt" format="#,###" style="text-align:right; "/>
- <col ref="hngnm"/>
- <col ref="inclnm"/>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
- ]]>
- </script>
- </datagrid>
- <group id="grp_ordsrch" style="left:0px; top:234px; width:1194px; height:35px; ">
- <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption6" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">청구월 :</caption>
- <input id="ipt_fromdd" ref="/root/send/clod/clamym" class="input_s_essential" navindex="7" inputtype="date" format="yyyy-mm" style="left:104px; top:8px; width:92px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:340px; top:9px; width:86px; height:17px; ">검색구분 :</caption>
- <select1 id="rdo_srchflag" ref="/root/send/clod/srchflag" class="radio_search" navindex="9" appearance="full" cols="3" overflow="visible" style="left:429px; top:11px; width:130px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (instance1.selectSingleNode("/root/main/list2/clod") != null) { // 처방목록이 조회된 상태임.
- var selectedRdoItem = model.getValue("/root/send/clod/srchflag");
- if (selectedRdoItem == "" || selectedRdoItem == "-") { // 전체
- model.setValue("/root/hidden/base/list2/clod/ioflag","");
- } else {
- model.setValue("/root/hidden/base/list2/clod/ioflag","ioflag = '"+selectedRdoItem+"'");
- }
- fGetSelectedOrderData(); // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
- }
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:599px; top:9px; width:87px; height:17px; ">보험유형 :</caption>
- <select1 id="cmb_clodinsukind" ref="/root/send/clod/insukind" class="combo_search" navindex="10" appearance="minimal" style="left:689px; top:8px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008[cdid != '51' and cdid != '61']">
- <!-- 일반, 외국인 항목을 삭제한다. -->
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (instance1.selectSingleNode("/root/main/list2/clod") != null) { // 처방목록이 조회된 상태임.
- var selectedCmbItem = model.getValue("/root/send/clod/insukind");
- if (selectedCmbItem == "" || selectedCmbItem == "-") { // 전체
- model.setValue("/root/hidden/base/list2/clod/insukind","");
- } else {
- model.setValue("/root/hidden/base/list2/clod/insukind","insukind = '"+selectedCmbItem+"'");
- }
- fGetSelectedOrderData(); // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
- }
- ]]>
- </script>
- </select1>
- <output id="opt_clodnsukind" ref="/root/send/clod/insukind" class="output_fix" style="left:789px; top:8px; width:17px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:826px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/clod/pid" class="input_search" navindex="11" inputtype="button" format="####" style="left:915px; top:8px; width:97px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var ipt_pid = model.getValue("/root/send/clod/pid");
- if (ipt_pid) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- modal("SPPMC02500", 1, 150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
- 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/clod/pid", srch_pid);
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var pid = model.getValue("/root/send/clod/pid");
- // if (pid != "" && pid.length < 8) {
- // model.setValue("/root/send/clod/pid", pid.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
- // model.refresh();
- // }
- if (instance1.selectSingleNode("/root/main/list2/clod") != null) { // 처방목록이 조회된 상태임.
- var inputPid = model.getValue("/root/send/clod/pid");
- if (inputPid == "" || inputPid == "-") { // 전체
- model.setValue("/root/hidden/base/list2/clod/pid","");
- } else {
- model.setValue("/root/hidden/base/list2/clod/pid","pid = '" + pid + "'");
- }
- fGetSelectedOrderData(); // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- if (instance1.selectSingleNode("/root/main/list2/clod") != null) { // 처방목록이 조회된 상태임.
- var pid = model.getValue("/root/send/clod/pid");
- if (pid == "") {
- model.setValue("/root/hidden/base/list2/clod/pid","");
- } else {
- // if (pid.length < 8) {
- // model.setValue("/root/send/clod/pid", pid.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
- // model.refresh();
- // }
- model.setValue("/root/hidden/base/list2/clod/pid","pid = '" + model.getValue("/root/send/clod/pid") + "'");
- }
- fGetSelectedOrderData(); // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
- }
- }
- ]]>
- </script>
- </input>
- <line id="line2" class="line_4" style="top:7px; x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="btn_ordsrch" class="btn1_letter2" navindex="12" style="left:1118px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetOrdHistList("N"); // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption21" class="tit_2" style="left:5px; top:279px; width:74px; height:13px; ">처방 목록</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:294px; x2:1194px; y2:294px; "/>
- <datagrid id="grd_clodhist" nodeset="/root/main/list2/clod" class="datagrid2" caption="심사상태^심사상태^I
O^등록번호^이름^청구년월^청구차수^보험유형^보험유형^처방
시작일자^처방
종료일자^줄^그룹코드^수가코드^EDI코드^산정
의미^행위
재료^항^목^급
비^1회량^횟수^1일량
(일투)^일수^단가^EDI단가^진료과^진료의^clamym^mode^supp
kind^orddd^spcl
judgyn^adjt
resncd^under
sixyn^mech
age^seqno^updtdd^toot^hosin
resncd" colsep="^" colwidth="15, 60, 15, 66, 44, 68, 60, 18, 56, 68, 68, 18, 78, 84, 74, 32, 30, 28, 25, 26, 40, 30, 40, 40, 66, 66, 56, 44, 150, 50, 50, 68, 50, 50, 50, 50, 50, 50, 100, 50" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:299px; width:1194px; height:425px; ">
- <col ref="judgendyn"/>
- <col disabled="true" ref="judgendyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0151list/P0151">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="ioflag"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="clamym" format="yyyy-mm"/>
- <col ref="clamdg"/>
- <col ref="insukind"/>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="ordfromdd" format="yyyy-mm-dd"/>
- <col ref="ordtodd" format="yyyy-mm-dd"/>
- <col ref="edilnno"/>
- <col ref="grupcalcscorcd"/>
- <col ref="snglcalcscorcd"/>
- <col ref="basecd"/>
- <col ref="estmmncd"/>
- <col disabled="true" ref="matractflag" type="combo">
- <choices>
- <item>
- <label>재</label>
- <value>1</value>
- </item>
- <item>
- <label>가O</label>
- <value>2</value>
- </item>
- <item>
- <label>가X</label>
- <value>3</value>
- </item>
- <item>
- <label>약</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="ediitem1"/>
- <col ref="ediitem2"/>
- <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>
- </choices>
- </col>
- <col ref="drugqty" format="###.00" maxlength="5.2" style="text-align:right; "/>
- <col ref="tims" format="##" maxlength="2" style="text-align:right; "/>
- <col ref="daydrugqty" format="###.00" maxlength="10.2" style="text-align:right; "/>
- <col ref="dayno" format="##" maxlength="4" style="text-align:right; "/>
- <col ref="unitcost" format="#,###" style="text-align:right; "/>
- <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="clamkey" type="input" style="background-color:#c0c0c0; "/>
- <col ref="mode" type="input" style="background-color:#c0c0c0; "/>
- <col ref="suppkind" style="background-color:#c0c0c0; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
- <col ref="spcljudgyn" style="background-color:#c0c0c0; "/>
- <col ref="adjtresncd" style="background-color:#c0c0c0; "/>
- <col ref="undersixageyn" style="background-color:#c0c0c0; "/>
- <col ref="mechage" style="background-color:#c0c0c0; "/>
- <col ref="seqno" style="background-color:#c0c0c0; "/>
- <col ref="updtdd" style="background-color:#c0c0c0; "/>
- <col ref="toot" style="background-color:#c0c0c0; "/>
- <col ref="hosinresncd" style="background-color:#c0c0c0; "/>
- <!-- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- if (grd_clodhist.vscroll.attribute("max") == grd_clodhist.vscroll.attribute("pos")) {
- //alert(grd_clodhist.vscroll.attribute("max") + " / " + grd_clodhist.vscroll.attribute("pos"));
- // // end of scroll
- model.setValue("/root/send/clod/offset", grd_clodhist.rows - grd_clodhist.fixedRows); // grid의 header row는 제외
- submit("TRPID21202");
- grd_clodhist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- ]]>
- </script>
- -->
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_clodhist.row;
- var ioflag = model.getValue("/root/main/list2/clod["+ row +"]/ioflag");
- if (ioflag == "I") {
- setParameter("smpid20300_auth", "11100000");
- modal("SMPID20300", "1", "10", "10", "SMPID20300", "/root/main/list2/clod["+ row +"]/clamym", "/root/send/item1/clbs/clamym", "", ""); // SMPID20300_입원사후심사관리.xrw
- }
- else if (ioflag == "O") {
- setParameter("smpid20500_auth", "11100000");
- modal("SMPID20500", "1", "10", "10", "SMPID20500", "/root/main/list2/clod["+ row +"]/clamym", "/root/send/item1/clbs/clamym", "", ""); // SMPID20500_외래사후심사관리.xrw
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- if (grd_clodhist.colType(grd_clodhist.col) == "input") {
- grd_clodhist.editCell();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
- ]]>
- </script>
- </datagrid>
- <button id="btn_batupdt" class="btn2_letter4" style="left:1063px; top:274px; width:64px; height:19px; ">
- <caption>일괄수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert("업무프로세스 협의후 진행예정");
- /*
- var send = getGridUpdateData(grd_clodhist);
- if (send) {
- model.setValue("/root/send/updt", send);
- submit("TXPID21201");
- if (model.getValue("/root/hidden/base/list2/clod/refresh") == "Y") {
- grd_clodhist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/send/updt", "");
- btn_ordsrch.dispatch("DOMActivate"); // model.setValue("/root/send/clod/offset", "0"); 으로 다시 조회함
- }
- } else {
- messageBox("일괄수정할 처방 목록이", "I004"); ///일괄수정할 처방 목록이 없습니다
- }
- */
- ]]>
- </script>
- </button>
- <button id="btn_excelsave" class="btn2_letter4" style="left:1130px; top:274px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_clodhist.rows > 1) {
- // var isSave = false;
- // for (var i = grd_clodhist.fixedRows; i < grd_clodhist.rows; i ++ ) {
- // if (grd_clodhist.rowHidden(i) == false) {
- // isSave = true;
- // i = grd_clodhist.rows;
- // }
- // }
- // if (isSave == false) {
- // messageBox("처방 필터를 변경하세요. 엑셀저장할 처방이", "I004"); ///처방 필터를 변경하세요. 엑셀저장할 처방이 없습니다.
- // return;
- // }
-
- var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- grd_clodhist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 처방이", "I004"); ///엑셀저장할 처방이 없습니다.
- }
- ]]>
- </script>
- </button>
- <select id="chk_refresh" ref="/root/hidden/base/list2/clod/refresh" class="checkbox_search" overflow="visible" appearance="full" style="left:930px; top:276px; width:130px; height:17px; ">
- <choices>
- <item>
- <label>일괄수정후 다시조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1115px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitializeAll();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_nextpage" class="btn4_letter5" visibility="hidden" style="left:1015px; top:5px; width:92px; height:22px; ">
- <caption>다음페이지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_clodhist.rows > 1) {
- fGetOrdHistList("Y"); // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|