SPMMD08000_DIF약품검색.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>DIF약품검색</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <resultlist>
  12. <paytype/>
  13. <hdrugcd/>
  14. <edicd/>
  15. <edinm/>
  16. <kornm/>
  17. <engnm/>
  18. <iengnm/>
  19. <bocheongunit/>
  20. <hamryang/>
  21. <jeyaksanm/>
  22. <yakpumgu/>
  23. <fdrugcd/>
  24. <gcnseqno/>
  25. </resultlist>
  26. </list>
  27. <list2>
  28. <resultlist>
  29. <paytype/>
  30. <hdrugcd/>
  31. <edicd/>
  32. <edinm/>
  33. <kornm/>
  34. <engnm/>
  35. <iengnm/>
  36. <bocheongunit/>
  37. <hamryang/>
  38. <jeyaksanm/>
  39. <yakpumgu/>
  40. <fdrugcd/>
  41. <gcnseqno/>
  42. </resultlist>
  43. </list2>
  44. <treelist>
  45. <node/>
  46. </treelist>
  47. <treetmp/>
  48. <list3/>
  49. </main>
  50. <send>
  51. <req>
  52. <pSearchType>03</pSearchType>
  53. <pScope>02</pScope>
  54. <pKeyword/>
  55. </req>
  56. <reqClassfication>
  57. <pSearchType>01</pSearchType>
  58. <pScope>02</pScope>
  59. <pKeyword/>
  60. <pClassification/>
  61. </reqClassfication>
  62. </send>
  63. <init>
  64. </init>
  65. <hidden>
  66. </hidden>
  67. <temp>
  68. <receivedata>
  69. <receiveref/>
  70. <receivedrugpnm/>
  71. <receivedrugflag/>
  72. <receivedrugcom/>
  73. </receivedata>
  74. </temp>
  75. <difParam>
  76. <pageUrl>SMZCR00101_복약안내.xrw</pageUrl>
  77. <pYakpumCd>SIMV040TAB0218|ITCZ100CAP0172|ATVT011TAB0185</pYakpumCd>
  78. </difParam>
  79. </root>
  80. </instance>
  81. <submission id="TRZCN00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list"/>
  82. <submission id="TRZCN00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqClassfication" resultref="/root/main/treelist"/>
  83. <submission id="TRZCN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqClassfication" resultref="/root/main/list2"/>
  84. <submission id="TRZCN00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqClassfication" resultref="/root/main/list3"/>
  85. </model>
  86. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  88. <script type="javascript" src="../../../com/navigationweb/js/ZCN001.js"/>
  89. <script type="javascript" ev:event="xforms-ready">
  90. <![CDATA[
  91. /*
  92. @ 그리드 선택값의 부모창 반영 여부
  93. - 팝업일 경우 적용여부 판별
  94. - 팝업이 아닐시 적용여부 N
  95. */
  96. if(isPopup()){
  97. OpenUID = opener.javascript.getScreenID();
  98. for(var i = 0; i < AceptUID.length; i++){
  99. if(OpenUID == AceptUID[i]) execYN = "Y";
  100. }
  101. }
  102. /*
  103. 화면을 초기화 합니다.
  104. 선택된 약품리스트를 불러온다. zcnfGetDurgList();
  105. 선택된 약품리스트 중에 선택된 값을 가져온다.zcnfGetDurgInfo();
  106. */
  107. fInitialize();
  108. zcnfGetDurgList();
  109. zcnfGetDurgInfo();
  110. var param1 = model.getValue("/root/main/selectedDrugInfo/pYakpumCd");
  111. var param2 = model.getValue("/root/main/selectedDrugInfo/pGcnSeqNo");
  112. var selecredRow = model.getValue("/root/main/selectedDrugInfo/pSelectRow");
  113. //getDetailDrugInfo(param1,param2, selecredRow);
  114. model.refresh();
  115. if(selecredRow == ""){
  116. selecredRow = 1;
  117. }
  118. //model.setFocus("left_datagrid1");
  119. //left_datagrid1.select(selecredRow,1) = true;
  120. //left_datagrid1.refresh();
  121. ]]>
  122. </script>
  123. <script type="javascript">
  124. <![CDATA[
  125. /*
  126. OpenUID - 부모창 UID
  127. AceptUID - 허용 UID
  128. execYN - 반영여부
  129. */
  130. var OpenUID = "";
  131. var AceptUID = new Array("SPMMD03300","SPADC60900", "SMADC00600");
  132. var execYN = "N";
  133. /*
  134. 초기화 작업을 합니다.
  135. */
  136. function fInitialize(){
  137. model.removeNodeset("/root/main/list/resultlist");
  138. model.removeNodeset("/root/main/list2/resultlist");
  139. model.removeNodeset("/root/main/selectedlist");
  140. model.removeNodeset("/root/main/treelist");
  141. model.removeNodeset("/root/main/treetmp");
  142. model.removeNodeset("/root/main/detailinfo");
  143. }
  144. function fInitialize1(){
  145. model.removeNodeset("/root/main/list3/resultlist");
  146. model.removeNodeset("/root/main/list2/resultlist");
  147. model.makeValue("/root/send/reqClassfication/pKeyword","");
  148. model.makeValue("/root/send/reqClassfication/pClassification","");
  149. }
  150. /*
  151. model.getValue(); 를 함수로 만들었습니다.
  152. param1 : node는 grid의 xPath입니다.
  153. param2 : row는 grid에서 선택한 row값입니다.
  154. param3 : element는 getvalue할 해당 element 명입니다.
  155. 해당 getvalue값을 return 해줍니다.
  156. return 하지 않으면 해당값을 가져올 수 없습니다.
  157. */
  158. function fGetValue(node, row, element) {
  159. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  160. return rtnValue;
  161. }
  162. /*
  163. model.reqGetDetailInfo(); 를 함수로 만들었습니다.
  164. param1 : 선택된 약품 grid에서 선택된 약품코드 입니다.
  165. param2 : 선택된 약품 grid에서 선택된 GCN코드 입니다.
  166. param3 : 선택된 약품 grid에서 선택된 ROW값 입니다.
  167. 해당 getvalue값을 return 해줍니다.
  168. return 하지 않으면 해당값을 가져올 수 없습니다.
  169. */
  170. function reqGetDetailInfo(param1,param2,param3) {
  171. //각 화면별 개별처리; 현페이지는 처리 사항 없음
  172. }
  173. // 인자로 넘어온 값을 label 로 같은 아이템의 인덱스를 반환
  174. function labelToIndex(label, tree)
  175. {
  176. for(var i=0; i<tree.length; i++)
  177. {
  178. if(tree.item(i).label == label)
  179. return i;
  180. }
  181. return -1;
  182. }
  183. function FirstDIS_Request(){
  184. model.makeValue("/root/firstDISsend/refno","1");
  185. model.makeValue("/root/firstDISsend/drugcode",model.getValue("/root/main/selectedDrugInfo/pYakpumCd"));
  186. modal("../../referenceweb/xrw/SPZCR00301_약품검색문의", "", "", "", "SPZCR00301","/root/firstDISsend","/root/main/req");
  187. }
  188. /*
  189. 조회된 그리드의 머지를 처리한다
  190. */
  191. function mergecolTab1(){
  192. grd_resultlist.mergecol(1)=false;
  193. grd_resultlist.mergecol(2)=false;
  194. grd_resultlist.mergecol(3)=false;
  195. grd_resultlist.mergecol(4)=false;
  196. grd_resultlist.mergecol(5)=false;
  197. grd_resultlist.mergecol(6)=false;
  198. grd_resultlist.mergecol(7)=false;
  199. grd_resultlist.mergecells="byrestriccol";
  200. grd_resultlist.refresh();
  201. }
  202. function mergecolTab2(){
  203. grd_resultlist2.mergecol(1)=false;
  204. grd_resultlist2.mergecol(2)=false;
  205. grd_resultlist2.mergecol(3)=false;
  206. grd_resultlist2.mergecol(4)=false;
  207. grd_resultlist2.mergecol(5)=false;
  208. grd_resultlist2.mergecol(6)=false;
  209. grd_resultlist2.mergecol(7)=false;
  210. grd_resultlist2.mergecells="byrestriccol";
  211. grd_resultlist2.refresh();
  212. }
  213. ]]>
  214. </script>
  215. </xhtml:head>
  216. <xhtml:body pagewidth="830" pageheight="660" guideline="1,1194;2,659;2,628;2,655;1,809;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  217. <switch id="switch1" class="sw_no_border" style="left:0px; top:0px; width:810px; height:628px; ">
  218. <case id="case1">
  219. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:1px; top:0px; width:805px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  220. <datagrid id="grd_resultlist" nodeset="/root/main/list/resultlist" caption="급여구분^CMC약품코드^영문상품명^영문성분명^제조회사^약품구분^약품명^함량^fdrugcd^gcnseqno" colsep="^" colwidth="80, 85, 140, 110, 110, 70, 110, 95, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:1px; top:95px; width:805px; height:532px; ">
  221. <col ref="paytype" style="vertical-align:top; "/>
  222. <col ref="hdrugcd"/>
  223. <col ref="engnm"/>
  224. <col ref="iengnm"/>
  225. <col ref="jeyaksanm"/>
  226. <col ref="yakpumgu"/>
  227. <col ref="edinm"/>
  228. <col ref="hamryang"/>
  229. <col ref="fdrugcd" visibility="hidden"/>
  230. <col ref="gcnseqno" visibility="hidden"/>
  231. <script type="javascript" ev:event="ondblclick">
  232. <![CDATA[
  233. if(!isDataCell()) return;
  234. if(execYN == "N") return;
  235. var receiveref = model.getValue("/root/temp/receivedata/receiveref");
  236. var receivedrugpnm = model.getValue("/root/temp/receivedata/receivedrugpnm");
  237. var receivedrugflag = model.getValue("/root/temp/receivedata/receivedrugflag");
  238. var receivedrugcom = model.getValue("/root/temp/receivedata/receivedrugcom");
  239. if ( checkOpener() ) {
  240. /* @ DUR관련 알러지 인터페이스
  241. /root/temp/receivedata/receiveref
  242. /root/temp/receivedata/receivedrugpnm //선택된 약(처방)명
  243. /root/temp/receivedata/receivedrugflag //선택된 약(처방)의 원내/DIF 구분 (원내-C / DIF-D / 성분군 - O)
  244. /root/temp/receivedata/receivedrugcom //선택된 약(처방)의 성분코드
  245. */
  246. var drugcd = "";
  247. var drugflag = "";
  248. if(grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("hdrugcd")) != ""){
  249. drugflag = "C";
  250. drugcd = grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("hdrugcd"));
  251. }else{
  252. drugflag = "D";
  253. drugcd = grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("fdrugcd"));
  254. }
  255. opener.model.setValue(receiveref, drugcd);
  256. opener.model.setValue(receivedrugpnm, grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("edinm")));
  257. opener.model.setValue(receivedrugflag, drugflag);
  258. //opener.model.setValue("/root/temp/receivedata/receivedrugcom", grd_resultlist.valueMatrix(grd_resultlist.row, grd_resultlist.colRef("")));
  259. opener.model.refresh();
  260. btn_cls.dispatch("DOMActivate");
  261. } else {
  262. messageBox("상위화면이 변경되어 데이터를 전달할 수","I004");
  263. }
  264. ]]>
  265. </script>
  266. </datagrid>
  267. <select1 id="rdo_pSearchType" ref="/root/send/req/pSearchType" class="radio_search" visibility="visible" appearance="full" cols="3" itemwidth="100" overflow="visible" style="left:115px; top:40px; width:255px; height:35px; border-style:none; ">
  268. <choices>
  269. <item>
  270. <label>영문상품명</label>
  271. <value>01</value>
  272. </item>
  273. <item>
  274. <label>영문성분명</label>
  275. <value>02</value>
  276. </item>
  277. <item>
  278. <label>한글상품명</label>
  279. <value>03</value>
  280. </item>
  281. <item>
  282. <label>제조회사명</label>
  283. <value>04</value>
  284. </item>
  285. <item>
  286. <label>CMC약품코드</label>
  287. <value>05</value>
  288. </item>
  289. <item>
  290. <label>EDI코드</label>
  291. <value>06</value>
  292. </item>
  293. </choices>
  294. </select1>
  295. <caption id="caption13" class="search_name" style="left:25px; top:40px; width:86px; height:17px; ">조회구분 :</caption>
  296. <caption id="caption8" class="search_name" style="left:25px; top:10px; width:86px; height:17px; ">조회범위 :</caption>
  297. <select1 id="rdo_pScope" ref="/root/send/req/pScope" class="radio_search" visibility="visible" appearance="full" cols="2" itemwidth="100" overflow="visible" style="left:115px; top:10px; width:255px; height:20px; border-style:none; ">
  298. <choices>
  299. <item>
  300. <label>원내의약품</label>
  301. <value>01</value>
  302. </item>
  303. <item>
  304. <label>전체의약품</label>
  305. <value>02</value>
  306. </item>
  307. </choices>
  308. </select1>
  309. <input id="ipt_pKeyword" ref="/root/send/req/pKeyword" class="input_search" style="left:475px; top:30px; width:245px; height:19px; ">
  310. <script type="javascript" ev:event="onkeypress">
  311. <![CDATA[
  312. if (event.keycode == 13)
  313. {
  314. ipt_pKeyword.value = ipt_pKeyword.currentText;
  315. model.removeNodeset("/root/main/list");
  316. submit("TRZCN00101");
  317. mergecolTab1();
  318. }
  319. ]]>
  320. </script>
  321. </input>
  322. <button id="btn_ClassficationSearch7" class="btn1_letter2" style="left:725px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  323. <caption>조회</caption>
  324. <script type="javascript" ev:event="onclick">
  325. <![CDATA[
  326. model.removeNodeset("/root/main/list");
  327. submit("TRZCN00101");
  328. mergecolTab1();
  329. ]]>
  330. </script>
  331. </button>
  332. </case>
  333. </switch>
  334. <button id="btn_cls" class="btn4_letter2" style="left:755px; top:635px; width:56px; height:22px; ">
  335. <caption>닫기</caption>
  336. <close ev:event="DOMActivate"/>
  337. </button>
  338. </xhtml:body>
  339. </xhtml:html>