123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- <?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>
- <mthdlist>
- <item>
- <mthdkind/>
- <mthdflag/>
- <mthdcd/>
- <abbrnm/>
- <mthdcnts1/>
- <mthdcnts2/>
- <mthdcnts3/>
- <mthdcnts4/>
- <dayno/>
- <cntpatt/>
- <basecnt/>
- <outprntseq/>
- <mthdengnm/>
- <basemthdyn/>
- <mealflag/>
- <lblprntyn/>
- <adminpath/>
- <drdirecyn/>
- </item>
- </mthdlist>
- </main>
- <send>
- <srchmthdkind>N</srchmthdkind>
- <srchmthdcd/>
- <req>
- <data1>
- </data1>
- </req>
- <srchbasemthdyn/>
- <srchbasecnt>-</srchbasecnt>
- </send>
- <init>
- <comboitem>
- <mthdkind>
- <A0017>
- <cdid/>
- <cdnm/>
- </A0017>
- </mthdkind>
- </comboitem>
- </init>
- <hidden>
- <count/>
- <item>
- <mthdkind/>
- <mthdflag/>
- <mthdcd/>
- <abbrnm/>
- <mthdcnts/>
- <cntpatt/>
- <basecnt/>
- <mealflag/>
- <outprntseq/>
- <lblprntyn/>
- <adminpath/>
- <drdirecyn/>
- </item>
- <rslt>
- <msg/>
- </rslt>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRADB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mthdlist"/>
- <submission id="TXADB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/rslt/msg"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 권한 관리
- button1.disabled =! checkAuth("X"); // 저장
-
- zbcfGetCodeList( new Array("A0017"), new Array("/root/init/comboitem/mthdkind") );
- model.refresh();
-
- //model.setValue("/root/send/srchmthdcd",model.getValue("/root/send/srchmthdcd")+"%");
- submit("TRADB00401");
- model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </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"/>
- </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; ">용법관리</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:1080px; y1:10px; x2:1080px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:290px; top:13px; width:86px; height:17px; ">용법코드 :</caption>
- <caption id="caption3" class="search_name" style="left:15px; top:13px; width:86px; height:17px; ">용법종류 :</caption>
- <select1 id="cmb_srchmthdflag" ref="/root/send/srchmthdkind" class="combo_search" appearance="minimal" style="left:105px; top:13px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comboitem/mthdkind/A0017">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADB00401");
- model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </select1>
- <input id="ipt_srchmthdcd" ref="/root/send/srchmthdcd" class="input_search" style="left:380px; top:13px; width:190px; height:19px; "/>
- <button id="btn_seamthd" class="btn1_letter4" style="left:1095px; top:10px; width:80px; height:22px; ">
- <caption>용법조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.setValue("/root/send/srchmthdcd",model.getValue("/root/send/srchmthdcd")+"%");
- submit("TRADB00401");
- model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </button>
- <select id="checkbox2" ref="/root/send/srchbasemthdyn" class="checkbox_search" overflow="visible" appearance="full" style="left:699px; top:13px; width:30px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADB00401");
- model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </select>
- <select1 id="combo1" ref="/root/send/srchbasecnt" class="combo_search" appearance="minimal" style="left:795px; top:13px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRADB00401");
- model.setValue("/root/send/srchmthdcd","");
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:610px; top:13px; width:86px; height:17px; ">기본용법 :</caption>
- <caption id="caption5" class="search_name" style="left:735px; top:13px; width:70px; height:17px; ">횟수 :</caption>
- </group>
- <button id="btn_grddel" class="btn2_letter3" style="left:1095px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_mthdlist.addStatus(grd_mthdlist.row,"delete");
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:985px; top:55px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_mthdlist.addItem();
- model.setValue("/root/main/mthdlist/item[" + grd_mthdlist.row+"]/mthdkind",model.getValue("/root/send/srchmthdkind"));
- model.setValue("/root/main/mthdlist/item[" + grd_mthdlist.row+"]/mthdflag","1");
- ]]>
- </script>
- </button>
- <button id="btn_grdcopy" class="btn2_letter3" style="left:1040px; top:55px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grdrow = grd_mthdlist.row;
- model.copyNode("/root/hidden/item","/root/main/mthdlist/item["+ grdrow +"]");
- grd_mthdlist.insertItem(grdrow);
- model.copyNode("/root/main/mthdlist/item["+ grdrow +"]","/root/hidden/item");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excsave" class="btn2_letter2" style="left:1150px; top:55px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_mthdlist.saveExcel(file);
- ]]>
- </script>
- </button>
- <datagrid id="grd_mthdlist" nodeset="/root/main/mthdlist/item" backcoloralternate="#f0f0f0" caption="용법종류^추가구분^용법코드^용법약어명^용법명^용법명^용법명^용법명^일수^횟수패턴^횟수^순서^영문 용법명^기본용법여부^식전후^수가팀^투여경로^의사지시" colsep="^" colwidth="97, 67, 72, 157, 72, 189, 101, 120, 35, 57, 47, 51, 190, 83, 57, 51, 71, 56" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:76px; width:1193px; height:664px; ">
- <col key="true" ref="mthdkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/comboitem/mthdkind/A0017">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="mthdflag" type="combo">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>추가</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col autonext="false" imemode="alpha" ref="mthdcd" type="input" maxlength="11" _key="true"/>
- <col autonext="false" imemode="alpha" ref="abbrnm" type="input" maxlength="40" style="text-align:left; "/>
- <col autonext="false" ref="mthdcnts1" type="input" maxlength="33"/>
- <col autonext="false" ref="mthdcnts2" type="input" maxlength="33" style="text-align:left; "/>
- <col autonext="false" ref="mthdcnts3" type="input" maxlength="33"/>
- <col autonext="false" ref="mthdcnts4" type="input" maxlength="33"/>
- <col autonext="false" ref="dayno" type="input" format="###" maxlength="3"/>
- <col autonext="false" ref="cntpatt" type="input" format="99999" maxlength="5"/>
- <col autonext="false" ref="basecnt" type="input" format="99999" maxlength="5"/>
- <col autonext="false" ref="outprntseq" type="input" format="999" maxlength="3"/>
- <col autonext="false" ref="mthdengnm" type="input" maxlength="450"/>
- <col autonext="false" checkvalue="Y,N" ref="basemthdyn" type="checkbox"/>
- <col autonext="false" ref="mealflag" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>0</value>
- </item>
- <item>
- <label>식전</label>
- <value>1</value>
- </item>
- <item>
- <label>식후</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col autonext="false" checkvalue="Y,N" ref="lblprntyn" type="checkbox"/>
- <col autonext="false" ref="adminpath" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>0</value>
- </item>
- <item>
- <label>투약</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col autonext="false" checkvalue="Y,N" ref="drdirecyn" type="checkbox"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var s="";
- var cnt=0;
- s = model.getValue("/root/main/mthdlist/item["+grd_mthdlist.row+"]/cntpatt");
- if (s.substring( 4, 5 )!="1" ){ // 5번자리는 시간마다로 횟수를 수동 지정
- for (var i = 0 ; i<4 ; i++){
- if (s.substring( i, i+1)=="1" ){
- cnt=cnt+1;
- }
- }
- model.setValue("/root/main/mthdlist/item["+grd_mthdlist.row+"]/basecnt",cnt);
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:0px; top:60px; width:99px; height:14px; ">용법정보</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button1" class="btn4_letter2" style="left:1135px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("용법코드를","Q002")==6){
- model.setValue("/root/send/req/data1", grd_mthdlist.getUpdateData());
- submit("TXADB00401");
- submit("TRADB00401");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- checkKeyColumn("grd_mthdlist");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|