SPICU02100_연구관련계약연구원지정.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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. <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. <subjnm/>
  45. <respstdyempno/>
  46. <respstdyempnm/>
  47. </data>
  48. </send>
  49. <senddata>
  50. <grid1/>
  51. </senddata>
  52. <init>
  53. <baseinfo>
  54. <instinfo>
  55. <instcd/>
  56. <hospnm/>
  57. </instinfo>
  58. </baseinfo>
  59. <cmb_info>
  60. <initbank>
  61. <cdid/>
  62. <cdnm/>
  63. </initbank>
  64. </cmb_info>
  65. </init>
  66. <hidden>
  67. <source>
  68. <seqno/>
  69. </source>
  70. </hidden>
  71. </root>
  72. </instance>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
  76. submit("TRZBC00101", false);
  77. model.removeNodeset("/root/main/list/grid1");
  78. model.setValue("/root/send/data/screenmenu", getScreenMenuParameter());
  79. //submit("TRISR01011", false);
  80. submit("TRIRZ00000", false);
  81. if ( model.getValue("/root/send/data/screenmenu") == 'C' ) {
  82. btn_save.disabled = true;
  83. } else {
  84. btn_save.disabled = false;
  85. }
  86. model.refresh();
  87. ]]>
  88. </script>
  89. <submission id="TRICU01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/init/expendcdinfo"/>
  90. <submission id="TRZBC00101"/>
  91. <submission id="TRIRS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/list/grid1"/>
  92. <submission id="TRIRZ00000" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/baseinfo"/>
  93. <submission id="TXISR01005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/grid1" replace="instance" resultref="/root/hidden/source"/>
  94. <submission id="TRISR01011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/grid2"/>
  95. </model>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  100. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  101. <script type="javascript">
  102. <![CDATA[
  103. /*
  104. function getGridUpdateData(gridObj, statusType) {
  105. var updataData = gridObj.getUpdateData(statusType);
  106. var rowsep = gridObj.attribute("rowsep");
  107. alert(updataData);
  108. alert(rowsep);
  109. var split = updataData.split(rowsep);
  110. alert(split);
  111. alert(split.length)
  112. if(split.length > 2){
  113. return updataData;
  114. }
  115. else
  116. return "";
  117. }
  118. */
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <caption id="caption1" class="tit_2" style="left:0px; top:61px; width:185px; height:13px; ">연구과제</caption>
  124. <button id="btn_save" class="btn5_letter3" navindex="30" style="left:460px; top:330px; width:53px; height:19px; ">
  125. <caption>저장</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. var update = getGridUpdateData(grd_reserapnt);
  129. model.setValue("/root/senddata/grid1", update);
  130. //model.setValue("/root/senddata/grid1",grd_reserapnt.getUpdateData());
  131. if (submit("TXISR01005")){
  132. submit("TRIRS00201");
  133. }
  134. ]]>
  135. </script>
  136. </button>
  137. <datagrid id="grd_reserapnt" nodeset="/root/main/list/grid1/item" autoresize="true" caption="역할^성명^소속^연락처^계약연구원^caption1^caption2" colsep="^" colwidth="100, 100, 100, 118, 72, 72, 55, 22, 17, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" tooltip="true" style="left:5px; top:358px; width:535px; height:165px; ">
  138. <col disabled="true" ref="userkind" type="combo">
  139. <choices>
  140. <item>
  141. <label>책임</label>
  142. <value>1</value>
  143. </item>
  144. <item>
  145. <label>공동</label>
  146. <value>2</value>
  147. </item>
  148. <item>
  149. <label>코디네이터</label>
  150. <value>3</value>
  151. </item>
  152. <item>
  153. <label>관리약사</label>
  154. <value>4</value>
  155. </item>
  156. </choices>
  157. </col>
  158. <col ref="usernm"/>
  159. <col ref="sosok"/>
  160. <col ref="mpphonno"/>
  161. <col checkvalue="Y,N" ref="conreseryn" type="checkbox"/>
  162. <col checkvalue="Y,N" ref="chrgyn" type="radio" visibility="hidden"/>
  163. <col ref="userid" visibility="hidden"/>
  164. <col ref="subjid" visibility="hidden"/>
  165. <col ref="instcd" visibility="hidden"/>
  166. <col ref="grupjoblncd" visibility="hidden"/>
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. if (grd_reserapnt.col == 5)
  170. {
  171. if (model.getValue("/root/main/list/grid1/item["+ grd_reserapnt.row +"]/grupjoblncd") != "28")
  172. {
  173. messageBox("계약연구원으로 선택하실 수 없습니다", "I");
  174. grd_reserapnt.valueMatrix(grd_reserapnt.row, grd_reserapnt.colRef("conreseryn")) = "N";
  175. grd_reserapnt.removeStatus(grd_reserapnt.row, "update");
  176. }
  177. }
  178. ]]>
  179. </script>
  180. </datagrid>
  181. <datagrid id="grd_subj" nodeset="/root/main/list/grid2/item" caption="과제번호^과제명^품목명^해당병원^의뢰자^책임연구자" colsep="^" colwidth="100, 330, 126, 116, 162, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:81px; width:1070px; height:239px; ">
  182. <col ref="subjno"/>
  183. <col ref="subjnm"/>
  184. <col ref="itemnm"/>
  185. <col disabled="true" ref="instcd" type="combo">
  186. <choices>
  187. <itemset nodeset="/root/init/baseinfo/instinfo">
  188. <label ref="hospnm"/>
  189. <value ref="instcd"/>
  190. </itemset>
  191. </choices>
  192. </col>
  193. <col ref="cmpynm"/>
  194. <col ref="respstdyempnm"/>
  195. <col ref="respstdyempno" visibility="hidden"/>
  196. <col ref="subjid" visibility="hidden"/>
  197. <script type="javascript" ev:event="onclick">
  198. <![CDATA[
  199. if( isDataCell() ){
  200. model.setValue("/root/send/data/subjid", model.getValue("/root/main/list/grid2/item[" + grd_subj.row + "]/subjid"));
  201. model.setValue("/root/send/data/instcd", model.getValue("/root/main/list/grid2/item[" + grd_subj.row + "]/instcd"));
  202. submit("TRIRS00201");
  203. /*
  204. var i =model.getValue("/root/main/list/grid1/item/m");
  205. if (i >0)
  206. {
  207. if (model.getValue("/root/main/list/grid1/item["+ i +"]/grupjoblncd") == "28") // 계약연구원
  208. model.setValue("/root/main/list/grid1/item["+ i +"]/conreseryn", "Y");
  209. else
  210. model.setValue("/root/main/list/grid1/item["+ i +"]/conreseryn", "N");
  211. }
  212. */
  213. }
  214. ]]>
  215. </script>
  216. </datagrid>
  217. <line id="line3" class="line_1" style="x1:5px; y1:79px; x2:1074px; y2:78px; "/>
  218. <caption id="caption2" class="tit_2" style="left:0px; top:338px; width:185px; height:13px; ">연구관련담당자</caption>
  219. <line id="line1" class="line_1" style="x1:5px; y1:356px; x2:538px; y2:355px; "/>
  220. <group id="group2" style="left:0px; top:16px; width:1075px; height:35px; vertical-align:top; ">
  221. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1075px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  222. <caption id="caption3" class="search_name" style="left:15px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">과제번호 :</caption>
  223. <button id="btn_search" class="btn1_letter2" style="left:992px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  224. <caption>조회</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. if (model.getValue("/root/send/data/respstdyempnm") == "")
  228. model.setValue("/root/send/data/respstdyempno", "");
  229. if (model.getValue("/root/send/data/subjno") == "" && model.getValue("/root/send/data/subjnm") == "" && model.getValue("/root/send/data/respstdyempno") == "")
  230. {
  231. messageBox("과제번호, 과제명 또는 책임연구자를 입력하십시요", "I");
  232. return;
  233. }
  234. submit("TRISR01011", false);
  235. model.refresh();
  236. ]]>
  237. </script>
  238. </button>
  239. <input id="input3" ref="/root/send/data/subjno" class="input_search" style="left:114px; top:8px; width:100px; height:19px; ">
  240. <script type="javascript" ev:event="onkeyup">
  241. <![CDATA[
  242. if(event.keyCode == 13) {
  243. inputEnterKey("input3", "xforms-value-changed");
  244. if (model.getValue("/root/send/data/respstdyempnm") == "")
  245. model.setValue("/root/send/data/respstdyempno", "");
  246. if (model.getValue("/root/send/data/subjno") == "" && model.getValue("/root/send/data/subjnm") == "" && model.getValue("/root/send/data/respstdyempno") == "")
  247. {
  248. messageBox("과제번호, 과제명 또는 책임연구자를 입력하십시요", "I");
  249. return;
  250. }
  251. model.setValue("/root/send/data/subjno", model.getValue("/root/send/data/subjno").toUpperCase());
  252. input3.value = model.getValue("/root/send/data/subjno");
  253. model.setFocus("btn_search");
  254. submit("TRISR01011", false);
  255. model.refresh();
  256. }
  257. ]]>
  258. </script>
  259. </input>
  260. <caption id="caption4" class="search_name" style="left:230px; top:8px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">과제명 :</caption>
  261. <input id="input1" ref="/root/send/data/subjnm" class="input_search" style="left:316px; top:8px; width:100px; height:19px; ">
  262. <script type="javascript" ev:event="onkeyup">
  263. <![CDATA[
  264. if(event.keyCode == 13) {
  265. inputEnterKey("input1", "xforms-value-changed");
  266. if (model.getValue("/root/send/data/respstdyempnm") == "")
  267. model.setValue("/root/send/data/respstdyempno", "");
  268. if (model.getValue("/root/send/data/subjno") == "" && model.getValue("/root/send/data/subjnm") == "" && model.getValue("/root/send/data/respstdyempno") == "")
  269. {
  270. messageBox("과제번호, 과제명 또는 책임연구자를 입력하십시요", "I");
  271. return;
  272. }
  273. input1.value = model.getValue("/root/send/data/subjnm");
  274. model.setFocus("btn_search");
  275. submit("TRISR01011", false);
  276. model.refresh();
  277. }
  278. ]]>
  279. </script>
  280. </input>
  281. <caption id="caption5" class="search_name" style="left:440px; top:8px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">책임연구자 :</caption>
  282. <input id="input2_hid" ref="/root/send/data/respstdyempno" visibility="hidden" style="left:670px; top:8px; width:100px; height:19px; "/>
  283. <input id="input2" ref="/root/send/data/respstdyempnm" class="input_search" style="left:540px; top:8px; width:100px; height:19px; ">
  284. <script type="javascript" ev:event="onkeyup">
  285. <![CDATA[
  286. if(event.keyCode == 13) {
  287. inputEnterKey("input2", "xforms-value-changed");
  288. if (model.getValue("/root/send/data/respstdyempnm") == "")
  289. model.setValue("/root/send/data/respstdyempno", "");
  290. if (model.getValue("/root/send/data/subjno") == "" && model.getValue("/root/send/data/subjnm") == "" && model.getValue("/root/send/data/respstdyempno") == "")
  291. {
  292. messageBox("과제번호, 과제명 또는 책임연구자를 입력하십시요", "I");
  293. return;
  294. }
  295. input2.value = model.getValue("/root/send/data/respstdyempnm");
  296. model.setFocus("btn_search");
  297. submit("TRISR01011", false);
  298. model.refresh();
  299. }
  300. ]]>
  301. </script>
  302. </input>
  303. </group>
  304. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">계약 관련 계약연구원 지정</caption>
  305. <button id="button8" class="icon_search" style="left:645px; top:25px; width:16px; height:16px; ">
  306. <caption/>
  307. <script type="javascript" ev:event="onclick">
  308. <![CDATA[
  309. setParameter("target","resp");
  310. // setParameter("userkind","1");
  311. window.load("../../comsubjweb/xrw/SPIMR00200_연구원조회.xrw","modal","reser", "left:400px; top:400px; width:534px; height:343px;min:hidden;max:hidden;resize:true;");
  312. model.setValue("/root/send/data/respstdyempno", getParameter("userid"));
  313. model.setValue("/root/send/data/respstdyempnm", getParameter("usernm"));
  314. model.refresh();
  315. ]]>
  316. </script>
  317. </button>
  318. </xhtml:body>
  319. </xhtml:html>