123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <condition>
- <srchdrugflag>-</srchdrugflag>
- <srchdrugcd/>
- <srchdrugnm/>
- <srchspcldrug/>
- <nameflag>3</nameflag>
- <srchscop/>
- <infcflagcd>-</infcflagcd>
- </condition>
- <druginfo>
- </druginfo>
- </main>
- <hidden>
- <resultref>
- <info/>
- </resultref>
- </hidden>
- <send>
- </send>
- <init>
- <A0006list>
- <A0006>
- <cdid/>
- <cdnm/>
- </A0006>
- </A0006list>
- <A0014list>
- <A0014>
- <cdid/>
- <cdnm/>
- </A0014>
- </A0014list>
- </init>
- <temp>
- <getdata>
- <drugcd/>
- </getdata>
- <reqdata>
- <send>
- <srchflag/>
- <srchcnts/>
- <srchcls>1</srchcls>
- <cnfmyn>Y N</cnfmyn>
- <seqflag>1</seqflag>
- <drugkind>N M Y</drugkind>
- <drugkindall>4</drugkindall>
- <spcldrug/>
- <efcycd>-</efcycd>
- <efcycls/>
- <srchdrugcd>%</srchdrugcd>
- <srchcomcd/>
- <srchcomnm/>
- <srchefcy/>
- <srchetcflag>A</srchetcflag>
- <receiveref>/root/main/condition/srchdrugcd</receiveref>
- <infcflagcd>-</infcflagcd>
- </send>
- </reqdata>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- model.removeNodeset("/root/main/druginfo");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
-
- if( model.getValue("/root/main/condition/nameflag") == "N" && model.getValue("/root/main/condition/srchdrugnm") != "") {
- var srchnm = model.getValue("/root/main/condition/srchdrugnm");
- srchnm = srchnm.toUpperCase( );
- model.setValue("/root/send/reqdata/srchdrugnm", srchnm);
- }
- //submit("TRASB01401");
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRASB01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/druginfo"/>
- <submission id="TRASB01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/resultref"/>
- <submission id="TXASB01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/druginfo"/>
- </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">
- <![CDATA[
- function fInitialize() {
- // 공통코드를 조회한다.
- zbcfGetCodeList( new Array("A0006", "A0014"), new Array("/root/init/A0006list", "/root/init/A0014list") );
-
- model.setValue("/root/init/A0006list/A0006[1]/cdid", "");
- model.setValue("/root/init/A0006list/A0006[1]/cdnm", "-");
-
- // addComboItem("cmb_drugflag","","-","above");
- model.refresh();
- cmb_drugflag.select(0);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:155px; height:14px; ">감염관리 약품정보관리</caption>
- </group>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button3" class="btn4_letter2" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodeList = instance1.selectNodes("/root/main/druginfo/info");
- for(var i=1; i<=nodeList.length; i++){
- var node = nodeList.item(i-1);
- var drugcdNode = node.selectSingleNode("drugcd"); //내성균구분
- if( (grd_druginfo.rowStatus(i) == 1 || grd_druginfo.rowStatus(i) == 2 || grd_druginfo.rowStatus(i) == 3) && drugcdNode.text == "" ){
- messageBox("약품 선택은 ", "I003");
- return;
- }
- // var selectedRows = grd_testitemnvalrslt.selectedRows;
- // var row = new Array();
- //
- // for (i= selectedRows-1; i >= 0; i--){
- // row[i] = grd_testitemnvalrslt.selectedrow(i);
- }
- // var iRow = grd_druginfo.row
- // for (var i =0 ; i < grd_druginfo.rows ; i++) {
- // model.makeValue("/root/main/druginfo[" + iRow + "]/infcflagcd", "-");
- // }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/send/savedata/druginfo", grd_druginfo.getUpdateData());
- model.makeNode("/root/send/savedata/condition");
- model.copyNode("/root/send/savedata/condition", "/root/main/condition");
-
- submit("TXASB01401");
- ]]>
- </script>
- </button>
- <button id="importbutton1" class="btn4_letter3" style="left:1068px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/druginfo");
- model.makeNode("/root/main/druginfo");
- model.resetInstanceNode("/root/main/condition");
- model.setValue("/root/main/condition/nameflag", "3");
- model.setValue("/root/main/condition/srchdrugflag", "-");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <button id="button2" class="btn2_letter3" style="left:1040px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_druginfo.addItem();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:1095px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = grd_druginfo.row - grd_druginfo.fixedRows + 1;
- if(iRow < 1){
- return;
- }
- var status = grd_druginfo.rowStatus(iRow);
- if(status == 1 || status == 3){
- grd_druginfo.deleteItem(iRow);
- }else{
- grd_druginfo.rowStatus(iRow)= 4;
- }
- ]]>
- </script>
- </button>
- <line id="line7" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:7px; width:1194px; height:39px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:39; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button37" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
-
- var nameflag = model.getValue("/root/main/condition/nameflag"); //검색조건
- var srchdrugnm = model.getValue("/root/main/condition/srchdrugnm"); //약품명
- var srchdrugcd = model.getValue("/root/main/condition/srchdrugcd"); //약품코드
-
- if( model.getValue("/root/main/condition/nameflag") == "2" ) {
- if( isNull(srchdrugcd) ){
- messageBox("약품코드를 ", "C001");
- return;
-
- }else {
- model.setValue("/root/send/reqdata/nameflag", "C"); //코드겁색모드
- model.setValue("/root/send/reqdata/srchdrugnm", srchdrugcd);
-
- }
-
- }else if( model.getValue("/root/main/condition/nameflag") == "3" ) {
- if( isNull(srchdrugnm) ){
- //messageBox("약품코명을 ", "C001");
- //return;
-
- }else{
- srchdrugnm = srchdrugnm.toUpperCase( );
- //if( isNull(srchdrugcd) ){
- srchdrugnm = "%" + srchdrugnm + "%";
- //}
-
- model.setValue("/root/send/reqdata/srchdrugnm", srchdrugnm);
- }
- model.setValue("/root/send/reqdata/nameflag", "N"); //약품명검색모드
- }
- submit("TRASB01401");
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:30px; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">약품구분 :</caption>
- <select1 id="combo5" ref="/root/main/condition/srchdrugflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:1015px; top:10px; width:65px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>항암제</label>
- <value>C</value>
- </item>
- <item>
- <label>항바이러스제</label>
- <value>V</value>
- </item>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:270px; top:10px; width:91px; height:17px; ">검색조건 :</caption>
- <caption id="caption20" class="search_name" visibility="hidden" style="left:895px; top:10px; width:117px; height:17px; ">특별약품 구분 :</caption>
- <input id="importinput1" ref="/root/main/condition/srchdrugcd" class="input_search" disabled="true" visibility="visible" style="left:740px; top:10px; width:110px; height:19px; "/>
- <select1 id="cmb_drugflag" ref="/root/main/condition/srchspcldrug" class="combo_default" appearance="minimal" style="left:110px; top:10px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0006list/A0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="importbutton2" class="icon_search" style="left:716px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*modal("SPADB60100",0,100,150,"SPADB60100","/root/hidden/receivedrugcd","/root/hidden/receiveref");
-
- var child = "SPADB60100";
- var iRow = grd_druginfo.row;
- if(child != null) {
- var drugcd = model.getValue("/root/hidden/getdata/drugcd");
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/drugcd", drugcd);
- submit("TRASB01402");
-
- model.setValue("/root/main/condition/srchdrugnm", model.getValue("/root/hidden/resultref/info/hngnm"));
- ipt_srchhngnm.refresh();
- }
- model.makeValue("/root/hidden/send/srchcls", "1");
- model.makeValue("/root/hidden/send/cnfmyn", "Y N");
- model.makeValue("/root/hidden/send/seqflag", "1");
- model.makeValue("/root/hidden/send/drugkind", "N M Y");
- model.makeValue("/root/hidden/send/drugkindall", "4");
- model.makeValue("/root/hidden/send/spcldrug", "");
- model.makeValue("/root/hidden/send/efcycd", "-");
- model.makeValue("/root/hidden/send/efcycls", "");
- model.makeValue("/root/hidden/send/srchflag", "3");
- model.makeValue("/root/hidden/send/srchcnts", model.getValue("/root/main/condition/srchdrugnm"));
- model.makeValue("/root/hidden/send/srchdrugcd", "%");
- model.makeValue("/root/hidden/send/srchcomcd", "");
- model.makeValue("/root/hidden/send/srchcomnm", "");
- model.makeValue("/root/hidden/send/srchefcy", "");
- model.makeValue("/root/hidden/send/srchetcflag", "A");*/
- //model.setValue("/root/main/condition/srchdrugcd" ,model.getValue("/root/temp/receivedata/receiveref"));
-
- //그리드의 약품검색 시 받아오는 인스턴스를 동시에 사용하므로, 검색 전에, 현재 컨트롤에 입력된 값을 가져간다(그렇지 않으면 입력상태의 값이 있을때 잘못 들어감)
-
- model.resetInstanceNode("/root/temp/getdata/drugcd");
-
- var nameflag = model.getValue("/root/main/condition/nameflag"); //검색조건
- var srchdrugnm = model.getValue("/root/main/condition/srchdrugnm"); //약품명
- var srchspcldrug = model.getValue("/root/main/condition/srchspcldrug"); //특별약품구분
-
- model.setValue("/root/temp/reqdata/send/srchflag", nameflag);
- model.setValue("/root/temp/reqdata/send/srchcnts", srchdrugnm);
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/reqdata/send","/root/temp/receivedata");
-
- model.setValue("/root/temp/reqdata/send/srchflag", ""); //노드 초기화
- model.setValue("/root/temp/reqdata/send/srchcnts", ""); //노드 초기화
- model.setValue("/root/temp/reqdata/send/srchdrugcd", ""); //노드 초기화
-
- if( instance1.selectSingleNode("/root/temp/getdata/drugcd") ){
- if( !isNull(model.getValue("/root/temp/getdata/drugcd")) ){
- var drugcd = model.getValue("/root/temp/getdata/drugcd");
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/drugcd", drugcd);
- submit("TRASB01402");
-
- model.setValue("/root/main/condition/srchdrugnm", model.getValue("/root/hidden/resultref/info/hngnm"));
- ipt_srchhngnm.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="importradio1" ref="/root/main/condition/nameflag" class="combo_s_essential" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:361px; top:12px; width:136px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>약품명</label>
- <value>3</value>
- </item>
- <item>
- <label>약품코드</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/condition/srchdrugnm", "");
- model.setValue("/root/main/condition/srchdrugcd", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_srchhngnm" ref="/root/main/condition/srchdrugnm" class="input_s_essential" style="left:499px; top:10px; width:210px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("importbutton2", "DOMActivate");
- ]]>
- </script>
- </input>
- <select id="importcheckbox1" ref="/root/main/condition/srchscop" overflow="visible" appearance="full" style="left:885px; top:10px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>모두 조회(종료 약품 포함)</label>
- <value>ALL</value>
- </item>
- </choices>
- </select>
- </group>
- <datagrid id="grd_druginfo" nodeset="/root/main/druginfo/info" class="datagrid" caption="항암제^항바이
러스제^약품구분^약품명^약품코드^약품종류^TPN여부^제한항생제
여부^확정여부^시작일자^종료일자^caption1^caption2^caption3" colsep="^" colwidth="45, 45, 101, 620,115, 115, 70, 70, 61, 131, 129, 100, 100, 100" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:75px; width:1194px; height:666px; ">
- <col ref="anticncyn" type="checkbox" visibility="hidden"/>
- <col ref="antivirusyn" type="checkbox" visibility="hidden"/>
- <col ref="spcldrugflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/A0006list/A0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="hngnm" type="inputbutton"/>
- <col ref="drugcd"/>
- <col ref="drugkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0014list/A0014">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="tpnyn" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="restantimicyn" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cnfmyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="drugfromdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="drugtodd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="drugcd" visibility="hidden"/>
- <col ref="infcdrugcd" visibility="hidden"/>
- <col ref="infcflagcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // if( grd_druginfo.mouseCol == 4 && grd_druginfo.mouseRow <= grd_druginfo.rows && grd_druginfo.mouseRow > 0 && (grd_druginfo.rowStatus(grd_druginfo.mouseRow) == 1 || grd_druginfo.rowStatus(grd_druginfo.mouseRow) == 3)) {
- // var iRow = grd_druginfo.row;
- // var status = "-";
- // if( !isNull(model.getValue("/root/main/druginfo/info[" + iRow + "]/drugcd")) && grd_druginfo.rowStatus(iRow) != 1 && grd_druginfo.rowStatus(iRow) != 3 ){
- // var org_drugCd = model.getValue("/root/main/druginfo/info[" +iRow + "]/drugcd");
- // model.setValue("/root/temp/reqdata/send/srchflag", "2");
- // model.setValue("/root/temp/reqdata/send/srchcnts", org_drugCd);
- // status = "U";
- // }
- //
- // model.setValue("/root/temp/reqdata/send/receiveref", "/root/temp/getdata/drugcd"); //상단 약품코드에 값이 보이지 않게 하기 위해 다른 path 사용
- // modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/reqdata/send/receiveref","/root/temp/receivedata/receiveref");
- //
- // if( !isNull(model.getValue("/root/temp/getdata/drugcd")) ){
- // if(status == "U" && org_drugCd != model.getValue("/root/temp/getdata/drugcd") && model.getValue("/root/temp/getdata/drugcd") != ""){
- // messageBox("해당 약품을 사용종료 한 후 새로 ", "C001");
- // return;
- //
- // }else if(status == "U" && (org_drugCd == model.getValue("/root/temp/getdata/drugcd") || model.getValue("/root/temp/getdata/drugcd") == "")){
- // return; //동일한 약품 검색 시 return
- //
- // }
- // var drugcd = model.getValue("/root/temp/getdata/drugcd");
- // model.removeNodeset("/root/send/reqdata");
- // model.makeValue("/root/send/reqdata/drugcd", drugcd);
- // submit("TRASB01402");
- //
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/drugcd", model.getValue("/root/hidden/resultref/info/drugcd"));
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/hngnm", model.getValue("/root/hidden/resultref/info/hngnm"));
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/spcldrugflag", model.getValue("/root/hidden/resultref/info/spcldrug"));
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/tpnyn", model.getValue("/root/hidden/resultref/info/tpnyn"));
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/restantimicyn", model.getValue("/root/hidden/resultref/info/restantimicyn"));
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/drugfromdd", model.getValue("/root/hidden/resultref/info/drugfromdd"));
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/drugtodd", model.getValue("/root/hidden/resultref/info/drugtodd"));
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/drugkind", model.getValue("/root/hidden/resultref/info/drugkind"));
- // model.setValue("/root/main/druginfo/info[" +iRow + "]/cnfmyn", model.getValue("/root/hidden/resultref/info/cnfmyn"));
- //
- // model.resetInstanceNode("/root/main/condition");
- // model.refresh();
- // }
- // }
- // if(grd_druginfo.mouseRow == 0){
- // grd_druginfo.explorerbar = "sortmove";
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // if( grd_druginfo.mouseCol == 4 && grd_druginfo.mouseRow <= grd_druginfo.rows && grd_druginfo.mouseRow > 0 && (grd_druginfo.rowStatus(grd_druginfo.mouseRow) == 1 || grd_druginfo.rowStatus(grd_druginfo.mouseRow) == 3)) {
- if( grd_druginfo.col == 4) {
- // alert("alarm");
- var iRow = grd_druginfo.row;
- var status = "-";
- if( !isNull(model.getValue("/root/main/druginfo/info[" + iRow + "]/drugcd")) && grd_druginfo.rowStatus(iRow) != 1 && grd_druginfo.rowStatus(iRow) != 3 ){
- var org_drugCd = model.getValue("/root/main/druginfo/info[" +iRow + "]/drugcd");
- model.setValue("/root/temp/reqdata/send/srchflag", "2");
- model.setValue("/root/temp/reqdata/send/srchcnts", org_drugCd);
- status = "U";
- }
-
- model.setValue("/root/temp/reqdata/send/receiveref", "/root/temp/getdata/drugcd"); //상단 약품코드에 값이 보이지 않게 하기 위해 다른 path 사용
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/reqdata/send/receiveref","/root/temp/receivedata/receiveref");
-
- if( !isNull(model.getValue("/root/temp/getdata/drugcd")) ){
- if(status == "U" && org_drugCd != model.getValue("/root/temp/getdata/drugcd") && model.getValue("/root/temp/getdata/drugcd") != ""){
- messageBox("해당 약품을 사용종료 한 후 새로 ", "C001");
- return;
-
- }else if(status == "U" && (org_drugCd == model.getValue("/root/temp/getdata/drugcd") || model.getValue("/root/temp/getdata/drugcd") == "")){
- return; //동일한 약품 검색 시 return
-
- }
- var drugcd = model.getValue("/root/temp/getdata/drugcd");
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/drugcd", drugcd);
- submit("TRASB01402");
-
- model.setValue("/root/main/druginfo/info[" +iRow + "]/drugcd", model.getValue("/root/hidden/resultref/info/drugcd"));
- model.setValue("/root/main/druginfo/info[" +iRow + "]/hngnm", model.getValue("/root/hidden/resultref/info/hngnm"));
- model.setValue("/root/main/druginfo/info[" +iRow + "]/spcldrugflag", model.getValue("/root/hidden/resultref/info/spcldrug"));
- model.setValue("/root/main/druginfo/info[" +iRow + "]/tpnyn", model.getValue("/root/hidden/resultref/info/tpnyn"));
- model.setValue("/root/main/druginfo/info[" +iRow + "]/restantimicyn", model.getValue("/root/hidden/resultref/info/restantimicyn"));
- model.setValue("/root/main/druginfo/info[" +iRow + "]/drugfromdd", model.getValue("/root/hidden/resultref/info/drugfromdd"));
- model.setValue("/root/main/druginfo/info[" +iRow + "]/drugtodd", model.getValue("/root/hidden/resultref/info/drugtodd"));
- model.setValue("/root/main/druginfo/info[" +iRow + "]/drugkind", model.getValue("/root/hidden/resultref/info/drugkind"));
- model.setValue("/root/main/druginfo/info[" +iRow + "]/cnfmyn", model.getValue("/root/hidden/resultref/info/cnfmyn"));
-
- model.resetInstanceNode("/root/main/condition");
- model.refresh();
- }
- }
- if(grd_druginfo.mouseRow == 0){
- grd_druginfo.explorerbar = "sortmove";
- }
- ]]>
- </script>
- </datagrid>
- <button id="importbutton3" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var dispNm = getTitle();
- var dispNm = cap_gridlist.attribute("text");
- var fileName = window.fileDialog("save", ",", false, dispNm, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_druginfo.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <caption id="cap_gridlist" class="tit_2" style="left:5px; top:55px; width:130px; height:13px; ">감염관리 약품정보</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|