SMRPB15000_계약연구원등록.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="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. <contstdyempl>
  11. <contstdyempllist/>
  12. </contstdyempl>
  13. <excel>
  14. <excellist/>
  15. </excel>
  16. </main>
  17. <send>
  18. <contstdyempl>
  19. <emplno/>
  20. <emplnm/>
  21. <flag>Y</flag>
  22. <workym/>
  23. <stdemplno/>
  24. <stdemplnm/>
  25. </contstdyempl>
  26. <save>
  27. <contstdyempllist/>
  28. </save>
  29. <attach>
  30. <file/>
  31. <workym/>
  32. </attach>
  33. </send>
  34. <temp/>
  35. <init/>
  36. </root>
  37. </instance>
  38. <submission id="TRRPB15001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/contstdyempl" resultref="/root/main/contstdyempl"/>
  39. <submission id="TXRPB15001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  40. <submission id="TXRPB15002" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  46. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fInitialize();
  50. ]]>
  51. </script>
  52. <script type="javascript">
  53. <![CDATA[
  54. function fInitialize()
  55. {
  56. model.removenode(grd_contstdyempllist.nodeset);
  57. model.refresh();
  58. misfMsterDetailSet(grd_contstdyempllist, null, "TRRPB15001", "Y");
  59. var nowdate = getCurrentDate();
  60. var yymm = nowdate.substring(0,6);
  61. ipt_workym.value = yymm;
  62. model.refresh();
  63. }
  64. var fso=new ActiveXObject("Scripting.FileSystemObject");
  65. function fExcelUpload() {
  66. var maxsize = upload1.attribute("filesize");
  67. var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  68. var filelist = filename.split("|");
  69. model.removeNodeset("/root/main/list/filelist");
  70. model.removeNodeset("/root/send/attach");
  71. //타이틀을 획득한다.
  72. var s = new String(filelist[filelist.length-1]);
  73. var ss = s.split("\\");
  74. if(filename !=""){
  75. //작업 전 row를 추가 >파일명 유/무에 따른 분기>
  76. for(var i = 0 ; i < filelist.length ; i++ ){
  77. grd_attach.addRow(false);
  78. if(filelist[i] == ""){
  79. //alert(grd_attach.rows - 1);
  80. grd_attach.removeRow(false);
  81. grd_attach.refresh();
  82. }else{
  83. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  84. //파일크기('tfHelper.checkFileSize' 참조)
  85. var fileCnt = upload1.getFileCount();
  86. var lastIndex = fileCnt - 1;
  87. var fileSize = upload1.getFileSize(lastIndex);
  88. grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
  89. if (!checkFileSize(upload1)){
  90. grd_attach.removeItem();
  91. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  92. return;
  93. }
  94. }
  95. }
  96. model.makeValue("/root/send/attach/workym",ipt_workym.value);
  97. openLoadingBar("파일업로드 작업중입니다... ") ;
  98. submit("TXRPB15002");
  99. closeLoadingBar();
  100. //btn_search.dispatch("DOMActivate");
  101. }
  102. }
  103. ]]>
  104. </script>
  105. </xhtml:head>
  106. <xhtml:body style="margin-left:8; margin-right:8; ">
  107. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  108. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:36px; "/>
  109. <caption id="caption278" class="tit_2" style="left:5px; top:55px; width:162px; height:14px; ">계약 연구원 리스트</caption>
  110. <line id="line207" class="line_1" style="x1:0px; y1:70px; x2:1193px; y2:69px; "/>
  111. <caption id="cap_emplno" class="search_name" style="left:240px; top:20px; width:86px; height:17px; ">사원번호 :</caption>
  112. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:17px; width:56px; height:22px; text-align:left; ">
  113. <caption>조회</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. misfMsterDetailRetrieve();
  117. ]]>
  118. </script>
  119. </button>
  120. <line id="line3" class="line_4" style="x1:1110px; y1:14px; x2:1110px; y2:42px; border-color:#ffe4bb; border-left-style:solid; "/>
  121. <input id="ipt_lbrunionjobrespnm" ref="/root/main/item/lbrunionjobrespnm" class="input_search" visibility="hidden"/>
  122. <input id="ipt_lbrunionjobresp" ref="/root/main/item/dutplceinst" visibility="hidden"/>
  123. <input id="ipt_emplno_m" ref="/root/main/imsiitem/emplno" visibility="hidden"/>
  124. <input id="ipt_lbrunionrgstyn_m" ref="/root/main/imsiitem/lbrunionrgstyn" visibility="hidden"/>
  125. <input id="ipt_lbrunionrgstdd_m" ref="/root/main/imsiitem/lbrunionrgstdd" visibility="hidden"/>
  126. <input id="ipt_lbrunionsecssdd_m" ref="/root/main/imsiitem/lbrunionsecssdd" visibility="hidden"/>
  127. <input id="ipt_lbrunionjobresp_m" ref="/root/main/imsiitem/lbrunionjobresp" visibility="hidden"/>
  128. <input id="ipt_lbrunionjobrespnm_m" ref="/root/main/imsiitem/lbrunionjobrespnm" visibility="hidden"/>
  129. <input id="ipt_asgnmpostndd_m" ref="/root/main/imsiitem/asgnmpostndd" visibility="hidden"/>
  130. <input id="ipt_todd_m" ref="/root/main/imsiitem/todd" visibility="hidden"/>
  131. <input id="ipt_cur_row" ref="/root/init/cur_row_m" class="input_search" visibility="hidden"/>
  132. <datagrid id="grd_contstdyempllist" nodeset="/root/main/contstdyempl/contstdyempllist" caption="사원번호^사원번호^성명^계약기간^계약기간^책임연구원^책임연구원^책임연구원^연구지원기관^연구과제명^월급여액^총계약금액^급여지급여부^보험적용여부^재정지원기관^작업월^순번|사원번호^사원번호^성명^시작월^종료월^사번^사번^성명^연구지원기관^연구과제명^월급여액^총계약금액^급여지급여부^보험적용여부^재정지원기관^작업월^순번" colsep="^" colwidth="67, 19, 78, 74, 72, 70, 20, 91, 124, 166, 83, 79, 46, 47, 113, 26, 30" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:73px; width:1193px; height:662px; ">
  133. <col ref="emplno" type="output"/>
  134. <col ref="pop1" type="inputbutton"/>
  135. <col ref="emplnm"/>
  136. <col ref="fromym" type="inputdate" format="yyyy-mm"/>
  137. <col ref="toym" type="inputdate" format="yyyy-mm"/>
  138. <col ref="stdemplno" type="output"/>
  139. <col ref="pop2" type="inputbutton"/>
  140. <col ref="stdemplnm"/>
  141. <col ref="appinstnm" type="input"/>
  142. <col ref="stdsubjnm" type="input"/>
  143. <col ref="payamt" type="input" format="#,###" style="text-align:right; vertical-align:middle; "/>
  144. <col ref="paytotamt" type="input" format="#,###" style="text-align:right; vertical-align:middle; "/>
  145. <col ref="payappyn" type="combo">
  146. <choices>
  147. <item>
  148. <label>Y</label>
  149. <value>Y</value>
  150. </item>
  151. <item>
  152. <label>N</label>
  153. <value>N</value>
  154. </item>
  155. </choices>
  156. </col>
  157. <col ref="insurappyn" type="combo">
  158. <choices>
  159. <item>
  160. <label>Y</label>
  161. <value>Y</value>
  162. </item>
  163. <item>
  164. <label>N</label>
  165. <value>N</value>
  166. </item>
  167. </choices>
  168. </col>
  169. <col ref="payappinst" type="input"/>
  170. <col ref="workym" visibility="hidden"/>
  171. <col ref="seqno" visibility="hidden"/>
  172. <script type="javascript" ev:event="onbuttonclick">
  173. <![CDATA[
  174. if (grd_contstdyempllist.col == grd_contstdyempllist.colRef("pop1")) {
  175. rpbfOpenPopUpList("SPRPB00101", grd_contstdyempllist, "emplno,emplnm","","","","emplno,emplnm");
  176. model.refresh();
  177. }
  178. else if (grd_contstdyempllist.col == grd_contstdyempllist.colRef("pop2")) {
  179. rpbfOpenPopUpList("SPRPB00101", grd_contstdyempllist, "stdemplno,stdemplnm","","","","emplno,emplnm");
  180. model.refresh();
  181. }
  182. ]]>
  183. </script>
  184. </datagrid>
  185. <input id="ipt_emplno" ref="/root/send/contstdyempl/emplno" class="input_search" disabled="false" style="left:328px; top:19px; width:65px; height:19px; ">
  186. <script type="javascript" ev:event="onkeypress">
  187. <![CDATA[
  188. if(event.keyCode == 13)
  189. {
  190. if(ipt_emplno.value == ipt_emplno.currentText) return;
  191. ipt_emplno.value = ipt_emplno.currentText;
  192. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  193. model.refresh();
  194. }
  195. ]]>
  196. </script>
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  200. model.refresh();
  201. ]]>
  202. </script>
  203. </input>
  204. <button id="btn_emplhelp" class="icon_search" disabled="false" style="left:397px; top:21px; width:16px; height:16px; ">
  205. <caption/>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
  209. model.refresh();
  210. ]]>
  211. </script>
  212. </button>
  213. <input id="ipt_emplnm" ref="/root/send/contstdyempl/emplnm" class="input_search" disabled="false" style="left:417px; top:19px; width:120px; height:19px; ">
  214. <script type="javascript" ev:event="onkeypress">
  215. <![CDATA[
  216. if(event.keyCode == 13)
  217. {
  218. if(ipt_emplnm.value == ipt_emplnm.currentText) return;
  219. ipt_emplnm.value = ipt_emplnm.currentText;
  220. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  221. model.refresh();
  222. }
  223. ]]>
  224. </script>
  225. <script type="javascript" ev:event="xforms-value-changed">
  226. <![CDATA[
  227. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  228. model.refresh();
  229. ]]>
  230. </script>
  231. </input>
  232. <button id="btn_stdemplno" class="icon_search" disabled="false" style="left:812px; top:19px; width:16px; height:16px; ">
  233. <caption/>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. rpbfOpenPopUpList("SPRPB00101", ipt_stdemplno, "stdemplno,stdemplnm","","","","emplno,emplnm");
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </button>
  241. <caption id="caption11" class="search_name" style="left:622px; top:20px; width:120px; height:17px; ">책임연구원사번:</caption>
  242. <input id="ipt_stdemplnm" ref="/root/send/contstdyempl/stdemplnm" class="input_search" disabled="false" style="left:832px; top:19px; width:120px; height:19px; ">
  243. <script type="javascript" ev:event="onkeypress">
  244. <![CDATA[
  245. if(event.keyCode == 13)
  246. {
  247. if(ipt_stdemplnm.value == ipt_stdemplnm.currentText) return;
  248. ipt_stdemplnm.value = ipt_stdemplnm.currentText;
  249. rpbfValidationCheck("EMPLNM", "stdemplno,stdemplnm");
  250. model.refresh();
  251. }
  252. ]]>
  253. </script>
  254. <script type="javascript" ev:event="xforms-value-changed">
  255. <![CDATA[
  256. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  257. model.refresh();
  258. ]]>
  259. </script>
  260. </input>
  261. <input id="ipt_stdemplno" ref="/root/send/contstdyempl/stdemplno" class="input_search" disabled="false" style="left:743px; top:19px; width:65px; height:19px; ">
  262. <script type="javascript" ev:event="onkeypress">
  263. <![CDATA[
  264. if(event.keyCode == 13)
  265. {
  266. if(ipt_stdemplno.value == ipt_stdemplno.currentText) return;
  267. ipt_stdemplno.value = ipt_stdemplno.currentText;
  268. rpbfValidationCheck("EMPLNO", "stdemplno,stdemplnm");
  269. model.refresh();
  270. }
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  276. model.refresh();
  277. ]]>
  278. </script>
  279. </input>
  280. <caption id="cap_workym" class="search_name" style="left:10px; top:20px; width:71px; height:17px; ">작업월:</caption>
  281. <input id="ipt_workym" ref="/root/send/contstdyempl/workym" class="input_search" disabled="false" inputtype="date" format="yyyy-mm" style="left:80px; top:19px; width:110px; height:19px; "/>
  282. <button id="btn_addgrdcontstdyempllist" class="btn2_letter3" style="left:1083px; top:49px; width:53px; height:19px; ">
  283. <caption>행추가</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. misfGridIUD(grd_contstdyempllist, "A");
  287. ]]>
  288. </script>
  289. </button>
  290. <button id="btn_delgrdcontstdyempllist" class="btn2_letter3" style="left:1139px; top:49px; width:53px; height:19px; ">
  291. <caption>행삭제</caption>
  292. <script type="javascript" ev:event="DOMActivate">
  293. <![CDATA[
  294. misfGridIUD(grd_contstdyempllist, "D");
  295. ]]>
  296. </script>
  297. </button>
  298. <button id="btn_upload" class="btn5_letter5" style="left:975px; top:48px; width:75px; height:19px; ">
  299. <caption>파일업로드</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. fExcelUpload();
  303. ]]>
  304. </script>
  305. </button>
  306. <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size" colsep="^" colwidth="403, 93" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:605px; top:430px; width:505px; height:69px; ">
  307. <col ref="file" style="text-align:center; "/>
  308. <col ref="filesize" format="#,###" style="text-align:right; "/>
  309. </datagrid>
  310. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:890px; top:50px; width:25px; height:20px; "/>
  311. </group>
  312. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  313. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">계약 연구원 등록</caption>
  314. </group>
  315. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  316. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  317. <caption>저장</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. misfSave("TXRPB15001");
  321. ]]>
  322. </script>
  323. </button>
  324. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  325. </group>
  326. </xhtml:body>
  327. </xhtml:html>