123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <limantibiouspatrefinfo>
- </limantibiouspatrefinfo>
- <cond>
- <termflag>P</termflag>
- <fromdd/>
- <todd/>
- <prcsstat/>
- <orddeptcd/>
- <pid/>
- <patnm/>
- <limantibio/>
- </cond>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden/>
- <init>
- <initdate>
- <today/>
- </initdate>
- <warddeptlist>
- </warddeptlist>
- <deptlist>
- </deptlist>
- <list/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.removeNodeset("/root/main/limantibiouspatrefinfo");
- model.refresh();
- fSetParameter() ;
- ]]>
- </script>
- <submission id="TRASI00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/limantibiouspatrefinfo"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRASI00802" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- // 로그인한 사용자의 과로 기본 setting
- // model.setValue("/root/main/cond/orddeptcd", getUserInfo("posdeptcd"));
-
- // 진료과
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D";
- var rslt_ref = "/root/init/deptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
- addComboItem("cmb_orddeptcd","","","above");
-
- //제한항생제종류
- var rslt_ref = "/root/init/limantibio";
- var sort_field = "hngnm";
- var sort_method = "asc";
- submit('TRASI00802');
- addComboItem("cmb_limantibio","","","above");
- }
-
- function fSetParameter(){
- var today = getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "M");
- model.setValue("/root/init/initdate/today", today);
- model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
- model.makeValue("/root/send/cond/todd", today);
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- model.refresh();
- }
- //상단정보설정
- function fUpInfo(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- }
-
- function fReqOpPatPamInfo(){
- var tioflag=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/ioflag");
- if(tioflag == "I") {
- var ioflag="I";
- var pid= model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/pid");
- var indd=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/indd");
- var cretno=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/cretno") ;
- var seqno=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/seqno");
- var instcd=getUserInfo("dutplceinstcd");
- var srchdd=getCurrentDate();
- var param= ioflag + "▦" //입원환자
- + pid + "▦"
- + indd + "▦"
- + cretno + "▦"
- + instcd+ "▦"
- + srchdd;
- setParameter("condparam", param);
- }
- else if(tioflag == "O") {
- var ioflag="O";
- var pid= model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/pid");
- var orddd=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/indd");
- var cretno=model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/cretno") ;
- var instcd=getUserInfo("dutplceinstcd");
- var srchdd=getCurrentDate();
- var param= ioflag + "▦" //외래환자
- + pid + "▦"
- + orddd + "▦"
- + cretno + "▦"
- + instcd;
- setParameter("condparam", param);
- }
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">제한항생제 사용환자조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:11px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:52px; "/>
- <caption id="caption3" class="search_name" style="left:700px; top:5px; width:73px; height:17px; ">진료과 :</caption>
- <caption id="caption5" class="search_no_b" style="left:307px; top:9px; width:13px; height:17px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:449px; top:34px; width:94px; height:17px; ">등록번호 :</caption>
- <caption id="caption1" class="search_name" style="left:448px; top:8px; width:86px; height:17px; ">진행상태 :</caption>
- <caption id="caption7" class="search_name" style="left:15px; top:34px; width:94px; height:17px; ">환자명 :</caption>
- <select1 id="cmb_termflag" ref="/root/main/cond/termflag" class="combo_s_essential" appearance="minimal" style="left:95px; top:9px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>처방일</label>
- <value>P</value>
- </item>
- <item>
- <label>승인일</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_termflag" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">기 간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:203px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:325px; top:9px; width:100px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:805px; top:4px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_prcsstat" ref="/root/main/cond/prcsstat" class="combo_search" appearance="minimal" style="left:544px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value/>
- </item>
- <item>
- <label>미확인</label>
- <value>0</value>
- </item>
- <item>
- <label>승인</label>
- <value>1</value>
- </item>
- <item>
- <label>비승인</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" style="left:544px; top:34px; width:100px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var pidlength = model.getValue("/root/main/cond/pid");
-
- //등록번호 8자리 이하인 환자도 존재하여 변경, 2009-07-04,CHC
- /*
- if( pidlength.length > 0 && pidlength.length < 8) {
- model.alert("등록번호는 8자리 이상입니다.");
- model.setFocus("ipt_pid");
- return;
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_patnm" ref="/root/main/cond/patnm" class="input_search" disabled="true" style="left:95px; top:34px; width:100px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( !isRequiredControls("cmb_termflag","ipt_fromdd","ipt_todd") ){
- return;
- }
-
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRASI00801");
- ]]>
- </script>
- </button>
- <button id="btn_prcpclsnm" class="icon_search" style="left:203px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500");
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/patnm", sHngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:700px; top:30px; width:99px; height:17px; ">제한항생제 :</caption>
- <select1 id="cmb_limantibio" ref="/root/main/cond/limantibio" appearance="minimal" style="left:805px; top:30px; width:275px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list/limantibio">
- <label ref="hngnm"/>
- <value ref="prcpcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:96px; x2:1195px; y2:96px; "/>
- <datagrid id="grd_limantibiouspatref" nodeset="/root/main/limantibiouspatrefinfo/limantibiouspatreflist" caption="진행상태^의뢰일시^의뢰의사^등록번호^환자명^나이^성별^진료과^상병명^처방명^항생제코드^항생제명^시작일자^종료일자^승인상태^승인/거부 Comment^cretno^instcd^seqno^orddd^indd^ioflag" colsep="^" colwidth="50, 70, 70, 70, 70, 50, 50, 100, 200, 100, 96, 200, 80, 80, 60, 200, 0, 0, 0, 0, 0, 0" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:101px; width:1194px; height:641px; ">
- <col ref="stat" visibility="hidden"/>
- <col ref="agndt" format="yyyy-mm-dd"/>
- <col ref="agndr"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="age"/>
- <col ref="sex"/>
- <col ref="orddeptcd"/>
- <col ref="snwnm"/>
- <col ref="prcpnm"/>
- <col ref="antibiocd" visibility="hidden"/>
- <col ref="antibionm"/>
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col ref="todd" format="yyyy-mm-dd"/>
- <col ref="aprvstat"/>
- <col ref="aprvrejtcmt"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_limantibiouspatref.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if((grd_limantibiouspatref.mouseRow > 0) && (grd_limantibiouspatref.mouseRow <= grd_limantibiouspatref.rows )) {
- fReqOpPatPamInfo();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption25" class="tit_2" style="left:0px; top:81px; width:178px; height:14px; ">제한항생제 사용환자</caption>
- <button id="btn_excel" class="btn2_letter2" style="left:1151px; top:75px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- // if (fileName != ""){
- // grd_limantibiouspatref.saveExcel(fileName, "SheetName", true, true, "", "", false);
- // }
- var fileName = window.fileDialog("save", ",", false, "제한항생제사용자조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_limantibiouspatref.saveExcel(fileName, "제한항생제 사용자", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1120px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/limantibiouspatrefinfo");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_sytsrecref" class="btn3_letter6" style="left:57px; top:3px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sessionPID = getPatientId();
- var iRow=grd_limantibiouspatref.row;
- if(model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist/ioflag") == "I"){
- if(sessionPID != model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+iRow+"]/pid")){
- fReqInPatPamInfo();
- }
- }else if(model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist/ioflag") == "O"){
- if(sessionPID != model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+iRow+"]/pid")){
- fReqOutPatPamInfo();
- }
- }
- modal("SMMRI00400",1,10,10,"SMMRI00400", "", "/root/hidden/oprecinfo/info");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|