SPADB62800_복약기준자료출력.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>복약기준자료출력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <hbookinfo>
  11. <hbookdetlinfo>
  12. <drugnm/>
  13. <drugcd/>
  14. <cost/>
  15. <comnm/>
  16. <mthdvolsmm/>
  17. <efcysmm/>
  18. <seffcsmm/>
  19. <etc/>
  20. <refcnts/>
  21. </hbookdetlinfo>
  22. </hbookinfo>
  23. <medinfo>
  24. <meddesc>
  25. <drugcd/>
  26. <instcd/>
  27. <drugnm/>
  28. <comnm/>
  29. <statcnts/>
  30. <efcycnts/>
  31. <httmed/>
  32. <sdeffect/>
  33. <caution/>
  34. <etc/>
  35. <exptype/>
  36. <fstrgstrid/>
  37. <fstrgstdt/>
  38. <lastupdtrid/>
  39. <lastupdtdt/>
  40. </meddesc>
  41. </medinfo>
  42. </main>
  43. <send>
  44. <srchinfo>
  45. <srchflag>1</srchflag>
  46. <srchhbookseq/>
  47. <srchdrugcds/>
  48. <srchefcycd1/>
  49. <srchefcycd2/>
  50. <srchefcycd3/>
  51. <srchefcycd4/>
  52. <srchefcycd5/>
  53. <srchall/>
  54. <srchefcycd/>
  55. <srchefcylevel/>
  56. <srchtodd/>
  57. </srchinfo>
  58. </send>
  59. <init>
  60. <efcysrchinfo>
  61. <efcyinfo1>
  62. </efcyinfo1>
  63. <efcyinfo2/>
  64. <efcyinfo3/>
  65. <efcyinfo4/>
  66. <efcyinfo5/>
  67. </efcysrchinfo>
  68. </init>
  69. <hidden>
  70. </hidden>
  71. <temp>
  72. <ret/>
  73. </temp>
  74. </root>
  75. </instance>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. model.setValue("/root/send/srchinfo/srchdrugcds", opener.javascript.getParameter("drugcd"));
  83. model.setValue("/root/send/srchinfo/srchtodd", opener.javascript.getParameter("todd"));
  84. model.refresh();
  85. fSetEfcyCode("S", "%", 1 ); // 조회용 효능분류
  86. model.refresh();
  87. ]]>
  88. </script>
  89. <script type="javascript">
  90. <![CDATA[
  91. var picRow = 0; // 사진인덱스
  92. function fSetEfcyCode( typeflag, efcycd, efcylevel ){
  93. var node = null;
  94. var ipt_node = null;
  95. if (typeflag == "S") { // 조회
  96. node = "/root/init/efcysrchinfo";
  97. ipt_node = "/root/send/srchinfo/srch";
  98. } else if (typeflag == "I") { // 입력
  99. }
  100. model.setValue("/root/send/srchinfo/srchefcycd" ,efcycd);
  101. model.setValue("/root/send/srchinfo/srchefcylevel",efcylevel);
  102. var success = submit("TRADB01801","false");
  103. if (success) {
  104. model.copyNode(node+"/efcyinfo"+efcylevel , "/root/init/efcybaseinfo");
  105. if (efcylevel == 1) {
  106. model.removenode(node+"/efcyinfo2/item");
  107. model.removenode(node+"/efcyinfo3/item");
  108. model.removenode(node+"/efcyinfo4/item");
  109. model.removenode(node+"/efcyinfo5/item");
  110. model.setValue(ipt_node+"efcycd2","");
  111. model.setValue(ipt_node+"efcycd3","");
  112. model.setValue(ipt_node+"efcycd4","");
  113. model.setValue(ipt_node+"efcycd5","");
  114. } else if (efcylevel == 2) {
  115. model.removenode(node+"/efcyinfo3/item");
  116. model.removenode(node+"/efcyinfo4/item");
  117. model.removenode(node+"/efcyinfo5/item");
  118. model.setValue(ipt_node+"efcycd3","");
  119. model.setValue(ipt_node+"efcycd4","");
  120. model.setValue(ipt_node+"efcycd5","");
  121. } else if (efcylevel == 3) {
  122. model.removenode(node+"/efcyinfo4/item");
  123. model.removenode(node+"/efcyinfo5/item");
  124. model.setValue(ipt_node+"efcycd4","");
  125. model.setValue(ipt_node+"efcycd5","");
  126. } else if (efcylevel == 4) {
  127. model.removenode(node+"/efcyinfo5/item");
  128. model.setValue(ipt_node+"efcycd5","");
  129. }
  130. }
  131. }
  132. function fView(){
  133. var srchefcycd ="";
  134. var srchdrugcd = "";
  135. var srchflag = model.getValue("/root/send/srchinfo/srchflag");
  136. var srchefcycd1 = model.getValue("/root/send/srchinfo/srchefcycd1");
  137. var srchefcycd2 = model.getValue("/root/send/srchinfo/srchefcycd2");
  138. var srchefcycd3 = model.getValue("/root/send/srchinfo/srchefcycd3");
  139. var srchefcycd4 = model.getValue("/root/send/srchinfo/srchefcycd4");
  140. var srchefcycd5 = model.getValue("/root/send/srchinfo/srchefcycd5");
  141. var srchall = model.getValue("/root/send/srchinfo/srchall");
  142. if(srchflag =="2") {
  143. srchdrugcd = model.getValue("/root/send/srchinfo/srchdrugcds").toUpperCase();
  144. model.setValue("/root/send/srchinfo/srchdrugcds", srchdrugcd);
  145. } else if( srchflag =="3" ){
  146. if (srchefcycd5 != "") {
  147. srchefcycd = srchefcycd5;
  148. } else {
  149. if (srchefcycd4 != "") {
  150. srchefcycd = srchefcycd4;
  151. } else {
  152. if (srchefcycd3 != "") {
  153. srchefcycd = srchefcycd3;
  154. } else {
  155. if (srchefcycd2!= "") {
  156. srchefcycd = srchefcycd2;
  157. } else {
  158. if (srchefcycd1 != "") {
  159. srchefcycd = srchefcycd1;
  160. }
  161. }
  162. }
  163. }
  164. }
  165. if ((srchefcycd == null || srchefcycd == "") && srchall != "Y") {
  166. messageBox("효능코드를","C002");
  167. return;
  168. }
  169. }
  170. model.setValue("/root/send/srchinfo/srchefcycd",srchefcycd);
  171. submit("TRADB62801");
  172. }
  173. ]]>
  174. </script>
  175. <submission id="TRADB62701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/hbookinfo"/>
  176. <submission id="TRADB01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/init/efcybaseinfo"/>
  177. <submission id="TRADB62801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/medinfo"/>
  178. </model>
  179. </xhtml:head>
  180. <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; ">
  181. <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; ">
  182. <col ref="drugcd"/>
  183. <col ref="instcd"/>
  184. <col ref="drugnm"/>
  185. <col ref="comnm"/>
  186. <col ref="statcnts"/>
  187. <col ref="efcycnts"/>
  188. <col ref="httmed"/>
  189. <col ref="sdeffect"/>
  190. <col ref="caution"/>
  191. <col ref="etc"/>
  192. <col ref="exptype"/>
  193. <col ref="fstrgstrid"/>
  194. <col ref="fstrgstdt"/>
  195. <col ref="lastupdtrid"/>
  196. <col ref="lastupdtdt"/>
  197. </datagrid>
  198. <group id="group1" style="left:0px; top:0px; width:400px; height:13px; ">
  199. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:380px; height:14px; ">복약기준자료출력</caption>
  200. </group>
  201. <button id="btn_prt" class="btn6_letter2" style="left:420px; top:215px; width:56px; height:22px; ">
  202. <caption>엑셀</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. fView();
  206. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  207. grd_param.saveExcel(file);
  208. ]]>
  209. </script>
  210. </button>
  211. <button id="button" class="btn4_letter2" style="left:420px; top:245px; width:56px; height:22px; ">
  212. <caption>닫기</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. window.close();
  216. ]]>
  217. </script>
  218. </button>
  219. <button id="button1" class="btn6_letter2" _auth="X" style="left:420px; top:185px; width:56px; height:22px; ">
  220. <caption>출력</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. fView();
  224. exeReportPreview("RPADB03201", "XMLSTR", "", "", "true","","","","","true");
  225. ]]>
  226. </script>
  227. </button>
  228. <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; ">
  229. <choices>
  230. <item>
  231. <label>선택한 약만</label>
  232. <value>1</value>
  233. </item>
  234. </choices>
  235. </select1>
  236. <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; ">
  237. <choices>
  238. <item>
  239. <label>코드별</label>
  240. <value>2</value>
  241. </item>
  242. </choices>
  243. </select1>
  244. <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; ">
  245. <choices>
  246. <item>
  247. <label>효능별</label>
  248. <value>3</value>
  249. </item>
  250. </choices>
  251. </select1>
  252. <select1 id="cmb_srchefcy4" ref="/root/send/srchinfo/srchefcycd4" appearance="minimal" style="left:115px; top:222px; width:280px; height:19px; ">
  253. <choices>
  254. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo4/item">
  255. <label ref="efcynm"/>
  256. <value ref="efcycd"/>
  257. </itemset>
  258. </choices>
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. var srchefcycd4= model.getValue("/root/send/srchinfo/srchefcycd4");
  262. fSetEfcyCode("S",srchefcycd4+"%", 5);
  263. model.refresh();
  264. ]]>
  265. </script>
  266. </select1>
  267. <select1 id="cmb_srchefcy5" ref="/root/send/srchinfo/srchefcycd5" appearance="minimal" style="left:115px; top:246px; width:280px; height:19px; ">
  268. <choices>
  269. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo5/item">
  270. <label ref="efcynm"/>
  271. <value ref="efcycd"/>
  272. </itemset>
  273. </choices>
  274. </select1>
  275. <select1 id="cmb_srchefcy1" ref="/root/send/srchinfo/srchefcycd1" appearance="minimal" style="left:115px; top:150px; width:280px; height:19px; ">
  276. <choices>
  277. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo1/item">
  278. <label ref="efcynm"/>
  279. <value ref="efcycd"/>
  280. </itemset>
  281. </choices>
  282. <script type="javascript" ev:event="xforms-value-changed">
  283. <![CDATA[
  284. var srchefcycd1= model.getValue("/root/send/srchinfo/srchefcycd1");
  285. fSetEfcyCode( "S",srchefcycd1+"%", 2 );
  286. model.refresh();
  287. ]]>
  288. </script>
  289. </select1>
  290. <select1 id="cmb_srchefcy2" ref="/root/send/srchinfo/srchefcycd2" appearance="minimal" style="left:115px; top:174px; width:280px; height:19px; ">
  291. <choices>
  292. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo2/item">
  293. <label ref="efcynm"/>
  294. <value ref="efcycd"/>
  295. </itemset>
  296. </choices>
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. var srchefcycd2= model.getValue("/root/send/srchinfo/srchefcycd2");
  300. fSetEfcyCode( "S",srchefcycd2+"%", 3 );
  301. model.refresh();
  302. ]]>
  303. </script>
  304. </select1>
  305. <select1 id="cmb_srchefcy3" ref="/root/send/srchinfo/srchefcycd3" appearance="minimal" style="left:115px; top:198px; width:280px; height:19px; ">
  306. <choices>
  307. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo3/item">
  308. <label ref="efcynm"/>
  309. <value ref="efcycd"/>
  310. </itemset>
  311. </choices>
  312. <script type="javascript" ev:event="xforms-value-changed">
  313. <![CDATA[
  314. var srchefcycd3= model.getValue("/root/send/srchinfo/srchefcycd3");
  315. fSetEfcyCode( "S",srchefcycd3+"%", 4 );
  316. model.refresh();
  317. ]]>
  318. </script>
  319. </select1>
  320. <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; ">
  321. <choices>
  322. <item>
  323. <label>카테고리 모두 선택</label>
  324. <value>Y</value>
  325. </item>
  326. </choices>
  327. </select>
  328. <input id="input1" ref="/root/send/srchinfo/srchdrugcds" class="input_search" style="left:115px; top:115px; width:280px; height:19px; "/>
  329. <caption id="caption1" style="left:115px; top:55px; width:208px; height:60px; ">
  330. <![CDATA[원하는 코드를 입력하여 주십시오.
  331. 단, 코드와 코드 사이는 쉼표(,)로 구분
  332. 예)DAAP300, DBESE]]>
  333. </caption>
  334. </xhtml:body>
  335. </xhtml:html>