123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- <?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>ADR과거력조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <adrpasthistlist>
- <adrpasthistinfo>
- <pid/>
- <pathngnm/>
- <inptdd/>
- <resndrugcd/>
- <symp/>
- <casrslt/>
- <sympmnftdd/>
- <orddeptnm/>
- <clsflag/>
- <cmt/>
- <rgstrnm/>
- <grupjoblncd/>
- </adrpasthistinfo>
- </adrpasthistlist>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <deptflag/>
- <srchorddept/>
- <srchdrugcd/>
- <srchpid/>
- <srchwardcd/>
- <srchreqdeptlist/>
- </send>
- <init>
- <orddept>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </orddept>
- <deptlist>
- <ward>
- <deptcd/>
- <deptnm/>
- </ward>
- </deptlist>
- <reqdeptlist>
- <reqdeptinfo>
- <deptcd/>
- <deptnm/>
- </reqdeptinfo>
- </reqdeptlist>
- </init>
- <temp>
- <receivedata>
- <receiveref>/root/temp/receivedata/drugcd</receiveref>
- <drugcd/>
- </receivedata>
- <tempdeptlist/>
- </temp>
- </root>
- </instance>
- <submission id="TRADC02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptflag" replace="instance" resultref="/root/init/orddept"/>
- <submission id="TRADC02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRADC03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/adrpasthistlist"/>
- <submission id="TRADC03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/reqdeptlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInit() {
- model.setValue("/root/send/srchfromdd",getCurrentDate());
- model.setValue("/root/send/srchtodd",getCurrentDate());
-
- //부서조회
- submit("TRADC03302");
- /*
- //진료과조회
- model.setValue("/root/send/deptflag", "D");
- submit("TRADC02103");
- astfAddCombo("/root/init/orddept", "dept", "deptcd,deptnm", ",");
-
- //병동
- model.setValue("/root/send/deptflag", "W");
- submit("TRADC02102");
- astfAddCombo("/root/init/deptlist", "ward", "deptcd,deptnm", "T,전체");
- */
- }
-
- function fGetAdrPastHistList() {
- var sDeptlist = model.getValue("/root/send/srchreqdeptlist") ;
- if(sDeptlist == "") {
- model.setValue("/root/send/srchreqdeptlist", "T");
- }
-
- submit("TRADC03301");
-
- if(sDeptlist == "") {
- model.setValue("/root/send/srchreqdeptlist", "");
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">ADR과거력조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:5px; width:1195px; height:43px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:325px; top:13px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption3" class="search_name" style="left:15px; top:13px; width:86px; height:17px; ">입력일자 :</caption>
- <button id="btn_seamthd" class="btn1_letter2" navindex="6" style="left:1120px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAdrPastHistList();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:515px; top:13px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:930px; top:5px; width:86px; height:17px; ">병동 :</caption>
- <input id="ipt_prcpddstart" ref="/root/send/srchfromdd" class="input_search" navindex="1" inputtype="date" style="left:105px; top:12px; width:90px; height:19px; "/>
- <input id="ipt_prcpddend" ref="/root/send/srchtodd" class="input_search" navindex="2" inputtype="date" style="left:216px; top:12px; width:90px; height:19px; "/>
- <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" navindex="3" style="left:415px; top:12px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 13) {
- model.setValue("/root/send/srchpid", ipt_pid.currentText);
- ipt_pid.refresh();
-
- fGetAdrPastHistList();
- }
- ]]>
- </script>
- </input>
- <select1 id="cbo_orddeptcd" ref="/root/send/srchorddept" class="combo_search" visibility="hidden" appearance="minimal" style="left:960px; top:20px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" style="left:200px; top:15px; width:20px; height:15px; ">~</caption>
- <select1 id="cmb_ward" ref="/root/send/srchwardcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:1010px; top:5px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/ward">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_wardnm" ref="/root/temp/tempdeptlist" class="input_search" disabled="true" style="left:590px; top:12px; width:185px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:810px; top:13px; width:86px; height:17px; ">의뢰약물 :</caption>
- <input id="ipt_srchdrugcd" ref="/root/send/srchdrugcd" class="input_search" navindex="5" inputtype="button" maxlength="7" style="left:899px; top:12px; width:101px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- model.setValue("/root/send/srchdrugcd", ipt_srchdrugcd.currentText);
- ipt_srchdrugcd.refresh();
-
- fGetAdrPastHistList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // 약품코드 검색
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
- var drugcode = model.getValue("/root/temp/receivedata/drugcd");
- // 약품명 검색
- if (drugcode != "") {
- model.makeValue("/root/send/srchdrugcd",drugcode);
- }
-
- ipt_srchdrugcd.refresh();
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption10" class="tit_2" style="left:0px; top:60px; width:120px; height:13px; ">과거력 리스트</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:74px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/adrpasthistlist/adrpasthistinfo" caption="등록번호^환자명^입력일자^원인약물^증상^인과관계^등록자^직군^발생일^진료과^분류^비고" colsep="^" colwidth="70, 80, 80, 90, 216, 150, 80, 70, 80, 120, 65, 75" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:79px; width:1194px; height:662px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="pathngnm" style="text-align:center; "/>
- <col ref="inptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="resndrugcd"/>
- <col ref="symp"/>
- <col disabled="true" ref="casrslt" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Certain(90%)</label>
- <value>CT</value>
- </item>
- <item>
- <label>Probable(70%)</label>
- <value>PB</value>
- </item>
- <item>
- <label>Possible(50%)</label>
- <value>PL</value>
- </item>
- <item>
- <label>Conditional(평가곤란)</label>
- <value>CD</value>
- </item>
- <item>
- <label>Unassessible(평가불가)</label>
- <value>UA</value>
- </item>
- </choices>
- </col>
- <col ref="rgstrnm" style="text-align:center; "/>
- <col ref="grupjoblncd" style="text-align:center; "/>
- <col ref="sympmnftdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col disabled="true" ref="clsflag" 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>
- </choices>
- </col>
- <col ref="cmt"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <select id="chk_ward" ref="/root/send/srchreqdeptlist" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="2" sep="|" style="left:590px; top:36px; width:185px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/reqdeptlist/reqdeptinfo">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0){
-
- if(isSearchString(model.getValue("/root/send/srchreqdeptlist"), "T")){
-
- var ward = "";
- for(var i = 1; i <= getNodesetCount("/root/init/reqdeptlist/reqdeptinfo"); i++){
- if(i == (getNodesetCount("/root/init/reqdeptlist/reqdeptinfo"))){
- ward += model.getValue("/root/init/reqdeptlist/reqdeptinfo["+i+"]/deptcd");
- }else{
- ward += model.getValue("/root/init/reqdeptlist/reqdeptinfo["+i+"]/deptcd")+"|";
- }
- }
- model.setValue("/root/send/srchreqdeptlist", ward);
- } else {
- model.setValue("/root/send/srchreqdeptlist", "");
- }
- chk_ward.refresh();
- }
-
- if(isSearchString(model.getValue("/root/send/srchreqdeptlist"),"T")){
- ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
- } else {
- ipt_wardnm.value = chk_ward.label;
- }
- //input3.refresh();
- //검사실 체크박스 감추기
- //chk_excuroom.visible = false;
- ]]>
- </script>
- </select>
- <button id="button4" class="icon_search" navindex="4" style="left:778px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(chk_ward.visible){
- chk_ward.visible = false;
- }else {
- chk_ward.visible = true;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter5" navindex="7" style="left:1119px; top:55px; width:75px; height:19px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls");
-
- if (fileName != "") {
- datagrid1.saveExcel(fileName, "", false, false);
- messageBox(fileName + " 파일생성이 ", "I002");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|