SPADB62700_약품편람출력.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <hbookseq/>
  13. <efcynm1/>
  14. <efcynm2/>
  15. <efcynm3/>
  16. <efcynm4/>
  17. <efcynm5/>
  18. <drugnm/>
  19. <drugcd/>
  20. <cost/>
  21. <comnm/>
  22. <mthdvolsmm/>
  23. <efcysmm/>
  24. <seffcsmm/>
  25. <etc/>
  26. <refcnts/>
  27. </hbookdetlinfo>
  28. </hbookinfo>
  29. </main>
  30. <send>
  31. <srchinfo>
  32. <srchflag>1</srchflag>
  33. <srchhbookseq/>
  34. <srchdrugcds/>
  35. <srchefcycd1/>
  36. <srchefcycd2/>
  37. <srchefcycd3/>
  38. <srchefcycd4/>
  39. <srchefcycd5/>
  40. <srchall/>
  41. <srchefcycd/>
  42. <srchefcylevel/>
  43. <srchsimple/>
  44. <btnflag/>
  45. </srchinfo>
  46. </send>
  47. <init>
  48. <efcysrchinfo>
  49. <efcyinfo1>
  50. </efcyinfo1>
  51. <efcyinfo2/>
  52. <efcyinfo3/>
  53. <efcyinfo4/>
  54. <efcyinfo5/>
  55. </efcysrchinfo>
  56. </init>
  57. <hidden>
  58. <stat>
  59. <exelstat/>
  60. </stat>
  61. </hidden>
  62. <temp>
  63. <ret/>
  64. </temp>
  65. </root>
  66. </instance>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. model.setValue("/root/send/srchinfo/srchdrugcds", opener.javascript.getParameter("drugcd"));
  74. model.setValue("/root/send/srchinfo/srchhbookseq", opener.javascript.getParameter("srchhbookseq"));
  75. model.refresh();
  76. fSetEfcyCode("S", "%", 1 ); // 조회용 효능분류
  77. model.refresh();
  78. ]]>
  79. </script>
  80. <script type="javascript">
  81. <![CDATA[
  82. var align = "";
  83. var type = "";
  84. var picRow = 0; // 사진인덱스
  85. function fSetEfcyCode( typeflag, efcycd, efcylevel ){
  86. var node = null;
  87. var ipt_node = null;
  88. if (typeflag == "S") { // 조회
  89. node = "/root/init/efcysrchinfo";
  90. ipt_node = "/root/send/srchinfo/srch";
  91. } else if (typeflag == "I") { // 입력
  92. }
  93. model.setValue("/root/send/srchinfo/srchefcycd" ,efcycd);
  94. model.setValue("/root/send/srchinfo/srchefcylevel",efcylevel);
  95. var success = submit("TRADB01801","false");
  96. if (success) {
  97. model.copyNode(node+"/efcyinfo"+efcylevel , "/root/init/efcybaseinfo");
  98. if (efcylevel == 1) {
  99. model.removeNodeset(node+"/efcyinfo2/item");
  100. model.removeNodeset(node+"/efcyinfo3/item");
  101. model.removeNodeset(node+"/efcyinfo4/item");
  102. model.removeNodeset(node+"/efcyinfo5/item");
  103. model.setValue(ipt_node+"efcycd2","");
  104. model.setValue(ipt_node+"efcycd3","");
  105. model.setValue(ipt_node+"efcycd4","");
  106. model.setValue(ipt_node+"efcycd5","");
  107. } else if (efcylevel == 2) {
  108. model.removeNodeset(node+"/efcyinfo3/item");
  109. model.removeNodeset(node+"/efcyinfo4/item");
  110. model.removeNodeset(node+"/efcyinfo5/item");
  111. model.setValue(ipt_node+"efcycd3","");
  112. model.setValue(ipt_node+"efcycd4","");
  113. model.setValue(ipt_node+"efcycd5","");
  114. } else if (efcylevel == 3) {
  115. model.removeNodeset(node+"/efcyinfo4/item");
  116. model.removeNodeset(node+"/efcyinfo5/item");
  117. model.setValue(ipt_node+"efcycd4","");
  118. model.setValue(ipt_node+"efcycd5","");
  119. } else if (efcylevel == 4) {
  120. model.removeNodeset(node+"/efcyinfo5/item");
  121. model.setValue(ipt_node+"efcycd5","");
  122. }
  123. }
  124. }
  125. function fView(btnflag){
  126. var srchefcycd ="";
  127. var srchdrugcd = "";
  128. var srchflag = model.getValue("/root/send/srchinfo/srchflag");
  129. var srchefcycd1 = model.getValue("/root/send/srchinfo/srchefcycd1");
  130. var srchefcycd2 = model.getValue("/root/send/srchinfo/srchefcycd2");
  131. var srchefcycd3 = model.getValue("/root/send/srchinfo/srchefcycd3");
  132. var srchefcycd4 = model.getValue("/root/send/srchinfo/srchefcycd4");
  133. var srchefcycd5 = model.getValue("/root/send/srchinfo/srchefcycd5");
  134. var srchall = model.getValue("/root/send/srchinfo/srchall");
  135. if(srchflag =="2") {
  136. srchdrugcd = model.getValue("/root/send/srchinfo/srchdrugcds").toUpperCase();
  137. model.setValue("/root/send/srchinfo/srchdrugcds", srchdrugcd);
  138. } else if( srchflag =="3" ){
  139. if (srchefcycd5 != "") {
  140. srchefcycd = srchefcycd5;
  141. } else {
  142. if (srchefcycd4 != "") {
  143. srchefcycd = srchefcycd4;
  144. } else {
  145. if (srchefcycd3 != "") {
  146. srchefcycd = srchefcycd3;
  147. } else {
  148. if (srchefcycd2!= "") {
  149. srchefcycd = srchefcycd2;
  150. } else {
  151. if (srchefcycd1 != "") {
  152. srchefcycd = srchefcycd1;
  153. }
  154. }
  155. }
  156. }
  157. }
  158. if ((srchefcycd == null || srchefcycd == "") && srchall != "Y") {
  159. messageBox("효능코드를","C002");
  160. return false;
  161. }
  162. }
  163. model.setValue("/root/send/srchinfo/srchefcycd",srchefcycd);
  164. model.setValue("/root/send/srchinfo/btnflag", btnflag);
  165. submit("TRADB62701");
  166. }
  167. function fselSrchFlag(flag){
  168. if(flag != 3){
  169. model.setValue("/root/send/srchinfo/srchflag",flag);
  170. model.setValue("/root/send/srchinfo/srchefcycd1", "");
  171. model.setValue("/root/send/srchinfo/srchefcycd2", "");
  172. model.setValue("/root/send/srchinfo/srchefcycd3", "");
  173. model.setValue("/root/send/srchinfo/srchefcycd4", "");
  174. model.setValue("/root/send/srchinfo/srchefcycd5", "");
  175. }else if(flag == 3){
  176. model.setValue("/root/send/srchinfo/srchflag",flag);
  177. }
  178. }
  179. //**************************************************************************************************************
  180. // 엑셀저장 - 2009-02-10 Start - 김귀남
  181. //**************************************************************************************************************
  182. function saveDrugList(gridIDArray) {
  183. // gidIDArray
  184. // param = 전체출력 전환
  185. // param2 = 간략한 내용만 전환
  186. var File_PATH = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
  187. if (File_PATH != ""){
  188. // object 추가
  189. var tfexcel2 = body.createChild("xforms:object" , "id:tfexcel;clsid:{fe8d1001-6a9d-424d-ae2a-301493bb12da}");
  190. body.refresh();
  191. // excel application 실행
  192. // 0 : hidden , 1 : Nomal(default), 2 : Mnimized, 3 : Maximized
  193. tfexcel.launchnewinstance(0);
  194. //실행된 excel application에서 새로운 workbook을 생성
  195. tfexcel.createworkbook();
  196. // 복수의 그리드에 대하여 실행 가능 - 구분자는 ','
  197. var gridIDList = gridIDArray.split(",");
  198. // 그리드별로 (복수지정가능)
  199. for ( var i = 0 ; i < gridIDList.length ; i++ ){
  200. var me = trim(gridIDList[i]);
  201. var element = document.all(me);
  202. // sheet 이름 지정
  203. tfexcel.addsheet(i+1 , element.attribute("id") );
  204. //설정한 영역에 format을 설정
  205. //tfexcel.setformat(1,1,document.all(me).rows,document.all(me).cols, "@"); // 텍스트형식
  206. tfexcel.setbordercolor(1,1,element.rows,document.all(me).cols, "#000000");
  207. tfexcel.cellbgcolor(1,1,1,element.cols) = "#d9d9d9";
  208. tfexcel.font(1,1,element.rows,element.cols) = element.attribute("font-falmily");
  209. tfexcel.fontsize(1,1,element.rows,element.cols) = 9;
  210. var col_algin = align.split(",");
  211. var col_type = type.split(",");
  212. // 컬럼 순서대로 너비 지정(그리드의 속성 상속)
  213. for( col = 1 ; col <= element.cols ; col++) {
  214. tfexcel.colwidth(col) = element.colwidth(col-1) / 9.5; // colum 너비 지정
  215. tfexcel.halign(1,col,element.rows,col) = col_algin[col-1];
  216. }
  217. // 로우 순서대로 높이지정 (그리드의 속성 상속)
  218. for (var gridRow=1 ; gridRow <= element.rows; gridRow++) {
  219. for (var gridCol=1 ; gridCol <= element.cols; gridCol++) {
  220. // cellformat 설정이거나 콤보시 라벨내용을 삽입
  221. if ( element.cellFormat( gridRow-1 , gridCol-1 ) != "" || col_type[gridCol-1] == "combo") {
  222. tfexcel.cellvalue(gridRow,gridCol) = element.labelMatrix( gridRow-1, gridCol-1);
  223. }else{
  224. // 특이사항 없을 땐 value값을 삽입
  225. tfexcel.cellvalue(gridRow,gridCol) = element.valueMatrix( gridRow-1, gridCol-1);
  226. }
  227. }
  228. }
  229. // 캡션 정렬 설정
  230. tfexcel.valign(1,1,1, element.cols) = "center";
  231. tfexcel.halign(1,1,1, element.cols) = "center";
  232. // 각 행 세로정렬
  233. tfexcel.valign(2,1,element.rows, element.cols) = "top";
  234. }
  235. for ( var i = 1 ; i <= 3 ; i++ ){
  236. tfexcel.deletesheet(gridIDList.length + 1);
  237. }
  238. //workbook을 저장.
  239. tfexcel.save(File_PATH);
  240. //excel application을 종료. excel application 생성 후 반드시 close해야함.
  241. var close = tfexcel.close();
  242. //excel 실행
  243. window.exec("excel.exe",'\"'+ File_PATH + '\"');
  244. }
  245. }
  246. //**************************************************************************************************************
  247. // 엑셀저장 - 2009-02-10 End - 김귀남
  248. //**************************************************************************************************************
  249. function trim(trimData){
  250. return trimData.replace(/(^\s*)|(\s*$)/gi, "");
  251. }
  252. function saveDrugList2(gridIDArray , save) {
  253. try {
  254. //excel activeX생성
  255. var objExcel = new ActiveXObject("excel.Application");
  256. //워크시트 생성
  257. var objWorkbook = objExcel.Workbooks.add();
  258. var gridIDList = gridIDArray.split(",");
  259. var chart = false;
  260. var i = 0;
  261. for ( i = 0 ; i < gridIDList.length ; i++ ){
  262. // 그리드ID추출
  263. var me = trim(gridIDList[i]);
  264. // 그리드 정보 추출
  265. getHeader(me);
  266. // 그리드의 속성 중 chart 포함 여부 체크
  267. try {
  268. if(document.all(me).attribute("chart") == "true") chart = true;
  269. }
  270. catch(e) {}
  271. // 엑셀 시트 생성
  272. objWorkbook.Sheets.Add();
  273. // 엑셀 시트 이름 지정
  274. objWorkbook.ActiveSheet.Name = document.all(me).attribute("id");
  275. // 엑셀 시트 활성화
  276. objWorkbook.Sheets(document.all(me).attribute("id")).Activate();
  277. var Sheet = objWorkbook.ActiveSheet;
  278. var nCnt = document.all(me).rows - document.all(me).fixedRows + 1;
  279. //col별 정렬 추출
  280. var col_algin = align.split(",");
  281. //col별 type 추출
  282. var col_type = type.split(",");
  283. for (var j=0 ;j < document.all(me).cols ; j++) {
  284. // col의 width에 따라 excel cell의 열너비 지정
  285. Sheet.columns(j+1).columnWidth = document.all(me).colwidth(j) / 9.5;
  286. if (col_algin[j] == "center") col_align_key = -4108;
  287. else if (col_algin[j] == "right") col_align_key = -4152;
  288. else col_align_key = -4131;
  289. var rang = Sheet.Range( Sheet.cells( 1, j+1 ), Sheet.cells( document.all(me).rows, j+1));
  290. rang.HorizontalAlignment = col_align_key;
  291. rang.VerticalAlignment = -4108;
  292. }
  293. for (var irow=document.all(me).FixedRows - 1; irow < nCnt ; irow++) {
  294. for (var j=0 ; j < document.all(me).Cols; j++) {
  295. // 그리드의 데이터를 excel cell에 write
  296. Sheet.cells(irow + 1 ,j+1) = document.all(me).textMatrix(irow ,j);
  297. }
  298. }
  299. //그리드의 caption에 해당하는 부분 색 칠하기
  300. var rang = Sheet.Range( Sheet.cells( 1, 1 ), Sheet.cells( 1, document.all(me).cols));
  301. rang.Interior.Color = window.rgb(217,217,217);
  302. // excel cell에 속성 부여
  303. rang = Sheet.Range( Sheet.cells( 1, 1 ), Sheet.cells( document.all(me).rows, document.all(me).cols));
  304. // cell 너비보다 데이터가 길면 여러줄로 표시
  305. rang.WrapText = true;
  306. // cell font 지정
  307. rang.font.name = "굴림";
  308. // cell font size 지정
  309. rang.font.size = 9;
  310. // cell서식 지정(텍스트)
  311. //rang.numberFormat = "@";
  312. // cell 테두리 지정
  313. rang.borders.lineStyle = 1;
  314. // cell 테두리 두께 지정
  315. rang.borders.Weight = 2;
  316. // Draw Chart
  317. if (chart){
  318. // chart object 생성
  319. var ch = Sheet.ChartObjects.Add(rang.Left, rang.Top + rang.Height + 20 , 600, 300);
  320. // chart 종류 지정
  321. ch.Chart.ChartType = 51;
  322. ch.Chart.SetSourceData(rang, 2);
  323. }
  324. // excel cell의 행높이를 데이터의 길이에 따라 조절
  325. Sheet.rows.autoFit;
  326. }
  327. // 불필요한 sheet 삭제
  328. while (objWorkbook.Worksheets.Count > i) {
  329. objWorksheet = objWorkbook.Worksheets.Item(objWorkbook.Worksheets.Count);
  330. objWorksheet.Delete;
  331. }
  332. if (save == "" || save == null) save = "false";
  333. // 파일 저장여부 확인
  334. if ( save == "true" ){
  335. // 파일 저장후 open
  336. var File_PATH = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
  337. objWorkbook.SaveAs(File_PATH);
  338. window.exec(File_PATH);
  339. }else{
  340. // 파일 저장은 안하고 open
  341. objExcel.Visible = true;
  342. }
  343. }
  344. catch (e){
  345. Sheet.Close(0);
  346. objExcel.Quit();
  347. alert("[makeExcelChart ERROR]::" + e.toString());
  348. }
  349. }
  350. function getHeader(me){
  351. try{
  352. var t_align = "";
  353. var t_type = "";
  354. for( var i = 1 ; i < document.all(me).children.length; i++){
  355. if( document.all(me).children(i).elementName == "xforms:col" ){
  356. t_align += document.all(me).children(i).attribute("text-align") + ",";
  357. t_type += document.all(me).children(i).attribute("type") + ",";
  358. }
  359. }
  360. align = t_align.substring(0,t_align.length - 1);
  361. type = t_type.substring(0,t_type.length - 1);
  362. }catch(e){
  363. alertBox("[getHeader]::"+e);
  364. }
  365. }
  366. ]]>
  367. </script>
  368. <submission id="TRADB62701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/hbookinfo"/>
  369. <submission id="TRADB01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/init/efcybaseinfo"/>
  370. </model>
  371. </xhtml:head>
  372. <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; ">
  373. <datagrid id="grd_param2" nodeset="/root/main/hbookinfo/hbookdetlinfo" visibility="hidden" autoresize="true" caption="분류1^분류2^분류3^분류4^분류5^상품명^코드^성분 및 함량^성분 및 함량" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:110px; width:395px; height:75px; ">
  374. <col ref="efcynm1" style="text-align:center; vertical-align:top; "/>
  375. <col ref="efcynm2" style="text-align:center; vertical-align:top; "/>
  376. <col ref="efcynm3" style="text-align:center; vertical-align:top; "/>
  377. <col ref="efcynm4" style="text-align:center; vertical-align:top; "/>
  378. <col ref="efcynm5" style="text-align:center; vertical-align:top; "/>
  379. <col ref="drugnm" style="text-align:center; vertical-align:top; "/>
  380. <col ref="drugcd" style="text-align:center; vertical-align:top; "/>
  381. <col ref="comnm" style="text-align:center; vertical-align:top; "/>
  382. </datagrid>
  383. <datagrid id="grd_param" nodeset="/root/main/hbookinfo/hbookdetlinfo" visibility="hidden" autoresize="true" caption="hbookseq^분류1^분류2^분류3^분류4^분류5^상품명^코드^약가^성분 및 함량^용법^약리작용 및 효능^부작용^주의 및 금기^참고문헌" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 250, 200, 250, 200, 200, 100" mergecells="byrestriccol" rowsep="|" style="left:20px; top:35px; width:395px; height:65px; ">
  384. <col ref="hbookseq" visibility="hidden" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  385. <col ref="efcynm1" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  386. <col ref="efcynm2" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  387. <col ref="efcynm3" style="left:300px; top:23px; width:100px; height:23px; text-align:center; vertical-align:top; word-wrap:word; "/>
  388. <col ref="efcynm4" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  389. <col ref="efcynm5" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  390. <col ref="drugnm" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  391. <col ref="drugcd" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  392. <col ref="cost" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  393. <col ref="comnm" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  394. <col ref="mthdvolsmm" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  395. <col ref="efcysmm" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  396. <col ref="seffcsmm" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  397. <col ref="etc" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  398. <col ref="refcnts" style="text-align:center; vertical-align:top; word-wrap:word; "/>
  399. </datagrid>
  400. <group id="group1" style="left:0px; top:0px; width:400px; height:13px; ">
  401. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:380px; height:14px; ">약품편람출력 v1.0</caption>
  402. </group>
  403. <button id="btn_prt" class="btn6_letter2" style="left:420px; top:215px; width:56px; height:22px; ">
  404. <caption>엑셀</caption>
  405. <script type="javascript" ev:event="DOMActivate">
  406. <![CDATA[
  407. if(fView("exel") != false){
  408. if(model.getValue("/root/send/srchinfo/srchsimple") == 'Y') saveDrugList("grd_param2");
  409. else saveDrugList("grd_param");
  410. //saveDrugList2("grd_param", "true");
  411. }
  412. ]]>
  413. </script>
  414. </button>
  415. <button id="button" class="btn4_letter2" style="left:420px; top:245px; width:56px; height:22px; ">
  416. <caption>닫기</caption>
  417. <script type="javascript" ev:event="DOMActivate">
  418. <![CDATA[
  419. window.close();
  420. ]]>
  421. </script>
  422. </button>
  423. <button id="button1" class="btn6_letter2" _auth="X" style="left:420px; top:185px; width:56px; height:22px; ">
  424. <caption>출력</caption>
  425. <script type="javascript" ev:event="DOMActivate">
  426. <![CDATA[
  427. if(fView("prnt") != false){
  428. exeReportPreview("RPADB62701", "XMLSTR", "", "", "true","","","","","true");
  429. }
  430. ]]>
  431. </script>
  432. </button>
  433. <select1 id="radio2" ref="/root/send/srchinfo/srchflag" class="radio_search" appearance="full" overflow="visible" style="left:15px; top:25px; width:100px; height:20px; border-style:none; ">
  434. <choices>
  435. <item>
  436. <label>선택한 약만</label>
  437. <value>1</value>
  438. </item>
  439. </choices>
  440. <script type="javascript" ev:event="xforms-select">
  441. <![CDATA[
  442. fselSrchFlag(1);
  443. model.refresh();
  444. ]]>
  445. </script>
  446. </select1>
  447. <select1 id="radio1" ref="/root/send/srchinfo/srchflag" class="radio_search" appearance="full" overflow="visible" style="left:15px; top:60px; width:100px; height:20px; border-style:none; ">
  448. <choices>
  449. <item>
  450. <label>코드별</label>
  451. <value>2</value>
  452. </item>
  453. </choices>
  454. <script type="javascript" ev:event="xforms-select">
  455. <![CDATA[
  456. fselSrchFlag(2);
  457. model.refresh();
  458. ]]>
  459. </script>
  460. </select1>
  461. <select1 id="radio3" ref="/root/send/srchinfo/srchflag" class="radio_search" appearance="full" overflow="visible" style="left:15px; top:150px; width:100px; height:20px; border-style:none; ">
  462. <choices>
  463. <item>
  464. <label>효능별</label>
  465. <value>3</value>
  466. </item>
  467. </choices>
  468. <script type="javascript" ev:event="xforms-select">
  469. <![CDATA[
  470. fselSrchFlag(3);
  471. model.refresh();
  472. ]]>
  473. </script>
  474. </select1>
  475. <select1 id="cmb_srchefcy4" ref="/root/send/srchinfo/srchefcycd4" appearance="minimal" style="left:115px; top:222px; width:280px; height:19px; ">
  476. <choices>
  477. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo4/item">
  478. <label ref="efcynm"/>
  479. <value ref="efcycd"/>
  480. </itemset>
  481. </choices>
  482. <script type="javascript" ev:event="xforms-value-changed">
  483. <![CDATA[
  484. fselSrchFlag(3);
  485. var srchefcycd4= model.getValue("/root/send/srchinfo/srchefcycd4");
  486. if(srchefcycd4 != ""){
  487. fSetEfcyCode( "S",srchefcycd4+"%", 5);
  488. }else{
  489. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo5/item");
  490. }
  491. model.refresh();
  492. ]]>
  493. </script>
  494. </select1>
  495. <select1 id="cmb_srchefcy5" ref="/root/send/srchinfo/srchefcycd5" appearance="minimal" style="left:115px; top:246px; width:280px; height:19px; ">
  496. <choices>
  497. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo5/item">
  498. <label ref="efcynm"/>
  499. <value ref="efcycd"/>
  500. </itemset>
  501. </choices>
  502. <script type="javascript" ev:event="xforms-value-changed">
  503. <![CDATA[
  504. fselSrchFlag(3);
  505. ]]>
  506. </script>
  507. </select1>
  508. <select1 id="cmb_srchefcy1" ref="/root/send/srchinfo/srchefcycd1" appearance="minimal" style="left:115px; top:150px; width:280px; height:19px; ">
  509. <choices>
  510. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo1/item">
  511. <label ref="efcynm"/>
  512. <value ref="efcycd"/>
  513. </itemset>
  514. </choices>
  515. <script type="javascript" ev:event="xforms-value-changed">
  516. <![CDATA[
  517. fselSrchFlag(3);
  518. var srchefcycd1= model.getValue("/root/send/srchinfo/srchefcycd1");
  519. if(srchefcycd1 != ""){
  520. fSetEfcyCode( "S",srchefcycd1+"%", 2 );
  521. }else{
  522. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo2/item");
  523. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo3/item");
  524. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo4/item");
  525. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo5/item");
  526. }
  527. model.refresh();
  528. ]]>
  529. </script>
  530. </select1>
  531. <select1 id="cmb_srchefcy2" ref="/root/send/srchinfo/srchefcycd2" appearance="minimal" style="left:115px; top:174px; width:280px; height:19px; ">
  532. <choices>
  533. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo2/item">
  534. <label ref="efcynm"/>
  535. <value ref="efcycd"/>
  536. </itemset>
  537. </choices>
  538. <script type="javascript" ev:event="xforms-value-changed">
  539. <![CDATA[
  540. fselSrchFlag(3);
  541. var srchefcycd2= model.getValue("/root/send/srchinfo/srchefcycd2");
  542. if(srchefcycd2 != ""){
  543. fSetEfcyCode( "S",srchefcycd2+"%", 3);
  544. }else{
  545. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo3/item");
  546. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo4/item");
  547. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo5/item");
  548. }
  549. model.refresh();
  550. ]]>
  551. </script>
  552. </select1>
  553. <select1 id="cmb_srchefcy3" ref="/root/send/srchinfo/srchefcycd3" appearance="minimal" style="left:115px; top:198px; width:280px; height:19px; ">
  554. <choices>
  555. <itemset nodeset="/root/init/efcysrchinfo/efcyinfo3/item">
  556. <label ref="efcynm"/>
  557. <value ref="efcycd"/>
  558. </itemset>
  559. </choices>
  560. <script type="javascript" ev:event="xforms-value-changed">
  561. <![CDATA[
  562. fselSrchFlag(3);
  563. var srchefcycd3= model.getValue("/root/send/srchinfo/srchefcycd3");
  564. if(srchefcycd3 != ""){
  565. fSetEfcyCode( "S",srchefcycd3+"%", 4);
  566. }else{
  567. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo4/item");
  568. model.removeNodeset("/root/init/efcysrchinfo/efcyinfo5/item");
  569. }
  570. model.refresh();
  571. ]]>
  572. </script>
  573. </select1>
  574. <select id="chk_all" ref="/root/send/srchinfo/srchall" class="checkbox_search" overflow="visible" appearance="full" style="left:115px; top:270px; width:145px; height:20px; border-style:none; ">
  575. <choices>
  576. <item>
  577. <label>카테고리 모두 선택</label>
  578. <value>Y</value>
  579. </item>
  580. </choices>
  581. </select>
  582. <input id="input1" ref="/root/send/srchinfo/srchdrugcds" class="input_search" style="left:115px; top:115px; width:280px; height:19px; ">
  583. <script type="javascript" ev:event="DOMFocusIn">
  584. <![CDATA[
  585. fselSrchFlag(2);
  586. model.refresh();
  587. ]]>
  588. </script>
  589. </input>
  590. <caption id="caption1" style="left:115px; top:55px; width:208px; height:60px; ">
  591. <![CDATA[원하는 코드를 입력하여 주십시오.
  592. 단, 코드와 코드 사이는 쉼표(,)로 구분
  593. 예)DAAP300, DBESE]]>
  594. </caption>
  595. <select id="checkbox1" ref="/root/send/srchinfo/srchsimple" class="checkbox_search" overflow="visible" appearance="full" style="left:270px; top:270px; width:145px; height:20px; border-style:none; ">
  596. <choices>
  597. <item>
  598. <label>간략한 내용만</label>
  599. <value>Y</value>
  600. </item>
  601. </choices>
  602. </select>
  603. </xhtml:body>
  604. </xhtml:html>