SPPIZ00300_메모이력조회.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPIZ00300_메모이력조회.xrw
  4. * 수정이력
  5. * - 2007.04.20 / 최초작성 / 정주미
  6. * - 2007.05.08 / aftjudgweb에서 insucomweb으로 변경 / 정주미
  7. * - 2007.05.08 / SPPID21300.xrw에서 SPPIZ00300.xrw으로 변경 / 정주미
  8. * - 2007.06.20 / 화면 수정 및 기능보완 / 이창재
  9. * - 2007.09.13 / 화면 수정 및 기능보완 / 김건기
  10. *
  11. * - opener 에서 전달받는 조건 경로
  12. /root/init/pid
  13. * - opener 로 전달하는 결과값 경로
  14. opener.root.hidden.sppiz00300.rslt.choimemo // 선택한 메모 내용
  15. opener.root.hidden.sppiz00300.rslt.destRef // 복사할 곳 (심사자메모 또는 청구메모)
  16. -->
  17. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  18. <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">
  19. <xhtml:head>
  20. <xhtml:title>메모 이력 조회</xhtml:title>
  21. <model id="model1">
  22. <instance id="instance1">
  23. <root xmlns="">
  24. <main>
  25. <list1>
  26. <patclbs>
  27. <clamdd/>
  28. <ioflag/>
  29. <orddeptcd/>
  30. <judgmemo/>
  31. <edimemo/>
  32. </patclbs>
  33. </list1>
  34. <list2>
  35. <prcpclbs>
  36. <clamdd/>
  37. <ioflag/>
  38. <orddeptcd/>
  39. <calcscorcd/>
  40. <edicd/>
  41. <edimemo/>
  42. </prcpclbs>
  43. </list2>
  44. </main>
  45. <send>
  46. <rslt>
  47. <choimemo/>
  48. <destRef/>
  49. <edicd/>
  50. </rslt>
  51. </send>
  52. <init>
  53. <pid/>
  54. <orddeptcd/>
  55. <ioflag/>
  56. <refterm/>
  57. <fromdd/>
  58. <todd/>
  59. <anofildinclyn/>
  60. <clamym/>
  61. <clamdg/>
  62. <pidsn/>
  63. </init>
  64. <hidden>
  65. </hidden>
  66. </root>
  67. </instance>
  68. <submission id="TRPIZ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" resultref="/root/main"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. /* GridColorPicker 사용시 선행 함수 */
  72. fc_setGridColorPicker("grd_patmemohist", "/root/grid1ColorState");
  73. fc_setGridColorPicker("grd_prcpmemohist", "/root/grid1ColorState");
  74. //Grid 속성으로 grd_memohist.selectionMode = "free"; 설정함
  75. fInitialize(); // 화면을 초기화한다.
  76. // 메모 이력 조회
  77. fSearchClbs();
  78. fCheckAuth(); // 화면 권한을 설정한다.
  79. ]]>
  80. </script>
  81. </model>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  85. <script type="javascript">
  86. <![CDATA[
  87. // 화면 권한을 설정한다.
  88. function fCheckAuth() {
  89. var xAuth = !checkAuth("X");
  90. btn_memotojudg.disabled = xAuth; // 심사메모로 전달
  91. btn_memotoclam.disabled = xAuth; // 청구메모로 전달
  92. }
  93. // 화면을 초기화한다.
  94. function fInitialize() {
  95. model.removeNodeset("/root/main/list1/patclbs");
  96. model.removeNodeset("/root/main/list2/prcpclbs");
  97. if (model.getValue("/root/init/ioflag") == "") {
  98. model.setValue("/root/init/ioflag","I");
  99. }
  100. model.setValue("/root/init/refterm","5");
  101. model.setValue("/root/init/anofildinclyn","Y");
  102. //model.setValue("/root/init/fromdd", getCurrentDate() );
  103. model.setValue("/root/init/fromdd", getCurrentDate().toDate().getAddDate(-180).getDateFormat("YYYYMMDD"));
  104. model.setValue("/root/init/todd", getCurrentDate() );
  105. // if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  106. // } else {
  107. // messageBox("상위화면이 변경되어 데이터를 초기화 할 수", "I004"); ///상위화면이 변경되어 데이터를 초기화 할 수 없습니다.
  108. // }
  109. // 사전심사에서는 청구키가 없어서 null 로 넘어와서 현재일 기준으로 변경
  110. if ( model.getValue("/root/init/clamym") == "" ) {
  111. model.makeValue("/root/init/clamym",getCurrentDate().substr(0,6) );
  112. model.makeValue("/root/init/clamdg","0");
  113. model.makeValue("/root/init/pidsn","0");
  114. }
  115. model.refresh();
  116. }
  117. // 메모 이력 조회
  118. function fSearchClbs() {
  119. model.removenode("/root/main/list1/patclbs");
  120. model.removenode("/root/main/list2/prcpclbs");
  121. var anofildinclyn = model.getValue("/root/init/anofildinclyn");
  122. // var anofildinclynlength = anofildinclyn.length;
  123. //
  124. // if(anofildinclynlength > 1){
  125. // anofildinclyn = anofildinclyn.substr(anofildinclynlength-1,1);
  126. // model.setValue("/root/init/anofildinclyn",anofildinclyn);
  127. // }
  128. if (anofildinclyn == "") {
  129. model.setValue("/root/init/anofildinclyn","N");
  130. }
  131. // var controlJudg = document.controls("btn_patprescond");
  132. // controlJudg.dispatch("onclick");
  133. if (model.getValue("/root/init/pid")) {
  134. submit("TRPIZ00301", false);
  135. // var patclbsNode = instance1.selectSingleNode("/root/main/list1/patclbs");
  136. // if (patclbsNode != null) { // 메모이력이 조회된 경우
  137. // for (var i = 1; i < grd_patmemohist.rows; i++) {
  138. // if (model.getValue("/root/main/list1/patclbs[" + i + "]/clamdd") == "") {
  139. // grd_patmemohist.deleteRow(i, true); // 해당 라인을 Grid에서 삭제한다.
  140. // }
  141. // }
  142. // }
  143. //
  144. // var prcpclbsNode = instance1.selectSingleNode("/root/main/list2/prcpclbs");
  145. // if (prcpclbsNode != null) { // 메모이력이 조회된 경우
  146. // for (var i = 1; i < grd_prcpmemohist.rows; i++) {
  147. // if (model.getValue("/root/main/list2/prcpclbs[" + i + "]/clamdd") == "") {
  148. // grd_prcpmemohist.deleteRow(i, true); // 해당 라인을 Grid에서 삭제한다.
  149. // }
  150. // }
  151. // }
  152. //
  153. // grd_patmemohist.rebuild();
  154. }
  155. // [2008.04.29] DB2 => Oracle 전환 테스트를 위해 임시로 else 처리함
  156. // else {
  157. // model.setValue("/root/init/pid", "8189288");
  158. // submit("TRPIZ00301", false);
  159. // }
  160. model.refresh();
  161. }
  162. ////////////////////////////////////////////////////////
  163. // C:\CMCProject\application\webapps\tmp\sampleweb\xrw\28_gridBackColor_그리드 컬럼별 색상지정.xrw 샘플 참조
  164. var _gridObj; // 그리드 오브젝트 변수
  165. function fc_setGridColorPicker( gridID, xPath ) {
  166. if (document.all("iviewer_colorPicker") == null) {
  167. body.createChild("xforms:iviewer", "id:iviewer_colorPicker; src:../../../com/commonweb/xrw/SPZZZ01100_컬러피커.xrw; left:0px; top:0px; width:104px; height:0px;");
  168. }
  169. if (gridID != null && xPath != null) {
  170. document.all(gridID).attribute("_statenode") = xPath;
  171. }
  172. }
  173. function fc_gridOnmousedown() {
  174. // 현재 event target Object
  175. var targetObj = event.ptarget;
  176. // datagrid > cell 마우스다운
  177. if(document.all(targetObj.parent.attribute("id")).elementName == "xforms:datagrid") {
  178. _gridObj = targetObj.parent;
  179. if (_gridObj.isCell(targetObj.attribute("id")) && _gridObj.mouseRow - _gridObj.fixedRows >= 0) {
  180. fc_cellOnmousedown(_gridObj);
  181. }
  182. }
  183. try {
  184. // grid 마우스다운
  185. if(document.all(event.currentTarget).elementName == "xforms:datagrid") {
  186. model.property("_onmousedowned_gridID") = event.currentTarget;
  187. //grid_onmousedown();
  188. }
  189. }
  190. catch(e) { //alert("SCRIPT ERROR :: " + e);
  191. }
  192. //event.stopPropagation();
  193. }
  194. function fc_cellOnmousedown( gridObj ) {
  195. if (event.button == 3 && document.controls("iviewer_colorPicker") != null) {
  196. window.showPopupMenu(false);
  197. iviewer_colorPicker.attribute("left") = event.clientX;
  198. iviewer_colorPicker.attribute("top") = event.clientY;
  199. iviewer_colorPicker.attribute("height") = 204;
  200. }
  201. }
  202. function DOMFocusIn() {
  203. if (document.all("iviewer_colorPicker") != null) {
  204. closeIviewerColorPicker();
  205. }
  206. event.stopPropagation();
  207. }
  208. function closeIviewerColorPicker() {
  209. if (parseInt(iviewer_colorPicker.attribute("height")) > 0) {
  210. iviewer_colorPicker.attribute("height") = 0;
  211. window.showPopupMenu(true);
  212. }
  213. }
  214. ////////////////////////////////////////////////////////
  215. ]]>
  216. </script>
  217. </xhtml:head>
  218. <xhtml:body pagewidth="971" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  219. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:955px; height:490px; ">
  220. <group id="group2" style="left:0px; top:0px; width:952px; height:35px; vertical-align:top; ">
  221. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:951px; height:35px; "/>
  222. <caption id="caption4" class="search_name" style="left:5px; top:7px; width:85px; height:17px; ">내원구분:</caption>
  223. <line id="line13" class="line_4" style="x1:885px; y1:7px; x2:885px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  224. <button id="btn_search" class="btn1_letter2" style="left:890px; top:7px; width:56px; height:22px; ">
  225. <caption>조회</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. fSearchClbs();
  229. ]]>
  230. </script>
  231. </button>
  232. <caption id="caption2" class="search_name" style="left:238px; top:7px; width:57px; height:17px; ">기간:</caption>
  233. <select1 id="radio1" ref="/root/init/ioflag" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:88px; top:8px; width:145px; height:17px; border-style:none; ">
  234. <choices>
  235. <item>
  236. <label>전체</label>
  237. <value>-</value>
  238. </item>
  239. <item>
  240. <label>입원</label>
  241. <value>I</value>
  242. </item>
  243. <item>
  244. <label>외래</label>
  245. <value>O</value>
  246. </item>
  247. </choices>
  248. <script type="javascript" ev:event="xforms-value-changed">
  249. <![CDATA[
  250. fSearchClbs();
  251. ]]>
  252. </script>
  253. </select1>
  254. <input id="opt_fromdd" ref="/root/init/fromdd" class="input_search" disabled="true" inputtype="date" style="left:585px; top:7px; width:85px; height:19px; "/>
  255. <input id="opt_todd" ref="/root/init/todd" class="input_search" disabled="true" inputtype="date" style="left:690px; top:7px; width:85px; height:19px; "/>
  256. <caption id="caption3" style="left:675px; top:8px; width:12px; height:19px; ">~</caption>
  257. <select1 id="rdo_refterm" ref="/root/init/refterm" appearance="full" cellspacing="2" cols="6" overflow="visible" style="left:294px; top:8px; width:286px; height:17px; border-style:none; ">
  258. <choices>
  259. <item>
  260. <label>전체</label>
  261. <value>-</value>
  262. </item>
  263. <item>
  264. <label>1개월</label>
  265. <value>1</value>
  266. </item>
  267. <item>
  268. <label>3개월</label>
  269. <value>2</value>
  270. </item>
  271. <item>
  272. <label>6개월</label>
  273. <value>3</value>
  274. </item>
  275. <item>
  276. <label>1년</label>
  277. <value>5</value>
  278. </item>
  279. <item>
  280. <label>지정</label>
  281. <value>4</value>
  282. </item>
  283. </choices>
  284. <script type="javascript" ev:event="xforms-value-changed">
  285. <![CDATA[
  286. var refterm = model.getValue("/root/init/refterm");
  287. if (refterm == "4") {
  288. fSearchClbs();
  289. opt_fromdd.disabled = false;
  290. opt_todd.disabled = false;
  291. } else {
  292. fSearchClbs();
  293. opt_fromdd.disabled = true;
  294. opt_todd.disabled = true;
  295. }
  296. ]]>
  297. </script>
  298. </select1>
  299. <select id="chk_anofildinclyn" ref="/root/init/anofildinclyn" class="check_search" overflow="visible" appearance="full" style="left:790px; top:8px; width:85px; height:17px; border-style:none; ">
  300. <choices>
  301. <item>
  302. <label>타분야 포함</label>
  303. <value>Y</value>
  304. </item>
  305. </choices>
  306. <script type="javascript" ev:event="xforms-value-changed">
  307. <![CDATA[
  308. fSearchClbs();
  309. ]]>
  310. </script>
  311. </select>
  312. </group>
  313. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:69px; height:13px; ">메모이력</caption>
  314. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:952px; y2:60px; "/>
  315. <button id="btn_memotojudg" class="btn2_letter7" style="left:710px; top:40px; width:97px; height:19px; ">
  316. <caption>심사메모로 전달</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. var selectedIndex = switch1.selectedIndex;
  320. var row = 0;
  321. var col = 0;
  322. if (selectedIndex == "0") {
  323. row = grd_patmemohist.row;
  324. col = grd_patmemohist.col;
  325. if (col == grd_patmemohist.colRef("judgmemo")) {
  326. model.setValue("/root/send/rslt/choimemo", model.getValue("/root/main/list1/patclbs["+ row +"]/judgmemo"));
  327. } else if (col == grd_patmemohist.colRef("edimemo")) {
  328. model.setValue("/root/send/rslt/choimemo", model.getValue("/root/main/list1/patclbs["+ row +"]/edimemo"));
  329. }
  330. } else if (selectedIndex == "1") {
  331. row = grd_prcpmemohist.row;
  332. if (row > 0) {
  333. var edicd = model.getValue("/root/main/list2/prcpclbs["+ row +"]/edicd");
  334. var edimemo = model.getValue("/root/main/list2/prcpclbs["+ row +"]/edimemo");
  335. model.setValue("/root/send/rslt/choimemo", edicd + " : " + edimemo);
  336. //심사메모 입력시 처방코드 유무를 체크할 필요가 있을까?
  337. //model.setValue("/root/send/rslt/edicd", edicd);
  338. }
  339. }
  340. var choimemo = model.getValue("/root/send/rslt/choimemo");
  341. if (choimemo) {
  342. model.setValue("/root/send/rslt/destRef", "judgmemo");
  343. model.copyNode(opener.root.hidden.sppiz00300, "/root/send");
  344. window.close();
  345. } else {
  346. messageBox("선택된 메모가", "I004"); ///선택된 메모가 없습니다.
  347. }
  348. ]]>
  349. </script>
  350. </button>
  351. <button id="btn_memotoclam" class="btn2_letter7" style="left:810px; top:40px; width:97px; height:19px; ">
  352. <caption>청구메모로 전달</caption>
  353. <script type="javascript" ev:event="DOMActivate">
  354. <![CDATA[
  355. var selectedIndex = switch1.selectedIndex;
  356. var row = 0;
  357. if (selectedIndex == "0") {
  358. row = grd_patmemohist.row;
  359. col = grd_patmemohist.col;
  360. if (col == grd_patmemohist.colRef("judgmemo")) {
  361. model.setValue("/root/send/rslt/choimemo", model.getValue("/root/main/list1/patclbs["+ row +"]/judgmemo"));
  362. } else if (col == grd_patmemohist.colRef("edimemo")) {
  363. model.setValue("/root/send/rslt/choimemo", model.getValue("/root/main/list1/patclbs["+ row +"]/edimemo"));
  364. }
  365. } else if (selectedIndex == "1") {
  366. row = grd_prcpmemohist.row;
  367. if (row > 0) {
  368. var edicd = model.getValue("/root/main/list2/prcpclbs["+ row +"]/edicd");
  369. var edimemo = model.getValue("/root/main/list2/prcpclbs["+ row +"]/edimemo");
  370. model.setValue("/root/send/rslt/choimemo", edicd + " : " + edimemo);
  371. //청구메모 입력시 처방코드 유무를 체크할 필요가 있을까?
  372. //model.setValue("/root/send/rslt/edicd", edicd);
  373. }
  374. }
  375. var choimemo = model.getValue("/root/send/rslt/choimemo");
  376. if (choimemo) {
  377. model.setValue("/root/send/rslt/destRef", "edimemo");
  378. model.copyNode(opener.root.hidden.sppiz00300, "/root/send");
  379. window.close();
  380. } else {
  381. messageBox("선택된 메모가", "I004"); ///선택된 메모가 없습니다.
  382. }
  383. ]]>
  384. </script>
  385. </button>
  386. <button id="button3" class="btn2_letter2" style="left:910px; top:40px; width:42px; height:19px; ">
  387. <caption>닫기</caption>
  388. <close ev:event="DOMActivate"/>
  389. </button>
  390. <switch id="switch1" style="left:0px; top:86px; width:951px; height:395px; ">
  391. <case id="patkind" selected="true">
  392. <datagrid id="grd_patmemohist" nodeset="/root/main/list1/patclbs" autoresize="true" caption="청구년월^청구차수^개시일자^I/O^진료과^심사 메모^청구 메모^pid^pidsn" colsep="^" colwidth="55, 55, 66, 24, 100, 300, 300, 100, 100" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:5px; top:5px; width:939px; height:380px; ">
  393. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  394. <col ref="clamdg" style="text-align:center; "/>
  395. <col ref="ordfromdd" format="yyyy-mm-dd"/>
  396. <col ref="ioflag" style="text-align:center; "/>
  397. <col ref="orddeptcd"/>
  398. <col ref="judgmemo" type="input"/>
  399. <col ref="edimemo" type="input"/>
  400. <col ref="pid" visibility="hidden"/>
  401. <col ref="pidsn" visibility="hidden"/>
  402. <script type="javascript" ev:event="onmousedown">
  403. <![CDATA[
  404. var mrow = grd_patmemohist.mouseRow;
  405. var mcol = grd_patmemohist.mouseCol;
  406. if (grd_patmemohist.isCell(event.target) && grd_patmemohist.mouseRow >= grd_patmemohist.fixedRows) {
  407. // 28_gridBackColor_그리드 컬럼별 색상지정.xrw 참조하여 복사한 기능
  408. fc_gridOnmousedown();
  409. if (mcol == grd_patmemohist.colRef("judgmemo")) { // 심사메모
  410. model.setValue("/root/send/rslt/choimemo", model.getValue("/root/main/list1/patclbs["+ mrow +"]/judgmemo"));
  411. }
  412. else if (mcol == grd_patmemohist.colRef("edimemo")) { // 청구메모
  413. model.setValue("/root/send/rslt/choimemo", model.getValue("/root/main/list1/patclbs["+ mrow +"]/edimemo"));
  414. }
  415. else {
  416. model.resetInstanceNode("/root/send/rslt/choimemo");
  417. }
  418. } else {
  419. model.resetInstanceNode("/root/send/rslt/choimemo");
  420. }
  421. ]]>
  422. </script>
  423. <script type="javascript" ev:event="onaftersort">
  424. <![CDATA[
  425. grd_patmemohist.gridToInstance();
  426. ]]>
  427. </script>
  428. </datagrid>
  429. </case>
  430. <case id="prcpkind">
  431. <datagrid id="grd_prcpmemohist" nodeset="/root/main/list2/prcpclbs" autoresize="true" caption="청구년월^청구차수^개시일자^I/O^진료과^처방코드^EDI코드^청구 메모^pid^pidsn" colsep="^" colwidth="55, 55, 66, 24, 100, 140, 140, 300, 100, 100" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:5px; top:5px; width:939px; height:380px; ">
  432. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  433. <col ref="clamdg" style="text-align:center; "/>
  434. <col ref="ordfromdd" format="yyyy-mm-dd"/>
  435. <col ref="ioflag" style="text-align:center; "/>
  436. <col ref="orddeptcd"/>
  437. <col ref="calcscorcd"/>
  438. <col ref="edicd"/>
  439. <col ref="edimemo" type="input"/>
  440. <col ref="pid" visibility="hidden"/>
  441. <col ref="pidsn" visibility="hidden"/>
  442. <script type="javascript" ev:event="onmousedown">
  443. <![CDATA[
  444. var mrow = grd_prcpmemohist.mouseRow;
  445. var mcol = grd_prcpmemohist.mouseCol;
  446. if (grd_prcpmemohist.isCell(event.target) && grd_prcpmemohist.mouseRow >= grd_prcpmemohist.fixedRows) {
  447. // 28_gridBackColor_그리드 컬럼별 색상지정.xrw 참조하여 복사한 기능
  448. fc_gridOnmousedown();
  449. if (mcol == grd_prcpmemohist.colRef("edimemo")) { // 청구메모
  450. model.setValue("/root/send/rslt/choimemo", model.getValue("/root/main/list2/clbs["+ mrow +"]/edimemo"));
  451. }
  452. else {
  453. model.resetInstanceNode("/root/send/rslt/choimemo");
  454. }
  455. } else {
  456. model.resetInstanceNode("/root/send/rslt/choimemo");
  457. }
  458. ]]>
  459. </script>
  460. <script type="javascript" ev:event="onaftersort">
  461. <![CDATA[
  462. grd_prcpmemohist.gridToInstance();
  463. ]]>
  464. </script>
  465. </datagrid>
  466. </case>
  467. </switch>
  468. <button id="btn_memotoprcp" class="btn2_letter7" visibility="hidden" style="left:610px; top:40px; width:97px; height:19px; ">
  469. <caption>처방별주석 전달</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. var selectedIndex = switch1.selectedIndex;
  473. var row = 0;
  474. if (selectedIndex == "1") {
  475. row = grd_prcpmemohist.row;
  476. if (row > 0) {
  477. var edicd = model.getValue("/root/main/list2/prcpclbs["+ row +"]/edicd");
  478. var edimemo = model.getValue("/root/main/list2/prcpclbs["+ row +"]/edimemo");
  479. model.setValue("/root/send/rslt/choimemo", edimemo);
  480. model.setValue("/root/send/rslt/edicd", edicd);
  481. }
  482. }
  483. var choimemo = model.getValue("/root/send/rslt/choimemo");
  484. if (choimemo) {
  485. model.setValue("/root/send/rslt/destRef", "prcpmemo");
  486. model.copyNode(opener.root.hidden.sppiz00300, "/root/send");
  487. window.close();
  488. } else {
  489. messageBox("선택된 메모가", "I004"); ///선택된 메모가 없습니다.
  490. }
  491. ]]>
  492. </script>
  493. </button>
  494. <button id="btn_patprescond" class="btn_sw" navindex="40" group="tab" selected="true" style="left:0px; top:65px; width:86px; height:22px; ">
  495. <caption>환자별</caption>
  496. <script type="javascript" ev:event="onclick">
  497. <![CDATA[
  498. btn_memotoprcp.visible = false;
  499. model.toggle("patkind");
  500. ]]>
  501. </script>
  502. </button>
  503. <button id="btn_patspec" class="btn_sw" navindex="41" group="tab" style="left:86px; top:65px; width:86px; height:22px; ">
  504. <caption>처방별</caption>
  505. <script type="javascript" ev:event="onclick">
  506. <![CDATA[
  507. btn_memotoprcp.visible = true;
  508. model.toggle("prcpkind");
  509. ]]>
  510. </script>
  511. </button>
  512. </group>
  513. </xhtml:body>
  514. </xhtml:html>