SPMNR05200_진단명 분류 찾기.xrw 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. <stmtlist>
  11. <stmtinfo>
  12. <stmtcnts/>
  13. <stmtcd/>
  14. </stmtinfo>
  15. </stmtlist>
  16. <stmtmngt>
  17. <grupinfolist>
  18. <lrggrupnm/>
  19. <mdlgrupnm/>
  20. <smlgrupnm/>
  21. <grupcd/>
  22. </grupinfolist>
  23. </stmtmngt>
  24. <cond>
  25. <stmtnm/>
  26. <dnar/>
  27. </cond>
  28. <cond/>
  29. </main>
  30. <send/>
  31. <hidden>
  32. <refinfo/>
  33. <stmtinfo/>
  34. <stmtmngt/>
  35. </hidden>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. fSearchNursDiag();
  41. ]]>
  42. </script>
  43. <submission id="TRMNR05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stmtlist"/>
  44. <submission id="TRMNR05202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stmtmngt"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript">
  50. <![CDATA[
  51. //노드 초기화
  52. model.removeNodeset("/root/main/stmtlist/stmtinfo");
  53. model.removeNodeset("/root/main/stmtmngt/grupinfolist");
  54. var sParamStmtcd = "";
  55. //진단리스트 셋팅
  56. function fSearchNursDiag(){
  57. model.setValue("/root/main/cond/dnar","2N");
  58. model.removenode("/root/send");
  59. model.makeNode("/root/send");
  60. model.copyNode("/root/send", "/root/main/cond");
  61. submit("TRMNR05201");
  62. sParamStmtcd = opener.javascript.getParameter("SPMNR05200_Param");
  63. if(sParamStmtcd == ""){
  64. grd_stmtinfo.row = 1;
  65. grd_stmtinfo.topRow = grd_stmtinfo.row;
  66. }else{
  67. var sChkRow = 0 ;
  68. for(var i = grd_stmtinfo.fixedRows ; i < grd_stmtinfo.rows - grd_stmtinfo.fixedRows ; i++) {
  69. if(sParamStmtcd == model.getValue("/root/main/stmtlist/stmtinfo["+ i +"]/stmtcd")){
  70. sChkRow = i;
  71. }
  72. }
  73. grd_stmtinfo.row = sChkRow;
  74. grd_stmtinfo.topRow = grd_stmtinfo.row;
  75. }
  76. OnDblClick();
  77. }
  78. //부모 창으로 데이터 전달
  79. function fSendStmtInfo(){
  80. var iRow = grd_stmtsetlist.row;
  81. if(iRow < 1) return;
  82. opener.javascript.setParameter("SPMNR05200_Return", model.getValue("/root/main/stmtmngt/grupinfolist["+iRow+"]/grupcd") );
  83. model.close();
  84. }
  85. //진단별 셋 정보 조회
  86. function OnDblClick(){
  87. var sRow = 0;
  88. sRow = grd_stmtinfo.row;
  89. if(sRow < 1) return;
  90. model.removenode("/root/send");
  91. //model.removenodeset(xTermInfoPath);
  92. var sToDate = getCurrentDate();
  93. var sToTime = getCurrentTime();
  94. model.makeValue("/root/send/stmtcd", model.getValue("/root/main/stmtlist/stmtinfo["+sRow+"]/stmtcd"));
  95. model.makeValue("/root/send/todd", sToDate + sToTime);
  96. if(submit("TRMNR05202")){
  97. model.copyNode("/root/hidden/stmtmngt","/root/main/stmtmngt");
  98. }
  99. model.refresh();
  100. }
  101. ]]>
  102. </script>
  103. </xhtml:head>
  104. <xhtml:body pagewidth="890" pageheight="365" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  105. <group id="group1" style="left:0px; top:0px; width:870px; height:13px; ">
  106. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:117px; height:14px; ">진단명 분류 찾기</caption>
  107. </group>
  108. <group id="grp_biz" scroll="auto" style="left:0px; top:15px; width:870px; height:338px; ">
  109. <line id="line1" class="line_1" style="x1:500px; y1:10px; x2:865px; y2:10px; "/>
  110. <datagrid id="grd_stmtinfo" nodeset="/root/main/stmtlist/stmtinfo" class="datagrid1" caption="진단명^stmtcd" colsep="^" colwidth="474, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:15px; width:495px; height:322px; ">
  111. <col ref="stmtcnts" style="text-align:left; "/>
  112. <col ref="stmtcd" visibility="hidden"/>
  113. <script type="javascript" ev:event="ondblclick">
  114. <![CDATA[
  115. // fSendStmtInfo();
  116. OnDblClick();
  117. ]]>
  118. </script>
  119. </datagrid>
  120. <datagrid id="grd_stmtsetlist" nodeset="/root/main/stmtmngt/grupinfolist" caption="대분류^중분류^소분류" colsep="^" colwidth="110, 124, 111" mergecellsfixedrows="bycolrec" rowsep="|" style="left:500px; top:15px; width:365px; height:322px; ">
  121. <col ref="lrggrupnm"/>
  122. <col ref="mdlgrupnm"/>
  123. <col ref="smlgrupnm"/>
  124. <script type="javascript" ev:event="ondblclick">
  125. <![CDATA[
  126. if(sParamStmtcd != ""){
  127. fSendStmtInfo();
  128. }
  129. ]]>
  130. </script>
  131. </datagrid>
  132. <line id="line2" class="line_1" style="x1:0px; y1:10px; x2:495px; y2:10px; "/>
  133. </group>
  134. </xhtml:body>
  135. </xhtml:html>