123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <?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>
- <limitdruglist>
- <item>
- <drugcd/>
- <drugnm/>
- <orddeptcd/>
- <orddeptnm/>
- <fromdd/>
- <todd/>
- <lastupdtdt/>
- <lastupdtrid/>
- <olddrugcd/>
- <oldorddeptcd/>
- <oldtodd/>
- <alertmsg/>
- <instcd/>
- </item>
- </limitdruglist>
- </main>
- <send>
- <srchdd/>
- <srchdrugcd/>
- <req>
- <data1/>
- </req>
- </send>
- <init>
- <drugitem>
- <drugcd/>
- <drugnm/>
- </drugitem>
- </init>
- <hidden>
- <count/>
- <item>
- <drugcd/>
- <drugnm/>
- <orddeptcd/>
- <fromdd/>
- <todd/>
- <lastupdtdt/>
- <lastupdtrid/>
- </item>
- </hidden>
- <temp>
- <receivedata>
- <receiveref>/root/temp/receivedata/drugcd</receiveref>
- <drugcd/>
- </receivedata>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <submission id="TRADB02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/limitdruglist"/>
- <submission id="TRADB02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/drugitem"/>
- <submission id="TXADB02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 권한 관리
- button2.disabled =! checkAuth("X"); // 저장
-
- btn_sea.dispatch("DOMActivate");
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,767;" 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:142px; height:14px; ">제한약사용부서관리</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/req/data1", grid_limitdruglist.getUpdateData());
- if(submit("TXADB02801")) {
- model.setValue("/root/send/srchdrugcd",model.getValue("/root/send/srchdrugcd"));
- submit("TRADB02801");
- model.setValue("/root/send/srchdrugcd","");
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:720px; ">
- <group id="group2" style="left:0px; top:5px; width:1194px; height:30px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:29px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:6px; width:91px; height:17px; ">기준일자 :</caption>
- <caption id="caption4" class="search_name" style="left:210px; top:6px; width:91px; height:17px; ">약품코드 :</caption>
- <line id="line1" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:25px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="input1" ref="/root/send/srchdd" class="input_s_essential" inputtype="date" style="left:95px; top:6px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/send/srchdrugcd" class="input_search" style="left:300px; top:6px; width:100px; height:19px; "/>
- <button id="button61" class="icon_search" style="left:409px; top:6px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
- drugcode = model.getValue("/root/temp/receivedata/drugcd");
-
- if (drugcode != "") {
- model.setValue("/root/send/srchdrugcd",drugcode);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // model.setValue("/root/send/srchdrugcd",model.getValue("/root/send/srchdrugcd_v"));
- submit("TRADB02801");
- // model.setValue("/root/send/srchdrugcd","");
- ]]>
- </script>
- </button>
- </group>
- <button id="button51" class="btn2_letter2" style="left:1150px; top:45px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:985px; top:45px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grid_limitdruglist.addItem();
- model.setValue("/root/main/limitdruglist/item["+ grid_limitdruglist.row +"]/fromdd", getCurrentDate());
- model.setValue("/root/main/limitdruglist/item["+ grid_limitdruglist.row +"]/todd", "99991231");
- grid_limitdruglist.bottomRow = grid_limitdruglist.row;
- grid_limitdruglist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdcopy" class="btn2_letter3" style="left:1040px; top:45px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grdrow = grid_limitdruglist.row;
- var iCurRow = 0;
- model.copyNode("/root/hidden/item","/root/main/limitdruglist/item["+ grdrow +"]");
- grid_limitdruglist.insertItem(grdrow, "below", true);
- iCurRow = grid_limitdruglist.row;
- model.copyNode("/root/main/limitdruglist/item["+ iCurRow +"]","/root/hidden/item");
- model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/orddeptcd", "");
- model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/orddeptnm", "");
- model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/lastupdtdt", "");
- model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/lastupdtrid", "");
- model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/olddrugcd", "");
- model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/oldorddeptcd", "");
- model.setValue("/root/main/limitdruglist/item["+ iCurRow +"]/oldtodd", "");
-
- grid_limitdruglist.bottomRow = iCurRow;
- grid_limitdruglist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1095px; top:45px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grid_limitdruglist.addStatus(grid_limitdruglist.row,"delete");
- ]]>
- </script>
- </button>
- <datagrid id="grid_limitdruglist" nodeset="/root/main/limitdruglist/item" caption="약품코드^약품명^처방부서^처방부서명^메세지^시작일자^종료일자^최종수정일시^최종수정자^olddrugcd^oldorddeptcd^oldtodd^instcd" colsep="^" colwidth="106, 260, 90, 100, 200, 90, 90, 135, 75, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:65px; width:1194px; height:650px; ">
- <col ref="drugcd" type="inputbutton"/>
- <col ref="drugnm" type="input"/>
- <col ref="orddeptcd" type="inputbutton"/>
- <col ref="orddeptnm"/>
- <col ref="alertmsg" type="input"/>
- <col ref="fromdd" type="inputdate"/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="olddrugcd" visibility="hidden"/>
- <col ref="oldorddeptcd" visibility="hidden"/>
- <col ref="oldtodd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grid_limitdruglist.colRef("drugcd") == grid_limitdruglist.col){
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
- drugcode = model.getValue("/root/temp/receivedata/drugcd");
- model.setValue("/root/main/limitdruglist/item["+grid_limitdruglist.row+"]/drugcd",drugcode);
- grid_limitdruglist.addStatus(grid_limitdruglist.row,"update"); //강제 상태변경
-
- if (drugcode != "") {
- model.setValue("/root/send/srchdrugcd",drugcode);
- submit("TRADB02604",false);
- model.setValue("/root/main/limitdruglist/item["+grid_limitdruglist.row+"]/drugnm",model.getValue("/root/init/drugitem/drugnm"));
- model.setValue("/root/send/srchdrugcd","");
- model.refresh();
- }
- } else if ( grid_limitdruglist.colRef("orddeptcd") == grid_limitdruglist.col){
- //setParameter("instcd","012");
- //modal("SPZSD00200");
- zbcfOpenInstDeptCodeList("deptnm","", "/root/main/limitdruglist/item["+grid_limitdruglist.row+"]/orddeptcd", "/root/main/limitdruglist/item["+grid_limitdruglist.row+"]/orddeptnm","orduseyn");
- grid_limitdruglist.addStatus(grid_limitdruglist.row,"update"); //강제 상태변경
- }
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|