SMRPD06100_파업대상자등록.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. <frdutym/>
  18. <todutym/>
  19. <dutunitcd/>
  20. <dutunitnm/>
  21. <retrflag>T</retrflag>
  22. <emplno/>
  23. <emplnm/>
  24. <deptgb/>
  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="TRRPD06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  37. <submission id="TXRPD06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  38. </model>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  44. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  45. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. fInitialize();
  49. ]]>
  50. </script>
  51. <script type="javascript">
  52. <![CDATA[
  53. // var DUT_UNIT_CD = "";
  54. // var DUT_UNIT_NM = "";
  55. // var DUTY_RESP_YN = ""; // 복무 책임자
  56. // var DUTY_PART_YN = ""; // 인사 복무 담당자
  57. function fInitialize()
  58. {
  59. model.removenode("/root/main/list/dutsumlist");
  60. // misfComboComCdListMulti("Z0007","cmb_instcd");
  61. model.setValue("/root/send/retrparams/frdutym", getCurrentDate().substr(0, 6));
  62. //model.setValue("/root/send/retrparams/todutym", getCurrentDate().substr(0, 6));
  63. misfComboInstCdListMulti("cmb_instcd", ipt_dutym.value+getCurrentDate().substr(6, 2),"","N");
  64. misfGetAndSetUserInfo();
  65. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  66. //model.setValue("/root/send/retrparams/dutunitcd", DUT_UNIT_CD);
  67. //model.setValue("/root/send/retrparams/dutunitnm", DUT_UNIT_NM);
  68. cmb_instcd.disabled = true;
  69. model.setValue("/root/send/retrparams/deptgb", "1");
  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:1195px; 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:1195px; height:744px; ">
  81. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  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:1195px; y2:69px; "/>
  85. <datagrid id="grd_dutsumlist" nodeset="/root/main/list/dutsumlist" caption="부서^직위^사원번호^성명^주민번호^파업일수^비고^caption3^caption2" colsep="^" colwidth="209, 140, 101, 99, 108, 84, 411, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1195px; height:670px; border-right-color:#3366ff; ">
  86. <col ref="dutplcedeptnm"/>
  87. <col ref="jobposnm"/>
  88. <col disabled="true" 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="ilsu" type="input" format="###" style="text-align:right; padding-right:5; "/>
  92. <col ref="cmt" type="input" style="text-align:left; "/>
  93. <col ref="dutym" visibility="hidden"/>
  94. <script type="javascript" ev:event="onaftersort">
  95. <![CDATA[
  96. grd_dutsumlist.gridToInstance();
  97. ]]>
  98. </script>
  99. <script type="javascript" ev:event="onbuttonclick">
  100. <![CDATA[
  101. if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
  102. var recv_list = "emplno,emplnm";
  103. rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
  104. model.refresh();
  105. }
  106. ]]>
  107. </script>
  108. </datagrid>
  109. <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
  110. <caption id="caption1" class="search_name" style="left:250px; top:19px; width:86px; height:17px; ">파업년월 :</caption>
  111. <input id="ipt_dutym" ref="/root/send/retrparams/frdutym" class="input_search" navindex="2" inputtype="date" format="yyyy-mm" style="left:340px; top:18px; width:85px; height:19px; text-align:center; ">
  112. <script type="javascript" ev:event="xforms-value-changed">
  113. <![CDATA[
  114. var instcd = cmb_instcd.value;
  115. if( getStringLength(ipt_dutym.value) == "6" ) {
  116. model.removeNodeset(cmb_instcd.attribute("ref"));
  117. model.makeNode("/root/send/retrparams/instcd");
  118. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
  119. cmb_instcd.value = instcd;
  120. model.refresh();
  121. }
  122. btn_search.dispatch("DOMActivate");
  123. ]]>
  124. </script>
  125. </input>
  126. <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; ">
  127. <choices>
  128. <itemset>
  129. <label/>
  130. <value/>
  131. </itemset>
  132. </choices>
  133. <script type="javascript" ev:event="xforms-value-changed">
  134. <![CDATA[
  135. btn_search.dispatch("DOMActivate");
  136. ]]>
  137. </script>
  138. </select1>
  139. <button id="btn_dutdept" class="icon_search" navindex="5" style="left:693px; top:20px; width:16px; height:16px; ">
  140. <caption/>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  144. model.refresh();
  145. ]]>
  146. </script>
  147. </button>
  148. <caption id="caption2" class="search_name" style="left:437px; top:19px; width:88px; height:17px; ">근무부서 :</caption>
  149. <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="6" style="left:711px; top:18px; width:114px; height:19px; ">
  150. <script type="javascript" ev:event="onkeypress">
  151. <![CDATA[
  152. if(event.keyCode == 13)
  153. {
  154. if(ipt_dutdeptnm.value == ipt_dutdeptnm.currentText) return;
  155. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  156. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  157. model.refresh();
  158. }
  159. ]]>
  160. </script>
  161. <script type="javascript" ev:event="xforms-value-changed">
  162. <![CDATA[
  163. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </input>
  168. <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" navindex="4" maxlength="10" style="left:620px; top:18px; width:70px; height:19px; text-align:center; ">
  169. <script type="javascript" ev:event="onkeypress">
  170. <![CDATA[
  171. if(event.keyCode == 13)
  172. {
  173. if(ipt_dutdeptcd.value == ipt_dutdeptcd.currentText) return;
  174. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  175. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  176. model.refresh();
  177. }
  178. ]]>
  179. </script>
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  183. model.refresh();
  184. ]]>
  185. </script>
  186. </input>
  187. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:17px; width:56px; height:22px; ">
  188. <caption>조회</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. submit("TRRPD06101");
  192. ]]>
  193. </script>
  194. </button>
  195. <select1 id="rdo_retrflag" ref="/root/send/retrparams/retrflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="20" cols="2" style="left:995px; top:20px; width:100px; height:15px; border-style:none; ">
  196. <choices>
  197. <item>
  198. <label>시간</label>
  199. <value>T</value>
  200. </item>
  201. <item>
  202. <label>횟수</label>
  203. <value>C</value>
  204. </item>
  205. </choices>
  206. </select1>
  207. <button id="btn_excsave" class="btn2_letter4" style="left:1127px; top:49px; width:64px; height:19px; ">
  208. <caption>엑셀저장</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. misfSaveExcel(grd_dutsumlist);
  212. ]]>
  213. </script>
  214. </button>
  215. <caption id="caption3" class="search_name" style="left:840px; top:19px; width:63px; height:17px; ">사번 :</caption>
  216. <button id="btn_emplno" class="icon_search" navindex="8" style="left:983px; top:18px; width:16px; height:16px; ">
  217. <caption/>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. var recv_list = "emplno,emplnm" ;
  221. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  222. model.refresh();
  223. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  224. //btn_search.dispatch("DOMActivate");
  225. ipt_emplnos.dispatch("xforms-value-changed");
  226. }
  227. ]]>
  228. </script>
  229. </button>
  230. <input id="ipt_emplnos" ref="/root/send/retrparams/emplno" class="input_default" navindex="7" style="left:901px; top:18px; width:77px; height:19px; ">
  231. <script type="javascript" ev:event="onkeyup">
  232. <![CDATA[
  233. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  234. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  235. }
  236. ]]>
  237. </script>
  238. <script type="javascript" ev:event="xforms-value-changed">
  239. <![CDATA[
  240. var recv_list = "emplno,emplnm" ;
  241. rpbfValidationCheck("EMPLNO", recv_list);
  242. model.refresh();
  243. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  244. btn_search.dispatch("DOMActivate");
  245. }
  246. ]]>
  247. </script>
  248. </input>
  249. <input id="ipt_emplnms" ref="/root/send/retrparams/emplnm" class="input_default" navindex="9" style="left:1002px; top:18px; width:96px; height:19px; ">
  250. <script type="javascript" ev:event="onkeyup">
  251. <![CDATA[
  252. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  253. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  254. }
  255. ]]>
  256. </script>
  257. <script type="javascript" ev:event="xforms-value-changed">
  258. <![CDATA[
  259. var recv_list = "emplno,emplnm" ;
  260. rpbfValidationCheck("EMPLNM", recv_list);
  261. model.refresh();
  262. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  263. btn_search.dispatch("DOMActivate");
  264. }
  265. ]]>
  266. </script>
  267. </input>
  268. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1071px; top:49px; width:53px; height:19px; ">
  269. <caption>행삭제</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. //grd_dutsumlist.deleteRow(grd_dutsumlist.row);
  273. deleteSelectedRows(grd_dutsumlist, true);
  274. ]]>
  275. </script>
  276. </button>
  277. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:1015px; top:49px; width:53px; height:19px; ">
  278. <caption>행추가</caption>
  279. <script type="javascript" ev:event="DOMActivate">
  280. <![CDATA[
  281. grd_dutsumlist.addRow();
  282. model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/dutym", model.getValue("/root/send/retrparams/frdutym"));
  283. model.refresh();
  284. ]]>
  285. </script>
  286. </button>
  287. <select1 id="combo1" ref="/root/send/retrparams/deptgb" navindex="3" appearance="minimal" style="left:525px; top:18px; width:90px; height:19px; ">
  288. <choices>
  289. <item>
  290. <label>근무지</label>
  291. <value>1</value>
  292. </item>
  293. <item>
  294. <label>근무부서</label>
  295. <value>2</value>
  296. </item>
  297. <item>
  298. <label>근무과(팀)</label>
  299. <value>3</value>
  300. </item>
  301. <item>
  302. <label>근무부(실)</label>
  303. <value>4</value>
  304. </item>
  305. </choices>
  306. </select1>
  307. </group>
  308. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  309. <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  310. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  311. <caption>저장</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. for (var i = 1; i < grd_dutsumlist.rows; i ++){
  315. if (model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno") == ""){
  316. messageBox(i + "번째의 사원번호는 필수 입력항목입니다.", "E999", "");
  317. return;
  318. }
  319. }
  320. var update = getGridUpdateData(grd_dutsumlist);
  321. if(update == ""){
  322. messageBox("업데이트 정보가 없습니다.", "E999", "");
  323. return 0;
  324. } else {
  325. model.setValue("/root/send/save/dutsumlist", update);
  326. if (submit("TXRPD06101")){
  327. messageBox("정상적으로 처리되었습니다.", "E999", "");
  328. btn_search.dispatch("DOMActivate");
  329. }
  330. }
  331. ]]>
  332. </script>
  333. </button>
  334. </group>
  335. </xhtml:body>
  336. </xhtml:html>