SMRWP20800_인턴근무schedule등록.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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>인턴근무SCHEDULE등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <dutsumlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <retrparams>
  16. <instcd/>
  17. <gpdates/>
  18. <gpdatee/>
  19. <dutunitcd/>
  20. <dutunitnm/>
  21. <retrflag>0510</retrflag>
  22. <emplno/>
  23. <emplnm/>
  24. <deptgb/>
  25. <gb/>
  26. <gpgubun/>
  27. </retrparams>
  28. <save>
  29. <dutsumlist/>
  30. </save>
  31. </send>
  32. <init>
  33. <list>
  34. <dutsumlist/>
  35. </list>
  36. </init>
  37. <temp/>
  38. </root>
  39. </instance>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <submission id="TRRWP20801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  43. <submission id="TRRWP20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/init/list"/>
  44. <submission id="TXRWP20801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  45. <submission id="TXRWP20802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/hidden/temp"/>
  46. <submission id="TXRWP20803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/hidden/temp"/>
  47. </model>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  53. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  54. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. fInitialize();
  58. ]]>
  59. </script>
  60. <script type="javascript">
  61. <![CDATA[
  62. // var DUT_UNIT_CD = "";
  63. // var DUT_UNIT_NM = "";
  64. // var DUTY_RESP_YN = ""; // 복무 책임자
  65. // var DUTY_PART_YN = ""; // 인사 복무 담당자
  66. function fInitialize()
  67. {
  68. model.removenode("/root/main/list/dutsumlist");
  69. // misfComboComCdListMulti("Z0007","cmb_instcd");
  70. //model.setValue("/root/send/retrparams/year", getCurrentDate().substr(0, 4));
  71. //model.setValue("/root/send/retrparams/todutym", getCurrentDate().substr(0, 6));
  72. var curdate = getCurrentDate();
  73. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  74. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  75. misfGetAndSetUserInfo();
  76. cmb_instcd.disabled = true;
  77. btn_search.dispatch("DOMActivate");
  78. model.setValue("/root/send/retrparams/deptgb", "Y");
  79. model.setValue("/root/send/retrparams/gpgubun", "A");
  80. submit("TRRWP20701");
  81. model.refresh();
  82. }
  83. ]]>
  84. </script>
  85. </xhtml:head>
  86. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-right:8; ">
  87. <group id="group1" style="left:0px; top:0px; width:885px; height:13px; ">
  88. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인턴근무SCHEDULE등록</caption>
  89. </group>
  90. <group id="group2" scroll="auto" style="left:0px; top:38px; width:885px; height:744px; ">
  91. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:880px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  92. <line id="line13" class="line_4" style="x1:795px; y1:17px; x2:795px; y2:39px; "/>
  93. <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:206px; height:14px; ">인턴근무SCHEDULE리스트</caption>
  94. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:880px; y2:69px; "/>
  95. <datagrid id="grd_dutsumlist" nodeset="/root/main/list/dutsumlist" caption="순번^사원번호^성명^부서명^평가자^평가자^기간from^caption1^caption3^caption2" colsep="^" colwidth="63, 86, 124, 335, 100, 127, 100, 100, 100" dataheight="25" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:880px; height:670px; border-right-color:#3366ff; ">
  96. <col ref="seqno" style="text-align:center; "/>
  97. <col disabled="true" ref="emplno" type="inputbutton" style="text-align:center; "/>
  98. <col ref="emplnm"/>
  99. <col ref="deptcd" type="combo" style="text-align:left; ">
  100. <choices>
  101. <itemset nodeset="/root/init/list/dutsumlist">
  102. <label ref="deptnm"/>
  103. <value ref="deptcd"/>
  104. </itemset>
  105. </choices>
  106. </col>
  107. <col disabled="true" ref="pemplno" style="text-align:center; "/>
  108. <col ref="pemplnm"/>
  109. <col ref="gpdates" visibility="hidden" style="text-align:center; "/>
  110. <col ref="gpdatee" visibility="hidden"/>
  111. <col ref="cnt" visibility="hidden"/>
  112. <script type="javascript" ev:event="onaftersort">
  113. <![CDATA[
  114. grd_dutsumlist.gridToInstance();
  115. ]]>
  116. </script>
  117. <script type="javascript" ev:event="onbuttonclick">
  118. <![CDATA[
  119. if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
  120. var recv_list = "emplno,emplnm";
  121. rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
  122. model.refresh();
  123. }
  124. if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "pemplno" ) { //계산기준코드
  125. var emplno = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplno");
  126. var emplnm = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplnm");
  127. var recv_list = "emplno,emplnm";
  128. rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
  129. var emplno1 = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplno");
  130. var emplnm1 = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplnm");
  131. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/pemplno", emplno1);
  132. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/pemplnm", emplnm1);
  133. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplno", emplno);
  134. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplnm", emplnm);
  135. model.refresh();
  136. }
  137. ]]>
  138. </script>
  139. <script type="javascript" ev:event="xforms-value-changed">
  140. <![CDATA[
  141. if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "deptcd" ) { //계산기준코드
  142. var deptcd = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/deptcd");
  143. var irow = datagrid1.findRow(deptcd, 1, datagrid1.colRef("deptcd"), false, false);
  144. //alert(irow + "==" + deptcd);
  145. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/pemplno", model.getValue("/root/init/list/dutsumlist[" + irow + "]/emplno"));
  146. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/pemplnm", model.getValue("/root/init/list/dutsumlist[" + irow + "]/emplnm"));
  147. model.refresh();
  148. }
  149. ]]>
  150. </script>
  151. </datagrid>
  152. <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
  153. <caption id="caption1" class="search_name" style="left:250px; top:19px; width:86px; height:17px; ">평가기간 :</caption>
  154. <input id="ipt_year" ref="/root/send/retrparams/gpdates" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:340px; top:18px; width:120px; height:19px; text-align:center; ">
  155. <script type="javascript" ev:event="xforms-value-changed">
  156. <![CDATA[
  157. //btn_search.dispatch("DOMActivate");
  158. ]]>
  159. </script>
  160. </input>
  161. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:100px; top:18px; width:140px; height:19px; ">
  162. <choices>
  163. <itemset>
  164. <label/>
  165. <value/>
  166. </itemset>
  167. </choices>
  168. <script type="javascript" ev:event="xforms-value-changed">
  169. <![CDATA[
  170. btn_search.dispatch("DOMActivate");
  171. ]]>
  172. </script>
  173. </select1>
  174. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:810px; top:18px; width:56px; height:22px; ">
  175. <caption>조회</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. submit("TRRWP20801");
  179. ]]>
  180. </script>
  181. </button>
  182. <button id="btn_excsave" class="btn2_letter4" style="left:812px; top:49px; width:64px; height:19px; ">
  183. <caption>엑셀저장</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. misfSaveExcel(grd_dutsumlist);
  187. ]]>
  188. </script>
  189. </button>
  190. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:756px; top:49px; width:53px; height:19px; ">
  191. <caption>행삭제</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. deleteSelectedRows(grd_dutsumlist, true);
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:700px; top:49px; width:53px; height:19px; ">
  199. <caption>행추가</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. if (model.getValue("/root/send/retrparams/gpdates") > model.getValue("/root/send/retrparams/gpdatee")){
  203. messageBox("기간설정이 잘못 되었습니다.", "E999", "");
  204. return;
  205. }
  206. if (model.getValue("/root/send/retrparams/gpdates") == ""){
  207. messageBox("평가기간 시작일자를 입력한 후 처리하시기 바립니다..", "E999", "");
  208. return;
  209. }
  210. if (model.getValue("/root/send/retrparams/gpdatee") == ""){
  211. messageBox("평가기간 종료일자를 입력한 후 처리하시기 바립니다..", "E999", "");
  212. return;
  213. }
  214. grd_dutsumlist.addRow();
  215. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/gpdates", model.getValue("/root/send/retrparams/gpdates"));
  216. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/gpdatee", model.getValue("/root/send/retrparams/gpdatee"));
  217. //model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/endflag", "N");
  218. grd_dutsumlist.topRow = grd_dutsumlist.row;
  219. model.refresh();
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="button1" class="btn2_letter5" style="left:622px; top:49px; width:75px; height:19px; ">
  224. <caption>대상자생성</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. if (model.getValue("/root/send/retrparams/gpdates") > model.getValue("/root/send/retrparams/gpdatee")){
  228. messageBox("기간설정이 잘못 되었습니다.", "E999", "");
  229. return;
  230. }
  231. if (model.getValue("/root/send/retrparams/gpdates") == ""){
  232. messageBox("평가기간 시작일자를 입력한 후 처리하시기 바립니다..", "E999", "");
  233. return;
  234. }
  235. if (model.getValue("/root/send/retrparams/gpdatee") == ""){
  236. messageBox("평가기간 종료일자를 입력한 후 처리하시기 바립니다..", "E999", "");
  237. return;
  238. }
  239. if( messageBox("해당 자료를 삭제한 후 다시 생성하시겠습니까?" , "Q99" ) == 6 ){
  240. if (submit("TXRWP20802")){
  241. btn_search.dispatch("DOMActivate");
  242. }
  243. }
  244. ]]>
  245. </script>
  246. </button>
  247. <input id="input1" ref="/root/send/retrparams/gpdatee" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:490px; top:18px; width:120px; height:19px; text-align:center; ">
  248. <script type="javascript" ev:event="xforms-value-changed">
  249. <![CDATA[
  250. if (model.getValue("/root/send/retrparams/gpdates") > model.getValue("/root/send/retrparams/gpdatee")){
  251. messageBox("기간설정이 잘못 되었습니다.", "E999", "");
  252. return;
  253. }
  254. btn_search.dispatch("DOMActivate");
  255. ]]>
  256. </script>
  257. </input>
  258. <caption id="caption2" style="left:465px; top:20px; width:20px; height:20px; text-align:center; ">~</caption>
  259. <select1 id="radio1" ref="/root/send/retrparams/gpgubun" overflow="visible" appearance="full" cols="2" style="left:415px; top:50px; width:100px; height:17px; border-style:none; ">
  260. <choices>
  261. <item>
  262. <label>의과</label>
  263. <value>A</value>
  264. </item>
  265. <item>
  266. <label>치과</label>
  267. <value>B</value>
  268. </item>
  269. </choices>
  270. </select1>
  271. <button id="button2" class="btn2_letter7" style="left:522px; top:49px; width:97px; height:19px; ">
  272. <caption>평가대상자등록</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. if (model.getValue("/root/send/retrparams/gpdates") > model.getValue("/root/send/retrparams/gpdatee")){
  276. messageBox("기간설정이 잘못 되었습니다.", "E999", "");
  277. return;
  278. }
  279. if (model.getValue("/root/send/retrparams/gpdates") == ""){
  280. messageBox("평가기간 시작일자를 입력한 후 처리하시기 바립니다..", "E999", "");
  281. return;
  282. }
  283. if (model.getValue("/root/send/retrparams/gpdatee") == ""){
  284. messageBox("평가기간 종료일자를 입력한 후 처리하시기 바립니다..", "E999", "");
  285. return;
  286. }
  287. if (parseInt(model.getValue("/root/main/list/dutsumlist[" + 1 + "]/cnt")) > 0){
  288. if( messageBox("이미 데이터생성이 되었습니다. 다시 생성하시겠습니까?" , "Q99" ) == 6 ){
  289. if (submit("TXRWP20803")){
  290. btn_search.dispatch("DOMActivate");
  291. }
  292. }
  293. }else{
  294. if (submit("TXRWP20803")){
  295. btn_search.dispatch("DOMActivate");
  296. }
  297. }
  298. ]]>
  299. </script>
  300. </button>
  301. </group>
  302. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:885px; height:27px; ">
  303. <button id="button36" class="btn4_letter2" style="left:819px; top:3px; width:56px; height:22px; ">
  304. <caption>저장</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. for (var i = 1; i < grd_dutsumlist.rows; i ++){
  308. var emplno1 = model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno");
  309. var ymd1 = model.getValue("/root/main/list/dutsumlist[" + i + "]/yymmdd");
  310. if (model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno") == ""){
  311. messageBox(i + "번째의 사원번호는 필수 입력항목입니다.", "E999", "");
  312. return;
  313. }
  314. for (var j = 1; j < grd_dutsumlist.rows; j ++){
  315. var emplno2 = model.getValue("/root/main/list/dutsumlist[" + j + "]/emplno");
  316. if (i != j){
  317. if (emplno1 == emplno2){
  318. messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  319. return;
  320. }
  321. }
  322. }
  323. }
  324. var update = getGridUpdateData(grd_dutsumlist);
  325. if(update == ""){
  326. messageBox("업데이트 정보가 없습니다.", "E999", "");
  327. return 0;
  328. } else {
  329. model.setValue("/root/send/save/dutsumlist", update);
  330. if (submit("TXRWP20801")){
  331. messageBox("정상적으로 처리되었습니다.", "E999", "");
  332. btn_search.dispatch("DOMActivate");
  333. }
  334. }
  335. ]]>
  336. </script>
  337. </button>
  338. </group>
  339. <datagrid id="datagrid1" nodeset="/root/init/list/dutsumlist" visibility="hidden" caption="부서코드^부서명^사원번호^성명^주민번호^caption1^caption2" colsep="^" colwidth="87, 131, 95, 127, 168, 100" dataheight="25" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:365px; top:315px; width:460px; height:414px; border-right-color:#3366ff; ">
  340. <col disabled="true" ref="deptcd" type="input" style="text-align:left; "/>
  341. <col ref="deptnm" type="input" style="text-align:left; "/>
  342. <col ref="emplno" type="inputbutton" style="text-align:center; "/>
  343. <col ref="emplnm"/>
  344. <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
  345. <col ref="deptgb" visibility="hidden"/>
  346. <script type="javascript" ev:event="onaftersort">
  347. <![CDATA[
  348. grd_dutsumlist.gridToInstance();
  349. ]]>
  350. </script>
  351. <script type="javascript" ev:event="onbuttonclick">
  352. <![CDATA[
  353. if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
  354. var recv_list = "emplno,emplnm";
  355. rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
  356. model.refresh();
  357. }
  358. ]]>
  359. </script>
  360. <script type="javascript" ev:event="xforms-value-changed">
  361. <![CDATA[
  362. ]]>
  363. </script>
  364. </datagrid>
  365. </xhtml:body>
  366. </xhtml:html>