123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPPIJ03700_수술예방적항생제사유조회.xrw
- * 수정이력
- * - 2014.01.15 / 최초작성 / 이경민
- -->
- <?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>
- <patinfo>
- <patinfolist>
- <pid/>
- </patinfolist>
- </patinfo>
- <optanti>
- <optantilist/>
- </optanti>
- </main>
- <send>
- <drgno/>
- <cd_name/>
- <instcd>031</instcd>
- <opkind>A</opkind>
- <pid/>
- <orddd/>
- <orddeptcd/>
- <medispclid/>
- <calcscorcd/>
- </send>
- <init>
- </init>
- <hidden>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- </cond>
- </sppmc02500>
- <smpic00200>
- <judgsrch>
- <con2_gsflag/>
- <con3_search1/>
- <con4_search2/>
- <con1_dd/>
- <con5_insu/>
- </judgsrch>
- </smpic00200>
- </hidden>
- <temp>
- <picmmech>
- <picmmech_calcscorcd/>
- </picmmech>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면을 초기화한다.
- fInitialize();
-
- ]]>
- </script>
- <submission id="TRPIJ00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/list1"/>
- <submission id="TRPIJ00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/list2"/>
- <submission id="TRPIJ03700" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/optanti"/>
- </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">
- <![CDATA[
-
- // -----------------------
- // ▶ 화면초기화
- // -----------------------
- function fInitialize() {
- //model.setValue("/root/send/orddd", getCurrentDate());
- model.refresh();
- submit("TRPIJ00203");
- //btn_select.dispatch("DOMActivate");
-
- }
-
- // ----------------------------------------------------------------------
- // ▶ 동일진료일 명세서조회
- // ----------------------------------------------------------------------
- function fGetDocuList() {
-
- var chk = true;
- // if (model.getValue("/root/send/orddd") == "") {
- // chk = false;
- // messageBox("기준년월은", "I003"); //I003=필수입력입니다.
- // model.setFocus("ipt_orddd");
- // }
-
-
- if (chk == true) {
- submit("TRPIJ03700");
- }
- }
-
- // 화면을 초기화한다.
- function fSpclGridInsertRow(){
- grd_drgalist.AddRow();
- grd_drgalist.bottomRow = grd_drgalist.rows;
- }
-
- function fSpclGridDeleteRow(){
- for (var i = 0; i < grd_drgalist.selectedRows; i++) {
- var sel = grd_drgalist.selectedRow(i);
- grd_drgalist.rowstatus(sel) = "4";
- }
- }
- ]]>
- </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:216px; height:15px; ">수술 예방적 항생제 사유조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:19px; width:942px; height:609px; ">
- <datagrid id="grd_drgalist" nodeset="/root/main/optanti/optantilist" class="datagrid3" visibility="visible" caption="환자번호^환자명^입원일자^퇴원일자^진료과^진료과명^주치의ID^주치의^처방코드^처방자ID^처방자^처방일자^등록일자^퇴
원^사유" colsep="^" colwidth="55, 49, 70, 70, 35, 99, 33, 52, 75, 31, 49, 70, 70, 32, 210" dataheight="23" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:92px; width:940px; height:514px; ">
- <col ref="pid" type="input" style="text-align:center; "/>
- <col ref="patnm" type="output" style="text-align:center; "/>
- <col ref="orddd" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="dschdd" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="orddeptcd" type="output" visibility="hidden" style="text-align:left; "/>
- <col ref="orddeptnm" type="output" style="text-align:center; "/>
- <col ref="medispclid" type="output" visibility="hidden"/>
- <col ref="medispclnm" type="output" style="text-align:center; "/>
- <col ref="calcscorcd" type="input" maxlength="5" style="text-align:center; "/>
- <col ref="rgstrid" type="output" visibility="hidden" style="text-align:left; "/>
- <col ref="rgstrnm" type="output" style="text-align:center; "/>
- <col ref="prcpdd" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="rgstdd" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="dscdrug" type="output" style="text-align:center; "/>
- <col ref="resncnts" type="input" style="text-align:left; "/>
- </datagrid>
- <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:71px; width:234px; height:13px; ">수술 예방적 항생제 사유조회 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:87px; x2:940px; y2:87px; "/>
- <group id="group1" style="left:0px; top:5px; width:940px; height:55px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:940px; height:53px; "/>
- <button id="btn_select" class="btn1_letter2" navindex="32" style="left:875px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDocuList();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:860px; y1:5px; x2:860px; y2:38px; "/>
- <caption id="caption30" class="search_name" style="left:8px; top:6px; width:95px; height:17px; ">환자번호 :</caption>
- <input id="ipt_personalsearch" ref="/root/send/pid" class="input_search" imemode="hangul" inputtype="button" maxlength="10" style="left:95px; top:5px; width:90px; height:19px; ">
- <hint>
- <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
- </hint>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') { // Enter 입력 시에
- if (ipt_personalsearch.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fGetDocuList();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var ipt_pid = model.getValue("/root/send/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/pid", srch_pid);
- }
-
- model.refresh();
-
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:8px; top:29px; width:95px; height:17px; ">입원일자 :</caption>
- <input id="ipt_fromdate" ref="/root/send/orddd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:95px; top:27px; width:90px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:329px; top:6px; width:121px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list1/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/hidden/list2");
- submit("TRPIJ00204");
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:245px; top:7px; width:86px; height:17px; ">진료과:</caption>
- <select1 id="cmb_orddrid" ref="/root/send/medispclid" class="combo_search" appearance="minimal" style="left:330px; top:28px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/list2/atdoctlist">
- <label ref="atdocthngnm"/>
- <value ref="atdoctid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:244px; top:27px; width:86px; height:17px; ">주치의:</caption>
- <input id="ipt_cd" ref="/root/send/calcscorcd" class="input_search" inputtype="button" _chartype="upper" style="left:560px; top:5px; width:112px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // 처방시작일 또는 종료일이 입력된 경우 해당 날짜를 수가조회 기준일자로 설정
-
- model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
- model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", model.getValue("/root/send/choicdsrch" ));
- model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/send/calcscorcd")); // SMPIC00200_수가조회 용
- model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate());
-
- var insukindcd = model.getValue("/root/send/insukindcd");
- 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", "indus");
- }
- else if (insukindcd == "41") {
- model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "autm");
- }
-
- model.removeNodeset("/root/hidden/smpic00200/rslt/mech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
- model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
-
- modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
-
- model.setValue("/root/send/calcscorcd", model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:469px; top:6px; width:86px; height:17px; ">코드조회 :</caption>
- </group>
- <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:875px; top:67px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_drgalist.gridToInstance();
- if (grd_drgalist.rows > 1) {
- var fileName = window.fileDialog("save", "", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_drgalist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_cancel" class="btn4_letter2" style="left:884px; top:633px; width:56px; height:22px; ">
- <caption>종료</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </xhtml:body>
- </xhtml:html>
|