123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <?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>TDM 기준정보</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <tdmlist>
- <item>
- <testcd/>
- <testnm/>
- <testcdseq/>
- <ioflag/>
- <t12val/>
- <vdval/>
- <kmval/>
- <vmaxval/>
- <clrc/>
- <blodconcen/>
- <tdmyn/>
- <cond/>
- <trgh/>
- <peak/>
- <instcd/>
- </item>
- </tdmlist>
- </main>
- <send>
- <req>
- <data1>
- </data1>
- </req>
- <srchtestcd/>
- <srchdrugcd/>
- <srchtclscd/>
- <srchtestnm/>
- </send>
- <init>
- <testitem>
- <testcd/>
- <testnm/>
- </testitem>
- <drugitem>
- <drugcd/>
- <drugnm/>
- </drugitem>
- </init>
- <hidden>
- <count/>
- <item>
- <testcd/>
- <instcd/>
- <t12val/>
- <vdval/>
- <kmval/>
- <vmaxval/>
- <clrc/>
- <blodconcen/>
- <tdmyn/>
- <cond/>
- <trgh/>
- <peak/>
- </item>
- </hidden>
- <temp>
- <testinfo>
- <testcd/>
- <testnm/>
- </testinfo>
- <receivedata>
- <receiveref>/root/temp/receivedata/drugcd</receiveref>
- <drugcd/>
- </receivedata>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 권한 관리
- btn_save.disabled =! checkAuth("X"); // 저장
-
- model.removenode("/root/main/tdmlist/item");
- model.setValue("/root/send/srchtestcd",model.getValue("/root/send/srchtestcd"));
- submit("TRADB01601");
- ]]>
- </script>
- <submission id="TRADB02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/drugitem"/>
- <submission id="TRADB01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchtclscd" replace="instance" resultref="/root/init/testitem"/>
- <submission id="TRADB01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tdmlist"/>
- <submission id="TXADB01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- </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:208px; height:14px; ">TDM 기준정보</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:36px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:5px; width:1194px; height:40px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; ">ㅇ</shape>
- <line id="line13" style="x1:1110px; y1:5px; x2:1110px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:10px; width:91px; height:17px; ">검사코드 :</caption>
- <input id="ipt_srchtestcd" ref="/root/send/srchtestcd" class="input_search" style="left:110px; top:10px; width:140px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- </input>
- <output id="opt_search" ref="/root/send/srchtestnm" class="output_search" style="left:280px; top:10px; width:330px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchtestcd",model.getValue("/root/send/srchtestcd"));
- var success = submit("TRADB01601", false);
- // 수정데이터는 검사코드, 약코드 수정안됨
- //if (success == false) return;
- //for (var i=1; i<grd_tdmlist.rows; i++) {
- // grd_tdmlist.isreadonly(i, 1) = true;
- // grd_tdmlist.isreadonly(i, 3) = true;
- //}
-
- model.setValue("/root/send/srchtestcd","");
- model.setValue("/root/send/srchtestnm","");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_srch" class="icon_search" style="left:257px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var testcd = "";
- var testnm = "";
-
- //검사조회
- modal("SPADB62200",0,200,200,"SPADB62200","","");
- testcd = model.getValue("/root/temp/testinfo/testcd");
- testnm = model.getValue("/root/temp/testinfo/testnm");
- model.setValue("/root/send/srchtestcd",testcd);
- model.setValue("/root/send/srchtestnm",testnm);
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_grdcopy" class="btn2_letter3" style="left:1010px; top:50px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grdrow = grd_tdmlist.row;
- model.copyNode("/root/hidden/item","/root/main/tdmlist/item["+ grdrow +"]");
- grd_tdmlist.insertItem(grdrow);
- model.copyNode("/root/main/tdmlist/item["+ grdrow +"]","/root/hidden/item");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_tdmlist" nodeset="/root/main/tdmlist/item" class="datagrid2" backcoloralternate="#f0f0f0" caption="검사코드^검사명^일련번호^입원/외래^T1/2^Vd^Km^VMax^Clearance^혈중농도^약물농도
측정여부^조건^치료(Trough)범위^치료(Peak)범위" colsep="^" colwidth="81, 200, 57, 60, 57, 57, 57, 64, 65, 56, 61, 38, 152, 125" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:1194px; height:668px; ">
- <col ref="testcd" type="inputbutton" _key="true"/>
- <col ref="testnm" _key="true"/>
- <col ref="testcdseq" type="input" _key="true" style="text-align:center; "/>
- <col ref="ioflag" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="t12val" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="vdval" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="kmval" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="vmaxval" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="clrc" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="blodconcen" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="tdmyn" type="checkbox"/>
- <col ref="cond" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="trgh" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="peak" type="input" maxlength="20" style="text-align:center; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var instcd = "";
- var testcd = "";
- var testnm = "";
- var drugcode = "";
- var grdcol = grd_tdmlist.col;
- var grdrow = grd_tdmlist.row;
-
- if (grdrow < 1) return;
-
- // 입력상태에서만 검색가능(기관코드 있으면 입력상태로 간주)
- instcd = model.getValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/instcd");
- if (instcd != "") return;
-
- if (grdcol == 1) {
- modal("SPADB62200",0,200,200,"SPADB62200","","");
- testcd = model.getValue("/root/temp/testinfo/testcd");
- testnm = model.getValue("/root/temp/testinfo/testnm");
- model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/testcd",testcd);
- model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/testnm",testnm);
- model.refresh();
- // } else if (grdcol == 3) {
- // modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
- // drugcode = model.getValue("/root/temp/receivedata/drugcd");
- // model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/drugcd",drugcode);
- //
- // if (drugcode != "") {
- // model.setValue("/root/send/srchdrugcd",drugcode);
- // submit("TRADB02604",false);
- // model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/drugnm",model.getValue("/root/init/drugitem/drugnm"));
- // model.refresh();
- // }
- } else if (grdcol == 11) {
- if (model.getValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/tdmyn")=="true") {
- model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/tdmyn","Y");
- } else {
- model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/tdmyn","N");
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var grdrow= grd_tdmlist.row;
- var grdcol = grd_tdmlist.col;
- var srchtestcd = "";
- var srchdrugcd = "";
- if(event.keyCode == "13") {
- if (grdcol == 1) {
- srchtestcd = model.getValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/testcd");
- if (srchtestcd == "") {
- messageBox("검사코드를", "C001");
- }
- model.setValue("/root/send/srchtclscd",srchtestcd);
- submit("TRADB01602",false);
- model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/testcd" ,model.getValue("/root/init/testitem/testcd") );
- model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/testnm" ,model.getValue("/root/init/testitem/testnm") );
- model.refresh();
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var testcd = "" ;
- var testcdseq = "" ;
- var new_testcd = model.getValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/testcd");
- var new_testcdseq = model.getValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/testcdseq");
- for (var i=1; i<grd_tdmlist.rows; i++) {
- testcd = model.getValue("/root/main/tdmlist/item["+i+"]/testcd");
- testcdseq = model.getValue("/root/main/tdmlist/item["+i+"]/testcdseq");
- if ((new_testcd == testcd ) && (grd_tdmlist.row != i ) ) {
- if (new_testcdseq == testcdseq) {
- alert ("[ " + testcd + " ] 코드에 동일 일련번호 [" + testcdseq + "]가 발생되었습니다. 확인하여 주시기 바랍니다.");
- model.setValue("/root/main/tdmlist/item["+grd_tdmlist.row+"]/testcdseq","");
- model.refresh();
- return;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_grdadd" class="btn2_letter3" style="left:952px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_tdmlist.addItem();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1068px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_tdmlist.addStatus(grd_tdmlist.row,"delete");
- ]]>
- </script>
- </button>
- <button id="btn_excsave" class="btn2_letter4" style="left:1126px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_tdmlist.saveExcel(file);
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:1px; top:55px; width:103px; height:13px; ">TDM 기준정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1135px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var tdmyn = "";
- var nodeList = instance1.selectNodes("/root/main/tdmlist/item");
- var updtdata = getGridUpdateData(grd_tdmlist);
-
- // 변경사항체크
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- // 필수사항체크
- if (checkKeyColumn("grd_tdmlist") == false) return;
-
- for (var i=1; i<grd_tdmlist.rows; i++) {
- tdmyn = model.getValue("/root/main/tdmlist/item["+i+"]/tdmyn");
- if (tdmyn == "true") {
- model.setValue("/root/main/tdmlist/item["+i+"]/tdmyn","Y");
- } else {
- model.setValue("/root/main/tdmlist/item["+i+"]/tdmyn","N");
- }
- }
-
- model.setValue( "/root/send/req/data1", grd_tdmlist.getUpdateData());
-
- submit("TXADB01601");
- submit("TRADB01601");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|