SMRWP20700_인턴근무부서별평가자.xrw 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. <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. <deptgb/>
  26. </retrparams>
  27. <save>
  28. <dutsumlist/>
  29. </save>
  30. </send>
  31. <init/>
  32. <temp/>
  33. </root>
  34. </instance>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  37. <submission id="TRRWP20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  38. <submission id="TXRWP20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" 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. model.setValue("/root/send/retrparams/deptgb", "Y");
  68. misfGetAndSetUserInfo();
  69. cmb_instcd.disabled = true;
  70. btn_search.dispatch("DOMActivate");
  71. model.refresh();
  72. }
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-right:8; ">
  77. <group id="group1" style="left:0px; top:0px; width:885px; height:13px; ">
  78. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인턴근무부서별 평가자</caption>
  79. </group>
  80. <group id="group2" scroll="auto" style="left:0px; top:38px; width:885px; height:744px; ">
  81. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:880px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <line id="line13" class="line_4" style="x1:795px; y1:17px; x2:795px; y2:39px; "/>
  83. <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:162px; height:14px; ">부서및평가자리스트</caption>
  84. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:880px; y2:69px; "/>
  85. <datagrid id="grd_dutsumlist" nodeset="/root/main/list/dutsumlist" caption="부서코드^부서명^사원번호^성명^주민번호^caption1^caption2" colsep="^" colwidth="100, 322, 117, 127, 168, 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; ">
  86. <col disabled="true" ref="deptcd" type="input" style="text-align:left; "/>
  87. <col ref="deptnm" type="input" style="text-align:left; "/>
  88. <col ref="emplno" type="inputbutton" style="text-align:center; "/>
  89. <col ref="emplnm"/>
  90. <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
  91. <col ref="deptgb" visibility="hidden"/>
  92. <script type="javascript" ev:event="onaftersort">
  93. <![CDATA[
  94. grd_dutsumlist.gridToInstance();
  95. ]]>
  96. </script>
  97. <script type="javascript" ev:event="onbuttonclick">
  98. <![CDATA[
  99. if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
  100. var recv_list = "emplno,emplnm";
  101. rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
  102. model.refresh();
  103. }
  104. ]]>
  105. </script>
  106. <script type="javascript" ev:event="xforms-value-changed">
  107. <![CDATA[
  108. ]]>
  109. </script>
  110. </datagrid>
  111. <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
  112. <caption id="caption1" class="search_name" visibility="hidden" style="left:250px; top:19px; width:86px; height:17px; ">평가년도 :</caption>
  113. <input id="ipt_year" ref="/root/send/retrparams/year" class="input_search" navindex="2" visibility="hidden" inputtype="date" format="9999" style="left:340px; top:18px; width:85px; height:19px; text-align:center; ">
  114. <script type="javascript" ev:event="xforms-value-changed">
  115. <![CDATA[
  116. btn_search.dispatch("DOMActivate");
  117. ]]>
  118. </script>
  119. </input>
  120. <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; ">
  121. <choices>
  122. <itemset>
  123. <label/>
  124. <value/>
  125. </itemset>
  126. </choices>
  127. <script type="javascript" ev:event="xforms-value-changed">
  128. <![CDATA[
  129. btn_search.dispatch("DOMActivate");
  130. ]]>
  131. </script>
  132. </select1>
  133. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:810px; top:18px; width:56px; height:22px; ">
  134. <caption>조회</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. submit("TRRWP20701");
  138. ]]>
  139. </script>
  140. </button>
  141. <button id="btn_excsave" class="btn2_letter4" style="left:812px; top:49px; width:64px; height:19px; ">
  142. <caption>엑셀저장</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. misfSaveExcel(grd_dutsumlist);
  146. ]]>
  147. </script>
  148. </button>
  149. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:756px; top:49px; width:53px; height:19px; ">
  150. <caption>행삭제</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. deleteSelectedRows(grd_dutsumlist, true);
  154. ]]>
  155. </script>
  156. </button>
  157. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:700px; top:49px; width:53px; height:19px; ">
  158. <caption>행추가</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. grd_dutsumlist.addRow();
  162. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/deptgb", model.getValue("/root/send/retrparams/deptgb"));
  163. model.refresh();
  164. ]]>
  165. </script>
  166. </button>
  167. <select1 id="radio1" ref="/root/send/retrparams/deptgb" visibility="hidden" overflow="visible" appearance="full" style="left:525px; top:20px; width:185px; height:20px; border-style:none; ">
  168. <choices>
  169. <item>
  170. <label>인턴부서</label>
  171. <value>Y</value>
  172. </item>
  173. </choices>
  174. </select1>
  175. </group>
  176. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:885px; height:27px; ">
  177. <button id="button36" class="btn4_letter2" style="left:819px; top:3px; width:56px; height:22px; ">
  178. <caption>저장</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. for (var i = 1; i < grd_dutsumlist.rows; i ++){
  182. var deptcd1 = model.getValue("/root/main/list/dutsumlist[" + i + "]/deptcd");
  183. if (model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno") == ""){
  184. //messageBox(i + "번째의 사원번호는 필수 입력항목입니다.", "E999", "");
  185. //return;
  186. }
  187. for (var j = 1; j < grd_dutsumlist.rows; j ++){
  188. var deptcd2 = model.getValue("/root/main/list/dutsumlist[" + j + "]/deptcd");
  189. if (i != j){
  190. if (deptcd1 == deptcd2){
  191. messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  192. return;
  193. }
  194. }
  195. }
  196. }
  197. var update = getGridUpdateData(grd_dutsumlist);
  198. if(update == ""){
  199. messageBox("업데이트 정보가 없습니다.", "E999", "");
  200. return 0;
  201. } else {
  202. model.setValue("/root/send/save/dutsumlist", update);
  203. if (submit("TXRWP20701")){
  204. messageBox("정상적으로 처리되었습니다.", "E999", "");
  205. btn_search.dispatch("DOMActivate");
  206. }
  207. }
  208. ]]>
  209. </script>
  210. </button>
  211. </group>
  212. </xhtml:body>
  213. </xhtml:html>