123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?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>성분코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <item>
- <tpndrugcd/>
- <drugcd/>
- <engnm/>
- <amount/>
- </item>
- </grid>
- <grid1>
- <druglist>
- <drugcd/>
- <drugnm/>
- </druglist>
- </grid1>
- </main>
- <send>
- <srchtpndrugcd/>
- <srchcomnm/>
- <req>
- <data1/>
- </req>
- <code/>
- <name/>
- <druglistreq>
- <srchcomcd/>
- <srchcomexcd/>
- <srchcomnm/>
- </druglistreq>
- </send>
- <init/>
- <hidden>
- <count/>
- <item/>
- </hidden>
- <temp>
- <item/>
- <receivedata>
- <drugcd/>
- <receiveref>/root/temp/receivedata/drugcd</receiveref>
- </receivedata>
- </temp>
- </root>
- </instance>
- <submission id="TRADB02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grid"/>
- <submission id="TXADB02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
- </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[
-
- submit("TRADB02902");
-
- ]]>
- </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; ">TPN 수가요청 목록 관리</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_letter2" navindex="3" style="left:1115px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TRADB02902");
- //setTree(grd_comlist, grd_comlist.colRef("comlevel"),grd_comlist.colRef("comcd"), false );
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" visibility="hidden" 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" visibility="hidden" 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/srchtpndrugcd" class="input_search" navindex="1" 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/srchtpndrugcd", model.getValue("/root/send/srchtpndrugcd").toUpperCase() );
- model.refresh();
- submit("TRADB02902");
- }
- ]]>
- </script>
- </input>
- </group>
- <button id="button1" class="btn2_letter2" navindex="4" visibility="hidden" 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" visibility="hidden" style="left:925px; 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:1080px; 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="TPN 코드^약품코드^약품명^분량" colsep="^" colwidth="173, 127, 371, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" navindex="8" style="left:0px; top:65px; width:1194px; height:676px; ">
- <col ref="tpndrugcd" type="inputbutton"/>
- <col ref="drugcd" type="inputbutton"/>
- <col autonext="false" ref="engnm" type="input"/>
- <col autonext="false" ref="amount" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var drugcode = "";
- var tempcol = "";
-
- tempcol = grd_comlist.col;
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
-
- if(tempcol == "1") {
- model.makeValue("/root/main/grid/item["+(grd_comlist.row)+"]/tpndrugcd", model.getValue("/root/temp/receivedata/drugcd"));
- //drugcode = model.getValue("/root/main/grid/item["+(grd_comlist.row)+"]/tpndrugcd");
- } else if(tempcol == "2") {
- model.makeValue("/root/main/grid/item["+(grd_comlist.row)+"]/drugcd", model.getValue("/root/temp/receivedata/drugcd"));
- //drugcode = model.getValue("/root/main/grid/item["+(grd_comlist.row)+"]/drugcd");
- }
-
- ]]>
- </script>
- </datagrid>
- </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("TXADB02902");
- submit("TRADB02902");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- checkKeyColumn("grd_comlist");
-
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:25px; top:0px; width:670px; height:25px; ">* 수정은 분량만 가능합니다. 약품코드나 TPN 코드 수정 시에는 삭제 후 다시 입력해 주십시오.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|