SMADB03000_약제신청관리.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>약제신청관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <druglist>
  11. <item>
  12. <reqflag/>
  13. <drugcd/>
  14. <hngnm/>
  15. <engnm/>
  16. <ordnm/>
  17. <comdesc/>
  18. <edicd/>
  19. <goodunitcost/>
  20. <drugfromdd/>
  21. <delivecrite/>
  22. <calcmthdcd/>
  23. <lrgcls/>
  24. <lrgclsnm/>
  25. <mdlcls/>
  26. <mdlclsnm/>
  27. <smlcls/>
  28. <smlclsnm/>
  29. <hosinresn/>
  30. <goodpurccost/>
  31. <absnyn/>
  32. <absnreusedd/>
  33. <etccau/>
  34. <calcscorrgstyn/>
  35. <reqseqno/>
  36. <prcpclscd/>
  37. </item>
  38. </druglist>
  39. </main>
  40. <send>
  41. <srchflag>N</srchflag>
  42. <fromdd/>
  43. <todd/>
  44. <reqflag/>
  45. <popupflag/>
  46. <data>
  47. <item/>
  48. </data>
  49. <cancelyn/>
  50. <calcscorrgstyn/>
  51. </send>
  52. <init>
  53. <baseinfo>
  54. <hosinresn>
  55. <M0037>
  56. <cdid/>
  57. <cdnm/>
  58. </M0037>
  59. </hosinresn>
  60. <absnyn>
  61. <A0600>
  62. <cdid/>
  63. <cdnm/>
  64. </A0600>
  65. </absnyn>
  66. <delivecrite>
  67. <A0637>
  68. <cdid/>
  69. <cdnm/>
  70. </A0637>
  71. </delivecrite>
  72. <calcmthdcd>
  73. <P0133>
  74. <cdid/>
  75. <cdnm/>
  76. </P0133>
  77. </calcmthdcd>
  78. </baseinfo>
  79. </init>
  80. <temp>
  81. <ret/>
  82. <prntdata/>
  83. <popup>
  84. <mouserght>
  85. <name>취소</name>
  86. <func>fChgReqFlag</func>
  87. </mouserght>
  88. </popup>
  89. </temp>
  90. <hidden>
  91. <reqflag/>
  92. </hidden>
  93. </root>
  94. </instance>
  95. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <submission id="TRZBC00101"/>
  100. <submission id="TRADB03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/druglist"/>
  101. <script type="javascript" ev:event="xforms-ready">
  102. <![CDATA[
  103. zbcfGetCodeList( new Array("M0037","A0600","A0637","P0133"), new Array("/root/init/baseinfo/hosinresn","/root/init/baseinfo/absnyn","/root/init/baseinfo/delivecrite","/root/init/baseinfo/calcmthdcd"));
  104. //========================================================================================
  105. //===================== 약품마스터/임상마스터와 수가에서 팝업시 구분 추가 ======================
  106. //========================================================================================
  107. // 약품정보관리/임상시험 약품정보에서 팝업시 reqflag = "AST|?"
  108. var tmp_var = model.getValue("/root/hidden/reqflag").split("|");
  109. model.makeNode("/root/hidden/popupflag");
  110. if(tmp_var[0] == ""){
  111. button10.visible = true;
  112. cmb_drug.visible=true;
  113. cmb_crdrug.visible=false;
  114. model.setValue("/root/hidden/popupflag", "PAM");
  115. model.setValue("/root/send/popupflag", "PAM");
  116. model.setValue("/root/send/reqflag", "-");
  117. model.refresh();
  118. }else{
  119. model.setValue("/root/hidden/popupflag", tmp_var[0]);
  120. model.setValue("/root/send/popupflag", tmp_var[0]);
  121. model.setValue("/root/hidden/reqflag", tmp_var[1]);
  122. if ( model.getValue("/root/hidden/reqflag") =="C" ){
  123. cmb_crdrug.visible=true;
  124. cmb_drug.visible=false;
  125. model.setValue("/root/send/reqflag", "A");
  126. model.refresh();
  127. } else {
  128. cmb_drug.visible=true;
  129. cmb_crdrug.visible=false;
  130. model.setValue("/root/send/reqflag", "-");
  131. model.refresh();
  132. }
  133. }
  134. model.setValue("/root/send/fromdd", getCurrentDate());
  135. model.setValue("/root/send/todd", getCurrentDate());
  136. submit("TRADB03001");
  137. ]]>
  138. </script>
  139. <submission id="TXADB03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  140. </model>
  141. <script type="javascript">
  142. <![CDATA[
  143. // 상태값 변경처리
  144. function fChgReqFlag() {
  145. if ( model.getValue("/root/main/druglist/item/calcscorrgstyn") =="N") {
  146. model.setValue("/root/main/druglist/item["+ grd_list.row +"]/reqflag" ,"D");
  147. grd_list.addStatus(grd_list.row,"update"); //강제 상태변경
  148. model.refresh();
  149. }else{
  150. messageBox("이미 수가요청된 코드입니다. [취소]처리 할 수 없습니다. 약품코드를 확인하여주시기 바랍니다","I999");
  151. return;
  152. }
  153. }
  154. ]]>
  155. </script>
  156. </xhtml:head>
  157. <xhtml:body guideline="1,1194;2,803;2,803;2,802;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  158. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  159. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약제 신청 관리</caption>
  160. </group>
  161. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  162. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  163. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  164. <caption id="caption3" class="search_name" style="left:285px; top:9px; width:60px; height:17px; ">기간 :</caption>
  165. <button id="button3" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  166. <caption>조회</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. submit("TRADB03001");
  170. for ( i= grd_list.fixedRows; i < grd_list.rows; i++ ) {
  171. var mngtcls = grd_list.valueMatrix(i, grd_list.colRef("mngtcls") );
  172. if ( mngtcls =="13") {
  173. grd_list.rowStyle(i, "all", "background-color") = "#fff000";
  174. }
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  180. <caption id="caption1" class="search_name" style="left:5px; top:9px; width:60px; height:17px; ">구분 :</caption>
  181. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:348px; top:9px; width:100px; height:19px; "/>
  182. <caption id="caption2" class="search_no_b" style="left:451px; top:9px; width:12px; height:17px; ">~</caption>
  183. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:466px; top:9px; width:100px; height:19px; "/>
  184. <select id="checkbox1" ref="/root/send/cancelyn" overflow="visible" appearance="full" style="left:185px; top:11px; width:75px; height:15px; border-style:none; ">
  185. <choices>
  186. <item>
  187. <label>취소포함</label>
  188. <value>Y</value>
  189. </item>
  190. </choices>
  191. </select>
  192. <select1 id="cmb_crdrug" ref="/root/send/reqflag" appearance="minimal" style="left:75px; top:9px; width:100px; height:19px; ">
  193. <choices>
  194. <item>
  195. <label>전체</label>
  196. <value>A</value>
  197. </item>
  198. <item>
  199. <label>신규</label>
  200. <value>N</value>
  201. </item>
  202. <item>
  203. <label>변경</label>
  204. <value>C</value>
  205. </item>
  206. </choices>
  207. </select1>
  208. <select1 id="cmb_drug" ref="/root/send/reqflag" appearance="minimal" style="left:75px; top:9px; width:100px; height:19px; ">
  209. <choices>
  210. <item>
  211. <label>전체</label>
  212. <value>-</value>
  213. </item>
  214. <item>
  215. <label>변경</label>
  216. <value>U</value>
  217. </item>
  218. <item>
  219. <label>신규</label>
  220. <value>I</value>
  221. </item>
  222. </choices>
  223. </select1>
  224. <caption id="caption4" class="search_name" style="left:595px; top:9px; width:112px; height:17px; ">수가적용여부 :</caption>
  225. <select1 id="cmb_calcscorrgstyn" ref="/root/send/srchflag" appearance="minimal" style="left:715px; top:9px; width:100px; height:19px; ">
  226. <choices>
  227. <item>
  228. <label>전체</label>
  229. <value>-</value>
  230. </item>
  231. <item>
  232. <label>적용</label>
  233. <value>Y</value>
  234. </item>
  235. <item>
  236. <label>미적용</label>
  237. <value>N</value>
  238. </item>
  239. </choices>
  240. </select1>
  241. </group>
  242. <button id="button7" class="btn2_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
  243. <caption>엑셀</caption>
  244. <script type="javascript" ev:event="onclick">
  245. <![CDATA[
  246. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  247. if (fileName != "")
  248. {
  249. grd_list.saveExcel(fileName, "SheetName", true, true, "", "");
  250. }
  251. ]]>
  252. </script>
  253. </button>
  254. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  255. <caption id="caption5" class="tit_2" style="left:5px; top:55px; width:136px; height:13px; ">신규/변경 신청내역</caption>
  256. <datagrid id="grd_list" nodeset="/root/main/druglist/item" caption="구분^수가코드^한글명^영문명^처방명^성분명^EDI코드^급여구분^처방단가^적용일^최소단위^수가계산방법^처방대분류코드^처방대분류^처방중분류코드^처방중분류^처방소분류코드^처방소분류^분업예외사유^구입단가^처방입력구분^품절일자^비고^수가적용여부^관리분류^reqseqno" colsep="^" colwidth="47, 76, 96, 92, 93, 72, 73, 75, 71, 67, 55, 138, 86, 100, 84, 100, 77, 100, 300, 70, 140, 100, 190, 85, 100" dataheight="23" explorerbar="sort" extendlastcol="scroll" focuscolor="#b9e5fb" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:75px; width:1194px; height:669px; ">
  257. <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
  258. <choices>
  259. <item>
  260. <label>신규</label>
  261. <value>I</value>
  262. </item>
  263. <item>
  264. <label>변경</label>
  265. <value>U</value>
  266. </item>
  267. <item>
  268. <label>신규</label>
  269. <value>N</value>
  270. </item>
  271. <item>
  272. <label>변경</label>
  273. <value>C</value>
  274. </item>
  275. <item>
  276. <label>취소</label>
  277. <value>D</value>
  278. </item>
  279. </choices>
  280. </col>
  281. <col ref="drugcd"/>
  282. <col ref="hngnm"/>
  283. <col ref="engnm"/>
  284. <col ref="ordnm"/>
  285. <col ref="comdesc"/>
  286. <col ref="edicd"/>
  287. <col ref="purccls" type="combo">
  288. <choices>
  289. <item>
  290. <label>급여</label>
  291. <value>P</value>
  292. </item>
  293. <item>
  294. <label>비급여</label>
  295. <value>N</value>
  296. </item>
  297. </choices>
  298. </col>
  299. <col ref="goodunitcost" format="###,###,###.##" style="text-align:right; "/>
  300. <col ref="drugfromdd" format="yyyy-mm-dd"/>
  301. <col disabled="true" ref="delivecrite" type="combo" style="text-align:center; ">
  302. <choices>
  303. <itemset nodeset="/root/init/baseinfo/delivecrite">
  304. <label ref="A0637/cdnm"/>
  305. <value ref="A0637/cdid"/>
  306. </itemset>
  307. </choices>
  308. </col>
  309. <col disabled="true" ref="calcmthdcd" type="combo">
  310. <choices>
  311. <itemset nodeset="/root/init/baseinfo/calcmthdcd/P0133">
  312. <label ref="cdnm"/>
  313. <value ref="cdid"/>
  314. </itemset>
  315. </choices>
  316. </col>
  317. <col disabled="true" ref="lrgcls" visibility="hidden"/>
  318. <col ref="lrgclsnm" style="text-align:center; "/>
  319. <col disabled="true" ref="mdlcls" visibility="hidden" style="left:970px; top:45px; width:75px; height:25px; "/>
  320. <col ref="mdlclsnm" style="text-align:center; "/>
  321. <col disabled="true" ref="smlcls" visibility="hidden"/>
  322. <col ref="smlclsnm" style="text-align:center; "/>
  323. <col disabled="true" ref="hosinresn" type="combo">
  324. <choices>
  325. <itemset nodeset="/root/init/baseinfo/hosinresn/M0037">
  326. <label ref="cdnm"/>
  327. <value ref="cdid"/>
  328. </itemset>
  329. </choices>
  330. </col>
  331. <col ref="goodpurccost" format="#,###.##" style="text-align:right; "/>
  332. <col disabled="true" ref="absnyn" type="combo" style="text-align:center; ">
  333. <choices>
  334. <itemset nodeset="/root/init/baseinfo/absnyn/A0600">
  335. <label ref="cdnm"/>
  336. <value ref="cdid"/>
  337. </itemset>
  338. </choices>
  339. </col>
  340. <col ref="absnreusedd" visibility="hidden"/>
  341. <col ref="etccau" type="input"/>
  342. <col ref="calcscorrgstyn" type="output" style="text-align:center; "/>
  343. <col ref="mngtclsnm"/>
  344. <col ref="reqseqno" visibility="hidden"/>
  345. <col ref="efcycls" visibility="hidden"/>
  346. <col ref="prcpclscd" visibility="hidden"/>
  347. <col ref="mngtcls" visibility="hidden"/>
  348. <script type="javascript" ev:event="ondblclick">
  349. <![CDATA[
  350. button10.dispatch("DOMActivate");
  351. /*
  352. if(checkOpener() && model.getValue("/root/send/popupflag") == "PAM") {
  353. var cur_row = grd_list.row ;
  354. parent.model.setValue ("/root/main/item1/mchrginfo/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd")); //수가코드
  355. var reqflag = model.getvalue("/root/main/druglist/item["+cur_row+"]/reqflag");
  356. //신규.
  357. if(reqflag == "I" || reqflag == "N"){
  358. opener.window.javascript.fInitialize();
  359. }
  360. //변경(기존수가를 불러옴)
  361. if(reqflag == "U" || reqflag == "C"){
  362. parent.model.setvalue("/root/send/data5", "0");
  363. parent.model.setValue("/root/send/data4", model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd"));
  364. opener.window.javascript.fGetPrcpCodeList();
  365. }
  366. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/reqflag")); //구분
  367. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/lrgclsnm")); //처방대분류
  368. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/mdlclsnm")); //처방중분류
  369. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/smlclsnm")); //처방소분류
  370. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/goodpurccost")); //구입가
  371. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/calcscorrgstyn")); //수가적용여부
  372. parent.model.setValue ("/root/main/item1/mchrginfo/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd")); //수가코드
  373. parent.model.setValue ("/root/main/item1/mchrginfo/hngnm" , model.getvalue("/root/main/druglist/item["+cur_row+"]/hngnm")); //한글
  374. parent.model.setValue ("/root/main/item1/mchrginfo/engnm" , model.getvalue("/root/main/druglist/item["+cur_row+"]/engnm")); //영문
  375. parent.model.setValue ("/root/main/item1/mchrginfo/ordnm" , model.getvalue("/root/main/druglist/item["+cur_row+"]/ordnm")); //처방명
  376. parent.model.setValue ("/root/main/item1/mchrginfo/comnm" , model.getvalue("/root/main/druglist/item["+cur_row+"]/comdesc")); //성분명
  377. parent.model.setValue ("/root/main/item1/mchrginfo/insuedicd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/edicd")); //EDI코드
  378. parent.model.setValue ("/root/main/item1/mchrginfo/purcamt" , model.getvalue("/root/main/druglist/item["+cur_row+"]/goodunitcost")); //단가
  379. parent.model.setValue ("/root/main/item1/mchrginfo/fromdd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/drugfromdd")); //적용일
  380. parent.model.setValue ("/root/main/item1/mchrginfo/minunit" , model.getvalue("/root/main/druglist/item["+cur_row+"]/delivecrite")); //최소단위
  381. parent.model.setValue ("/root/main/item1/mchrginfo/earncls1" , model.getvalue("/root/main/druglist/item["+cur_row+"]/lrgcls")); //처방대분류코드
  382. parent.model.setValue ("/root/main/item1/mchrginfo/earncls2" , model.getvalue("/root/main/druglist/item["+cur_row+"]/mdlcls")); //처방중분류코드
  383. parent.model.setValue ("/root/main/item1/mchrginfo/earncls3" , model.getvalue("/root/main/druglist/item["+cur_row+"]/smlcls")); //처방소분류코드
  384. parent.model.setValue ("/root/main/item1/mchrginfo/absnyn" , model.getvalue("/root/main/druglist/item["+cur_row+"]/absnyn")); //품절여부
  385. parent.model.setValue ("/root/main/item1/mchrginfo/absnreusedd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/absnreusedd")); //품절일자
  386. parent.model.setValue ("/root/main/item1/mchrginfo/remfact" , model.getvalue("/root/main/druglist/item["+cur_row+"]/etccau")); //비고
  387. parent.combo59.dispatch("DOMFocusIn"); //분류명 refresh
  388. parent.combo14.dispatch("DOMFocusIn");
  389. parent.combo58.dispatch("DOMFocusIn");
  390. parent.button7.dispatch("onclick"); //약제탭으로.
  391. //=========================================================================
  392. // 약제신청관리 - 코드표준화팀 (이한분) 요청 - 약제신청 변경항목의 색상변경
  393. // 담당 : 유정란 대리
  394. // 2008-12-02 김귀남
  395. parent.ipt_calcscorcd.attribute("background-color") = "#ffccee"; //수가코드
  396. parent.input6.attribute("background-color") = "#ffccee"; //한글명
  397. parent.input9.attribute("background-color") = "#ffccee"; //영문명
  398. parent.input10.attribute("background-color") = "#ffccee"; //처방명
  399. parent.input20.attribute("background-color") = "#ffccee"; //EDI
  400. parent.input73.attribute("background-color") = "#ffccee"; //구입가
  401. parent.ipt_fromdd.attribute("background-color") = "#ffccee"; //시작일자
  402. parent.input2.attribute("background-color") = "#ffccee"; //최소단위
  403. parent.combo59.attribute("background-color") = "#ffccee"; //처방대분류
  404. parent.combo14.attribute("background-color") = "#ffccee"; //처방중분류
  405. parent.combo58.attribute("background-color") = "#ffccee"; //처방소분류
  406. parent.output22.attribute("background-color") = "#ffccee"; //품절여부
  407. parent.output10.attribute("background-color") = "#ffccee"; //품절일자
  408. parent.input16.attribute("background-color") = "#ffccee"; //메모
  409. //=========================================================================
  410. parent.model.refresh();
  411. }
  412. */
  413. ]]>
  414. </script>
  415. <script type="javascript" ev:event="onmousedown">
  416. <![CDATA[
  417. setPopupMenu("grd_list", false, "/root/temp/popup/mouserght", "name", "func");
  418. ]]>
  419. </script>
  420. <script type="javascript" ev:event="DOMFocusOut">
  421. <![CDATA[
  422. initPopupMenu();
  423. ]]>
  424. </script>
  425. <script type="javascript" ev:event="onaftersort">
  426. <![CDATA[
  427. grd_list.gridToInstance();
  428. ]]>
  429. </script>
  430. </datagrid>
  431. </group>
  432. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  433. <button id="button2" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  434. <caption>출력</caption>
  435. <script type="javascript" ev:event="DOMActivate">
  436. <![CDATA[
  437. //===================== 약제신청관리 출력 2008-11-18 김귀남 start==========================================================
  438. model.copyNode("/root/temp/prntdata", "/root/main/druglist");
  439. var cnt_node = getNodesetCount("/root/temp/prntdata/item");
  440. for(var i = 1; i <= cnt_node; i++){
  441. //================== [구분] 코드를 명칭으로 변경
  442. model.setValue("/root/temp/prntdata/item["+i+"]/reqflag", grd_list.labelMatrix(i, grd_list.colRef("reqflag")));
  443. //================== [최소단위] 코드를 명칭으로 변경
  444. model.setValue("/root/temp/prntdata/item["+i+"]/delivecrite", grd_list.labelMatrix(i, grd_list.colRef("delivecrite")));
  445. //================== [품절여부] 코드를 명칭으로 변경
  446. model.setValue("/root/temp/prntdata/item["+i+"]/absnyn", grd_list.labelMatrix(i, grd_list.colRef("absnyn")));
  447. //================== [의약분업예외사유] 코드를 명칭으로 변경
  448. //model.setValue("/root/temp/prntdata/item["+i+"]/hosinresn", grd_list.labelMatrix(i, grd_list.colRef("hosinresn")));
  449. //================== [신청/완료] 코드를 명칭으로 변경
  450. //model.makeValue("/root/temp/prntdata/item["+i+"]/srchflag", cmb_srchflag.label);
  451. //================== [검색시작일] 코드를 명칭으로 변경
  452. model.makeValue("/root/temp/prntdata/item["+i+"]/fromdd", ipt_fromdd.value);
  453. //================== [검색종료일] 코드를 명칭으로 변경
  454. model.makeValue("/root/temp/prntdata/item["+i+"]/todd", ipt_todd.value);
  455. //================== [구분] 코드를 명칭으로 변경
  456. if ( model.getValue("/root/hidden/reqflag") =="C" ){
  457. model.makeValue("/root/temp/prntdata/item["+i+"]/drugreqflag", cmb_crdrug.label);
  458. }else{
  459. model.makeValue("/root/temp/prntdata/item["+i+"]/drugreqflag", cmb_drug.label);
  460. }
  461. }
  462. exeReportPreview("RPADB03001", "XMLSTR", "", "", "true","","","","","true"); // 약제신청관리 내역 출력 ( 코드표준화팀 : 이한분 요청)
  463. model.refresh();
  464. //===================== 약제신청관리 출력 2008-11-18 김귀남 end==========================================================
  465. ]]>
  466. </script>
  467. </button>
  468. <button id="button1" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  469. <caption>저장</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. model.setValue("/root/send/data/item", grd_list.getUpdateData());
  473. submit("TXADB03001");
  474. submit("TRADB03001");
  475. ]]>
  476. </script>
  477. </button>
  478. <button id="button10" class="btn4_letter2" visibility="hidden" style="left:1079px; top:5px; width:56px; height:22px; ">
  479. <caption>반영</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. if(checkOpener() && model.getValue("/root/send/popupflag") == "PAM") {
  483. var cur_row = grd_list.row ;
  484. var cur_delivecrite = grd_list.colRef("delivecrite");
  485. var drug = model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd");
  486. var clindrugflag = drug.substring(0,1);
  487. parent.model.setValue ("/root/main/item1/mchrginfo/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd")); //수가코드
  488. var reqflag = model.getvalue("/root/main/druglist/item["+cur_row+"]/reqflag");
  489. //신규.
  490. if(reqflag == "I" || reqflag == "N"){
  491. // ********** 2009-04-16 코드관리 이한분 요청사항 - 김귀남 ***********
  492. // 초기화 or 재조회 기능 삭제
  493. //***************************************************************
  494. //opener.window.javascript.fInitialize();
  495. }
  496. //변경(기존수가를 불러옴)
  497. if(reqflag == "U" || reqflag == "C"){
  498. // ********** 2009-04-16 코드관리 이한분 요청사항 - 김귀남 ***********
  499. // 초기화 or 재조회 기능 삭제
  500. //***************************************************************
  501. //parent.model.setvalue("/root/send/data5", "0");
  502. //parent.model.setValue("/root/send/data4", model.getvalue("/root/main/druglist/item["+cur_row+"]/drugcd"));
  503. //opener.window.javascript.fGetPrcpCodeList();
  504. }
  505. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/reqflag")); //구분
  506. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/lrgclsnm")); //처방대분류
  507. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/mdlclsnm")); //처방중분류
  508. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/smlclsnm")); //처방소분류
  509. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/goodpurccost")); //구입가
  510. //parent.model.setValue ("/root/temp/calcscorcd" , model.getvalue("/root/main/druglist/item["+cur_row+"]/calcscorrgstyn")); //수가적용여부
  511. parent.model.setValue ("/root/main/item1/mchrginfo/calcscorcd" , model.getValue("/root/main/druglist/item["+cur_row+"]/drugcd")); // 수가코드
  512. // 영문명 옆에 성분명을 한글명에 붙이는걸로 수정 20111130 노회식
  513. parent.model.setValue ("/root/main/item1/mchrginfo/hngnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/hngnm")); // 한글
  514. parent.model.setValue ("/root/main/item1/mchrginfo/engnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/engnm")); // 영문
  515. parent.model.setValue ("/root/main/item1/mchrginfo/ordnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/ordnm")); // 처방명
  516. //처방한글명 추가 by 박영우 2011.05.18
  517. parent.model.setValue ("/root/main/item1/mchrginfo/ordhngnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/hngnm")); // 처방한글명
  518. parent.model.setValue ("/root/main/item1/mchrginfo/comnm" , model.getValue("/root/main/druglist/item["+cur_row+"]/comdesc")); // 성분명
  519. if ( model.getValue("/root/main/druglist/item[" + cur_row +"]/purccls") == "P" ) {
  520. parent.model.setValue ("/root/main/item1/mchrginfo/insuedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
  521. parent.model.setValue ("/root/main/item1/mchrginfo/procedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
  522. parent.model.setValue ("/root/main/item1/mchrginfo/autmbedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
  523. parent.model.setValue ("/root/main/item1/mchrginfo/inducsedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
  524. parent.model.setValue ("/root/main/item1/mchrginfo/gnrledicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
  525. parent.model.setValue ("/root/main/item1/mchrginfo/forgnedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
  526. parent.model.setValue ("/root/main/item1/mchrginfo/mouedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
  527. if ( clindrugflag == "T") {
  528. parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"4");
  529. parent.model.setValue("/root/main/item1/mchrginfo/insupynpy1", "2");
  530. } else {
  531. parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"3");
  532. parent.model.setValue("/root/main/item1/mchrginfo/insupynpy1", "0");
  533. }
  534. } else if ( model.getValue("/root/main/druglist/item[" + cur_row +"]/purccls") == "N" ) {
  535. parent.model.setValue ("/root/main/item1/mchrginfo/insuedicd" , "-"); // EDI코드
  536. parent.model.setValue ("/root/main/item1/mchrginfo/procedicd" , "-"); // EDI코드
  537. parent.model.setValue ("/root/main/item1/mchrginfo/autmbedicd" , model.getValue("/root/main/druglist/item["+cur_row+"]/edicd")); // EDI코드
  538. parent.model.setValue ("/root/main/item1/mchrginfo/inducsedicd" , "-"); // EDI코드
  539. parent.model.setValue ("/root/main/item1/mchrginfo/gnrledicd" , "-"); // EDI코드
  540. parent.model.setValue ("/root/main/item1/mchrginfo/forgnedicd" , "-"); // EDI코드
  541. parent.model.setValue ("/root/main/item1/mchrginfo/mouedicd" , "-"); // EDI코드
  542. if ( clindrugflag == "T" ) {
  543. parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"4");
  544. parent.model.setValue("/root/main/item1/mchrginfo/insupynpy1", "2");
  545. } else {
  546. parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"3");
  547. parent.model.setValue("/root/main/item1/mchrginfo/insupynpy1", "2");
  548. }
  549. }
  550. // edicd 첫자리가 알파벳이면 비급여, 숫자면 급여. 급여일때 코드 구분 3 비급여 일때 4, edicd가 없을때 - 를 설정 20111018 노회식
  551. // if (65 <= model.getValue("/root/main/druglist/item["+cur_row+"]/edicd").charCodeAt(0) && 90 >= model.getValue("/root/main/druglist/item["+cur_row+"]/edicd").charCodeAt(0)) {
  552. // parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"4");
  553. // } else if (45 == model.getValue("/root/main/druglist/item["+cur_row+"]/edicd").charCodeAt(0)) {
  554. // parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"-");
  555. // } else {
  556. // parent.model.setValue ("/root/main/item1/mchrginfo/edicdflag" ,"3");
  557. // }
  558. parent.model.setValue ("/root/main/item1/mchrginfo/purcamt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodpurccost").replace(/,/gi,"")); // 단가
  559. parent.model.setValue ("/root/main/item1/mchrginfo/fromdd" , model.getValue("/root/main/druglist/item["+cur_row+"]/drugfromdd")); // 적용일
  560. parent.model.setValue ("/root/main/item1/mchrginfo/minunit" , grd_list.labelMatrix(cur_row, cur_delivecrite)); // 최소단위
  561. //parent.model.setValue ("/root/main/item1/mchrginfo/minunit" , model.getvalue("/root/main/druglist/item["+cur_row+"]/delivecrite")); // 최소단위
  562. parent.model.setValue ("/root/main/item1/mchrginfo/earncls1" , model.getValue("/root/main/druglist/item["+cur_row+"]/lrgcls")); // 처방대분류코드
  563. parent.model.setValue ("/root/main/item1/mchrginfo/earncls2" , model.getValue("/root/main/druglist/item["+cur_row+"]/mdlcls")); // 처방중분류코드
  564. parent.model.setValue ("/root/main/item1/mchrginfo/earncls3" , model.getValue("/root/main/druglist/item["+cur_row+"]/smlcls")); // 처방소분류코드
  565. parent.model.setValue("/root/main/item1/mchrginfo/prcpclscd" , model.getValue("/root/main/druglist/item["+cur_row+"]/prcpclscd")); // 처방상세
  566. parent.model.setValue ("/root/main/item1/mchrginfo/absnyn" , model.getValue("/root/main/druglist/item["+cur_row+"]/absnyn")); // 품절여부
  567. parent.model.setValue ("/root/main/item1/mchrginfo/absnreusedd" , model.getValue("/root/main/druglist/item["+cur_row+"]/absnreusedd")); // 품절일자
  568. parent.model.setValue ("/root/main/item1/mchrginfo/remfact" , model.getValue("/root/main/druglist/item["+cur_row+"]/etccau")); // 비고
  569. // 복지부효능과 분업예외사유 항목 추가 20111018 노회식
  570. parent.model.setValue ("/root/main/item1/mchrginfo/insuclsno" , model.getValue("/root/main/druglist/item["+cur_row+"]/efcycls")); // 복지부효능(분류번호)
  571. parent.model.setValue ("/root/main/item1/mchrginfo/hosinresncd" , model.getValue("/root/main/druglist/item["+cur_row+"]/hosinresn")); // 분업예외사유
  572. parent.model.setValue ("/root/main/item1/mchrginfo/insurbpnt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodunitcost").replace(/,/gi,""));
  573. parent.model.setValue ("/root/main/item1/mchrginfo/insuunitcost" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodunitcost").replace(/,/gi,""));
  574. parent.model.setValue ("/root/main/item1/mchrginfo/calcmthdcd" , model.getValue("/root/main/druglist/item["+cur_row+"]/calcmthdcd")); //수가계산방법 //2010-03-02 물류정보갱신 항목 추가 ( 영문상품명 / 병원용량 /병원단위/수가계산방법 / 그룹여부) - 수가계산방법 보험으로 넘긴다
  575. // 계산방법 수가 두번째 자리가 주사약(I), 복용약(O) 일때 1, 외용약(E) 일때 5 설정 20111018 노회식
  576. // 외용약도 1번 설정하도록 수정 심사팀 배미화선생님. 20120521 노회식
  577. // if ("I" == model.getValue("/root/main/druglist/item["+cur_row+"]/drugcd").substr(1,1) || "O" == model.getValue("/root/main/druglist/item["+cur_row+"]/drugcd").substr(1,1)) {
  578. // parent.model.setValue ("/root/main/item1/mchrginfo/calcmthdcd" ,"1");
  579. // } else if ("E" == model.getValue("/root/main/druglist/item["+cur_row+"]/drugcd").substr(1,1)) {
  580. // parent.model.setValue ("/root/main/item1/mchrginfo/calcmthdcd" ,"5");
  581. // } else {
  582. // parent.model.setValue ("/root/main/item1/mchrginfo/calcmthdcd" ,"-");
  583. // }
  584. parent.model.setValue ("/root/main/item1/mchrginfo/insurbpnt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodpurccost").replace(/,/gi,"")); // 구입가 - > RB점수
  585. parent.model.setValue ("/root/main/item1/mchrginfo/insuunitcost" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodpurccost").replace(/,/gi,"")); // 구입가 - > RB단가
  586. parent.model.setValue ("/root/main/item1/mchrginfo/druglimitamt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodunitcost").replace(/,/gi,"")); // RB단가 -> 상한액
  587. //parent.model.setValue ("/root/main/item1/mchrginfo/insurbpnt" , model.getValue("/root/main/druglist/item["+cur_row+"]/goodunitcost").replace(/,/gi,""));
  588. parent.combo59.dispatch("DOMFocusIn"); //분류명 refresh
  589. parent.combo14.dispatch("DOMFocusIn");
  590. parent.combo58.dispatch("DOMFocusIn");
  591. parent.button7.dispatch("onclick"); //약제탭으로.
  592. //=========================================================================
  593. // 약제신청관리 - 코드표준화팀 (이한분) 요청 - 약제신청 변경항목의 색상변경
  594. // 담당 : 유정란 대리
  595. // 2008-12-02 김귀남
  596. parent.ipt_calcscorcd.attribute("background-color") = "#ffccee"; //수가코드
  597. parent.input6.attribute("background-color") = "#ffccee"; //한글명
  598. parent.input9.attribute("background-color") = "#ffccee"; //영문명
  599. parent.input10.attribute("background-color") = "#ffccee"; //처방명
  600. //처방한글명 추가 by 박영우 2011.05.18
  601. parent.input4.attribute("background-color") = "#ffccee"; //처방한글명
  602. parent.input20.attribute("background-color") = "#ffccee"; //EDI
  603. parent.input73.attribute("background-color") = "#ffccee"; //구입가
  604. parent.ipt_fromdd.attribute("background-color") = "#ffccee"; //시작일자
  605. parent.input2.attribute("background-color") = "#ffccee"; //최소단위
  606. parent.combo59.attribute("background-color") = "#ffccee"; //처방대분류
  607. parent.combo14.attribute("background-color") = "#ffccee"; //처방중분류
  608. parent.combo58.attribute("background-color") = "#ffccee"; //처방소분류
  609. parent.combo5.attribute("background-color") = "#ffccee"; //처방상세
  610. parent.output22.attribute("background-color") = "#ffccee"; //품절여부
  611. parent.output10.attribute("background-color") = "#ffccee"; //품절일자
  612. parent.input16.attribute("background-color") = "#ffccee"; //메모
  613. parent.combo15.attribute("background-color") = "#ffccee"; //수가계산방법 //2010-03-05 보험수가연계시 연계된 데이타 색깔표시 (수가계산방법 항목추가)
  614. parent.input97.attribute("background-color") = "#ffccee"; //분류번호
  615. parent.combo8.attribute("background-color") = "#ffccee"; //코드구분
  616. parent.combo15.attribute("background-color") = "#ffccee"; //계산방법
  617. parent.combo37.attribute("background-color") = "#ffccee"; //분업예외사유
  618. parent.input5.attribute("background-color") = "#ffccee"; //상한액
  619. parent.input71.attribute("background-color") = "#ffccee"; //구입가
  620. parent.input37.attribute("background-color") = "#ffccee"; //가산수량
  621. parent.input74.attribute("background-color") = "#ffccee"; //성분명
  622. parent.input82.attribute("background-color") = "#ffccee"; //규격 추가 by 조중래 20150223
  623. //=========================================================================
  624. parent.model.refresh();
  625. }
  626. ]]>
  627. </script>
  628. </button>
  629. </group>
  630. </xhtml:body>
  631. </xhtml:html>