SMMRD00010_사용자선택.xrw 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. <user>
  11. <nm/>
  12. <id/>
  13. <etc/>
  14. </user>
  15. </main>
  16. <hidden>
  17. <usrcbo>
  18. <nm/>
  19. <id/>
  20. <etc/>
  21. </usrcbo>
  22. </hidden>
  23. <init/>
  24. <send>
  25. <reqdata/>
  26. </send>
  27. </root>
  28. </instance>
  29. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  32. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  33. <submission id="TRMRD00010" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/usrcbo"/>
  34. </model>
  35. </xhtml:head>
  36. <xhtml:body pagewidth="315" pageheight="90">
  37. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:151px; height:14px; ">사용자 선택</caption>
  38. <button id="btn_x_ok" navindex="3" class="btn1_letter2" style="left:250px; top:57px; width:56px; height:22px; ">
  39. <caption>확인</caption>
  40. <script type="javascript" ev:event="DOMActivate">
  41. <![CDATA[
  42. var tmp = model.getValue("/root/hidden/usrcbo["+ (cbo_id.focusindex + 1) +"]/id");
  43. opener.javascript.setParameter("result", tmp);
  44. model.close();
  45. ]]>
  46. </script>
  47. </button>
  48. <line id="line3" class="line_1" style="x1:0px; y1:15px; x2:315px; y2:15px; "/>
  49. <input id="ipt_usrnm" ref="/root/main/user/nm" navindex="1" class="input_search" style="left:75px; top:35px; width:100px; height:19px; ">
  50. <script type="javascript" ev:event="DOMFocusOut">
  51. <![CDATA[
  52. setInputNodeCurText();
  53. var nm = model.getValue("/root/main/user/nm");
  54. model.makeValue("/root/send/reqdata/nm", nm);
  55. submit("TRMRD00010");
  56. cbo_id.select(0);
  57. ]]>
  58. </script>
  59. <script type="javascript" ev:event="onkeydown">
  60. <![CDATA[
  61. if(event.keyCode == "13") {
  62. model.setFocus("cbo_id");
  63. }
  64. ]]>
  65. </script>
  66. </input>
  67. <caption id="caption2" class="search_name" autoresize="true" style="left:10px; top:35px; width:65px; height:17px; ">이름 :</caption>
  68. <select1 id="cbo_id" ref="/root/main/user/id" navindex="2" appearance="minimal" style="left:180px; top:35px; width:125px; height:19px; ">
  69. <choices>
  70. <itemset nodeset="/root/hidden/usrcbo">
  71. <label ref="nm"/>
  72. <value ref="etc"/>
  73. </itemset>
  74. </choices>
  75. <script type="javascript" ev:event="xforms-select">
  76. <![CDATA[
  77. var deptnm = model.getValue("/root/hidden/usrcbo["+ (cbo_id.focusindex + 1) +"]/etc");
  78. model.setValue("/root/main/user/etc", deptnm);
  79. model.refresh();
  80. ]]>
  81. </script>
  82. <script type="javascript" ev:event="onkeydown">
  83. <![CDATA[
  84. if(event.keyCode =="13"){
  85. btn_x_ok.dispatch("DOMActivate");
  86. }
  87. ]]>
  88. </script>
  89. </select1>
  90. <output id="opt_etc" ref="/root/main/user/etc" class="output_fix" style="left:75px; top:60px; width:160px; height:19px; "/>
  91. </xhtml:body>
  92. </xhtml:html>