123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMASI01500.xrw
- * 설 명 : 삽입기구관련대상자조회
- * 수정이력 : 2008-06-02 /정희수
- * 기 타 :
- -->
- <?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>
- <catpatinfo/>
- <cond>
- <fromdd/>
- <todd/>
- <pid/>
- <catheter/>
- <wardcd/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- <popupmenu>
- <grid01>
- <item>
- <name>통합기록조회</name>
- <func>fSytsRecRefPopup</func>
- </item>
- <item>
- <name>병원감염보고서등록</name>
- <func>fHospInfcReptPopup</func>
- </item>
- </grid01>
- </popupmenu>
- <selecteddata>
- <selectedpid/>
- <selectedindd/>
- <selectedrgstdt/>
- </selecteddata>
- </hidden>
- <init>
- <initdate>
- <today/>
- </initdate>
- <deptlist>
- </deptlist>
- <warddeptlist>
- </warddeptlist>
- <A0358list>
- </A0358list>
- <list/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.removeNodeset("/root/main/catpatinfo");
- model.refresh();
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRASI03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/catpatinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRASI03002" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <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" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- // 공통코드를 조회한다.
-
- //삽입기구종류
- zbcfGetCodeList(new Array("A0358"),
- new Array("/root/init/A0358list"));
- addComboItem("cmb_catheter","","","above");
- // 진료과
- 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);
- //병동
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "/root/init/warddeptlist";
- sort_field = "deptcd";
- sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- addComboItem("cmb_wardcd","","","above");
-
- //var rslt_ref = "/root/init/catheter";
- //var sort_field = "itemnm";
- //var sort_method = "asc";
- //submit('TRASI03002');
- //addComboItem("cmb_catheter","","","above");
- var today = getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "D");
- model.setValue("/root/init/initdate/today", today);
- model.makeValue("/root/send/cond/trgtmancnt", "I");
- 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/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- }
-
- function fReqOpPatPamInfo(){
-
- var tioflag=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/ioflag");
- // if(tioflag == "I") {
- var ioflag="I";
- var pid= model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid");
- var indd=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/indd");
- var cretno=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/cretno") ;
- var seqno=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/iseqno");
- 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/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid");
- // var orddd=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/indd");
- // var cretno=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/cretno") ;
- // var instcd=getUserInfo("dutplceinstcd");
- // var srchdd=getCurrentDate();
- // var param= ioflag + "▦" //외래환자
- // + pid + "▦"
- // + orddd + "▦"
- // + cretno + "▦"
- // + instcd;
- // setParameter("condparam", param);
- // }
-
- modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- function fSytsRecRefPopup(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- setParameter("SMMRI00400_param_pid", sessionPID);
- modal("SMMRI00400",1,10,10,"SMMRI00400", "", "/root/hidden/oprecinfo/info");
- }
-
- function fPrcpRefPopup() {
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- modal("SPTMP00100", "", "", "", "popup", "/root/send", "/root/main/grid01");
- }
-
- function fHospInfcReptPopup() {
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- // setParameter("setVal9", model.getValue("/root/main/catpatinfo/catpatlist[" + iRow + "]/recdt"));
- // setParameter("setVal10", model.getValue("/root/main/catpatinfo/catpatlist[" + iRow + "]/bdtp"));
- open("SMASI00100", 1,10,10, "SMASI00100");
- //window.close();
- }
- /*===============================================================================
- @desc : 삽입기구대상자 조회
- ===============================================================================*/
- function fGetCatPatList(){
-
- if( !isRequiredControls("ipt_fromdd","ipt_todd") ){
- return;
- }
-
- //조회일자제한(15일-서버부하를 줄이기 위함임)
- // var reqTerm = getDateInterval(model.getValue(ipt_fromdd.attribute("ref") ) , model.getValue(ipt_todd.attribute("ref")) );
- // if( reqTerm > 31 ) {
- // messageBox("최대조회기간을 초과하였습니다. 조회기간을 다시 ", "C001");
- // return ;
- // }
-
- model.makeNode("/root/send/cond");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- openLoadingBar("삽입기구관련대상자조회 ") ;//처리중 화면을 오픈한다.
- submit("TRASI03001");
- closeLoadingBar() ;//처리중 화면을 close한다.
-
- setTree(grd_catpatlist,2,1,true);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,23;" idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
- <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
- <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:173px; height:14px; ">삽입기구 관련 대상자 조회</caption>
- </group>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:5px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/catpatinfo");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:23px; width:1195px; height:737px; ">
- <line id="line6" class="line_3" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
- <line id="line5" class="line_1" style="x1:0px; y1:84px; x2:1194px; y2:84px; "/>
- <group id="group6" style="left:1px; top:0px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
- <line id="line8" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:53px; "/>
- <caption id="caption15" class="search_name" style="left:435px; top:10px; width:112px; height:17px; ">삽입기구종류 :</caption>
- <caption id="caption21" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_no_b" style="left:220px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption1" class="search_name" style="left:780px; top:9px; width:66px; height:17px; ">병동 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:108px; top:11px; width:110px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:232px; top:11px; width:110px; height:19px; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_default" maxlength="10" style="left:108px; top:34px; width:110px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // var pidlength = model.getValue("/root/main/cond/pid");
- // 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>
- <select1 id="cmb_catheter" ref="/root/main/cond/catheter" class="combo_search" appearance="minimal" style="left:559px; top:9px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0358list/A0358">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:850px; top:9px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCatPatList();
- ]]>
- </script>
- </button>
- <caption id="cap_fromdd" class="search_name" visibility="hidden" style="left:15px; top:9px; width:89px; height:17px; ">기간선택 :</caption>
- <caption id="cap_todd" class="search_name" style="left:15px; top:9px; width:89px; height:17px; ">기간선택 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:84px; x2:1194px; y2:84px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1062px; top:63px; 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_catpatlist.saveExcel(fileName, "삽입기구관련대상자리스트", false, false, "", "", false);
- // }
- var fileName = window.fileDialog("save", ",", false, "삽입기구관련대상자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
-
- // grd_catpatlist.saveExcel(fileName,"exportfalserows:0;col_19:value;");
- grd_catpatlist.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>
- <button id="btn_spread" class="btn2_letter2" style="left:1107px; top:63px; width:42px; height:19px; ">
- <caption>펼침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTree(grd_catpatlist,2,1,false);
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn2_letter2" style="left:1152px; top:63px; width:42px; height:19px; ">
- <caption>닫침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTree(grd_catpatlist,2,1,true);
- ]]>
- </script>
- </button>
- <datagrid id="grd_catpatlist" nodeset="/root/main/catpatinfo/catpatlist" caption="등록번호^level^성명^성별^나이^삽입기구^삽입일^제거일^진료과^주치의코드^주치의^병동^병실^입원일^퇴원일^진단명^cretno^seqno^instcd" colsep="^" colwidth="90, 40, 76, 35, 50, 100, 100, 100, 90, 70, 73, 93, 73, 80, 80, 200, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:89px; width:1194px; height:641px; ">
- <col ref="pid"/>
- <col ref="levl" visibility="hidden"/>
- <col ref="name"/>
- <col ref="sexflag"/>
- <col ref="age"/>
- <col ref="itemnm"/>
- <col ref="opdt" format="yyyy-mm-dd"/>
- <col ref="cncldt" format="yyyy-mm-dd"/>
- <col ref="orddeptcd"/>
- <col ref="atdoct" visibility="hidden"/>
- <col ref="atdoctnm"/>
- <col disabled="true" ref="wardcd"/>
- <col ref="roomcd"/>
- <col disabled="true" ref="indd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="diagnm"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_catpatlist", false, "/root/hidden/popupmenu/grid01/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_catpatlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var levlflag=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/levl");
-
- if (levlflag == 1){
- messageBox("상단정보를 셋팅하거나 팝업창을 띄울때는 펼침을눌러서 하위 리스트를","C002");
- return;
- }
-
- if((grd_catpatlist.mouseRow > 0) && ( grd_catpatlist.mouseRow <= grd_catpatlist.rows )) {
- fReqOpPatPamInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = grd_catpatlist.row;
- model.resetInstanceNode("/root/hidden/selecteddata");
- model.setValue("/root/hidden/selecteddata/selectedpid", model.getValue("/root/main/feverpatrefinfo/catpatlist[" +iRow + "]/pid"));
- model.setValue("/root/hidden/selecteddata/selectedindd", model.getValue("/root/main/feverpatrefinfo/catpatlist[" +iRow + "]/indd"));
- ]]>
- </script>
- </datagrid>
- <caption id="caption25" class="tit_2" style="left:0px; top:69px; width:178px; height:14px; ">삽입기구사용환자</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|