123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- <?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>
- <hbookinfo>
- <hbookdetlinfo>
- <drugnm/>
- <drugcd/>
- <cost/>
- <comnm/>
- <mthdvolsmm/>
- <efcysmm/>
- <seffcsmm/>
- <etc/>
- <refcnts/>
- </hbookdetlinfo>
- </hbookinfo>
- <medinfo>
- <meddesc>
- <drugcd/>
- <instcd/>
- <drugnm/>
- <comnm/>
- <statcnts/>
- <efcycnts/>
- <httmed/>
- <sdeffect/>
- <caution/>
- <etc/>
- <exptype/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </meddesc>
- </medinfo>
- </main>
- <send>
- <srchinfo>
- <srchflag>1</srchflag>
- <srchhbookseq/>
- <srchdrugcds/>
- <srchefcycd1/>
- <srchefcycd2/>
- <srchefcycd3/>
- <srchefcycd4/>
- <srchefcycd5/>
- <srchall/>
- <srchefcycd/>
- <srchefcylevel/>
- <srchtodd/>
- </srchinfo>
- </send>
- <init>
- <efcysrchinfo>
- <efcyinfo1>
- </efcyinfo1>
- <efcyinfo2/>
- <efcyinfo3/>
- <efcyinfo4/>
- <efcyinfo5/>
- </efcysrchinfo>
- </init>
- <hidden>
- </hidden>
- <temp>
- <ret/>
- </temp>
- </root>
- </instance>
- <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" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/srchinfo/srchdrugcds", opener.javascript.getParameter("drugcd"));
- model.setValue("/root/send/srchinfo/srchtodd", opener.javascript.getParameter("todd"));
- model.refresh();
-
- fSetEfcyCode("S", "%", 1 ); // 조회용 효능분류
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var picRow = 0; // 사진인덱스
-
- function fSetEfcyCode( typeflag, efcycd, efcylevel ){
- var node = null;
- var ipt_node = null;
-
- if (typeflag == "S") { // 조회
- node = "/root/init/efcysrchinfo";
- ipt_node = "/root/send/srchinfo/srch";
- } else if (typeflag == "I") { // 입력
-
- }
-
- model.setValue("/root/send/srchinfo/srchefcycd" ,efcycd);
- model.setValue("/root/send/srchinfo/srchefcylevel",efcylevel);
- var success = submit("TRADB01801","false");
-
- if (success) {
- model.copyNode(node+"/efcyinfo"+efcylevel , "/root/init/efcybaseinfo");
-
- if (efcylevel == 1) {
- model.removenode(node+"/efcyinfo2/item");
- model.removenode(node+"/efcyinfo3/item");
- model.removenode(node+"/efcyinfo4/item");
- model.removenode(node+"/efcyinfo5/item");
- model.setValue(ipt_node+"efcycd2","");
- model.setValue(ipt_node+"efcycd3","");
- model.setValue(ipt_node+"efcycd4","");
- model.setValue(ipt_node+"efcycd5","");
- } else if (efcylevel == 2) {
- model.removenode(node+"/efcyinfo3/item");
- model.removenode(node+"/efcyinfo4/item");
- model.removenode(node+"/efcyinfo5/item");
- model.setValue(ipt_node+"efcycd3","");
- model.setValue(ipt_node+"efcycd4","");
- model.setValue(ipt_node+"efcycd5","");
- } else if (efcylevel == 3) {
- model.removenode(node+"/efcyinfo4/item");
- model.removenode(node+"/efcyinfo5/item");
- model.setValue(ipt_node+"efcycd4","");
- model.setValue(ipt_node+"efcycd5","");
- } else if (efcylevel == 4) {
- model.removenode(node+"/efcyinfo5/item");
- model.setValue(ipt_node+"efcycd5","");
- }
- }
- }
-
- function fView(){
- var srchefcycd ="";
- var srchdrugcd = "";
- var srchflag = model.getValue("/root/send/srchinfo/srchflag");
- var srchefcycd1 = model.getValue("/root/send/srchinfo/srchefcycd1");
- var srchefcycd2 = model.getValue("/root/send/srchinfo/srchefcycd2");
- var srchefcycd3 = model.getValue("/root/send/srchinfo/srchefcycd3");
- var srchefcycd4 = model.getValue("/root/send/srchinfo/srchefcycd4");
- var srchefcycd5 = model.getValue("/root/send/srchinfo/srchefcycd5");
- var srchall = model.getValue("/root/send/srchinfo/srchall");
-
- if(srchflag =="2") {
- srchdrugcd = model.getValue("/root/send/srchinfo/srchdrugcds").toUpperCase();
- model.setValue("/root/send/srchinfo/srchdrugcds", srchdrugcd);
- } else if( srchflag =="3" ){
- if (srchefcycd5 != "") {
- srchefcycd = srchefcycd5;
- } else {
- if (srchefcycd4 != "") {
- srchefcycd = srchefcycd4;
- } else {
- if (srchefcycd3 != "") {
- srchefcycd = srchefcycd3;
- } else {
- if (srchefcycd2!= "") {
- srchefcycd = srchefcycd2;
- } else {
- if (srchefcycd1 != "") {
- srchefcycd = srchefcycd1;
- }
- }
- }
- }
- }
-
- if ((srchefcycd == null || srchefcycd == "") && srchall != "Y") {
- messageBox("효능코드를","C002");
- return;
- }
- }
-
- model.setValue("/root/send/srchinfo/srchefcycd",srchefcycd);
- submit("TRADB62801");
- }
- ]]>
- </script>
- <submission id="TRADB62701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/hbookinfo"/>
- <submission id="TRADB01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/init/efcybaseinfo"/>
- <submission id="TRADB62801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/medinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="500" pageheight="320" guideline="1,1195;1,0;1,1327;2,783;2,756;1,0;1,571;2,234;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <datagrid id="grd_param" nodeset="/root/main/medinfo/meddesc" visibility="hidden" caption="약품코드^기관코드^약품명^성분명^성상^효능효과^복약설명^부작용^주의사항^기타^복약구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:35px; width:395px; height:180px; ">
- <col ref="drugcd"/>
- <col ref="instcd"/>
- <col ref="drugnm"/>
- <col ref="comnm"/>
- <col ref="statcnts"/>
- <col ref="efcycnts"/>
- <col ref="httmed"/>
- <col ref="sdeffect"/>
- <col ref="caution"/>
- <col ref="etc"/>
- <col ref="exptype"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstdt"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- </datagrid>
- <group id="group1" style="left:0px; top:0px; width:400px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:380px; height:14px; ">복약기준자료출력</caption>
- </group>
- <button id="btn_prt" class="btn6_letter2" style="left:420px; top:215px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fView();
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_param.saveExcel(file);
-
- ]]>
- </script>
- </button>
- <button id="button" class="btn4_letter2" style="left:420px; top:245px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn6_letter2" _auth="X" style="left:420px; top:185px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fView();
- exeReportPreview("RPADB03201", "XMLSTR", "", "", "true","","","","","true");
- ]]>
- </script>
- </button>
- <select1 id="radio2" ref="/root/send/srchinfo/srchflag" class="radio_search" overflow="visible" appearance="full" style="left:15px; top:25px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>선택한 약만</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/send/srchinfo/srchflag" class="radio_search" overflow="visible" appearance="full" style="left:15px; top:60px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드별</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio3" ref="/root/send/srchinfo/srchflag" class="radio_search" overflow="visible" appearance="full" style="left:15px; top:150px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>효능별</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_srchefcy4" ref="/root/send/srchinfo/srchefcycd4" appearance="minimal" style="left:115px; top:222px; width:280px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo/efcyinfo4/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchefcycd4= model.getValue("/root/send/srchinfo/srchefcycd4");
- fSetEfcyCode("S",srchefcycd4+"%", 5);
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcy5" ref="/root/send/srchinfo/srchefcycd5" appearance="minimal" style="left:115px; top:246px; width:280px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo/efcyinfo5/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_srchefcy1" ref="/root/send/srchinfo/srchefcycd1" appearance="minimal" style="left:115px; top:150px; width:280px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo/efcyinfo1/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchefcycd1= model.getValue("/root/send/srchinfo/srchefcycd1");
- fSetEfcyCode( "S",srchefcycd1+"%", 2 );
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcy2" ref="/root/send/srchinfo/srchefcycd2" appearance="minimal" style="left:115px; top:174px; width:280px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo/efcyinfo2/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchefcycd2= model.getValue("/root/send/srchinfo/srchefcycd2");
- fSetEfcyCode( "S",srchefcycd2+"%", 3 );
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchefcy3" ref="/root/send/srchinfo/srchefcycd3" appearance="minimal" style="left:115px; top:198px; width:280px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/efcysrchinfo/efcyinfo3/item">
- <label ref="efcynm"/>
- <value ref="efcycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchefcycd3= model.getValue("/root/send/srchinfo/srchefcycd3");
- fSetEfcyCode( "S",srchefcycd3+"%", 4 );
- model.refresh();
- ]]>
- </script>
- </select1>
- <select id="chk_all" ref="/root/send/srchinfo/srchall" class="checkbox_search" overflow="visible" appearance="full" style="left:225px; top:269px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>카테고리 모두 선택</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <input id="input1" ref="/root/send/srchinfo/srchdrugcds" class="input_search" style="left:115px; top:115px; width:280px; height:19px; "/>
- <caption id="caption1" style="left:115px; top:55px; width:208px; height:60px; ">
- <![CDATA[원하는 코드를 입력하여 주십시오.
- 단, 코드와 코드 사이는 쉼표(,)로 구분
- 예)DAAP300, DBESE]]>
- </caption>
- </xhtml:body>
- </xhtml:html>
|