SMASB01400_감염관리약품정보관리.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  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. <condition>
  11. <srchdrugflag>-</srchdrugflag>
  12. <srchdrugcd/>
  13. <srchdrugnm/>
  14. <srchspcldrug/>
  15. <nameflag>3</nameflag>
  16. <srchscop/>
  17. <infcflagcd>-</infcflagcd>
  18. </condition>
  19. <druginfo>
  20. </druginfo>
  21. </main>
  22. <hidden>
  23. <resultref>
  24. <info/>
  25. </resultref>
  26. </hidden>
  27. <send>
  28. </send>
  29. <init>
  30. <A0006list>
  31. <A0006>
  32. <cdid/>
  33. <cdnm/>
  34. </A0006>
  35. </A0006list>
  36. <A0014list>
  37. <A0014>
  38. <cdid/>
  39. <cdnm/>
  40. </A0014>
  41. </A0014list>
  42. </init>
  43. <temp>
  44. <getdata>
  45. <drugcd/>
  46. </getdata>
  47. <reqdata>
  48. <send>
  49. <srchflag/>
  50. <srchcnts/>
  51. <srchcls>1</srchcls>
  52. <cnfmyn>Y N</cnfmyn>
  53. <seqflag>1</seqflag>
  54. <drugkind>N M Y</drugkind>
  55. <drugkindall>4</drugkindall>
  56. <spcldrug/>
  57. <efcycd>-</efcycd>
  58. <efcycls/>
  59. <srchdrugcd>%</srchdrugcd>
  60. <srchcomcd/>
  61. <srchcomnm/>
  62. <srchefcy/>
  63. <srchetcflag>A</srchetcflag>
  64. <receiveref>/root/main/condition/srchdrugcd</receiveref>
  65. <infcflagcd>-</infcflagcd>
  66. </send>
  67. </reqdata>
  68. </temp>
  69. </root>
  70. </instance>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. fInitialize();
  74. model.removeNodeset("/root/main/druginfo");
  75. model.removeNodeset("/root/send/reqdata");
  76. model.makeNode("/root/send/reqdata");
  77. model.copyNode("/root/send/reqdata", "/root/main/condition");
  78. if( model.getValue("/root/main/condition/nameflag") == "N" && model.getValue("/root/main/condition/srchdrugnm") != "") {
  79. var srchnm = model.getValue("/root/main/condition/srchdrugnm");
  80. srchnm = srchnm.toUpperCase( );
  81. model.setValue("/root/send/reqdata/srchdrugnm", srchnm);
  82. }
  83. //submit("TRASB01401");
  84. ]]>
  85. </script>
  86. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  87. <submission id="TRASB01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/druginfo"/>
  88. <submission id="TRASB01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/resultref"/>
  89. <submission id="TXASB01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/druginfo"/>
  90. </model>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  94. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  95. <script type="javascript">
  96. <![CDATA[
  97. function fInitialize() {
  98. // 공통코드를 조회한다.
  99. zbcfGetCodeList( new Array("A0006", "A0014"), new Array("/root/init/A0006list", "/root/init/A0014list") );
  100. model.setValue("/root/init/A0006list/A0006[1]/cdid", "");
  101. model.setValue("/root/init/A0006list/A0006[1]/cdnm", "-");
  102. // addComboItem("cmb_drugflag","","-","above");
  103. model.refresh();
  104. cmb_drugflag.select(0);
  105. }
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body guideline="1,1195;" idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  110. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  111. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  112. <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
  113. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  114. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">감염관리 약품정보관리</caption>
  115. </group>
  116. </group>
  117. </group>
  118. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  119. <button id="button3" class="btn4_letter2" style="left:1138px; top:3px; width:56px; height:22px; ">
  120. <caption>저장</caption>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. var nodeList = instance1.selectNodes("/root/main/druginfo/info");
  124. for(var i=1; i<=nodeList.length; i++){
  125. var node = nodeList.item(i-1);
  126. var drugcdNode = node.selectSingleNode("drugcd"); //내성균구분
  127. if( (grd_druginfo.rowStatus(i) == 1 || grd_druginfo.rowStatus(i) == 2 || grd_druginfo.rowStatus(i) == 3) && drugcdNode.text == "" ){
  128. messageBox("약품 선택은 ", "I003");
  129. return;
  130. }
  131. // var selectedRows = grd_testitemnvalrslt.selectedRows;
  132. // var row = new Array();
  133. //
  134. // for (i= selectedRows-1; i >= 0; i--){
  135. // row[i] = grd_testitemnvalrslt.selectedrow(i);
  136. }
  137. // var iRow = grd_druginfo.row
  138. // for (var i =0 ; i < grd_druginfo.rows ; i++) {
  139. // model.makeValue("/root/main/druginfo[" + iRow + "]/infcflagcd", "-");
  140. // }
  141. model.removeNodeset("/root/send/savedata");
  142. model.makeNode("/root/send/savedata");
  143. model.makeValue("/root/send/savedata/druginfo", grd_druginfo.getUpdateData());
  144. model.makeNode("/root/send/savedata/condition");
  145. model.copyNode("/root/send/savedata/condition", "/root/main/condition");
  146. submit("TXASB01401");
  147. ]]>
  148. </script>
  149. </button>
  150. <button id="importbutton1" class="btn4_letter3" style="left:1068px; top:3px; width:68px; height:22px; ">
  151. <caption>초기화</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. model.removeNodeset("/root/main/druginfo");
  155. model.makeNode("/root/main/druginfo");
  156. model.resetInstanceNode("/root/main/condition");
  157. model.setValue("/root/main/condition/nameflag", "3");
  158. model.setValue("/root/main/condition/srchdrugflag", "-");
  159. model.refresh();
  160. ]]>
  161. </script>
  162. </button>
  163. </group>
  164. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  165. <button id="button2" class="btn2_letter3" style="left:1040px; top:50px; width:53px; height:19px; ">
  166. <caption>행추가</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. grd_druginfo.addItem();
  170. ]]>
  171. </script>
  172. </button>
  173. <button id="button5" class="btn2_letter3" style="left:1095px; top:50px; width:53px; height:19px; ">
  174. <caption>행삭제</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. var iRow = grd_druginfo.row - grd_druginfo.fixedRows + 1;
  178. if(iRow < 1){
  179. return;
  180. }
  181. var status = grd_druginfo.rowStatus(iRow);
  182. if(status == 1 || status == 3){
  183. grd_druginfo.deleteItem(iRow);
  184. }else{
  185. grd_druginfo.rowStatus(iRow)= 4;
  186. }
  187. ]]>
  188. </script>
  189. </button>
  190. <line id="line7" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  191. <group id="grp_sea" style="left:0px; top:7px; width:1194px; height:39px; vertical-align:top; ">
  192. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:39; background-color:#fffbf2; border-color:#ffd799; "/>
  193. <button id="button37" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  194. <caption>조회</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. model.removeNodeset("/root/send/reqdata");
  198. model.makeNode("/root/send/reqdata");
  199. model.copyNode("/root/send/reqdata", "/root/main/condition");
  200. var nameflag = model.getValue("/root/main/condition/nameflag"); //검색조건
  201. var srchdrugnm = model.getValue("/root/main/condition/srchdrugnm"); //약품명
  202. var srchdrugcd = model.getValue("/root/main/condition/srchdrugcd"); //약품코드
  203. if( model.getValue("/root/main/condition/nameflag") == "2" ) {
  204. if( isNull(srchdrugcd) ){
  205. messageBox("약품코드를 ", "C001");
  206. return;
  207. }else {
  208. model.setValue("/root/send/reqdata/nameflag", "C"); //코드겁색모드
  209. model.setValue("/root/send/reqdata/srchdrugnm", srchdrugcd);
  210. }
  211. }else if( model.getValue("/root/main/condition/nameflag") == "3" ) {
  212. if( isNull(srchdrugnm) ){
  213. //messageBox("약품코명을 ", "C001");
  214. //return;
  215. }else{
  216. srchdrugnm = srchdrugnm.toUpperCase( );
  217. //if( isNull(srchdrugcd) ){
  218. srchdrugnm = "%" + srchdrugnm + "%";
  219. //}
  220. model.setValue("/root/send/reqdata/srchdrugnm", srchdrugnm);
  221. }
  222. model.setValue("/root/send/reqdata/nameflag", "N"); //약품명검색모드
  223. }
  224. submit("TRASB01401");
  225. ]]>
  226. </script>
  227. </button>
  228. <line id="line13" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:30px; "/>
  229. <caption id="caption4" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">약품구분 :</caption>
  230. <select1 id="combo5" ref="/root/main/condition/srchdrugflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:1015px; top:10px; width:65px; height:19px; ">
  231. <choices>
  232. <item>
  233. <label>-</label>
  234. <value>-</value>
  235. </item>
  236. <item>
  237. <label>항암제</label>
  238. <value>C</value>
  239. </item>
  240. <item>
  241. <label>항바이러스제</label>
  242. <value>V</value>
  243. </item>
  244. </choices>
  245. </select1>
  246. <caption id="caption12" class="search_name" style="left:270px; top:10px; width:91px; height:17px; ">검색조건 :</caption>
  247. <caption id="caption20" class="search_name" visibility="hidden" style="left:895px; top:10px; width:117px; height:17px; ">특별약품 구분 :</caption>
  248. <input id="importinput1" ref="/root/main/condition/srchdrugcd" class="input_search" disabled="true" visibility="visible" style="left:740px; top:10px; width:110px; height:19px; "/>
  249. <select1 id="cmb_drugflag" ref="/root/main/condition/srchspcldrug" class="combo_default" appearance="minimal" style="left:110px; top:10px; width:120px; height:19px; ">
  250. <choices>
  251. <itemset nodeset="/root/init/A0006list/A0006">
  252. <label ref="cdnm"/>
  253. <value ref="cdid"/>
  254. </itemset>
  255. </choices>
  256. </select1>
  257. <button id="importbutton2" class="icon_search" style="left:716px; top:12px; width:16px; height:16px; ">
  258. <caption/>
  259. <script type="javascript" ev:event="DOMActivate">
  260. <![CDATA[
  261. /*modal("SPADB60100",0,100,150,"SPADB60100","/root/hidden/receivedrugcd","/root/hidden/receiveref");
  262. var child = "SPADB60100";
  263. var iRow = grd_druginfo.row;
  264. if(child != null) {
  265. var drugcd = model.getValue("/root/hidden/getdata/drugcd");
  266. model.removeNodeset("/root/send/reqdata");
  267. model.makeValue("/root/send/reqdata/drugcd", drugcd);
  268. submit("TRASB01402");
  269. model.setValue("/root/main/condition/srchdrugnm", model.getValue("/root/hidden/resultref/info/hngnm"));
  270. ipt_srchhngnm.refresh();
  271. }
  272. model.makeValue("/root/hidden/send/srchcls", "1");
  273. model.makeValue("/root/hidden/send/cnfmyn", "Y N");
  274. model.makeValue("/root/hidden/send/seqflag", "1");
  275. model.makeValue("/root/hidden/send/drugkind", "N M Y");
  276. model.makeValue("/root/hidden/send/drugkindall", "4");
  277. model.makeValue("/root/hidden/send/spcldrug", "");
  278. model.makeValue("/root/hidden/send/efcycd", "-");
  279. model.makeValue("/root/hidden/send/efcycls", "");
  280. model.makeValue("/root/hidden/send/srchflag", "3");
  281. model.makeValue("/root/hidden/send/srchcnts", model.getValue("/root/main/condition/srchdrugnm"));
  282. model.makeValue("/root/hidden/send/srchdrugcd", "%");
  283. model.makeValue("/root/hidden/send/srchcomcd", "");
  284. model.makeValue("/root/hidden/send/srchcomnm", "");
  285. model.makeValue("/root/hidden/send/srchefcy", "");
  286. model.makeValue("/root/hidden/send/srchetcflag", "A");*/
  287. //model.setValue("/root/main/condition/srchdrugcd" ,model.getValue("/root/temp/receivedata/receiveref"));
  288. //그리드의 약품검색 시 받아오는 인스턴스를 동시에 사용하므로, 검색 전에, 현재 컨트롤에 입력된 값을 가져간다(그렇지 않으면 입력상태의 값이 있을때 잘못 들어감)
  289. model.resetInstanceNode("/root/temp/getdata/drugcd");
  290. var nameflag = model.getValue("/root/main/condition/nameflag"); //검색조건
  291. var srchdrugnm = model.getValue("/root/main/condition/srchdrugnm"); //약품명
  292. var srchspcldrug = model.getValue("/root/main/condition/srchspcldrug"); //특별약품구분
  293. model.setValue("/root/temp/reqdata/send/srchflag", nameflag);
  294. model.setValue("/root/temp/reqdata/send/srchcnts", srchdrugnm);
  295. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/reqdata/send","/root/temp/receivedata");
  296. model.setValue("/root/temp/reqdata/send/srchflag", ""); //노드 초기화
  297. model.setValue("/root/temp/reqdata/send/srchcnts", ""); //노드 초기화
  298. model.setValue("/root/temp/reqdata/send/srchdrugcd", ""); //노드 초기화
  299. if( instance1.selectSingleNode("/root/temp/getdata/drugcd") ){
  300. if( !isNull(model.getValue("/root/temp/getdata/drugcd")) ){
  301. var drugcd = model.getValue("/root/temp/getdata/drugcd");
  302. model.removeNodeset("/root/send/reqdata");
  303. model.makeValue("/root/send/reqdata/drugcd", drugcd);
  304. submit("TRASB01402");
  305. model.setValue("/root/main/condition/srchdrugnm", model.getValue("/root/hidden/resultref/info/hngnm"));
  306. ipt_srchhngnm.refresh();
  307. }
  308. }
  309. ]]>
  310. </script>
  311. </button>
  312. <select1 id="importradio1" ref="/root/main/condition/nameflag" class="combo_s_essential" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:361px; top:12px; width:136px; height:19px; border-style:none; ">
  313. <choices>
  314. <item>
  315. <label>약품명</label>
  316. <value>3</value>
  317. </item>
  318. <item>
  319. <label>약품코드</label>
  320. <value>2</value>
  321. </item>
  322. </choices>
  323. <script type="javascript" ev:event="xforms-value-changed">
  324. <![CDATA[
  325. model.setValue("/root/main/condition/srchdrugnm", "");
  326. model.setValue("/root/main/condition/srchdrugcd", "");
  327. model.refresh();
  328. ]]>
  329. </script>
  330. </select1>
  331. <input id="ipt_srchhngnm" ref="/root/main/condition/srchdrugnm" class="input_s_essential" style="left:499px; top:10px; width:210px; height:19px; ">
  332. <script type="javascript" ev:event="onkeyup">
  333. <![CDATA[
  334. inputEnterKey("importbutton2", "DOMActivate");
  335. ]]>
  336. </script>
  337. </input>
  338. <select id="importcheckbox1" ref="/root/main/condition/srchscop" overflow="visible" appearance="full" style="left:885px; top:10px; width:165px; height:20px; border-style:none; ">
  339. <choices>
  340. <item>
  341. <label>모두 조회(종료 약품 포함)</label>
  342. <value>ALL</value>
  343. </item>
  344. </choices>
  345. </select>
  346. </group>
  347. <datagrid id="grd_druginfo" nodeset="/root/main/druginfo/info" class="datagrid" caption="항암제^항바이&#xA;러스제^약품구분^약품명^약품코드^약품종류^TPN여부^제한항생제&#xA;여부^확정여부^시작일자^종료일자^caption1^caption2^caption3" colsep="^" colwidth="45, 45, 101, 620,115, 115, 70, 70, 61, 131, 129, 100, 100, 100" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:75px; width:1194px; height:666px; ">
  348. <col ref="anticncyn" type="checkbox" visibility="hidden"/>
  349. <col ref="antivirusyn" type="checkbox" visibility="hidden"/>
  350. <col ref="spcldrugflag" type="combo" visibility="hidden">
  351. <choices>
  352. <itemset nodeset="/root/init/A0006list/A0006">
  353. <label ref="cdnm"/>
  354. <value ref="cdid"/>
  355. </itemset>
  356. </choices>
  357. </col>
  358. <col ref="hngnm" type="inputbutton"/>
  359. <col ref="drugcd"/>
  360. <col ref="drugkind" type="combo">
  361. <choices>
  362. <itemset nodeset="/root/init/A0014list/A0014">
  363. <label ref="cdnm"/>
  364. <value ref="cdid"/>
  365. </itemset>
  366. </choices>
  367. </col>
  368. <col ref="tpnyn" type="combo" visibility="hidden">
  369. <choices>
  370. <item>
  371. <label>Y</label>
  372. <value>Y</value>
  373. </item>
  374. <item>
  375. <label>N</label>
  376. <value>N</value>
  377. </item>
  378. </choices>
  379. </col>
  380. <col ref="restantimicyn" type="combo" visibility="hidden">
  381. <choices>
  382. <item>
  383. <label>Y</label>
  384. <value>Y</value>
  385. </item>
  386. <item>
  387. <label>N</label>
  388. <value>N</value>
  389. </item>
  390. </choices>
  391. </col>
  392. <col ref="cnfmyn" type="combo">
  393. <choices>
  394. <item>
  395. <label>Y</label>
  396. <value>Y</value>
  397. </item>
  398. <item>
  399. <label>N</label>
  400. <value>N</value>
  401. </item>
  402. </choices>
  403. </col>
  404. <col ref="drugfromdd" type="inputdate" format="yyyy-mm-dd"/>
  405. <col ref="drugtodd" type="inputdate" format="yyyy-mm-dd"/>
  406. <col ref="drugcd" visibility="hidden"/>
  407. <col ref="infcdrugcd" visibility="hidden"/>
  408. <col ref="infcflagcd" visibility="hidden"/>
  409. <script type="javascript" ev:event="onclick">
  410. <![CDATA[
  411. // if( grd_druginfo.mouseCol == 4 && grd_druginfo.mouseRow <= grd_druginfo.rows && grd_druginfo.mouseRow > 0 && (grd_druginfo.rowStatus(grd_druginfo.mouseRow) == 1 || grd_druginfo.rowStatus(grd_druginfo.mouseRow) == 3)) {
  412. // var iRow = grd_druginfo.row;
  413. // var status = "-";
  414. // if( !isNull(model.getValue("/root/main/druginfo/info[" + iRow + "]/drugcd")) && grd_druginfo.rowStatus(iRow) != 1 && grd_druginfo.rowStatus(iRow) != 3 ){
  415. // var org_drugCd = model.getValue("/root/main/druginfo/info[" +iRow + "]/drugcd");
  416. // model.setValue("/root/temp/reqdata/send/srchflag", "2");
  417. // model.setValue("/root/temp/reqdata/send/srchcnts", org_drugCd);
  418. // status = "U";
  419. // }
  420. //
  421. // model.setValue("/root/temp/reqdata/send/receiveref", "/root/temp/getdata/drugcd"); //상단 약품코드에 값이 보이지 않게 하기 위해 다른 path 사용
  422. // modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/reqdata/send/receiveref","/root/temp/receivedata/receiveref");
  423. //
  424. // if( !isNull(model.getValue("/root/temp/getdata/drugcd")) ){
  425. // if(status == "U" && org_drugCd != model.getValue("/root/temp/getdata/drugcd") && model.getValue("/root/temp/getdata/drugcd") != ""){
  426. // messageBox("해당 약품을 사용종료 한 후 새로 ", "C001");
  427. // return;
  428. //
  429. // }else if(status == "U" && (org_drugCd == model.getValue("/root/temp/getdata/drugcd") || model.getValue("/root/temp/getdata/drugcd") == "")){
  430. // return; //동일한 약품 검색 시 return
  431. //
  432. // }
  433. // var drugcd = model.getValue("/root/temp/getdata/drugcd");
  434. // model.removeNodeset("/root/send/reqdata");
  435. // model.makeValue("/root/send/reqdata/drugcd", drugcd);
  436. // submit("TRASB01402");
  437. //
  438. // model.setValue("/root/main/druginfo/info[" +iRow + "]/drugcd", model.getValue("/root/hidden/resultref/info/drugcd"));
  439. // model.setValue("/root/main/druginfo/info[" +iRow + "]/hngnm", model.getValue("/root/hidden/resultref/info/hngnm"));
  440. // model.setValue("/root/main/druginfo/info[" +iRow + "]/spcldrugflag", model.getValue("/root/hidden/resultref/info/spcldrug"));
  441. // model.setValue("/root/main/druginfo/info[" +iRow + "]/tpnyn", model.getValue("/root/hidden/resultref/info/tpnyn"));
  442. // model.setValue("/root/main/druginfo/info[" +iRow + "]/restantimicyn", model.getValue("/root/hidden/resultref/info/restantimicyn"));
  443. // model.setValue("/root/main/druginfo/info[" +iRow + "]/drugfromdd", model.getValue("/root/hidden/resultref/info/drugfromdd"));
  444. // model.setValue("/root/main/druginfo/info[" +iRow + "]/drugtodd", model.getValue("/root/hidden/resultref/info/drugtodd"));
  445. // model.setValue("/root/main/druginfo/info[" +iRow + "]/drugkind", model.getValue("/root/hidden/resultref/info/drugkind"));
  446. // model.setValue("/root/main/druginfo/info[" +iRow + "]/cnfmyn", model.getValue("/root/hidden/resultref/info/cnfmyn"));
  447. //
  448. // model.resetInstanceNode("/root/main/condition");
  449. // model.refresh();
  450. // }
  451. // }
  452. // if(grd_druginfo.mouseRow == 0){
  453. // grd_druginfo.explorerbar = "sortmove";
  454. // }
  455. ]]>
  456. </script>
  457. <script type="javascript" ev:event="onbuttonclick">
  458. <![CDATA[
  459. // if( grd_druginfo.mouseCol == 4 && grd_druginfo.mouseRow <= grd_druginfo.rows && grd_druginfo.mouseRow > 0 && (grd_druginfo.rowStatus(grd_druginfo.mouseRow) == 1 || grd_druginfo.rowStatus(grd_druginfo.mouseRow) == 3)) {
  460. if( grd_druginfo.col == 4) {
  461. // alert("alarm");
  462. var iRow = grd_druginfo.row;
  463. var status = "-";
  464. if( !isNull(model.getValue("/root/main/druginfo/info[" + iRow + "]/drugcd")) && grd_druginfo.rowStatus(iRow) != 1 && grd_druginfo.rowStatus(iRow) != 3 ){
  465. var org_drugCd = model.getValue("/root/main/druginfo/info[" +iRow + "]/drugcd");
  466. model.setValue("/root/temp/reqdata/send/srchflag", "2");
  467. model.setValue("/root/temp/reqdata/send/srchcnts", org_drugCd);
  468. status = "U";
  469. }
  470. model.setValue("/root/temp/reqdata/send/receiveref", "/root/temp/getdata/drugcd"); //상단 약품코드에 값이 보이지 않게 하기 위해 다른 path 사용
  471. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/reqdata/send/receiveref","/root/temp/receivedata/receiveref");
  472. if( !isNull(model.getValue("/root/temp/getdata/drugcd")) ){
  473. if(status == "U" && org_drugCd != model.getValue("/root/temp/getdata/drugcd") && model.getValue("/root/temp/getdata/drugcd") != ""){
  474. messageBox("해당 약품을 사용종료 한 후 새로 ", "C001");
  475. return;
  476. }else if(status == "U" && (org_drugCd == model.getValue("/root/temp/getdata/drugcd") || model.getValue("/root/temp/getdata/drugcd") == "")){
  477. return; //동일한 약품 검색 시 return
  478. }
  479. var drugcd = model.getValue("/root/temp/getdata/drugcd");
  480. model.removeNodeset("/root/send/reqdata");
  481. model.makeValue("/root/send/reqdata/drugcd", drugcd);
  482. submit("TRASB01402");
  483. model.setValue("/root/main/druginfo/info[" +iRow + "]/drugcd", model.getValue("/root/hidden/resultref/info/drugcd"));
  484. model.setValue("/root/main/druginfo/info[" +iRow + "]/hngnm", model.getValue("/root/hidden/resultref/info/hngnm"));
  485. model.setValue("/root/main/druginfo/info[" +iRow + "]/spcldrugflag", model.getValue("/root/hidden/resultref/info/spcldrug"));
  486. model.setValue("/root/main/druginfo/info[" +iRow + "]/tpnyn", model.getValue("/root/hidden/resultref/info/tpnyn"));
  487. model.setValue("/root/main/druginfo/info[" +iRow + "]/restantimicyn", model.getValue("/root/hidden/resultref/info/restantimicyn"));
  488. model.setValue("/root/main/druginfo/info[" +iRow + "]/drugfromdd", model.getValue("/root/hidden/resultref/info/drugfromdd"));
  489. model.setValue("/root/main/druginfo/info[" +iRow + "]/drugtodd", model.getValue("/root/hidden/resultref/info/drugtodd"));
  490. model.setValue("/root/main/druginfo/info[" +iRow + "]/drugkind", model.getValue("/root/hidden/resultref/info/drugkind"));
  491. model.setValue("/root/main/druginfo/info[" +iRow + "]/cnfmyn", model.getValue("/root/hidden/resultref/info/cnfmyn"));
  492. model.resetInstanceNode("/root/main/condition");
  493. model.refresh();
  494. }
  495. }
  496. if(grd_druginfo.mouseRow == 0){
  497. grd_druginfo.explorerbar = "sortmove";
  498. }
  499. ]]>
  500. </script>
  501. </datagrid>
  502. <button id="importbutton3" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
  503. <caption>엑셀</caption>
  504. <script type="javascript" ev:event="DOMActivate">
  505. <![CDATA[
  506. //var dispNm = getTitle();
  507. var dispNm = cap_gridlist.attribute("text");
  508. var fileName = window.fileDialog("save", ",", false, dispNm, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  509. if (fileName != ""){
  510. grd_druginfo.saveExcel(fileName, "SheetName", true, true, "", "", false);
  511. }
  512. ]]>
  513. </script>
  514. </button>
  515. <caption id="cap_gridlist" class="tit_2" style="left:5px; top:55px; width:130px; height:13px; ">감염관리 약품정보</caption>
  516. </group>
  517. </xhtml:body>
  518. </xhtml:html>