SMRWP20600_인턴평가대상자.xrw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. <dutsumlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <retrparams>
  16. <instcd/>
  17. <year/>
  18. <dutunitcd/>
  19. <dutunitnm/>
  20. <retrflag>0510</retrflag>
  21. <emplno/>
  22. <emplnm/>
  23. <deptgb/>
  24. <gb/>
  25. </retrparams>
  26. <save>
  27. <dutsumlist/>
  28. </save>
  29. </send>
  30. <init/>
  31. <temp/>
  32. </root>
  33. </instance>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <submission id="TRRWP20601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  37. <submission id="TXRWP20601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  38. <submission id="TXRWP20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/hidden/temp"/>
  39. </model>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  45. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  46. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fInitialize();
  50. ]]>
  51. </script>
  52. <script type="javascript">
  53. <![CDATA[
  54. // var DUT_UNIT_CD = "";
  55. // var DUT_UNIT_NM = "";
  56. // var DUTY_RESP_YN = ""; // 복무 책임자
  57. // var DUTY_PART_YN = ""; // 인사 복무 담당자
  58. function fInitialize()
  59. {
  60. model.removenode("/root/main/list/dutsumlist");
  61. // misfComboComCdListMulti("Z0007","cmb_instcd");
  62. model.setValue("/root/send/retrparams/year", getCurrentDate().substr(0, 4));
  63. //model.setValue("/root/send/retrparams/todutym", getCurrentDate().substr(0, 6));
  64. var curdate = getCurrentDate();
  65. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  66. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  67. misfGetAndSetUserInfo();
  68. cmb_instcd.disabled = true;
  69. btn_search.dispatch("DOMActivate");
  70. model.refresh();
  71. }
  72. ]]>
  73. </script>
  74. </xhtml:head>
  75. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-right:8; ">
  76. <group id="group1" style="left:0px; top:0px; width:885px; height:13px; ">
  77. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인턴평가대상자등록</caption>
  78. </group>
  79. <group id="group2" scroll="auto" style="left:0px; top:38px; width:885px; height:744px; ">
  80. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:880px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  81. <line id="line13" class="line_4" style="x1:795px; y1:17px; x2:795px; y2:39px; "/>
  82. <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:162px; height:14px; ">평가대상자리스트</caption>
  83. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:880px; y2:69px; "/>
  84. <datagrid id="grd_dutsumlist" nodeset="/root/main/list/dutsumlist" caption="사원번호^성명^주민번호^부서^확인^평가년도^caption2" colsep="^" colwidth="117, 127, 131, 261, 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; ">
  85. <col disabled="true" ref="emplno" type="inputbutton" style="text-align:center; "/>
  86. <col ref="emplnm"/>
  87. <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
  88. <col ref="dutplcedeptnm" style="text-align:left; "/>
  89. <col ref="endflag" type="combo" style="text-align:center; ">
  90. <choices>
  91. <item>
  92. <label>Y</label>
  93. <value>Y</value>
  94. </item>
  95. <item>
  96. <label>N</label>
  97. <value>N</value>
  98. </item>
  99. </choices>
  100. </col>
  101. <col ref="year" style="text-align:center; "/>
  102. <script type="javascript" ev:event="onaftersort">
  103. <![CDATA[
  104. grd_dutsumlist.gridToInstance();
  105. ]]>
  106. </script>
  107. <script type="javascript" ev:event="onbuttonclick">
  108. <![CDATA[
  109. if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
  110. var recv_list = "emplno,emplnm";
  111. rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
  112. model.refresh();
  113. }
  114. ]]>
  115. </script>
  116. <script type="javascript" ev:event="xforms-value-changed">
  117. <![CDATA[
  118. ]]>
  119. </script>
  120. </datagrid>
  121. <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
  122. <caption id="caption1" class="search_name" style="left:250px; top:19px; width:86px; height:17px; ">평가년도 :</caption>
  123. <input id="ipt_year" ref="/root/send/retrparams/year" class="input_search" navindex="2" inputtype="date" format="9999" style="left:340px; top:18px; width:85px; height:19px; text-align:center; ">
  124. <script type="javascript" ev:event="xforms-value-changed">
  125. <![CDATA[
  126. btn_search.dispatch("DOMActivate");
  127. ]]>
  128. </script>
  129. </input>
  130. <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; ">
  131. <choices>
  132. <itemset>
  133. <label/>
  134. <value/>
  135. </itemset>
  136. </choices>
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. btn_search.dispatch("DOMActivate");
  140. ]]>
  141. </script>
  142. </select1>
  143. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:810px; top:18px; width:56px; height:22px; ">
  144. <caption>조회</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. submit("TRRWP20601");
  148. ]]>
  149. </script>
  150. </button>
  151. <button id="btn_excsave" class="btn2_letter4" style="left:812px; top:49px; width:64px; height:19px; ">
  152. <caption>엑셀저장</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. misfSaveExcel(grd_dutsumlist);
  156. ]]>
  157. </script>
  158. </button>
  159. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:756px; top:49px; width:53px; height:19px; ">
  160. <caption>행삭제</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. deleteSelectedRows(grd_dutsumlist, true);
  164. ]]>
  165. </script>
  166. </button>
  167. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:700px; top:49px; width:53px; height:19px; ">
  168. <caption>행추가</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. grd_dutsumlist.addRow();
  172. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/year", model.getValue("/root/send/retrparams/year"));
  173. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/endflag", "N");
  174. model.refresh();
  175. ]]>
  176. </script>
  177. </button>
  178. <button id="button1" class="btn2_letter5" style="left:622px; top:49px; width:75px; height:19px; ">
  179. <caption>대상자생성</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. if( messageBox("해당 자료를 삭제한 후 다시 생성하시겠습니까?" , "Q99" ) == 6 ){
  183. if (submit("TXRWP20602")){
  184. btn_search.dispatch("DOMActivate");
  185. }
  186. }
  187. ]]>
  188. </script>
  189. </button>
  190. </group>
  191. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:885px; height:27px; ">
  192. <button id="button36" class="btn4_letter2" style="left:819px; top:3px; width:56px; height:22px; ">
  193. <caption>저장</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. for (var i = 1; i < grd_dutsumlist.rows; i ++){
  197. var emplno1 = model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno");
  198. var ymd1 = model.getValue("/root/main/list/dutsumlist[" + i + "]/yymmdd");
  199. if (model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno") == ""){
  200. messageBox(i + "번째의 사원번호는 필수 입력항목입니다.", "E999", "");
  201. return;
  202. }
  203. if (model.getValue("/root/main/list/dutsumlist[" + i + "]/endflag") == ""){
  204. messageBox(i + "번째의 확인은 필수 선택항목입니다.", "E999", "");
  205. return;
  206. }
  207. for (var j = 1; j < grd_dutsumlist.rows; j ++){
  208. var emplno2 = model.getValue("/root/main/list/dutsumlist[" + j + "]/emplno");
  209. if (i != j){
  210. if (emplno1 == emplno2){
  211. messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  212. return;
  213. }
  214. }
  215. }
  216. }
  217. var update = getGridUpdateData(grd_dutsumlist);
  218. if(update == ""){
  219. messageBox("업데이트 정보가 없습니다.", "E999", "");
  220. return 0;
  221. } else {
  222. model.setValue("/root/send/save/dutsumlist", update);
  223. if (submit("TXRWP20601")){
  224. messageBox("정상적으로 처리되었습니다.", "E999", "");
  225. btn_search.dispatch("DOMActivate");
  226. }
  227. }
  228. ]]>
  229. </script>
  230. </button>
  231. </group>
  232. </xhtml:body>
  233. </xhtml:html>