123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- <?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>
- <cond>
- <prcpfromdd/>
- <prcptodd/>
- <flag/>
- <patnm/>
- <nursnm/>
- <instcd/>
- <nursid/>
- </cond>
- <medinoinfo>
- <medinolist>
- <pid/>
- <hngnm/>
- <drugno/>
- <prcpdd/>
- <nursnm/>
- <output/>
- <dcflag/>
- </medinolist>
- </medinoinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- <medinoinfo>
- <medinolist>
- <pid/>
- <hngnm/>
- <drugno/>
- <prcpdd/>
- <nursnm/>
- <output/>
- </medinolist>
- </medinoinfo>
- </send>
- <hidden/>
- <init/>
- <item>
- <chargenurse>
- <nurselist>
- </nurselist>
- </chargenurse>
- </item>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //기관코드, 현재일자를 받아옴
- model.setValue("/root/main/cond/prcpfromdd",getCurrentDate());
- model.setValue("/root/main/cond/prcptodd",getCurrentDate());
- model.setValue("/root/main/cond/instcd", getUserInfo("dutplceinstcd"));
- //기본으로 구분을 간호사별로 나타낸다
- caption7.visible= false;
- ipt_patnm.visible= false;
- caption1.visible= true;
- ipt_nursnm.visible= true;
-
- rdo_flag.select(0);
-
- // 그리드 초기화
- model.removeNodeset("/root/main/medinoinfo/medinolist");
-
- /*
- 추가요청사항 확인 후 진행예정임_20090104_SMY개발중
- //담당간호사 조회
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
- submit("TRMNF00106");
- */
-
- // 가정간호 의뢰처방조회
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata","/root/main/cond");
- submit("TRMNF04901");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRMNF04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/medinoinfo"/>
- </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/commonweb/js/utilHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="700" guideline="1,799;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_tle" style="left:0px; top:0px; width:784px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">약품번호 조회</caption>
- </group>
- <group id="grp_biz" scroll="l" style="left:0px; top:13px; width:780px; height:637px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:780px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:780px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:701px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( !isRequiredControls("ipt_pid","ipt_fromdd") ){
- return;
- }
-
- model.copyNode("/root/send/reqdata","/root/main/cond");
- submit("TRMNF04901"); // 가정간호 의뢰처방조회
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:680px; y1:20px; x2:680px; y2:42px; "/>
- <caption id="caption1" class="search_name" style="left:421px; top:36px; width:124px; height:17px; ">간 호 사 :</caption>
- <caption id="caption3" class="search_name" style="left:31px; top:37px; width:112px; height:17px; ">구 분 :</caption>
- <select1 id="rdo_flag" ref="/root/main/cond/flag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:130px; top:38px; width:140px; height:17px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>간호사별</label>
- <value>1</value>
- </item>
- <item>
- <label>환자별</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 가정간호구분에 따른 버튼 활성화
- var flag;
-
- flag = model.getValue("/root/main/cond/flag");
-
- if (flag == "1") {
- caption7.visible= false;
- ipt_patnm.visible= false;
- caption1.visible= true;
- ipt_nursnm.visible= true;
- btn_srch.visible = false;
- ipt_patnm.value= "";
-
- } else if (flag == "2") {
- caption7.visible= true;
- ipt_patnm.visible= true;
- caption1.visible= false;
- btn_srch.visible = true;
- ipt_nursnm.visible= false;
- ipt_nursnm.value= "";
- }
-
- model.removeNodeset("/root/main/medinoinfo/medinolist"); // 그리드 초기화
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_nursnm" ref="/root/main/cond/nursnm" class="input_search" appearance="input" style="left:535px; top:35px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //조건을 적고 enter를 치면 바로 조회 버튼을 누르지 않고 조회
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- <hint>
- <![CDATA[간호사명을 2자리이상 입력하세요.]]>
- </hint>
- </input>
- <caption id="caption7" class="search_name" style="left:421px; top:36px; width:110px; height:17px; ">환 자 :</caption>
- <input id="ipt_patnm" ref="/root/main/cond/patnm" class="input_search" appearance="input" style="left:535px; top:35px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //조건을 적고 enter를 치면 바로 조회 버튼을 누르지 않고 조회
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- <hint>
- <![CDATA[환자명을 2자리이상 입력하세요.]]>
- </hint>
- </input>
- <caption id="cap_fromdd" class="search_name" style="left:35px; top:10px; width:89px; height:17px; ">처방일자 :</caption>
- <caption id="cap_todd" class="search_name" visibility="hidden" style="left:35px; top:10px; width:89px; height:17px; ">처방일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/prcpfromdd" class="input_s_essential" inputtype="date" style="left:130px; top:12px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/prcptodd" class="input_s_essential" inputtype="date" style="left:250px; top:12px; width:100px; height:19px; "/>
- <caption id="caption9" style="left:235px; top:15px; width:20px; height:20px; ">~</caption>
- <select1 id="combo7" ref="/root/main/cond/nursid" class="combo_search" visibility="hidden" appearance="minimal" style="left:320px; top:35px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/chargenurse/nurselist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_medinolist" nodeset="/root/main/medinoinfo/medinolist" class="datagrid1" autoresize="true" caption="구분^등록번호^환자명^약품번호^처방일자^간호사^출력" colsep="^" colwidth="49, 80, 110, 167, 150, 120, 57" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:105px; width:780px; height:530px; ">
- <col ref="dcflag"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="drugno"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="nursnm"/>
- <col ref="output" type="checkbox"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:780px; y2:100px; "/>
- <button id="btn_sel" class="btn2_letter4" navindex="7" style="left:559px; top:80px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회된 로우 개수를 받아옴
- var rowcount = grd_medinolist.rows;
- for(var i = 1 ; i < rowcount ; i++){
- model.setValue("root/main/medinoinfo/medinolist["+ i +"]/output",'true');
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_desel" class="btn2_letter4" navindex="8" style="left:625px; top:80px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //선택된 로우값을 받아옴
- var rowcount = grd_medinolist.rows;
- for(var i=1 ; i < rowcount ; i++){
- model.setValue("root/main/medinoinfo/medinolist["+ i +"]/output",'false');
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn2_letter2" style="left:691px; top:80px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var rows = grd_medinolist.rows- grd_medinolist.fixedRows;
- var count = 0;
- //parseInt(count);
- for(var i = 1 ; i <= rows ; i++){
- var check = model.getValue("/root/main/medinoinfo/medinolist[" + i + "]/output");
- if(check =="true"){
- count = count + 1;
- model.makeNode("/root/send/medinoinfo/medinolist[" + count + "]");
- model.copyNode("/root/send/medinoinfo/medinolist[" + count + "]","/root/main/medinoinfo/medinolist[" + i + "]");
- }
- }
- // //환자명, 간호사명이 빈값일 경우 출력이 가능하도록 '%%' 를 넣어줌
- // if(isNull(model.getValue("/root/main/cond/patnm"))){
- // model.setValue("/root/main/cond/patnm", '%%');
- // }
- // if(isNull(model.getValue("/root/main/cond/nursnm"))){
- // model.setValue("/root/main/cond/nursnm", '%%');
- // }
- //조건을 가지고 출력
- exeReportPreview("RPMNF04900","XMLSTR");
-
- model.removeNodeset("/root/send/medinoinfo");
- ]]>
- </script>
- </button>
- <button id="btn_srch" class="icon_search" style="left:639px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_patnm.value = '';
- //원무팀의 환자명을 받아오는 팝업창을 띄운다.
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- //input박스에 데이타를 받아온다.
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/patnm", sHngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:735px; top:80px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|