SPMRT01200_색인선택.xrw 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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>»öÀμ±ÅÃ</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <indxlist>
  11. <item>
  12. <depth/>
  13. <indxcd/>
  14. <upindxcd/>
  15. <indxhngnm/>
  16. <pathcd/>
  17. <pathnm/>
  18. </item>
  19. </indxlist>
  20. </main>
  21. <hidden>
  22. <condition>
  23. <indxflag>0</indxflag>
  24. <selectedindx/>
  25. <getdata/>
  26. <indxhngnm/>
  27. <selectedmode/>
  28. <indxuseflag/>
  29. </condition>
  30. </hidden>
  31. <send>
  32. </send>
  33. <init>
  34. <today/>
  35. </init>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. // Edited by NJ 2007-07-24 getDate() -> getCurrentDate()
  41. //model.setValue("/root/init/today", getDate());
  42. model.setValue("/root/init/today", getCurrentDate());
  43. if(checkOpener()){
  44. model.setValue("/root/hidden/condition/indxflag", model.getValue("/root/hidden/condition/getdata/paramindx"));
  45. model.setValue("/root/hidden/condition/selectedmode", model.getValue("/root/hidden/condition/getdata/parammode"));
  46. model.setValue("/root/hidden/condition/indxuseflag", model.getValue("/root/hidden/condition/getdata/paramindxuseflag"));
  47. }
  48. model.removeNodeset("/root/send");
  49. model.makeValue("/root/send/indxflag","");
  50. model.makeValue("/root/send/mode","");
  51. model.makeValue("/root/send/indxuseflag","");
  52. model.setValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  53. model.setValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  54. model.setValue("/root/send/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  55. submit("TRMRT00101");
  56. ]]>
  57. </script>
  58. <submission id="TRMRT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/indxlist"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../emr/termmngtweb/js/SMMRT00100.js"/>
  64. <script type="javascript" src="../../../emr/termmngtweb/js/MRTCommon.js"/>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="551" pageheight="725" guideline="1,15;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  67. <group id="group2" style="left:0px; top:0px; width:535px; height:725px; vertical-align:top; ">
  68. <line id="line1" class="line_1" style="x1:0px; y1:0px; x2:535px; y2:0px; "/>
  69. <line id="line10" class="line_3" style="x1:0px; y1:721px; x2:535px; y2:721px; "/>
  70. <caption id="caption19" class="cell_1" style="left:0px; top:6px; width:535px; height:23px; text-align:center; vertical-align:middle; ">»öÀθí</caption>
  71. <treeview id="trv_dgindx" ref="/root/main/indxlist/item" itemsettype="depth" style="left:0px; top:31px; width:535px; height:688px; ">
  72. <itemset nodeset="/root/main/indxlist/item">
  73. <label ref="indxhngnm"/>
  74. <value ref="indxcd"/>
  75. <depth ref="depth"/>
  76. </itemset>
  77. <script type="javascript" ev:event="xforms-select">
  78. <![CDATA[
  79. var iIndx = trv_dgindx.focusIndex + 1;
  80. var selIndxCd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd");
  81. var selhngnm = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm");
  82. model.setValue("/root/hidden/condition/selectedindx", selIndxCd);
  83. model.setValue("/root/hidden/condition/indxhngnm", selhngnm);
  84. ]]>
  85. </script>
  86. <script type="javascript" ev:event="ondblclick">
  87. <![CDATA[
  88. opener.javascript.setParameter("setVal1", model.getValue("/root/hidden/condition/selectedindx"));
  89. opener.javascript.setParameter("setVal2", model.getValue("/root/hidden/condition/indxhngnm"));
  90. window.close();
  91. ]]>
  92. </script>
  93. </treeview>
  94. </group>
  95. </xhtml:body>
  96. </xhtml:html>