123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- <?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>FlowSheet 약품정보 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <cond>
- <useflag/>
- <drugtype/>
- <srchtype/>
- <srchtext/>
- </cond>
- <main>
- <druginfo>
- <druglist>
- <recnm/>
- <recvol/>
- <recunit/>
- <drugcd/>
- <ordnm/>
- <hngnm/>
- <recfluidunit/>
- <sortno/>
- <seqno/>
- </druglist>
- </druginfo>
- </main>
- <send/>
- <init>
- <drugtypeinfo>
- <drugtypelist>
- <cdid>ALL</cdid>
- <cdnm>전체</cdnm>
- </drugtypelist>
- <drugtypelist>
- <cdid>A2</cdid>
- <cdnm>내복</cdnm>
- </drugtypelist>
- <drugtypelist>
- <cdid>A4</cdid>
- <cdnm>외용</cdnm>
- </drugtypelist>
- <drugtypelist>
- <cdid>A6</cdid>
- <cdnm>주사</cdnm>
- </drugtypelist>
- <drugtypelist>
- <cdid>-</cdid>
- <cdnm>텍스트</cdnm>
- </drugtypelist>
- </drugtypeinfo>
- <srchtypeinfo>
- <srchtypelist>
- <cdid>ALL</cdid>
- <cdnm>전체</cdnm>
- </srchtypelist>
- <srchtypelist>
- <cdid>0</cdid>
- <cdnm>기록명칭</cdnm>
- </srchtypelist>
- <srchtypelist>
- <cdid>1</cdid>
- <cdnm>처방명칭</cdnm>
- </srchtypelist>
- <srchtypelist>
- <cdid>2</cdid>
- <cdnm>약품코드</cdnm>
- </srchtypelist>
- <srchtypelist>
- <cdid>3</cdid>
- <cdnm>한글명칭</cdnm>
- </srchtypelist>
- </srchtypeinfo>
- </init>
- <temp>
- <druginfo/>
- <receivedata>
- <receiveref/>
- </receivedata>
- </temp>
- <hidden>
- <mech/>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNR10501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/druginfo"/>
- <submission id="TRMNR10502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/mech"/>
- <submission id="TXMNR10501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result/druginfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize() ;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- /**
- * @group :
- * @ver : 2010.03.05
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화 함수
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
- //공통코드
- //zbcfGetCodeList(new Array("A0007"), new Array("/root/init/A0007list"));
-
- //사용구분 1: 약, 2: 일반검사, 3: 응급검사
- model.setValue("/root/cond/useflag", "1");
- //약품정보 조회값 초기 세팅
- model.setValue("/root/cond/drugtype", "ALL");
- //조회구분 초기 세팅
- model.setValue("/root/cond/srchtype", "ALL");
- model.setValue("/root/cond/srchtext", "");
-
- fSrchData();
- }
-
- /**
- * @group :
- * @ver : 2010.03.05
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 약, 주사 기록약품마스터 정보 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchData(){
-
- if( ipt_srchtext.value.getTrim().length< 1 ){
- ipt_srchtext.value = "";
- }
- //얌품정보 리스트 초기화
- //model.removenodeset("/root/main/druginfo");
-
- model.removenodeset("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/cond");
- submit("TRMNR10501");
- }
-
- /**
- * @group :
- * @ver : 2010.03.05
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 약품코드 컬럼 클릭시 약품정보 조회 화면 popup
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDrugDbClick(){
- var iRow = grd_druglist.mouseRow;
- model.setValue("/root/temp/receivedata/receiveref", "/root/temp/druginfo");
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
-
- var drugcd = model.getValue("/root/temp/druginfo");
- var drugnm = "";
- var row = 0;
-
- if(drugcd != ""){
- model.removenode("/root/send");
- model.makeValue("/root/send/calcscorcd", drugcd);
- submit("TRMNR10502", false);
- drugnm = model.getValue("/root/hidden/mech/hngnm");
- if(drugnm == ""){
- messageBox("약품 유효기간이 지났습니다.","E999");
- return;
- }
-
- grd_druglist.valueMatrix(iRow, grd_druglist.colRef("drugcd")) = model.getValue("/root/hidden/mech/drugcd");
- grd_druglist.valueMatrix(iRow, grd_druglist.colRef("ordnm")) = model.getValue("/root/hidden/mech/ordnm");
- grd_druglist.valueMatrix(iRow, grd_druglist.colRef("hngnm")) = model.getValue("/root/hidden/mech/hngnm");
-
- if( grd_druglist.valueMatrix(iRow, grd_druglist.colRef("recnm")) == "" ) grd_druglist.valueMatrix(iRow, grd_druglist.colRef("recnm")) = model.getValue("/root/hidden/mech/drugcd");
- if( grd_druglist.valueMatrix(iRow, grd_druglist.colRef("recunit")) == "") grd_druglist.valueMatrix(iRow, grd_druglist.colRef("recunit")) = model.getValue("/root/hidden/mech/stndunit");
- if( grd_druglist.valueMatrix(iRow, grd_druglist.colRef("recvol")) == "") grd_druglist.valueMatrix(iRow, grd_druglist.colRef("recvol")) = model.getValue("/root/hidden/mech/stndvol");
- }
- }
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,13;2,778;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1185px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">FlowSheet 약품정보 관리</caption>
- </group>
- <group id="group3" style="left:0px; top:12px; width:1195px; height:769px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:36px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1034px; y1:4px; x2:1034px; y2:31px; "/>
- <caption id="caption12" class="search_name" style="left:255px; top:9px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회구분 :</caption>
- <select1 id="cmb_srchtype" ref="/root/cond/srchtype" class="combo_search" navindex="2" appearance="minimal" style="left:345px; top:8px; width:147px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/srchtypeinfo/srchtypelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_srch" class="btn1_letter2" navindex="4" style="left:1055px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchData();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="search_name" visibility="visible" style="left:17px; top:9px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">약품정보 :</caption>
- <input id="ipt_srchtext" ref="/root/cond/srchtext" class="input_search" navindex="3" style="left:495px; top:8px; width:190px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keycode == "13"){
- model.setfocus("btn_srch");
- btn_srch.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_drugtype" ref="/root/cond/drugtype" class="combo_search" navindex="1" appearance="minimal" style="left:109px; top:8px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/drugtypeinfo/drugtypelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_save" class="btn4_letter2" navindex="9" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1121px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/send");
- model.makeValue("/root/send/savedata", grd_druglist.getUpdateData());
- if( submit("TXMNR10501", false)){
- fSrchData();
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption11" class="tit_2" style="left:0px; top:69px; width:120px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">약품정보 리스트</caption>
- <datagrid id="grd_druglist" nodeset="/root/main/druginfo/druglist" allowselection="false" caption="기록명칭^용량^단위^약품코드^처방명칭^한글명칭^지속약물단위^조회순서" colsep="^" colwidth="315, 70, 70, 100, 210, 210, 110, 60, 0" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" navindex="5" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:90px; width:1194px; height:679px; ">
- <col ref="recnm" type="input" style="text-align:left; "/>
- <col ref="recvol" type="input" style="text-align:center; "/>
- <col ref="recunit" type="input" style="text-align:center; "/>
- <col ref="drugcd" type="inputbutton" maxlength="0" style="text-align:left; "/>
- <col ref="ordnm"/>
- <col ref="hngnm"/>
- <col ref="recfluidunit" type="input" style="text-align:center; "/>
- <col ref="sortno" type="input" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_druglist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_druglist.col == grd_druglist.colRef("drugcd") && grd_druglist.valueMatrix(grd_druglist.row, grd_druglist.colRef("drugcd")) == ""){
- grd_druglist.valueMatrix(grd_druglist.row, grd_druglist.colRef("ordnm")) = "";
- grd_druglist.valueMatrix(grd_druglist.row, grd_druglist.colRef("hngnm")) = "";
- }
- ]]>
- </script>
- </datagrid>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fDrugDbClick();
- ]]>
- </script>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1194px; y2:85px; "/>
- <button id="btn_add" class="btn2_letter3" navindex="6" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1016px; top:64px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_druglist.addRow();
- grd_druglist.valueMatrix(grd_druglist.rows-grd_druglist.fixedRows, grd_druglist.colRef("sortno")) = 0;
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter3" navindex="7" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1073px; top:64px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = grd_druglist.row;
- grd_druglist.rowStatus(iRow) = "4";
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" navindex="8" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1130px; top:64px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>삭제취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = grd_druglist.row;
- if( grd_druglist.rowStatus(iRow) == "4" ){
- if( grd_druglist.valueMatrix(iRow, grd_druglist.colRef("seqno")) == "" ){
- grd_druglist.rowStatus(iRow) = "1";
- }else{
- grd_druglist.rowStatus(iRow) = "2";
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|