SMZCR00101_복약안내.xrw 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  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. <list>
  11. <resultCCMMByYakpumCd>
  12. <yakpum_cd/>
  13. <cmmc/>
  14. <!--번호-->
  15. <cmmc_rn/>
  16. <cmpat/>
  17. <!--복약내용-->
  18. <languagetype/>
  19. </resultCCMMByYakpumCd>
  20. <orgCCMMByYakpumCd>
  21. <yakpum_cd/>
  22. <cmmc/>
  23. <!--번호-->
  24. <cmmc_rn/>
  25. <cmpat/>
  26. <!--복약내용-->
  27. <languagetype/>
  28. </orgCCMMByYakpumCd>
  29. </list>
  30. <list2>
  31. <resultPEMMonograph>
  32. <pemono/>
  33. <!--모노그랩번호-->
  34. <pemtxtei/>
  35. <!--섹션구분id-->
  36. <pemtxteidesc/>
  37. <!--섹션구분-->
  38. <pemtxte/>
  39. <!--복약상세정보문내용-->
  40. </resultPEMMonograph>
  41. </list2>
  42. <selecteddrug>
  43. <edi_nm/>
  44. <yakhyo_desc/>
  45. <yakhyo_desc_old/>
  46. <yakhyo_desc_cust/>
  47. <yakpum_cd/>
  48. <status/>
  49. <eng_nm/>
  50. <atc3_desc/>
  51. <atc3_desc_old/>
  52. <atc3_desc_cust/>
  53. <languagetype/>
  54. </selecteddrug>
  55. <list3>
  56. <resultCMMLookup>
  57. <yakpum_cd/>
  58. <!--약품코드-->
  59. <drug_nm/>
  60. <!--약품명및용량-->
  61. <img_con/>
  62. <!--성상-->
  63. <yaksort_nm/>
  64. <!--효능-->
  65. <jeyaksa_nm/>
  66. <!--제약사명-->
  67. <cmm_guide/>
  68. <!--복약안내문-->
  69. </resultCMMLookup>
  70. </list3>
  71. </main>
  72. <send>
  73. <req>
  74. <pYakpumCd/>
  75. <!--약품코드-->
  76. <pGcnSeqNo/>
  77. <!--성분명(제형,함량구분)약품코드-->
  78. <pLanguageType/>
  79. </req>
  80. <reqCCMM>
  81. <pYakpumCd/>
  82. <pLanguageType/>
  83. <pImagePath/>
  84. </reqCCMM>
  85. </send>
  86. <init/>
  87. <hidden/>
  88. <temp/>
  89. </root>
  90. </instance>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. /*
  94. 화면을 초기화 합니다.
  95. 선택된 약품리스트를 불러온다. zcnfGetDurgList();
  96. 선택된 약품리스트중에 선택되어진 약픔정보를 가져온다.zcnfGetDurgInfo();
  97. 선택된 약품정보를 가지고 화면에 출력할 복약정보를 조회한다.getDetailDrugInfo();
  98. */
  99. fInitialize();
  100. zcnfGetDurgList();
  101. zcnfGetDurgInfo();
  102. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  103. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  104. var selecredRow = model.getValue("/root/main/selectedDrugInfo/pSelectRow");
  105. getDetailDrugInfo(param1,param2, selecredRow);
  106. // model.refresh();
  107. if(selecredRow == ""){
  108. selecredRow = 1;
  109. }
  110. model.setFocus("left_datagrid1");
  111. left_datagrid1.select(selecredRow,1) = true;
  112. left_datagrid1.refresh();
  113. model.makeValue("/root/send/reqCCMM/pImagePath", getDomain()+"/dif/images/");
  114. ]]>
  115. </script>
  116. <submission id="TRZCR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list"/>
  117. <submission id="TRZCR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list2"/>
  118. <submission id="TXZCR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/resultCCMMByYakpumCd" replace="instance" resultref="/root/temp"/>
  119. <submission id="TXZCR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/selecteddrug" replace="instance" resultref="/root/temp"/>
  120. <submission id="TRZCR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqCCMM" resultref="/root/main/list3"/>
  121. </model>
  122. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  123. <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
  124. <script type="javascript">
  125. <![CDATA[
  126. /*
  127. 초기화 작업을 합니다.
  128. */
  129. function fInitialize(){
  130. fInitialize1();
  131. fInitialize2();
  132. // 사용자 권한에 따른 버튼 조작
  133. // 관리자인 경우 보이게 아닌경우 안보이게
  134. if(checkAuth("X")){
  135. button1.attribute("visibility") = "visible";
  136. button2.attribute("visibility") = "visible";
  137. button3.attribute("visibility") = "visible";
  138. button8.attribute("visibility") = "visible";
  139. button9.attribute("visibility") = "visible";
  140. button11.attribute("visibility") = "visible";
  141. button12.attribute("visibility") = "visible";
  142. button13.attribute("visibility") = "visible";
  143. button18.attribute("visibility") = "visible";
  144. button19.attribute("visibility") = "visible";
  145. button5.attribute("visibility") = "visible"; //한글복약안내 출력버튼
  146. button10.attribute("visibility") = "visible"; //영문복약안내 출력버튼
  147. /* 출력버튼 활성화시 위치이동
  148. button5.attribute("left") = "707px";
  149. button5.attribute("top") = "11px";
  150. button10.attribute("left") = "707px";
  151. button10.attribute("top") = "11px";
  152. */
  153. } else {
  154. button1.attribute("visibility") = "hidden";
  155. button2.attribute("visibility") = "hidden";
  156. button3.attribute("visibility") = "hidden";
  157. button8.attribute("visibility") = "hidden";
  158. button9.attribute("visibility") = "hidden";
  159. button11.attribute("visibility") = "hidden";
  160. button12.attribute("visibility") = "hidden";
  161. button13.attribute("visibility") = "hidden";
  162. button18.attribute("visibility") = "hidden";
  163. button19.attribute("visibility") = "hidden";
  164. button5.attribute("visibility") = "hidden"; //한글복약안내 출력버튼
  165. button10.attribute("visibility") = "hidden"; //영문복약안내 출력버튼
  166. /*출력버튼 활성화시 위치이동
  167. button5.attribute("left") = "768px";
  168. button5.attribute("top") = "11px";
  169. button10.attribute("left") = "768px";
  170. button10.attribute("top") = "11px";
  171. */
  172. }
  173. }
  174. /*
  175. 약물상호작용 탭 초기화
  176. */
  177. function fInitialize1(){
  178. model.removeNodeset("/root/main/list/resultCCMMByYakpumCd");
  179. model.makeValue("/root/send/req/pLanguageType" ,"01");
  180. }
  181. /*
  182. 약물상호작용검사탭 초기화
  183. */
  184. function fInitialize2(){
  185. model.removeNodeset("/root/main/list2/resultPEMMonograph");
  186. model.makeValue("/root/send/req/pLanguageType" ,"01");
  187. }
  188. /*
  189. 약물상호작용 탭 초기화
  190. */
  191. function fInitialize3(){
  192. model.removeNodeset("/root/main/list/resultCCMMByYakpumCd");
  193. model.makeValue("/root/send/req/pLanguageType" ,"02");
  194. }
  195. function fInitialize4(){
  196. model.removeNodeset("/root/main/list2/resultPEMMonograph");
  197. model.makeValue("/root/send/req/pLanguageType" ,"02");
  198. }
  199. /*
  200. model.getValue(); 를 함수로 만들었습니다.
  201. param1 : node는 grid의 xPath입니다.
  202. param2 : row는 grid에서 선택한 row값입니다.
  203. param3 : element는 getvalue할 해당 element 명입니다.
  204. 해당 getvalue값을 return 해줍니다.
  205. return 하지 않으면 해당값을 가져올 수 없습니다.
  206. */
  207. function fGetValue(node, row, element) {
  208. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  209. return rtnValue;
  210. }
  211. /*
  212. model.reqGetDetailInfo(); 를 함수로 만들었습니다.
  213. param1 : 선택된 약품 grid에서 선택된 약품코드 입니다.
  214. 해당 getvalue값을 return 해줍니다.
  215. return 하지 않으면 해당값을 가져올 수 없습니다.
  216. */
  217. function reqGetDetailInfo(param1,param2, param3) {
  218. //alert("약품코드= "+param1+" GCN_NO = "+param2);
  219. //각 화면별 개별처리;
  220. /*
  221. 1. 선택된 약품 instance setvalue
  222. --> "/root/main/selecteddrug"
  223. -->"/root/send/req/pGcnSeqNo"
  224. 2. 첫번째 탭 클릭 이벤트 강제 발생
  225. --> 조회 부분은 탭버튼에 기술
  226. */
  227. model.removeNodeset("/root/main/selecteddrug/edi_nm");
  228. model.removeNodeset("/root/main/selecteddrug/yakhyo_desc");
  229. model.removeNodeset("/root/main/selecteddrug/yakhyo_desc_cust");
  230. model.removeNodeset("/root/main/selecteddrug/eng_nm");
  231. model.removeNodeset("/root/main/selecteddrug/atc3_desc");
  232. model.removeNodeset("/root/main/selecteddrug/atc3_desc_cust");
  233. opt_DrugNm.refresh();
  234. output1.refresh();
  235. output2.refresh();
  236. input2.refresh();
  237. opt_DrugNm1.refresh();
  238. output11.refresh();
  239. input12.refresh();
  240. model.makeValue("/root/main/selecteddrug/yakpum_cd", model.getValue("/root/main/list4/resultDrugSearchDetail/yakpum_cd"));
  241. model.makeValue("/root/main/selecteddrug/edi_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/edi_nm"));
  242. model.makeValue("/root/main/selecteddrug/yakhyo_desc", model.getValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm"));
  243. model.makeValue("/root/main/selecteddrug/yakhyo_desc_cust", model.getValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm_cust"));
  244. model.makeValue("/root/main/selecteddrug/yakhyo_desc_old", model.getValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm_cust"));
  245. model.makeValue("/root/main/selecteddrug/eng_nm", model.getValue("/root/main/list4/resultDrugSearchDetail/eng_nm"));
  246. model.makeValue("/root/main/selecteddrug/atc3_desc", model.getValue("/root/main/list4/resultDrugSearchDetail/atc3_desc"));
  247. model.makeValue("/root/main/selecteddrug/atc3_desc_cust", model.getValue("/root/main/list4/resultDrugSearchDetail/atc3_desc_cust"));
  248. model.makeValue("/root/main/selecteddrug/atc3_desc_old", model.getValue("/root/main/list4/resultDrugSearchDetail/atc3_desc_cust"));
  249. model.makeValue("/root/send/req/pYakpumCd",param1);
  250. model.makeValue("/root/send/req/pGcnSeqNo",param2);
  251. if(case1.selected == true){
  252. fInitialize1();
  253. submit("TRZCR00101");
  254. grd_resultCCMMByYakpumCd.refresh();
  255. }else if(case2.selected == true){
  256. fInitialize2();
  257. submit("TRZCR00401");
  258. }
  259. else if(case3.selected == true){
  260. fInitialize3();
  261. submit("TRZCR00101");
  262. }else if(case4.selected == true){
  263. fInitialize4();
  264. submit("TRZCR00401");
  265. }
  266. }
  267. // 인자로 넘어온 값을 label 로 같은 아이템의 인덱스를 반환
  268. function labelToIndex(label, tree)
  269. {
  270. for(var i=0; i<tree.length; i++)
  271. {
  272. if(tree.item(i).label == label)
  273. return i;
  274. }
  275. return -1;
  276. }
  277. function FirstDIS_Request(){
  278. model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
  279. if(case1.selected == true){
  280. model.makeValue("/root/firstDISsend/refno","2"); // 복약안내
  281. modal("../../referenceweb/xrw/SPZCR00301_복약안내문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  282. }else if(case2.selected == true){
  283. model.makeValue("/root/firstDISsend/refno","3"); // 복약지도전문
  284. model.makeValue("/root/firstDISsend/refcd",model.getValue("/root/main/list2/resultPEMMonograph[1]/pemono"));
  285. modal("../../referenceweb/xrw/SPZCR00301_복약지도전문문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  286. }
  287. //model.makeValue("/root/difsend/refcd",);
  288. }
  289. ]]>
  290. </script>
  291. </xhtml:head>
  292. <xhtml:body pagewidth="1280" pageheight="990" guideline="2,299;1,1199;2,741;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  293. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">복약안내</caption>
  294. <import id="import1" instancetype="merge" src="../../../com/navigationweb/xrw/SMZCN00201_선택약품.xrw" style="left:5px; top:15px; width:360px; height:765px; "/>
  295. <button id="btn_PEM" class="btn_sw" group="tab" style="left:577px; top:40px; width:207px; height:22px; ">
  296. <caption>복약지도 전문</caption>
  297. <toggle case="case2" ev:event="onclick"/>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. /*
  301. 1. submission id : TRZCR00401
  302. 2. 결과 Instance "/root/main/list2/resultPEMMonograph"
  303. */
  304. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  305. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  306. reqGetDetailInfo(param1,param2,0)
  307. ]]>
  308. </script>
  309. </button>
  310. <button id="btn_CCMM" class="btn_sw" group="tab" selected="true" style="left:370px; top:40px; width:208px; height:22px; ">
  311. <caption>복약안내문</caption>
  312. <toggle case="case1" ev:event="onclick"/>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. /*
  316. 1. 약물 상호작용 리스트 첫번째 row 클릭 coding 할것
  317. */
  318. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  319. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  320. reqGetDetailInfo(param1,param2,0)
  321. ]]>
  322. </script>
  323. </button>
  324. <button id="btn_ECCMM" class="btn_sw" group="tab" style="left:783px; top:40px; width:208px; height:22px; ">
  325. <caption>영문복약안내문</caption>
  326. <toggle case="case3" ev:event="onclick"/>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. /*
  330. 1. 약물 상호작용 리스트 첫번째 row 클릭 coding 할것
  331. */
  332. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  333. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  334. reqGetDetailInfo(param1,param2,0)
  335. ]]>
  336. </script>
  337. </button>
  338. <switch id="switch1" style="left:370px; top:61px; width:831px; height:682px; ">
  339. <case id="case1" selected="true">
  340. <line id="line3" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
  341. <caption id="caption3" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
  342. <datagrid id="grd_resultCCMMByYakpumCd" nodeset="/root/main/list/resultCCMMByYakpumCd" class="datagrid2" allowuserresize="true" caption="순번^Description" colwidth="52, 696, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:15px; top:95px; width:799px; height:219px; ">
  343. <col ref="cmmc_rn" style="text-align:center; "/>
  344. <col ref="cmpat" type="input" style="text-align:left; "/>
  345. <col ref="yakpum_cd" visibility="hidden"/>
  346. <col ref="cmmc" visibility="hidden"/>
  347. </datagrid>
  348. <caption id="caption10" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
  349. <line id="line8" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
  350. <output id="opt_DrugNm" ref="/root/main/selecteddrug/edi_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
  351. <caption id="caption4" class="tit_2" style="left:19px; top:77px; width:205px; height:13px; ">복약 안내문</caption>
  352. <line id="line4" class="line_1" style="x1:15px; y1:92px; x2:814px; y2:92px; "/>
  353. <button id="button10" class="btn2_letter2" style="left:707px; top:11px; width:42px; height:19px; ">
  354. <caption>출력</caption>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. /*
  358. 1. submission id : TRZCR00301
  359. 2. 결과 Instance "/root/main/list3/resultCMMLookup"
  360. */
  361. var rowcnt = left_datagrid1.rows-1;
  362. var arrfdrugcd ="";
  363. for (i = 1; i <= rowcnt; i++)
  364. {
  365. arrfdrugcd = arrfdrugcd + model.getValue("/root/main/selectedlist/list" + "[" + i + "]/" + "fdrugcd")+"|" ;
  366. }
  367. model.makeValue("/root/send/reqCCMM/pYakpumCd", arrfdrugcd);
  368. model.makeValue("/root/send/reqCCMM/pLanguageType", model.getValue("/root/send/req/pLanguageType"));
  369. // model.makeValue("/root/send/reqCCMM/pImagePath", getDomain()+"/dif/images/");
  370. submit("TRZCR00301");
  371. // rexpert를 이용한 복약안내문 출력
  372. exeReportPreview("RPDUR00101", "XMLSTR", "/root/main/list3"); //미리보기
  373. ]]>
  374. </script>
  375. </button>
  376. <button id="button2" class="btn4_letter2" _auth="X" style="left:754px; top:10px; width:56px; height:22px; ">
  377. <caption>저장</caption>
  378. <script type="javascript" ev:event="DOMActivate">
  379. <![CDATA[
  380. /*
  381. CHECK 로직 기술
  382. 1. 저장대상이 존재하는지? RowCount만 확인한다.
  383. 2. 저장대상의 Number와 Description 중 누락된 항목은 없는지?
  384. --> 저장대상중 Description 또는 Number가 존재 하지 않는 경우 저장대상 제외
  385. (App Layer에서 체크하고 있음)
  386. 3. 사용 Submission ID : TXZCR00101
  387. 4. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
  388. 5. 복약안내문 Refresh 불필요
  389. */
  390. if(!checkGridUpdate(grd_resultCCMMByYakpumCd))
  391. {
  392. alert("저장할 자료가 존재하지 않습니다.");
  393. return;
  394. }
  395. var cnt_row = grd_resultCCMMByYakpumCd.rows; // 현재 행의 갯수 가져오기
  396. for(i = cnt_row-1; i >=1; i-- ) //순번제지정
  397. {
  398. var iStatus = grd_resultCCMMByYakpumCd.rowstatus(i);
  399. //alert("i= "+i+ " iStatus= "+iStatus+" /cnt_row:"+cnt_row);
  400. if(iStatus == "4" || iStatus == "6")
  401. {
  402. if (grd_resultCCMMByYakpumCd.rows==2){
  403. model.removenode("/root/main/list/resultCCMMByYakpumCd/cmpat")
  404. }
  405. else{
  406. grd_resultCCMMByYakpumCd.deleteRow(i,false);
  407. }
  408. }
  409. }
  410. if ( submit("TXZCR00101") ) {
  411. grd_resultCCMMByYakpumCd.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  412. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  413. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  414. reqGetDetailInfo(param1,param2,0)
  415. }
  416. ]]>
  417. </script>
  418. </button>
  419. <button id="button8" class="btn2_letter3" style="left:705px; top:70px; width:53px; height:19px; ">
  420. <caption>행추가</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. grd_resultCCMMByYakpumCd.addRow(); // 입력할 행 추가.
  424. var cur_row = grd_resultCCMMByYakpumCd.row; // 추가된 행 번호 가져오기
  425. var cnt_row = grd_resultCCMMByYakpumCd.rows; // 현재 행의 갯수 가져오기
  426. var syakpum_cd;
  427. syakpum_cd = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  428. model.setValue("/root/main/list/resultCCMMByYakpumCd["+cur_row+"]/yakpum_cd",syakpum_cd);
  429. // 그리드에 추가
  430. //model.copyNode("/root/main/list/scrnlist["+cur_row+"]","/root/main/item");
  431. for(i = 1; i < cnt_row; i++ ) //순번제지정
  432. {
  433. model.makeValue("/root/main/list/resultCCMMByYakpumCd["+i+"]/cmmc_rn",i);
  434. }
  435. model.refresh();
  436. grd_resultCCMMByYakpumCd.row = cur_row;
  437. //grd_resultCCMMByYakpumCd.select(cur_row, 2)=true;
  438. //grd_resultCCMMByYakpumCd.editcell();
  439. ]]>
  440. </script>
  441. </button>
  442. <button id="button9" class="btn2_letter3" style="left:760px; top:70px; width:53px; height:19px; ">
  443. <caption>행삭제</caption>
  444. <script type="javascript" ev:event="DOMActivate">
  445. <![CDATA[
  446. var cur_row = grd_resultCCMMByYakpumCd.row; // 행 번호 가져오기
  447. if(cur_row<0) {
  448. alert("삭제할 행을 선택해주세요.");
  449. return;
  450. }
  451. var all_row = grd_resultCCMMByYakpumCd.selectedRows;
  452. for(i= 0;i< all_row;i++){
  453. var delete_row = grd_resultCCMMByYakpumCd.selectedrow(i);
  454. var iStatus = grd_resultCCMMByYakpumCd.rowstatus(delete_row);
  455. if (iStatus == 1||iStatus == 3) // 새로 삽입된 행이면
  456. {
  457. grd_resultCCMMByYakpumCd.deleteitem(delete_row);
  458. }
  459. else if (iStatus == 4) // 삭제로 표시된 행이면
  460. {
  461. grd_resultCCMMByYakpumCd.removestatus(delete_row, "delete");
  462. }
  463. else
  464. {
  465. grd_resultCCMMByYakpumCd.addStatus(delete_row, "delete");
  466. }
  467. }
  468. ]]>
  469. </script>
  470. </button>
  471. <line id="line1" class="line_3" style="x1:15px; y1:623px; x2:815px; y2:623px; "/>
  472. <caption id="caption1" class="cell_1" style="left:15px; top:600px; width:132px; height:23px; text-align:center; ">효능(약효분류명)</caption>
  473. <caption id="caption2" class="tit_2" style="left:19px; top:580px; width:205px; height:13px; ">선택된 약품별 효능관리</caption>
  474. <line id="line2" class="line_1" style="x1:15px; y1:595px; x2:815px; y2:595px; "/>
  475. <output id="output1" ref="/root/main/selecteddrug/yakhyo_desc" class="output_fix" style="left:150px; top:601px; width:665px; height:19px; "/>
  476. <caption id="caption7" class="cell_1" style="left:15px; top:625px; width:132px; height:23px; text-align:center; ">New 효능</caption>
  477. <line id="line6" class="line_3" style="x1:15px; y1:648px; x2:815px; y2:648px; "/>
  478. <input id="input2" ref="/root/main/selecteddrug/yakhyo_desc_cust" class="input_fix" maxlength="50" style="left:150px; top:626px; width:665px; height:19px; "/>
  479. <button id="button1" class="btn4_letter2" _auth="X" style="left:700px; top:570px; width:56px; height:22px; ">
  480. <caption>저장</caption>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. /*
  484. CHECK 로직 기술
  485. 1. 저장대상이 존재하는지? 확인한다.
  486. 2. 사용 Submission ID : TXZCR00101
  487. 3. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
  488. 4. 복약안내문 Refresh 불필요
  489. */
  490. var yakhyo_desc_cust = model.getValue("/root/main/selecteddrug/yakhyo_desc_cust");
  491. var yakhyo_desc_old = model.getValue("/root/main/selecteddrug/yakhyo_desc_old");
  492. model.makeValue("/root/main/selecteddrug/status","insert");
  493. model.makeValue("/root/main/selecteddrug/languagetype","01");
  494. if(yakhyo_desc_cust ==""){
  495. alert("내용없이 저장하려면 삭제 버튼을 이용하십시요.");
  496. model.setValue("/root/main/selecteddrug/yakhyo_desc_cust", yakhyo_desc_old);
  497. model.refresh();
  498. return;
  499. }
  500. if(yakhyo_desc_cust == yakhyo_desc_old)
  501. {
  502. return;
  503. }
  504. if ( submit("TXZCR00201") ) {
  505. model.makeValue("/root/main/selecteddrug/yakhyo_desc_old", yakhyo_desc_cust);
  506. model.setValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm_cust",yakhyo_desc_cust);
  507. }
  508. ]]>
  509. </script>
  510. </button>
  511. <button id="button3" class="btn4_letter2" _auth="X" style="left:760px; top:570px; width:56px; height:22px; ">
  512. <caption>삭제</caption>
  513. <script type="javascript" ev:event="DOMActivate">
  514. <![CDATA[
  515. /*
  516. CHECK 로직 기술
  517. 1. 저장대상이 존재하는지? RowCount만 확인한다.
  518. 2. 저장대상의 Number와 Description 중 누락된 항목은 없는지?
  519. --> 저장대상중 Description 또는 Number가 존재 하지 않는 경우 저장대상 제외
  520. (App Layer에서 체크하고 있음)
  521. 3. 사용 Submission ID : TXZCR00101
  522. 4. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
  523. 5. 복약안내문 Refresh 불필요
  524. */
  525. var yakhyo_desc_cust = model.getValue("/root/main/selecteddrug/yakhyo_desc_cust");
  526. var yakhyo_desc_old = model.getValue("/root/main/selecteddrug/yakhyo_desc_old");
  527. model.makeValue("/root/main/selecteddrug/status","delete");
  528. model.makeValue("/root/main/selecteddrug/languagetype","01");
  529. if(model.alert("삭제 처리시 바로 적용됩니다.","삭제처리 하시겠습니까?",1)==1){
  530. if ( submit("TXZCR00201") ) {
  531. model.makeValue("/root/main/selecteddrug/yakhyo_desc_cust", "");
  532. model.makeValue("/root/main/selecteddrug/yakhyo_desc_old", "");
  533. model.setValue("/root/main/list4/resultDrugSearchDetail/yaksort_nm_cust","");
  534. input2.refresh();
  535. }
  536. }else{
  537. return;
  538. }
  539. ]]>
  540. </script>
  541. </button>
  542. <caption id="caption9" class="cell_1" style="left:15px; top:650px; width:800px; height:23px; text-align:center; ">50자를 초과 할수 없습니다.</caption>
  543. <datagrid id="grd_orgCCMMByYakpumCd" nodeset="/root/main/list/orgCCMMByYakpumCd" class="datagrid2" allowuserresize="true" caption="순번^Description" colwidth="52, 696, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:15px; top:345px; width:799px; height:218px; ">
  544. <col ref="cmmc_rn" style="text-align:center; "/>
  545. <col ref="cmpat" style="text-align:left; "/>
  546. <col ref="yakpum_cd" visibility="hidden"/>
  547. <col ref="cmmc" visibility="hidden"/>
  548. </datagrid>
  549. <caption id="caption15" class="tit_2" style="left:19px; top:327px; width:205px; height:13px; ">원본 복약 안내문</caption>
  550. <line id="line10" class="line_1" style="x1:15px; y1:342px; x2:814px; y2:342px; "/>
  551. </case>
  552. <case id="case2">
  553. <button id="button4" class="btn2_letter2" style="left:768px; top:11px; width:42px; height:19px; ">
  554. <caption>출력</caption>
  555. <script type="javascript" ev:event="DOMActivate">
  556. <![CDATA[
  557. /*
  558. 1. submission id : TRZCR00301
  559. 2. 결과 Instance "/root/main/list2
  560. */
  561. model.makeValue("/root/main/list2/edi_nm",model.getValue("/root/main/selecteddrug/edi_nm"));
  562. // rexpert를 이용한 복약지도전문 출력
  563. exeReportPreview("RPDUR00301", "XMLSTR", "/root/main/list2"); //미리보기
  564. ]]>
  565. </script>
  566. </button>
  567. <output id="opt_DrugNm3" ref="/root/main/selecteddrug/edi_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
  568. <caption id="caption5" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
  569. <line id="line5" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
  570. <caption id="caption8" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
  571. <line id="line7" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
  572. <datagrid id="grd_PEMMonograph" nodeset="/root/main/list2/resultPEMMonograph" autoresize="true" backcoloralternate="transparent" caption="구 분^상세내용" colsep="^" colwidth="144, 648" dataheight="25" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:15px; top:91px; width:799px; height:581px; ">
  573. <col autonext="true" ref="pemtxteidesc" style="text-align:center; vertical-align:top; "/>
  574. <col ref="pemtxte"/>
  575. </datagrid>
  576. <caption id="cap_title3" class="tit_2" style="left:19px; top:72px; width:486px; height:13px; ">복약지도 전문 상세내역</caption>
  577. <line id="line9" class="line_1" style="x1:15px; y1:87px; x2:814px; y2:87px; "/>
  578. </case>
  579. <case id="case3">
  580. <line id="line13" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
  581. <caption id="caption11" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
  582. <datagrid id="grd_resultCCMMByYakpumCd1" nodeset="/root/main/list/resultCCMMByYakpumCd" class="datagrid2" allowuserresize="true" caption="순번^Description" colwidth="52, 698, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:15px; top:95px; width:799px; height:219px; ">
  583. <col ref="cmmc_rn" style="text-align:center; "/>
  584. <col ref="cmpat" type="input" style="text-align:left; "/>
  585. <col ref="yakpum_cd" visibility="hidden"/>
  586. <col ref="cmmc" visibility="hidden"/>
  587. </datagrid>
  588. <caption id="caption20" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
  589. <line id="line18" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
  590. <output id="opt_DrugNm1" ref="/root/main/selecteddrug/eng_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
  591. <caption id="caption14" class="tit_2" style="left:19px; top:77px; width:205px; height:8px; ">복약 안내문</caption>
  592. <line id="line14" class="line_1" style="x1:15px; y1:92px; x2:814px; y2:92px; "/>
  593. <button id="button5" class="btn2_letter2" style="left:707px; top:11px; width:42px; height:19px; ">
  594. <caption>출력</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. /*
  598. 1. submission id : TRZCR00301
  599. 2. 결과 Instance "/root/main/list3/resultCMMLookup"
  600. */
  601. var rowcnt = left_datagrid1.rows-1;
  602. var arrfdrugcd ="";
  603. for (i = 1; i <= rowcnt; i++)
  604. {
  605. arrfdrugcd = arrfdrugcd + model.getValue("/root/main/selectedlist/list" + "[" + i + "]/" + "fdrugcd")+"|" ;
  606. }
  607. model.makeValue("/root/send/reqCCMM/pYakpumCd", arrfdrugcd);
  608. model.makeValue("/root/send/reqCCMM/pLanguageType", model.getValue("/root/send/req/pLanguageType"));
  609. submit("TRZCR00301");
  610. // rexpert를 이용한 영문복약안내문 출력
  611. exeReportPreview("RPDUR00201", "XMLSTR", "/root/main/list3"); //미리보기
  612. ]]>
  613. </script>
  614. </button>
  615. <button id="button12" class="btn4_letter2" _auth="X" style="left:754px; top:10px; width:56px; height:22px; ">
  616. <caption>저장</caption>
  617. <script type="javascript" ev:event="DOMActivate">
  618. <![CDATA[
  619. /*
  620. CHECK 로직 기술
  621. 1. 저장대상이 존재하는지? RowCount만 확인한다.
  622. 2. 저장대상의 Number와 Description 중 누락된 항목은 없는지?
  623. --> 저장대상중 Description 또는 Number가 존재 하지 않는 경우 저장대상 제외
  624. (App Layer에서 체크하고 있음)
  625. 3. 사용 Submission ID : TXZCR00101
  626. 4. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
  627. 5. 복약안내문 Refresh 불필요
  628. */
  629. if(!checkGridUpdate(grd_resultCCMMByYakpumCd1))
  630. {
  631. alert("저장할 자료가 존재하지 않습니다.");
  632. return;
  633. }
  634. var cnt_row = grd_resultCCMMByYakpumCd1.rows; // 현재 행의 갯수 가져오기
  635. for(i = cnt_row-1; i >=1; i-- ) //순번제지정
  636. {
  637. var iStatus = grd_resultCCMMByYakpumCd1.rowstatus(i);
  638. //alert("i= "+i+ " iStatus= "+iStatus+" /cnt_row:"+cnt_row);
  639. if(iStatus == "4" || iStatus == "6")
  640. {
  641. if (grd_resultCCMMByYakpumCd1.rows==2){
  642. model.removenode("/root/main/list/resultCCMMByYakpumCd/cmpat")
  643. }
  644. else{
  645. grd_resultCCMMByYakpumCd1.deleteRow(i,false);
  646. }
  647. }
  648. }
  649. if ( submit("TXZCR00101") ) {
  650. grd_resultCCMMByYakpumCd1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  651. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  652. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  653. reqGetDetailInfo(param1,param2,0)
  654. }
  655. ]]>
  656. </script>
  657. </button>
  658. <button id="button18" class="btn2_letter3" style="left:705px; top:70px; width:53px; height:14px; ">
  659. <caption>행추가</caption>
  660. <script type="javascript" ev:event="DOMActivate">
  661. <![CDATA[
  662. grd_resultCCMMByYakpumCd1.addRow(); // 입력할 행 추가.
  663. var cur_row = grd_resultCCMMByYakpumCd1.row; // 추가된 행 번호 가져오기
  664. var cnt_row = grd_resultCCMMByYakpumCd1.rows; // 현재 행의 갯수 가져오기
  665. var syakpum_cd;
  666. syakpum_cd = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  667. model.setValue("/root/main/list/resultCCMMByYakpumCd["+cur_row+"]/yakpum_cd",syakpum_cd);
  668. // 그리드에 추가
  669. //model.copyNode("/root/main/list/scrnlist["+cur_row+"]","/root/main/item");
  670. for(i = 1; i < cnt_row; i++ ) //순번제지정
  671. {
  672. model.makeValue("/root/main/list/resultCCMMByYakpumCd["+i+"]/cmmc_rn",i);
  673. }
  674. model.refresh();
  675. grd_resultCCMMByYakpumCd1.row = cur_row;
  676. //grd_resultCCMMByYakpumCd.select(cur_row, 2)=true;
  677. //grd_resultCCMMByYakpumCd.editcell();
  678. ]]>
  679. </script>
  680. </button>
  681. <button id="button19" class="btn2_letter3" style="left:760px; top:70px; width:53px; height:14px; ">
  682. <caption>행삭제</caption>
  683. <script type="javascript" ev:event="DOMActivate">
  684. <![CDATA[
  685. var cur_row = grd_resultCCMMByYakpumCd1.row; // 행 번호 가져오기
  686. if(cur_row<0) {
  687. alert("삭제할 행을 선택해주세요.");
  688. return;
  689. }
  690. var all_row = grd_resultCCMMByYakpumCd1.selectedRows;
  691. for(i= 0;i< all_row;i++){
  692. var delete_row = grd_resultCCMMByYakpumCd1.selectedrow(i);
  693. var iStatus = grd_resultCCMMByYakpumCd1.rowstatus(delete_row);
  694. if (iStatus == 1||iStatus == 3) // 새로 삽입된 행이면
  695. {
  696. grd_resultCCMMByYakpumCd1.deleteitem(delete_row);
  697. }
  698. else if (iStatus == 4) // 삭제로 표시된 행이면
  699. {
  700. grd_resultCCMMByYakpumCd1.removestatus(delete_row, "delete");
  701. }
  702. else
  703. {
  704. grd_resultCCMMByYakpumCd1.addStatus(delete_row, "delete");
  705. }
  706. }
  707. ]]>
  708. </script>
  709. </button>
  710. <line id="line11" class="line_3" style="x1:15px; y1:623px; x2:815px; y2:623px; "/>
  711. <caption id="caption12" class="cell_1" style="left:15px; top:600px; width:132px; height:23px; text-align:center; ">효능(약효분류명)</caption>
  712. <caption id="caption13" class="tit_2" style="left:19px; top:580px; width:205px; height:13px; ">선택된 약품별 효능관리</caption>
  713. <line id="line12" class="line_1" style="x1:15px; y1:595px; x2:815px; y2:595px; "/>
  714. <output id="output11" ref="/root/main/selecteddrug/atc3_desc" class="output_fix" style="left:150px; top:601px; width:665px; height:19px; "/>
  715. <caption id="caption17" class="cell_1" style="left:15px; top:625px; width:132px; height:23px; text-align:center; ">New 효능</caption>
  716. <line id="line16" class="line_3" style="x1:15px; y1:648px; x2:815px; y2:648px; "/>
  717. <input id="input12" ref="/root/main/selecteddrug/atc3_desc_cust" class="input_fix" maxlength="50" style="left:150px; top:626px; width:665px; height:19px; "/>
  718. <button id="button11" class="btn4_letter2" _auth="X" style="left:700px; top:570px; width:56px; height:22px; ">
  719. <caption>저장</caption>
  720. <script type="javascript" ev:event="DOMActivate">
  721. <![CDATA[
  722. /*
  723. CHECK 로직 기술
  724. 1. 저장대상이 존재하는지? 확인한다.
  725. 2. 사용 Submission ID : TXZCR00101
  726. 3. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
  727. 4. 복약안내문 Refresh 불필요
  728. */
  729. var atc3_desc_cust = model.getValue("/root/main/selecteddrug/atc3_desc_cust");
  730. var atc3_desc_old = model.getValue("/root/main/selecteddrug/atc3_desc_old");
  731. model.makeValue("/root/main/selecteddrug/status","insert");
  732. model.makeValue("/root/main/selecteddrug/languagetype","02");
  733. if(atc3_desc_cust ==""){
  734. alert("내용없이 저장하려면 삭제 버튼을 이용하십시요.");
  735. model.setValue("/root/main/selecteddrug/atc3_desc_cust", atc3_desc_old);
  736. model.refresh();
  737. return;
  738. }
  739. if(atc3_desc_cust == atc3_desc_old)
  740. {
  741. return;
  742. }
  743. if ( submit("TXZCR00201") ) {
  744. model.makeValue("/root/main/selecteddrug/atc3_desc_old", atc3_desc_cust);
  745. model.setValue("/root/main/list4/resultDrugSearchDetail/atc3_desc_cust",atc3_desc_cust);
  746. }
  747. ]]>
  748. </script>
  749. </button>
  750. <button id="button13" class="btn4_letter2" _auth="X" style="left:760px; top:570px; width:56px; height:22px; ">
  751. <caption>삭제</caption>
  752. <script type="javascript" ev:event="DOMActivate">
  753. <![CDATA[
  754. /*
  755. CHECK 로직 기술
  756. 1. 저장대상이 존재하는지? RowCount만 확인한다.
  757. 2. 저장대상의 Number와 Description 중 누락된 항목은 없는지?
  758. --> 저장대상중 Description 또는 Number가 존재 하지 않는 경우 저장대상 제외
  759. (App Layer에서 체크하고 있음)
  760. 3. 사용 Submission ID : TXZCR00101
  761. 4. 저장후 처리 메세지 alert 출력(건수로 리턴됨)
  762. 5. 복약안내문 Refresh 불필요
  763. */
  764. var atc3_desc_cust = model.getValue("/root/main/selecteddrug/atc3_desc_cust");
  765. var atc3_desc_old = model.getValue("/root/main/selecteddrug/atc3_desc_old");
  766. model.makeValue("/root/main/selecteddrug/status","delete");
  767. model.makeValue("/root/main/selecteddrug/languagetype","02");
  768. if(model.alert("삭제 처리시 바로 적용됩니다.","삭제처리 하시겠습니까?",1)==1){
  769. if ( submit("TXZCR00201") ) {
  770. model.makeValue("/root/main/selecteddrug/atc3_desc_cust", "");
  771. model.makeValue("/root/main/selecteddrug/atc3_desc_old", "");
  772. model.setValue("/root/main/list4/resultDrugSearchDetail/atc3_desc_cust","");
  773. input12.refresh();
  774. }
  775. }else{
  776. return;
  777. }
  778. ]]>
  779. </script>
  780. </button>
  781. <caption id="caption19" class="cell_1" style="left:15px; top:650px; width:800px; height:23px; text-align:center; ">50자를 초과 할수 없습니다.</caption>
  782. <line id="line15" class="line_1" style="x1:15px; y1:342px; x2:814px; y2:342px; "/>
  783. <datagrid id="datagrid1" nodeset="/root/main/list/orgCCMMByYakpumCd" class="datagrid2" allowuserresize="true" caption="순번^Description" colwidth="52, 697, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:15px; top:345px; width:799px; height:218px; ">
  784. <col ref="cmmc_rn" style="text-align:center; "/>
  785. <col ref="cmpat" style="text-align:left; "/>
  786. <col ref="yakpum_cd" visibility="hidden"/>
  787. <col ref="cmmc" visibility="hidden"/>
  788. </datagrid>
  789. <caption id="caption16" class="tit_2" style="left:19px; top:327px; width:205px; height:13px; ">원본 복약 안내문</caption>
  790. </case>
  791. <case id="case4">
  792. <button id="button6" class="btn2_letter2" style="left:768px; top:11px; width:42px; height:19px; ">
  793. <caption>출력</caption>
  794. <script type="javascript" ev:event="DOMActivate">
  795. <![CDATA[
  796. /*
  797. 1. submission id : TRZCR00301
  798. 2. 결과 Instance "/root/main/list2
  799. */
  800. model.makeValue("/root/main/list2/edi_nm",model.getValue("/root/main/selecteddrug/eng_nm"));
  801. // rexpert를 이용한 복약지도전문 출력
  802. exeReportPreview("RPDUR00401", "XMLSTR", "/root/main/list2"); //미리보기
  803. ]]>
  804. </script>
  805. </button>
  806. <output id="output2" ref="/root/main/selecteddrug/eng_nm" class="output_fix" style="left:150px; top:41px; width:664px; height:19px; "/>
  807. <caption id="caption18" class="tit_2" style="left:19px; top:20px; width:205px; height:13px; ">선택된 약품</caption>
  808. <line id="line17" class="line_1" style="x1:15px; y1:35px; x2:814px; y2:35px; "/>
  809. <caption id="caption21" class="cell_1" style="left:15px; top:40px; width:132px; height:23px; text-align:center; ">약품명</caption>
  810. <line id="line19" class="line_3" style="x1:15px; y1:62px; x2:814px; y2:62px; "/>
  811. <datagrid id="datagrid2" nodeset="/root/main/list2/resultPEMMonograph" autoresize="true" backcoloralternate="transparent" caption="구 분^상세내용" colsep="^" colwidth="168, 624" dataheight="25" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:15px; top:91px; width:799px; height:581px; ">
  812. <col autonext="true" ref="pemtxteidesc" style="text-align:center; vertical-align:top; "/>
  813. <col ref="pemtxte"/>
  814. </datagrid>
  815. <caption id="caption22" class="tit_2" style="left:19px; top:72px; width:486px; height:13px; ">복약지도 전문 상세내역</caption>
  816. <line id="line20" class="line_1" style="x1:15px; y1:87px; x2:814px; y2:87px; "/>
  817. </case>
  818. </switch>
  819. <import id="import2" src="../../../com/navigationweb/xrw/SPZCN00101_Copyright.xrw" style="left:370px; top:752px; width:833px; height:27px; "/>
  820. <button id="button7" class="btn_sw" group="tab" style="left:990px; top:40px; width:211px; height:22px; ">
  821. <caption>영문복약 전문</caption>
  822. <toggle case="case4" ev:event="onclick"/>
  823. <script type="javascript" ev:event="DOMActivate">
  824. <![CDATA[
  825. /*
  826. 1. 약물 상호작용 리스트 첫번째 row 클릭 coding 할것
  827. */
  828. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  829. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  830. reqGetDetailInfo(param1,param2,0)
  831. ]]>
  832. </script>
  833. </button>
  834. </xhtml:body>
  835. </xhtml:html>