SPIRS00200_연구관련담당자지정.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. <list>
  11. <grid1>
  12. <item>
  13. <m/>
  14. <userkind/>
  15. <usernm/>
  16. <userid/>
  17. <sosok/>
  18. <mpphonno/>
  19. <chrgyn/>
  20. <subjid/>
  21. <instcd/>
  22. <conreseryn/>
  23. <grupjoblncd/>
  24. </item>
  25. </grid1>
  26. <grid2>
  27. <item>
  28. <subjid/>
  29. <subjno/>
  30. <subjnm/>
  31. <itemnm/>
  32. <instcd/>
  33. <cmpynm/>
  34. </item>
  35. </grid2>
  36. </list>
  37. </main>
  38. <send>
  39. <data>
  40. <subjid/>
  41. <instcd/>
  42. <subjno/>
  43. <screenmenu/>
  44. </data>
  45. </send>
  46. <senddata>
  47. <grid1/>
  48. </senddata>
  49. <init>
  50. <baseinfo>
  51. <instinfo>
  52. <instcd/>
  53. <hospnm/>
  54. </instinfo>
  55. </baseinfo>
  56. <cmb_info>
  57. <initbank>
  58. <cdid/>
  59. <cdnm/>
  60. </initbank>
  61. </cmb_info>
  62. </init>
  63. <hidden>
  64. <source>
  65. <seqno/>
  66. </source>
  67. </hidden>
  68. </root>
  69. </instance>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
  73. submit("TRZBC00101", false);
  74. model.removeNodeset("/root/main/list/grid1");
  75. model.setValue("/root/send/data/screenmenu", getScreenMenuParameter());
  76. submit("TRIRS00202", false);
  77. submit("TRIRZ00000", false);
  78. if ( model.getValue("/root/send/data/screenmenu") == 'C' ) {
  79. btn_save.disabled = true;
  80. } else {
  81. btn_save.disabled = false;
  82. }
  83. model.refresh();
  84. ]]>
  85. </script>
  86. <submission id="TRICU01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/init/expendcdinfo"/>
  87. <submission id="TRZBC00101"/>
  88. <submission id="TRIRS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/list/grid1"/>
  89. <submission id="TXIRS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/grid1" replace="instance" resultref="/root/hidden/source"/>
  90. <submission id="TRIRS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/grid2"/>
  91. <submission id="TRIRZ00000" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/baseinfo"/>
  92. </model>
  93. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  95. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  98. <script type="javascript">
  99. <![CDATA[
  100. ]]>
  101. </script>
  102. </xhtml:head>
  103. <xhtml:body pagewidth="880" pageheight="580" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  104. <caption id="caption1" class="tit_2" style="left:0px; top:50px; width:185px; height:13px; ">연구과제</caption>
  105. <button id="btn_save" class="btn5_letter3" navindex="30" style="left:765px; top:525px; width:53px; height:19px; ">
  106. <caption>저장</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. var update = getGridUpdateData(grd_reserapnt);
  110. model.setValue("/root/senddata/grid1", update);
  111. if (submit("TXIRS00201", false)){
  112. submit("TRIRS00201");
  113. }
  114. ]]>
  115. </script>
  116. </button>
  117. <datagrid id="grd_reserapnt" nodeset="/root/main/list/grid1/item" autoresize="true" caption="역할^성명^사번^소속^연락처^선택^caption1^caption2" colsep="^" colwidth="100, 100, 100, 118, 130, 72, 55, 22, 17" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:347px; width:815px; height:165px; ">
  118. <col disabled="true" ref="userkind" type="combo">
  119. <choices>
  120. <item>
  121. <label>책임</label>
  122. <value>1</value>
  123. </item>
  124. <item>
  125. <label>공동</label>
  126. <value>2</value>
  127. </item>
  128. <item>
  129. <label>코디네이터</label>
  130. <value>3</value>
  131. </item>
  132. <item>
  133. <label>관리약사</label>
  134. <value>4</value>
  135. </item>
  136. </choices>
  137. </col>
  138. <col ref="usernm"/>
  139. <col ref="userid" visibility="hidden"/>
  140. <col ref="sosok"/>
  141. <col ref="mpphonno"/>
  142. <col checkvalue="Y,N" ref="chrgyn" type="radio"/>
  143. <col checkvalue="Y,N" ref="conreseryn" type="checkbox" visibility="hidden"/>
  144. <col ref="subjid" visibility="hidden"/>
  145. <col ref="instcd" visibility="hidden"/>
  146. <col ref="grupjoblncd" visibility="hidden"/>
  147. <script type="javascript" ev:event="xforms-value-changed">
  148. <![CDATA[
  149. /*
  150. if (grd_reserapnt.col == 6)
  151. {
  152. if (model.getValue("/root/main/list/grid1/item["+ grd_reserapnt.row +"]/grupjoblncd") != "28")
  153. {
  154. messageBox("계약연구원으로 선택하실 수 없습니다", "I");
  155. grd_reserapnt.valueMatrix(grd_reserapnt.row, grd_reserapnt.colRef("conreseryn")) = "N";
  156. }
  157. }
  158. */
  159. ]]>
  160. </script>
  161. </datagrid>
  162. <datagrid id="grd_subj" nodeset="/root/main/list/grid2/item" caption="과제ID^과제번호^과제명^품목명^해당병원^의뢰자" colsep="^" colwidth="100, 100, 211, 78, 116, 162" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:70px; width:815px; height:220px; ">
  163. <col ref="subjid"/>
  164. <col ref="subjno"/>
  165. <col ref="subjnm"/>
  166. <col ref="itemnm"/>
  167. <col disabled="true" ref="instcd" type="combo">
  168. <choices>
  169. <itemset nodeset="/root/init/baseinfo/instinfo">
  170. <label ref="hospnm"/>
  171. <value ref="instcd"/>
  172. </itemset>
  173. </choices>
  174. </col>
  175. <col ref="cmpynm"/>
  176. <script type="javascript" ev:event="onclick">
  177. <![CDATA[
  178. if( isDataCell() ){
  179. model.setValue("/root/send/data/subjid", model.getValue("/root/main/list/grid2/item[" + grd_subj.row + "]/subjid"));
  180. model.setValue("/root/send/data/instcd", model.getValue("/root/main/list/grid2/item[" + grd_subj.row + "]/instcd"));
  181. submit("TRIRS00201");
  182. var i =model.getValue("/root/main/list/grid1/item/m");
  183. if (i >0)
  184. {
  185. if (model.getValue("/root/main/list/grid1/item["+ i +"]/grupjoblncd") == "28") // 계약연구원
  186. model.setValue("/root/main/list/grid1/item["+ i +"]/conreseryn", "Y");
  187. else
  188. model.setValue("/root/main/list/grid1/item["+ i +"]/conreseryn", "N");
  189. }
  190. }
  191. ]]>
  192. </script>
  193. </datagrid>
  194. <line id="line3" class="line_1" style="x1:5px; y1:68px; x2:820px; y2:67px; "/>
  195. <caption id="caption2" class="tit_2" style="left:0px; top:327px; width:185px; height:13px; ">연구관련담당자</caption>
  196. <line id="line1" class="line_1" style="x1:5px; y1:345px; x2:820px; y2:344px; "/>
  197. <group id="group2" style="left:0px; top:5px; width:820px; height:35px; vertical-align:top; ">
  198. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:820px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  199. <caption id="caption3" class="search_name" style="left:15px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">과제번호 :</caption>
  200. <button id="btn_search" class="btn1_letter2" style="left:735px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  201. <caption>조회</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. submit("TRIRS00202", false);
  205. model.refresh();
  206. ]]>
  207. </script>
  208. </button>
  209. <input id="input3" ref="/root/send/data/subjno" class="input_search" style="left:114px; top:8px; width:100px; height:19px; ">
  210. <script type="javascript" ev:event="onkeyup">
  211. <![CDATA[
  212. if(event.keyCode == 13) {
  213. model.setFocus("btn_search");
  214. model.refresh();
  215. //search();
  216. }
  217. ]]>
  218. </script>
  219. </input>
  220. </group>
  221. </xhtml:body>
  222. </xhtml:html>