SMIRS00106_연구자검색팝업.xrw 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. <view>
  11. <userlist>
  12. <userkindcd/>
  13. <userid/>
  14. <usernm/>
  15. <cdnm/>
  16. <hospnm/>
  17. </userlist>
  18. </view>
  19. </main>
  20. <send>
  21. <srchnm/>
  22. </send>
  23. </root>
  24. </instance>
  25. <script type="javascript" src="../../../com/basiccodeweb/js/basiccodeweb.js"/>
  26. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. model.removenode("/root/main/view/userlist");
  30. model.setFocus("input3");
  31. model.refresh();
  32. ]]>
  33. </script>
  34. <script type="javascript">
  35. <![CDATA[
  36. function search() {
  37. if(model.getValue("/root/send/srchnm").length < 2) {
  38. messageBox("두글자 이상입력하세요!", "I");
  39. model.setFocus("input3");
  40. return;
  41. }
  42. submit("TRIRS00154");
  43. model.setFocus("input3");
  44. }
  45. ]]>
  46. </script>
  47. <submission id="TRIRS00154" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchnm" replace="instance" resultref="/root/main/view"/>
  48. </model>
  49. </xhtml:head>
  50. <xhtml:body pagewidth="534" pageheight="343" guideline="1,518;2,342;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  51. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
  52. <group id="group2" style="left:0px; top:5px; width:518px; height:35px; vertical-align:top; ">
  53. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  54. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">성명 :</caption>
  55. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  56. <caption>조회</caption>
  57. <script type="javascript" ev:event="DOMActivate">
  58. <![CDATA[
  59. search();
  60. ]]>
  61. </script>
  62. </button>
  63. <input id="input3" ref="/root/send/srchnm" class="input_search" style="left:84px; top:8px; width:100px; height:19px; ">
  64. <script type="javascript" ev:event="onkeyup">
  65. <![CDATA[
  66. if(event.keyCode == 13) {
  67. model.setFocus("btn_search");
  68. search();
  69. }
  70. ]]>
  71. </script>
  72. </input>
  73. </group>
  74. <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:100px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">연구자 목록</caption>
  75. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
  76. <datagrid id="popupdata" nodeset="/root/main/view/userlist" caption="성명^구분^소속^직위" colwidth="100, 80, 140, 140" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:66px; width:517px; height:250px; ">
  77. <col ref="usernm"/>
  78. <col ref="userkindcd" type="combo">
  79. <choices>
  80. <item>
  81. <label>내부연구자</label>
  82. <value>1</value>
  83. </item>
  84. <item>
  85. <label>외부연구자</label>
  86. <value>2</value>
  87. </item>
  88. <item>
  89. <label>코디네이터</label>
  90. <value>3</value>
  91. </item>
  92. <item>
  93. <label>관리약사</label>
  94. <value>4</value>
  95. </item>
  96. <item>
  97. <label>담당자</label>
  98. <value>5</value>
  99. </item>
  100. </choices>
  101. </col>
  102. <col ref="hospnm"/>
  103. <col ref="cdnm"/>
  104. <col ref="userid" visibility="hidden"/>
  105. <script type="javascript" ev:event="ondblclick">
  106. <![CDATA[
  107. var userid = model.getValue("/root/main/view/userlist["+popupdata.row+"]/userid");
  108. var usernm = model.getValue("/root/main/view/userlist["+popupdata.row+"]/usernm");
  109. var hospnm = model.getValue("/root/main/view/userlist["+popupdata.row+"]/hospnm");
  110. var cdnm = model.getValue("/root/main/view/userlist["+popupdata.row+"]/cdnm");
  111. var obj = new Object();
  112. obj.userid = userid;
  113. obj.usernm = usernm;
  114. obj.hospnm = hospnm;
  115. obj.cdnm = cdnm;
  116. opener.window.javascript.setUserInfo(obj, opener.javascript.getParameter("activeMode"));
  117. window.close();
  118. ]]>
  119. </script>
  120. </datagrid>
  121. </group>
  122. <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
  123. <caption id="caption3" style="left:10px; top:5px; width:390px; height:20px; ">검색된 연구자를 선택할경우 더블클릭 해주십시오</caption>
  124. </group>
  125. </xhtml:body>
  126. </xhtml:html>