123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPPID21900_상세계산내역조회.xrw
- * 수정이력
- * - 2008.08.11 / 최초작성 / 김상진
- *
- * - opener 에서 전달받는 조건 경로
- /root/send/data1
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>상세계산내역조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <pid/>
- <instcd/>
- <clamkey/>
- <clamcretdd/>
- <patnm/>
- <gender/>
- <ioflag/>
- <stsioflag/>
- <choicdsrch/>
- <calcscorcd/>
- <hngnm/>
- <scrhdate/>
- <fromdd/>
- <todd/>
- <insukind/>
- <suppkind/>
- <date/>
- <clopyn/>
- </data1>
- </send>
- <main>
- <list1>
- <oscl>
- <orddd/>
- <prcpdd/>
- <rgsttm/>
- <execdd/>
- <exectm/>
- <grupcalcscorcd/>
- <snglcalcscorcd/>
- <edicd/>
- <hngnm/>
- <calcpayflag/>
- <ordqty/>
- <ordtims/>
- <orddays/>
- <calcqty/>
- <calctims/>
- <calcdays/>
- <appunitcost/>
- <calcamt/>
- <orddeptcd/>
- <orddrid/>
- <clamkey/>
- <clamcretdd/>
- <clamcretyn/>
- </oscl>
- </list1>
- </main>
- <init>
- </init>
- <hidden>
- <smpic00200>
- <judgsrch>
- <con1_dd/>
- <con2_gsflag/>
- <con3_search1/>
- <con4_search2/>
- <con5_insu/>
- <con6_calcscorcd/>
- <con7_todd/>
- <con8_instcd/>
- </judgsrch>
- </smpic00200>
- <datelist>
- <date/>
- </datelist>
- <popupmenu>
- <gridclod>
- <!-- 20100209 삭제 (버튼기능 추가)
- <item>
- <name>행 복사</name>
- <func>fOrderGridCopyRow</func>
- </item>
- -->
- <!-- 20100209 삭제
- <item>
- <name>수가코드 복사</name>
- <func>fSnglGridCopyCol</func>
- </item>
- <item>
- <name>EDI코드 복사</name>
- <func>fEdiGridCopyCol</func>
- </item>
- <item>
- <name>처방명 복사</name>
- <func>fHngnmGridCopyCol</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- -->
- <item>
- <name>처방주석입력</name>
- <func>fOrderGridInsertCmt</func>
- </item>
- <!-- JHP, 추가 20090817 메세지작성 시작-->
- <!-- JHP, 추가 20090817 메세지작성 끝-->
- </gridclod>
- </popupmenu>
- </hidden>
- <tmp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID22101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main"/>
- </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/numericHelper.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/aftjudgweb/js/SMPID20000.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 화면 초기화
- function fInitialize() {
- group4.visible = false;
-
- if (model.getValue("/root/send/data1/clamkey") != "") {
- fSelect();
- }
- }
-
- function fSelect() {
- if (submit("TRPID22101")) {
- fGetDateList();
- }
- }
-
- function fGetDateList() {
- var nodeList = instance1.selectNodes("/root/main/list1/oscl");
- var i=0;
- var icnt=0;
- var stmpdate="";
- var sorgdate="";
-
- model.makeNode("/root/send/data1/date");
- model.resetInstanceNode("/root/init/date/datelist");
- // model.makeNode("/root/init/date/datelist/cd");
- // model.makeNode("/root/init/date/datelist/nm");
- model.makeValue("/root/init/date/datelist[1]/cd", "");
- model.makeValue("/root/init/date/datelist[1]/nm", "");
- icnt = 1;
- if (model.getValue("/root/send/data1/scrhdate") == "execdd") {
- grd_oscl.colSort(grd_oscl.colRef("execdd")) = "asc";
- grd_oscl.sort(grd_oscl.fixedRows, grd_oscl.fixedCols, grd_oscl.row, grd_oscl.col) = "usersort";
- var execdd;
- for ( i = 1; i <= nodeList.length; i++ ) {
- execdd = model.getValue("/root/main/list1/oscl[" + i + "]/execdd");
- if ( stmpdate != execdd) {
- icnt++;
- model.makeValue("/root/init/date/datelist[" + icnt + "]/cd", execdd);
- model.makeValue("/root/init/date/datelist[" + icnt + "]/nm", execdd.substr(0,4) + '-' + execdd.substr(4,2) + '-' + execdd.substr(6,2));
- stmpdate = model.getValue("/root/main/list1/oscl[" + i + "]/execdd");
- }
- }
- // if (icnt > 0) {
- // model.setValue("/root/send/data1/date", model.getValue("/root/init/date/datelist[1]/cd"));
- // }
- } else {
- grd_oscl.colSort(grd_oscl.colRef("prcpdd")) = "asc";
- grd_oscl.sort(grd_oscl.fixedRows, grd_oscl.fixedCols, grd_oscl.row, grd_oscl.col) = "usersort";
- var rcptdd;
- for ( i = 1; i <= nodeList.length; i++ ) {
- rcptdd = model.getValue("/root/main/list1/oscl[" + i + "]/prcpdd");
- if ( stmpdate != rcptdd) {
- icnt++;
- model.makeValue("/root/init/date/datelist[" + icnt + "]/cd", rcptdd);
- model.makeValue("/root/init/date/datelist[" + icnt + "]/nm", rcptdd.substr(0,4) + '-' + rcptdd.substr(4,2) + '-' + rcptdd.substr(6,2));
- stmpdate = model.getValue("/root/main/list1/oscl[" + i + "]/prcpdd");
- }
- }
- }
-
- cmb_datelist.refresh();
-
- }
-
- function fOrderGridInsertCmt() {
- opener.javascript.fOrderGridInsertCmt();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1120" pageheight="605" guideline="2,218;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1095px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">외래상세계산내역조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1090px; height:583px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:84px; width:95px; height:13px; ">계산내역</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:99px; x2:1085px; y2:99px; "/>
- <datagrid id="grd_oscl" nodeset="/root/main/list1/oscl" class="datagrid1" caption="진료일자^처방일자^처방시간^실시일자^실시시간^그룹코드^수가코드^EDI코드^한글명^급^처방^처방^처방^계산^계산^계산^적용단가^계산금액^진료과^진료의^청구키^일련번호^전달사항^임상소견^PACS 판독결과^청구
생성여부|진료일자^처방일자^처방시간^실시일자^실시시간^그룹코드^수가코드^EDI코드^한글명^급^투여랑^횟수^일수^투여량^횟수^일수^적용단가^계산금액^진료과^진료의^청구키^일련번호^전달사항^임상소견^PACS 판독결과^청구
생성여부" colsep="^" colwidth="72, 72, 56, 73, 56, 79, 79, 79, 202, 28, 45, 36, 36, 45, 35, 35, 77, 77, 78, 77, 106, 53, 100, 100, 100" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:105px; width:1080px; height:447px; ">
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgsttm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="exectm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="grupcalcscorcd" style="text-align:left; "/>
- <col ref="snglcalcscorcd" style="text-align:left; "/>
- <col ref="edicd" style="text-align:left; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="calcpayflag" 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="ordqty" format="###.00" style="text-align:right; "/>
- <col ref="ordtims" format="##" style="text-align:right; "/>
- <col ref="orddays" 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" format="##" style="text-align:right; "/>
- <col ref="appunitcost" format="#,###" style="text-align:right; "/>
- <col ref="calcamt" format="#,###" style="text-align:right; "/>
- <col ref="orddeptcd" style="text-align:left; "/>
- <col ref="orddrid" style="text-align:left; "/>
- <col ref="clamkey" style="text-align:left; "/>
- <col ref="clamcretdd" style="text-align:center; "/>
- <col ref="suppdeptdelivefact" type="inputbutton" style="text-align:center; "/>
- <col ref="clinccmtcnts" type="inputbutton" style="text-align:center; "/>
- <col ref="rsltcomment" type="inputbutton" style="text-align:center; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_oscl.col == grd_oscl.colRef("suppdeptdelivefact") || grd_oscl.col == grd_oscl.colRef("clinccmtcnts") || grd_oscl.col == grd_oscl.colRef("rsltcomment")){
- textarea1.value = grd_oscl.valueMatrix(grd_oscl.row, grd_oscl.col);
- group4.visible = true;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_oscl", false, "/root/hidden/popupmenu/gridclod/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
- if (event.button == 3 && model.getValue("/root/main/item1/clbs/clamym")) { // 3 : 오른쪽 버튼 // 조회된 심사대상자가 있으면
- if (isDataCell() == false) { // (tfHelper.js) datagrid click or dbclick 시점에 현재 click target이 data 영역인지 check
- // 처방이 한줄도 없는 경우에도 "행 추가"를 하기 위해 사용함
- window.showPopupMenu(true);
- window.setPopupMenu(true, "/root/hidden/popupmenu/gridclod/inititem", "name", "func", false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:5px; top:5px; width:1080px; height:67px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:1078px; height:65px; "/>
- <!-- 기존 ID : 1214 => P0235 => P0291 -->
- <caption id="caption34" class="search_name" style="left:5px; top:10px; width:82px; height:17px; ">등록번호</caption>
- <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
- <!-- 2007.09.06 수정 박재형 보조유형 combo data 공통안쓰고 가져옴.-->
- <!-- 2007.09.19 수정 박재형 :: 보험유형을 선택시 해당하는 보조유형을 선택하기 위해 필요 (재원심사 참고하여 동일하게 구성) 추가:opt_insukind, opt_suppkind
- ==표시기능만있으므로 추후논의후 표시시 위치배열다시하고 제거시 그냥제거.
- <output id="opt_insukind" style="left:875px; top:8px; width:17px; height:19px; font-size:8pt; background-color:#ececec; border-color:transparent; "/>
- <output id="opt_suppkind" style="left:875px; top:32px; width:17px; height:19px; font-size:8pt; background-color:#ececec; border-color:transparent; "/> -->
- <output id="opt_acptno" ref="/root/send/data1/pid" class="output_fix" style="left:85px; top:10px; width:84px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:5px; top:37px; width:82px; height:17px; ">환자명</caption>
- <output id="opt_gender" ref="/root/send/data1/gender" class="output_fix" style="left:151px; top:37px; width:18px; height:19px; ">
- <hint>
- <![CDATA[성별]]>
- </hint>
- </output>
- <output id="opt_patnm" ref="/root/send/data1/patnm" class="output_fix" style="left:84px; top:37px; width:65px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:640px; top:10px; width:82px; height:17px; ">한글명</caption>
- <output id="opt_hngnm" ref="/root/send/data1/hngnm" class="output_fix" style="left:705px; top:10px; width:360px; height:19px; "/>
- <input id="ipt_cd" ref="/root/send/data1/calcscorcd" class="input_search" inputtype="button" style="left:433px; top:9px; width:187px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
- model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
- model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", model.getValue("/root/send/data1/choicdsrch" ));
- model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/send/data1/calcscorcd")); // SMPIC00200_수가조회 용
- var insukindcd = model.getValue("/root/send/data1/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") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "autm");
- }
- else if (insukindcd == "41") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "indus");
- } else {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
- }
- modal("SMPIC00200", 1, 150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
- var mechSelect = instance1.selectSingleNode("/root/temp/mech");
- if (mechSelect == null) { // 선택한 코드가 없는 경우
- } else {
- model.setValue("/root/send/data1/calcscorcd", model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
- model.setValue("/root/send/data1/hngnm", model.getValue("/root/temp/picmmech/picmmech_hngnm"));
- model.setValue("/root/send/data1/choicdsrch", "calcscorcd");
- //model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/data1/clamcretdd", "0");
- model.setValue("/root/send/data1/hngnm", "");
- opt_hngnm.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:203px; top:10px; width:86px; height:17px; ">코드조회 :</caption>
- <select1 id="rdo_mchrgcode" ref="/root/send/data1/choicdsrch" class="radio_search" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:292px; top:11px; width:140px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>그룹</label>
- <value>grupcd</value>
- </item>
- <item>
- <label>수가</label>
- <value>calcscorcd</value>
- </item>
- <item>
- <label>EDI</label>
- <value>edicd</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/send/data1/calcscorcd", "");
- //model.setValue("/root/send/data1/hngnm", "");
- model.setValue("/root/send/data1/clamcretdd", "0");
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn1_letter2" navindex="32" style="left:1010px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelect();
- ]]>
- </script>
- </button>
- <input id="ipt_todd" ref="/root/send/data1/todd" class="input_search" inputtype="date" style="left:637px; top:36px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/data1/clamcretdd", "0");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:204px; top:35px; width:85px; height:17px; ">기 간 :</caption>
- <caption id="caption3" style="left:623px; top:36px; width:11px; height:18px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/data1/fromdd" class="input_search" inputtype="date" style="left:535px; top:36px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/data1/clamcretdd", "0");
- ]]>
- </script>
- </input>
- <select1 id="rdo_scrhdate" ref="/root/send/data1/scrhdate" class="radio_search" appearance="full" cellspacing="3" cols="3" overflow="visible" style="left:292px; top:37px; width:140px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>실시일자</label>
- <value>execdd</value>
- </item>
- <item>
- <label>처방일자</label>
- <value>prcpdd</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetDateList();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_datelist" ref="/root/send/data1/date" class="combo_search" appearance="minimal" _auth="R" style="left:435px; top:35px; width:93px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/date/datelist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- model.setValue("/root/send/data1/fromdd", model.getValue("/root/send/data1/date"));
- model.setValue("/root/send/data1/todd", model.getValue("/root/send/data1/date"));
- model.refresh();
- */
-
- var i = 0
- if (model.getValue("/root/send/data1/date") != "") {
- for ( i = grd_oscl.fixedRows; i < grd_oscl.rows; i++) {
- grd_oscl.rowHidden(i) = false;
-
- if (model.getValue("/root/send/data1/scrhdate") == "execdd") {
- if (grd_oscl.valueMatrix(i, grd_oscl.colRef("execdd")) != model.getValue("/root/send/data1/date")) {
- grd_oscl.rowHidden(i) = true;
- }
- } else {
- if (grd_oscl.valueMatrix(i, grd_oscl.colRef("prcpdd")) != model.getValue("/root/send/data1/date")) {
- grd_oscl.rowHidden(i) = true;
- }
- }
- }
- } else {
- for ( i = grd_oscl.fixedRows; i < grd_oscl.rows; i++) {
- grd_oscl.rowHidden(i) = false;
- }
- }
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:740px; top:38px; width:82px; height:17px; ">생성순번</caption>
- <input id="output1" ref="/root/send/data1/clamcretdd" appearance="input" style="left:820px; top:38px; width:84px; height:19px; "/>
- </group>
- <group id="group4" style="left:290px; top:160px; width:455px; height:320px; ">
- <textarea id="textarea1" ref="/root/tmp" style="left:5px; top:3px; width:444px; height:285px; "/>
- <button id="button2" class="btn4_letter2" style="left:394px; top:290px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group4.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="grp_btn" scroll="auto" style="left:5px; top:567px; width:1080px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:1015px; top:2px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|