123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPID22900_동일진료일명세서조회.xrw
- * 수정이력
- * - 2008.11.05 / 최초작성 / 김상진
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>동일진료일명세서조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list1>
- <clbs/>
- </list1>
- </main>
- <send>
- <item1>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <ordym/>
- <judgrid/>
- <ioflag>O</ioflag>
- <ordfildcdyn/>
- </item1>
- <list1>
- <clbs>
- </clbs>
- </list1>
- </send>
- <init>
- <!-- 진료분야 -->
- <P0291list>
- <P0291>
- <cdnm/>
- <cdid/>
- </P0291>
- </P0291list>
- <!-- 청구구분 -->
- <P0155list>
- <P0155>
- <cdnm/>
- <cdid/>
- </P0155>
- </P0155list>
- </init>
- <hidden>
- <item1>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <ordym/>
- </item1>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <item1>
- <maxclamdg/>
- </item1>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
- <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/tmp"/>
- <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/clamdg"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면을 초기화한다.
- fInitialize();
-
- // 팝업으로 호출되었으면...
- if (model.getValue("/root/hidden/item1/pid") != "") {
- model.setValue("/root/send/item1/clamym", model.getValue("/root/hidden/item1/clamym"));
- //model.setValue("/root/send/item1/clamdg", model.getValue("/root/hidden/item1/clamdg"));
- addComboItem("cmb_clamdg", model.getValue("/root/hidden/item1/clamdg"), model.getValue("/root/hidden/item1/clamdg"), "init");
- cmb_clamdg.select(0);
- model.setValue("/root/send/item1/pid", model.getValue("/root/hidden/item1/pid"));
- model.setValue("/root/send/item1/pidsn", model.getValue("/root/hidden/item1/pidsn"));
- model.setValue("/root/send/item1/ordym", model.getValue("/root/hidden/item1/ordym"));
-
- // 동일진료일 명세서 조회
- fGetDocuList();
- }
- ]]>
- </script>
- <submission id="TRPID22901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" 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[
-
- var gToday = new Date();
- var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var gBasemonth = gToday.getDateFormat("MM");
- var gBaseday = gToday.getDateFormat("DD");
- var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
- var gCurrentym = gBaseyear + gBasemonth;
-
- // -----------------------
- // ▶ 화면초기화
- // -----------------------
- function fInitialize() {
-
- // ---------------------------------------------------------------
- // 공통코드를 조회한다.
- // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
- // ---------------------------------------------------------------
- zbcfGetCodeList(
- new Array("P0291" // 진료분야
- ,"P0155" // 청구구분
- ),
- new Array("/root/init/P0291list"
- ,"/root/init/P0155list"
- ) );
-
-
- // 팝업이 아니면 청구월 셋팅
- if (model.getValue("/root/hidden/item1/pid") == "") {
- var lv_date = gCurrentym.toDate("YYYYMM" + "01");
- lv_date = lv_date.getAddDate(-1, "M")
- gCurrentym = lv_date.getDateFormat("YYYYMM")
- model.setValue("/root/send/item1/clamym", gCurrentym);
- model.setValue("/root/send/item1/ordym", gCurrentym);
- } else {
- model.setValue("/root/send/item1/clamym", "");
- }
-
- // ---------------------------------------------------------------
- // 청구과, 심사자, 진료과, 주치의, 청구차수, 삼시자선택 초기화
- // ---------------------------------------------------------------
- submit("TRPID20201",false);
-
- model.removeNodeset("root/init/judgrid");
- model.removeNodeset("root/init/suppkind");
- model.removeNodeset("root/init/orddrid");
- model.removeNodeset("root/init/orddrid2");
- model.removeNodeset("root/init/clamdept");
- model.removeNodeset("root/init/orddeptcd");
- model.removeNodeset("root/init/item3");
- model.removeNodeset("root/init/clamdg");
-
- model.makeNode("root/init/judgrid");
- model.makeNode("root/init/suppkind");
- model.makeNode("root/init/orddrid");
- model.makeNode("root/init/orddrid2");
- model.makeNode("root/init/clamdept");
- model.makeNode("root/init/orddeptcd");
- model.makeNode("root/init/item3");
- model.makeNode("root/init/clamdg");
-
- model.copyNode("root/init/judgrid", "root/init/tmp/judgrid");
- model.copyNode("root/init/suppkind", "root/init/tmp/suppkind");
- model.copyNode("root/init/orddrid", "root/init/tmp/orddrid");
- model.copyNode("root/init/orddrid2", "root/init/tmp/orddrid2");
- model.copyNode("root/init/clamdept", "root/init/tmp/clamdept");
- model.copyNode("root/init/orddeptcd", "root/init/tmp/orddeptcd");
- model.copyNode("root/init/item3", "root/init/tmp/item3");
- model.copyNode("root/init/clamdg", "root/init/tmp/clamdg");
-
- model.removeNodeset("root/init/tmp/judgrid");
- model.removeNodeset("root/init/tmp/suppkind");
- model.removeNodeset("root/init/tmp/orddrid");
- model.removeNodeset("root/init/tmp/orddrid2");
- model.removeNodeset("root/init/tmp/clamdept");
- model.removeNodeset("root/init/tmp/orddeptcd");
- model.removeNodeset("root/init/tmp/item3");
- model.removeNodeset("root/init/tmp/clamdg");
-
- model.refresh();
-
- cmb_clamdg.select(0);
- }
-
- // ----------------------------------------------------------------------
- // ▶ 동일진료일 명세서조회
- // ----------------------------------------------------------------------
- function fGetDocuList() {
-
- var chk = true;
- if (model.getValue("/root/send/item1/clamym") == "") {
- chk = false;
- messageBox("청구년월은", "I003"); //I003=필수입력입니다.
- model.setFocus("ipt_clamym");
- } else if (model.getValue("/root/send/item1/clamdg") == "") {
- chk = false;
- messageBox("청구차수", "I003"); //I003=필수입력입니다.
- model.setFocus("cmb_clamdg");
- } else if (model.getValue("/root/send/item1/ordym") == "") {
- chk = false;
- messageBox("진료년월", "I003"); //I003=필수입력입니다.
- model.setFocus("ipt_ordym");
-
- }
-
-
-
- if (chk == true) {
- submit("TRPID22901");
- }
- }
-
- // ----------------------------------------------------------------------
- // ▶ 환자조회
- // ----------------------------------------------------------------------
- function fGetSrchPid() {
-
- var ipt_pid = model.getValue("/root/send/item1/pid");
-
- if (ipt_pid.charCodeAt(0) > 255) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
- model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
- } else {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
-
-
- // 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/item1/pid", srch_pid);
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="960" pageheight="660" guideline="1,1163;2,727;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:865px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">동일진료일 명세서조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:940px; height:607px; ">
- <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="명번호^청구구분^등록번호^등록번호^환자명^보험
유형^보조
유형^진료분야^진료과^진료의^주상병^심사자^진료개시일^진료종료일^동일진료일" colsep="^" colwidth="42, 56, 67, 22, 53, 30, 30, 58, 70, 60, 100, 60, 80, 80, 187" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="8" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:65px; width:935px; height:540px; ">
- <col ref="docuseqno" style="text-align:right; "/>
- <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid" style="text-align:center; "/>
- <col ref="pidsn" style="text-align:center; "/>
- <col ref="patnm" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
- <col ref="insukind" type="output" style="text-align:center; "/>
- <col ref="suppkind" type="output" style="text-align:center; "/>
- <col disabled="true" ref="ordfildcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0291list/P0291">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddrid2/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="diagcd" style="text-align:left; "/>
- <col disabled="true" ref="judgrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/judgrid/judgridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="samedate" format="yyyy-mm-dd"/>
- </datagrid>
- <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:46px; width:126px; height:13px; ">대상자조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:62px; x2:935px; y2:62px; "/>
- <group id="group1" style="left:0px; top:5px; width:935px; height:31px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:935px; height:31px; "/>
- <caption id="caption30" class="search_name" style="left:8px; top:7px; width:85px; height:17px; ">청구년월</caption>
- <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:88px; top:6px; width:69px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- pidfGetClamdg();
- ]]>
- </script>
- </input>
- <!-- 기존 ID : 1214 => P0235 => P0291 -->
- <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
- <caption id="caption38" class="search_name" style="left:223px; top:7px; width:84px; height:17px; ">등록번호</caption>
- <input id="ipt_patunitsrch" ref="/root/send/item1/pid" class="input_search" navindex="2" inputtype="button" maxlength="10" style="left:302px; top:6px; width:97px; 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) 현재 인풋값 노드 반영
- var srchtext = model.getValue("/root/send/item1/pid");
- if (srchtext.charCodeAt(0) > 255) {
- fGetSrchPid();
- } else {
- fGetDocuList();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetSrchPid();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/item1/pid") == "") {
- // 청구년월에 대한 청구차수 조회
- pidfGetClamdg();
- model.setValue("/root/send/item1/pidsn", "");
- model.refreshpart("/root/send/item1/pidsn");
- }
- ]]>
- </script>
- </input>
- <button id="btn_select" class="btn1_letter2" navindex="32" style="left:865px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDocuList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_clamdg" ref="/root/send/item1/clamdg" appearance="minimal" style="left:162px; top:6px; width:51px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdg/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line3" class="line_4" style="x1:840px; y1:5px; x2:840px; y2:28px; "/>
- <select1 id="cmb_judgrid" ref="/root/send/item1/judgrid" class="combo_search" navindex="8" appearance="minimal" style="left:499px; top:5px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/judgrid/judgridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption39" class="search_name" style="left:431px; top:6px; width:65px; height:17px; ">심사자</caption>
- <input id="ipt_ordym" ref="/root/send/item1/ordym" class="input_default" navindex="4" maxlength="6" format="yyyy-mm" style="left:669px; top:5px; width:65px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:592px; top:6px; width:76px; height:17px; ">진료년월</caption>
- <output id="opt_gender" ref="/root/send/item1/pidsn" class="output_fix" style="left:401px; top:6px; width:18px; height:19px; ">
- <hint>
- <![CDATA[성별]]>
- </hint>
- </output>
- <select id="chk_ordfildcd" ref="/root/send/item1/ordfildcdyn" overflow="visible" appearance="full" style="left:748px; top:7px; width:81px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>타분야포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:865px; top:40px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_clbsmast.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "동일진료일 명세서조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_clbsmast.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_cancel" class="btn4_letter2" style="left:879px; top:622px; width:56px; height:22px; ">
- <caption>종료</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </xhtml:body>
- </xhtml:html>
|