123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?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>
- <grid>
- <item>
- <comcd/>
- <comexcd/>
- <comnm/>
- <dddunit/>
- <ddd/>
- <dddkg/>
- <dddchild/>
- <childdayno/>
- <childage/>
- <comlevel/>
- <drugcdcnt/>
- </item>
- </grid>
- <grid1>
- <druglist>
- <drugcd/>
- <drugnm/>
- </druglist>
- </grid1>
- </main>
- <send>
- <srchcomcd/>
- <srchcomnm/>
- <req>
- <data1/>
- </req>
- <code/>
- <name/>
- <druglistreq>
- <srchcomcd/>
- <srchcomexcd/>
- <srchcomnm/>
- </druglistreq>
- </send>
- <init/>
- <hidden>
- <count/>
- <item/>
- </hidden>
- <temp>
- <item/>
- </temp>
- </root>
- </instance>
- <submission id="TRADB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grid"/>
- <submission id="TXADB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
- <submission id="TRADB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/druglistreq" replace="instance" resultref="/root/main/grid1"/>
- </model>
- <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 권한 관리
- btn_save.disabled =! checkAuth("X"); // 저장
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;1,1288;" 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:106px; height:15px; ">성분코드관리</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:1194px; height:30px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button3" class="btn1_letter4" navindex="3" style="left:1105px; top:5px; width:80px; height:22px; ">
- <caption>성분조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TRADB00201");
- setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comcd"), false );
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:275px; top:5px; width:60px; height:17px; ">명칭</caption>
- <line id="line13" class="line_4" style="x1:1100px; y1:5px; x2:1100px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:5px; width:60px; height:17px; ">코드</caption>
- <input id="input1" ref="/root/send/srchcomnm" class="input_search" navindex="2" maxlength="100" style="left:335px; top:5px; width:580px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 명칭입력후 Enter시 성분조회 가능하도록 처리 2008-08-18
- if (event.keyCode == "13") {
- setInputNodeCurText();
- model.setValue( "/root/send/srchcomnm", model.getValue("/root/send/srchcomnm") );
- model.refresh();
- submit("TRADB00201");
- setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comcd"), false );
- }
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/srchcomcd" class="input_search" navindex="1" maxlength="7" style="left:80px; top:5px; width:155px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 코드입력후 Enter시 성분조회 가능하도록 처리 2008-08-18
- if (event.keyCode == "13") {
- setInputNodeCurText();
- model.setValue( "/root/send/srchcomcd", model.getValue("/root/send/srchcomcd").toUpperCase() );
- model.refresh();
- submit("TRADB00201");
- setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comcd"), false );
- }
- ]]>
- </script>
- </input>
- </group>
- <button id="button1" class="btn2_letter2" navindex="4" style="left:986px; top:40px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // grd_comlist.insertItem(datagrid1.row);
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_comlist.saveExcel(file);
- ]]>
- </script>
- </button>
- <button id="button50" class="btn2_letter3" navindex="6" style="left:1085px; top:40px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var grdrow = grd_comlist.row;
- model.copyNode("/root/hidden/item","/root/main/grid/item["+ grdrow +"]");
- grd_comlist.insertItem(grdrow);
- model.copyNode("/root/main/grid/item["+ grdrow +"]","/root/hidden/item");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" navindex="5" style="left:1030px; top:40px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_comlist.addRow();
- grd_comlist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" navindex="7" style="left:1140px; top:40px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_comlist.addStatus(grd_comlist.row,"delete");
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:6px; top:45px; width:95px; height:13px; ">성분코드정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:60px; x2:1194px; y2:60px; "/>
- <datagrid id="grd_comlist" nodeset="/root/main/grid/item" allowselection="true" backcoloralternate="#f0f0f0" caption="성분코드^확장코드^명칭^DDD단위^성인최대량^소아kg당^소아최대량^소아금기(일수)^소아연령금기^레벨^약품갯수" colsep="^" colwidth="143, 78, 371, 56, 83, 61, 74, 90, 80, 51, 66" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" navindex="8" style="left:0px; top:65px; width:1194px; height:676px; ">
- <col autonext="false" ref="comcd" type="input" maxlength="7" _chartype="upper" _key="true"/>
- <col autonext="false" ref="comexcd" type="input" maxlength="4" _key="true"/>
- <col autonext="false" ref="comnm" type="input" maxlength="33"/>
- <col autonext="false" ref="dddunit" type="input" maxlength="4"/>
- <col autonext="false" ref="ddd" type="input" format="######,####" maxlength="10"/>
- <col autonext="false" ref="dddkg" type="input" format="######,####" maxlength="10"/>
- <col autonext="false" ref="dddchild" type="input" format="######,####" maxlength="10"/>
- <col autonext="false" ref="childdayno" type="input" format="9999999999" maxlength="10"/>
- <col autonext="false" ref="childage" type="input" format="9999" maxlength="4"/>
- <col autonext="false" ref="comlevel" type="input" format="9999" maxlength="5"/>
- <col autonext="false" ref="drugcdcnt" format="9999" maxlength="5"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.copyNode("/root/main/data","/root/main/grid/item["+grd_comlist.row+"]");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_comlist.colref ("drugcdcnt") == grd_comlist.col ) {
- var row = grd_comlist.row;
- var comcd = model.getValue("/root/main/grid/item["+grd_comlist.row+"]/comcd");
- var comnm = model.getValue("/root/main/grid/item["+grd_comlist.row+"]/comnm");
- var comexcd = model.getValue("/root/main/grid/item["+grd_comlist.row+"]/comexcd");
- var drugcdcnt = model.getValue("/root/main/grid/item["+grd_comlist.row+"]/drugcdcnt");
-
- if (comcd == null || drugcdcnt == "" || drugcdcnt <= 0 ) return;
-
-
- model.setValue( "/root/send/druglistreq/srchcomcd", comcd ); //성분코드
- model.setValue( "/root/send/druglistreq/srchcomexcd", comexcd ); //확장코드
- model.setValue( "/root/send/druglistreq/srchcomnm", comnm ); //성분명칭
- //alert(model.getValue("/root/send/druglistreq/srchcomcd"));
- model.refresh();
- submit("TRADB00202"); // 성분코드에 등록된 약품코드조회
-
- switch1.visible = true ;
- }
- ]]>
- </script>
- </datagrid>
- <switch id="switch1" visibility="hidden" style="left:550px; top:165px; width:485px; height:240px; ">
- <case id="case1">
- <datagrid id="grd_druglist" nodeset="/root/main/grid1/druglist" visibility="visible" caption="약품코드^약품명" colsep="^" colwidth="117, 324" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:10px; top:40px; width:465px; height:165px; ">
- <col ref="drugcd"/>
- <col ref="drugnm"/>
- </datagrid>
- <button id="button" class="btn4_letter2" style="left:415px; top:210px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- switch1.visible = false;
-
- ]]>
- </script>
- </button>
- <caption id="caption4" ref="/root/send/druglistreq/srchcomcd" style="left:75px; top:5px; width:60px; height:30px; "/>
- <caption id="caption6" ref="/root/send/druglistreq/srchcomnm" style="left:195px; top:5px; width:275px; height:30px; "/>
- <caption id="caption9" class="cell_1" style="left:10px; top:10px; width:60px; height:23px; vertical-align:middle; ">성분코드</caption>
- <caption id="caption3" class="cell_1" style="left:145px; top:10px; width:45px; height:23px; vertical-align:middle; ">명 칭</caption>
- </case>
- </switch>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" navindex="9" style="left:1128px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var update = getGridUpdateData(grd_comlist);
- // var update = model.getValue("/root/send/req/data");
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue( "/root/send/req/data1", grd_comlist.getUpdateData());
- submit("TXADB00201");
- submit("TRADB00201");
- setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comcd"), false );
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- checkKeyColumn("grd_comlist");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|