123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIJ02500_평생제한간염약제환자정보조회.xrw
- * 수정이력
- * - 2009.02.12 / 최초작성 / 강종태
- ************************************************
- * [ Maps ]
- -->
- <?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/>
- <grdlist1>
- <hepapatlist>
- <pid/>
- <patnm/>
- <limitflag/>
- <prcpfromdd/>
- <calcscorcd/>
- <calcscorcdnm/>
- <totpaydays/>
- <anohosprgstdays/>
- <hepadd/>
- <remfact/>
- <hepaseqno/>
- <instcd/>
- </hepapatlist>
- </grdlist1>
- <grdlist2>
- <hepadetlist>
- <ordtype/>
- <prcpdd/>
- <ordqty/>
- <ordtims/>
- <onetwo/>
- <orddays/>
- <orddeptcd/>
- <orddrid/>
- <orddd/>
- </hepadetlist>
- </grdlist2>
- </main>
- <init>
- <!-- 진료과 -->
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- <!-- 진료의 -->
- <orddrid>
- <cd/>
- <nm/>
- </orddrid>
- <P0001list>
- <P0001>
- <cdid/>
- <cdnm/>
- </P0001>
- </P0001list>
- </init>
- <send>
- <patunitsrch/>
- <code/>
- <codecond/>
- <send1>
- <pid/>
- <calcscorcd/>
- <dayfrom/>
- <dayto/>
- </send1>
- <send2>
- <instcd/>
- <pid/>
- <hepaseqno/>
- </send2>
- <updatedata>
- <gridpmbmhepa/>
- </updatedata>
- </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="TRPIJ02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send1" resultref="/root/main/grdlist1"/>
- <submission id="TRPIJ02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send2" resultref="/root/main/grdlist2"/>
- <submission id="TXPIJ02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- </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">
- <![CDATA[
- // 화면 초기화
- function fInitialize()
- {
- model.removeNodeset("/root/main/grdlist1/hepapatlist"); // 그리드 초기화
- model.removeNodeset("/root/main/grdlist2/hepadetlist"); // 그리드 초기화
-
- // 공통코드 로드
- zbcfGetCodeList(
- new Array("P0001"), // 입원,외래,응급
- new Array("/root/init/P0001list")
- );
- }
-
- // 환자단위 조회
- 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();
- }
-
- function fGetSnglcalcscorcd() {
- // 처방시작일을 수가조회 기준일자로 설정
- model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate());
- // 싱글수가코드
- 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);
- 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;
- }
-
- 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();
- }
-
- // 조회
- function fSearch()
- {
- var ipt_patunitsrch = model.getValue("/root/send/patunitsrch");
- var ipt_code = model.getValue("/root/send/code");
-
- model.setValue("/root/send/send1/pid",ipt_patunitsrch);
- model.setValue("/root/send/send1/calcscorcd",ipt_code);
-
- // if (ipt_patunitsrch == "" && ipt_code == "")
- // {
- // messageBox("수가코드는 ", "I003");
- // model.setFocus("ipt_code");
- // }
- // else if ( ipt_patunitsrch == "")
- // {
- // messageBox("환자등록번호는 ", "I003");
- // model.setFocus(ipt_patunitsrch);
- // }
- // else
- // {
- model.removeNodeset("/root/main/grdlist1/hepapatlist");
- model.removeNodeset("/root/main/grdlist2/hepadetlist");
- submit("TRPIJ02500");
- // }
- }
-
- function getDetlist() {
- model.setValue("/root/send/send2/instcd",grd_hepapatlist.valueMatrix(grd_hepapatlist.row,grd_hepapatlist.colRef("instcd")));
- model.setValue("/root/send/send2/pid",grd_hepapatlist.valueMatrix(grd_hepapatlist.row,grd_hepapatlist.colRef("pid")));
- model.setValue("/root/send/send2/hepaseqno",grd_hepapatlist.valueMatrix(grd_hepapatlist.row,grd_hepapatlist.colRef("hepaseqno")));
- submit("TRPIJ02501");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1213;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:197px; height:14px; ">평생제한간염약제환자정보조회</caption>
- </group>
- <!-- 전체 그룹 -->
- <group id="group2" scroll="no" style="left:0px; top:13px; width:1190px; height:732px; ">
- <!-- 조회조건 -->
- <group id="group4" style="left:0px; top:10px; width:1190px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:35px; "/>
- <line id="line2" class="line_4" style="x1:1094px; y1:5px; x2:1094px; y2:30px; "/>
- <button id="button1" class="btn1_letter2" navindex="2" style="left:1120px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <input id="ipt_code" ref="/root/send/code" class="input_search" inputtype="button" maxlength="10" _chartype="upper" style="left:305px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetSnglcalcscorcd();
- ]]>
- </script>
- </input>
- <input id="ipt_patunitsrch" ref="/root/send/patunitsrch" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:95px; top:10px; width:95px; 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="caption3" class="search_name" style="left:10px; top:10px; width:102px; height:17px; ">환자조회</caption>
- <caption id="caption4" class="search_name" style="left:220px; top:10px; width:76px; height:17px; ">처방코드</caption>
- <caption id="caption2" class="search_name" style="left:415px; top:10px; width:104px; height:17px; ">급여총일수</caption>
- <input id="input1" ref="/root/send/send1/dayfrom" style="left:515px; top:10px; width:50px; height:19px; "/>
- <input id="input2" ref="/root/send/send1/dayto" style="left:605px; top:10px; width:50px; height:19px; "/>
- <caption id="caption5" style="left:570px; top:11px; width:30px; height:20px; ">이상</caption>
- <caption id="caption6" style="left:665px; top:11px; width:30px; height:20px; ">이하</caption>
- </group>
- <button id="button2" class="btn2_letter4" style="left:1120px; top:54px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_hepadetlist.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_hepadetlist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;col_1:label", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <!-- datagrid -->
- <caption id="caption8" class="tit_2" style="left:0px; top:58px; width:100px; height:13px; ">환자 리스트</caption>
- <datagrid id="grd_hepapatlist" nodeset="/root/main/grdlist1/hepapatlist" class="datagrid2" caption="환자번호^환자명^제한
구분^처방
시작일^처방코드^처방명^약제별
급여총일수^타병원
투약일수^환자당
급여총일수^비고^hepaseqno^instcd" colsep="^" colwidth="62, 49, 48, 68, 68, 91, 75, 57, 67, 75, 25, 27" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:710px; height:655px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col disabled="true" ref="limitflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>투여량</label>
- <value>A</value>
- </item>
- <item>
- <label>일수</label>
- <value>B</value>
- </item>
- <item>
- <label>간이식</label>
- <value>C</value>
- </item>
- <item>
- <label>간염</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="prcpfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="calcscorcd" style="text-align:left; "/>
- <col ref="calcscorcdnm" style="text-align:left; "/>
- <col ref="totpaydays" style="text-align:right; "/>
- <col ref="anohosprgstdays" type="input" style="text-align:right; "/>
- <col ref="hepadd" style="text-align:right; "/>
- <col ref="remfact" type="input" style="text-align:left; "/>
- <col ref="hepaseqno" visibility="hidden" style="background-color:#999999; "/>
- <col ref="instcd" visibility="hidden" style="background-color:#999999; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_hepapatlist.isCell(event.target) && grd_hepapatlist.row >= grd_hepapatlist.fixedRows) {
- getDetlist();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_hepapatlist.editCell();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_hepadetlist" nodeset="/root/main/grdlist2/hepadetlist" class="datagrid2" caption="내원유형^처방일^1회량^회수^일투^일수^처방과^진료의^시행일" colsep="^" colwidth="36, 75, 44, 39, 34, 36, 53, 47, 58" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:715px; top:75px; width:475px; height:655px; ">
- <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0001list/P0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordqty" style="text-align:right; "/>
- <col ref="ordtims" style="text-align:right; "/>
- <col ref="onetwo" style="text-align:right; "/>
- <col ref="orddays" style="text-align:right; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="orddrid" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- </datagrid>
- <caption id="caption7" class="tit_2" style="left:715px; top:58px; width:100px; height:13px; ">처방상세내역</caption>
- <button id="btn_save" class="btn4_letter2" style="left:648px; top:52px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_hepapatlist);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- if(grd_hepapatlist.rows <= 1)
- {
- return;
- }
-
- model.setValue("/root/send/updatedata/gridpmbmhepa",grd_hepapatlist.getUpdateData());
-
- if(submit("TXPIJ02500")) {
- fSearch();
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:580px; top:54px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_hepapatlist.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_hepapatlist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|