SPMMD01800_항생제Prophylaxis.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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/>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <antibiosmlnolist>
  11. </antibiosmlnolist>
  12. <antibiomdlnolist>
  13. </antibiomdlnolist>
  14. <antibiolrgnolist>
  15. </antibiolrgnolist>
  16. </main>
  17. <hidden>
  18. <resnflagno>11</resnflagno>
  19. </hidden>
  20. <send>
  21. <reqdata/>
  22. </send>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. opener.javascript.fInit();
  28. fGetLrgNo();
  29. //fGetMdlNo(1);
  30. fGetMdlNo(grd_lrgno.selectedRow(0));
  31. fGetSmlNo(grd_mdlno.selectedRow(0));
  32. //fGetRecommNo(1);
  33. fGetRecommNo(grd_smlno.selectedRow(0));
  34. //opener.grd_antibiorecommlist.select(1,1) = true;
  35. //opener.javascript.fDetailList(1);
  36. ]]>
  37. </script>
  38. <submission id="TRMMD01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibiolrgnolist"/>
  39. <submission id="TRMMD01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibiomdlnolist"/>
  40. <submission id="TRMMD01603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibiosmlnolist"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. function fGetLrgNo(){
  48. if( !isNull(model.getValue("/root/hidden/resnflagno")) ){
  49. model.removeNodeset("/root/send/reqdata");
  50. //opener.javascript.fInit();
  51. model.makeValue("/root/send/reqdata/resnflagno", model.getValue("/root/hidden/resnflagno"));
  52. //model.makeValue("/root/send/reqdata/lrgno", opener.model.getValue("/root/main/cond/lrgno"));
  53. submit("TRMMD01601");
  54. var lrgSelectedCnt = 1;
  55. for( idx = 1 ; idx <= grd_lrgno.rows- grd_lrgno.fixedRows ; idx++ ){
  56. if(opener.model.getValue("/root/main/cond/lrgno") == model.getValue("/root/main/antibiolrgnolist/info["+idx+"]/lrgno")) {
  57. lrgSelectedCnt = idx;
  58. idx = grd_lrgno.rows;
  59. }
  60. }
  61. grdRow = lrgSelectedCnt;
  62. if(grdRow == 1){
  63. grd_lrgno.select(1,1) = true;
  64. }else if(grd_lrgno.rows - grd_lrgno.fixedRows > 0){
  65. grd_lrgno.select(grdRow,1) = true;
  66. }
  67. /*
  68. if(grd_lrgno.rows - grd_lrgno.fixedRows > 0){
  69. grd_lrgno.select(1,1) = true;
  70. }
  71. */
  72. }
  73. }
  74. function fGetMdlNo(grdRow){
  75. if(grd_lrgno.rows - grd_lrgno.fixedRows >= 1 ){
  76. model.removeNodeset("/root/send/reqdata");
  77. model.removeNodeset("/root/main/antibiosmlnolist");
  78. //opener.javascript.fInit();
  79. // 대분류 파라메터 세팅
  80. /*if(clickyn == 'Y') { // 대분류에서 선택시 클릭된 값 세팅
  81. model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
  82. } else {
  83. if(opener.model.getValue("/root/main/cond/lrgno") == "") { // 처음 로드시 1 세팅
  84. model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
  85. } else { // 검색시 더블클릭된 값 세팅
  86. model.makeValue("/root/send/reqdata/lrgno", opener.model.getValue("/root/main/cond/lrgno"));
  87. }
  88. }
  89. */
  90. model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
  91. submit("TRMMD01602");
  92. var mdlSelectedCnt = 1;
  93. for( idx = 1 ; idx <= grd_mdlno.rows- grd_mdlno.fixedRows ; idx++ ){
  94. if(opener.model.getValue("/root/main/cond/mdlno") == model.getValue("/root/main/antibiomdlnolist/info["+idx+"]/mdlno")) {
  95. mdlSelectedCnt = idx;
  96. idx = grd_mdlno.rows;
  97. }
  98. }
  99. grdRow = mdlSelectedCnt;
  100. if(grdRow == 1){
  101. grd_mdlno.select(1,1) = true;
  102. }else if(grd_mdlno.rows - grd_mdlno.fixedRows > 0){
  103. grd_mdlno.select(grdRow,1) = true;
  104. //grd_mdlno.select(grd_mdlno.rows - grd_mdlno.fixedRows,1) = true;
  105. }
  106. }
  107. }
  108. function fGetSmlNo(grdRow){
  109. if(grd_mdlno.rows - grd_mdlno.fixedRows >= 1 ){
  110. model.removeNodeset("/root/send/reqdata");
  111. //opener.javascript.fInit();
  112. model.makeValue("/root/send/reqdata/mdlno", model.getValue("/root/main/antibiomdlnolist/info["+ grdRow + "]/mdlno"));
  113. submit("TRMMD01603");
  114. var smlSelectedCnt = 1;
  115. for( idx = 1 ; idx <= grd_smlno.rows- grd_smlno.fixedRows ; idx++ ){
  116. if(opener.model.getValue("/root/main/cond/smlno") == model.getValue("/root/main/antibiosmlnolist/info["+idx+"]/smlno")) {
  117. smlSelectedCnt = idx;
  118. idx = grd_smlno.rows;
  119. }
  120. }
  121. grdRow = smlSelectedCnt;
  122. if(grdRow == 1){
  123. grd_smlno.select(1,1) = true;
  124. }else if(grd_smlno.rows - grd_smlno.fixedRows > 0){
  125. grd_smlno.select(grdRow,1) = true;
  126. //grd_smlno.select(grd_smlno.rows - grd_smlno.fixedRows,1) = true;
  127. }
  128. }
  129. }
  130. function fGetRecommNo(grdRow){
  131. if(grd_smlno.rows - grd_smlno.fixedRows >= 1 ){
  132. opener.javascript.fRecommendedList(model.getValue("/root/hidden/resnflagno"),model.getValue("/root/main/antibiosmlnolist/info[" + grdRow + "]/smlno"),model.getValue("/root/main/antibiosmlnolist/info[" + grdRow + "]/drugkind"));
  133. }
  134. }
  135. ]]>
  136. </script>
  137. </xhtml:head>
  138. <xhtml:body pagewidth="350" pageheight="710" style="margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  139. <group id="grp_prophylaxis" scroll="auto" style="left:0px; top:0px; width:350px; height:710px; margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  140. <datagrid id="grd_smlno" nodeset="/root/main/antibiosmlnolist/info" autoresize="true" caption="소분류" colsep="^" colwidth="324, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:475px; width:350px; height:235px; ">
  141. <col ref="smlnm"/>
  142. <col ref="smlno" visibility="hidden"/>
  143. <col ref="mdlno" visibility="hidden"/>
  144. <col ref="refseq" visibility="hidden"/>
  145. <col ref="drugkind" visibility="hidden"/>
  146. <script type="javascript" ev:event="onclick">
  147. <![CDATA[
  148. var curRow = grd_smlno.mouseRow;
  149. var lastRow = grd_smlno.rows - grd_smlno.fixedRows;
  150. if( curRow > 0 && curRow <= lastRow ){
  151. opener.javascript.fInit();
  152. fGetRecommNo(grd_smlno.row);
  153. }
  154. ]]>
  155. </script>
  156. </datagrid>
  157. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:350px; y2:25px; "/>
  158. <line id="line10" class="line_1" style="x1:0px; y1:180px; x2:350px; y2:180px; "/>
  159. <datagrid id="grd_lrgno" nodeset="/root/main/antibiolrgnolist/info" autoresize="true" caption="대분류" colsep="^" colwidth="326, 33, 21, 8" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:350px; height:149px; ">
  160. <col ref="lrgnm"/>
  161. <col ref="lrgno" visibility="hidden"/>
  162. <col ref="resnflagno" visibility="hidden"/>
  163. <col ref="refseq" visibility="hidden"/>
  164. <script type="javascript" ev:event="onclick">
  165. <![CDATA[
  166. var curRow = grd_lrgno.mouseRow;
  167. var lastRow = grd_lrgno.rows - grd_lrgno.fixedRows;
  168. if( curRow > 0 && curRow <= lastRow ){
  169. opener.javascript.fInit();
  170. fGetMdlNo(grd_lrgno.selectedRow(0));
  171. fGetSmlNo(1);
  172. fGetRecommNo(1);
  173. }
  174. ]]>
  175. </script>
  176. </datagrid>
  177. <datagrid id="grd_mdlno" nodeset="/root/main/antibiomdlnolist/info" autoresize="true" caption="중분류" colsep="^" colwidth="325, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:185px; width:350px; height:284px; ">
  178. <col ref="mdlnm"/>
  179. <col ref="mdlno" visibility="hidden"/>
  180. <col ref="lrgno" visibility="hidden"/>
  181. <col ref="refseq" visibility="hidden"/>
  182. <script type="javascript" ev:event="onclick">
  183. <![CDATA[
  184. var curRow = grd_mdlno.mouseRow;
  185. var lastRow = grd_mdlno.rows - grd_mdlno.fixedRows;
  186. if( curRow > 0 && curRow <= lastRow ){
  187. opener.javascript.fInit();
  188. fGetSmlNo(grd_mdlno.row);
  189. fGetRecommNo(1);
  190. }
  191. ]]>
  192. </script>
  193. </datagrid>
  194. <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:107px; height:13px; ">Classification</caption>
  195. <line id="line11" class="line_1" style="x1:0px; y1:470px; x2:350px; y2:470px; "/>
  196. </group>
  197. </xhtml:body>
  198. </xhtml:html>