SMRPD04900_부서별근태관리사용내역.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. <grnt>
  11. <grntlist1/>
  12. </grnt>
  13. </main>
  14. <send>
  15. <save>
  16. <dutschedeptcnfmlist/>
  17. </save>
  18. <dutschedeptcnfm>
  19. <instcd/>
  20. <dutym/>
  21. <srvarmaptodd/>
  22. <dutunitcd/>
  23. <dutunitnm/>
  24. <emplno/>
  25. <emplnm/>
  26. <ymdflag>1</ymdflag>
  27. <deprtmangraprvyn>N</deprtmangraprvyn>
  28. <tempfromdd/>
  29. <temptodd/>
  30. <deptgb/>
  31. <dutym2/>
  32. </dutschedeptcnfm>
  33. </send>
  34. <hidden>
  35. <check/>
  36. </hidden>
  37. <temp>
  38. <tempdeptcd/>
  39. </temp>
  40. <tempday>
  41. <dutinfo/>
  42. </tempday>
  43. </root>
  44. </instance>
  45. <submission id="TRRPD02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutschedeptcnfm" resultref="/root/main/dutschedeptcnfm"/>
  46. <submission id="TRRPD04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutschedeptcnfm" resultref="/root/main/grnt"/>
  47. <submission id="TRRPD10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/tempday/dutinfo"/>
  48. </model>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  54. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  55. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. fInit();
  59. ]]>
  60. </script>
  61. <script type="javascript">
  62. <![CDATA[
  63. function fInit()
  64. {
  65. fSetDate();
  66. misfComboInstCdListMulti("cmb_instcd",ipt_srvarmapfromdd.value,"","N");
  67. misfGetAndSetUserInfo();
  68. misfGetUserAuth();
  69. rpdfSetControlAuth();
  70. rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
  71. rpdfSetDutUnitCombo();
  72. model.setValue("/root/send/dutschedeptcnfm/dutunitcd", DUT_UNIT_CD);
  73. model.setValue("/root/send/dutschedeptcnfm/dutunitnm", DUT_UNIT_NM);
  74. model.setValue("/root/send/dutschedeptcnfm/emplno", getUserInfo("userid"));
  75. model.setValue("/root/send/dutschedeptcnfm/emplnm", getUserInfo("usernm"));
  76. model.setValue("/root/send/dutschedeptcnfm/instcd", getUserInfo("dutplceinstcd"));
  77. cmb_dutplce.value = DUT_UNIT_CD;
  78. addComboItem("cmb_dutplce","--전체--","","above");
  79. if (cmb_dutplce.value == "") {
  80. cmb_dutplce.select(0);
  81. }
  82. //rpdfSetControlByJobRespCd("cmb_ymdflag,ipt_srvarmapfromdd,ipt_srvarmaptodd,cmb_dutplce,ipt_emplno,btn_emplno,ipt_emplnm,rdo_deprtmangraprvyn,btn_grdadddutschedeptcnfmlist,btn_grddeldutschedeptcnfmlist,btn_search,btn_save");
  83. model.setValue("/root/send/dutschedeptcnfm/deptgb", "1");
  84. makeReportPreview(0,120,1195,650);
  85. model.refresh();
  86. }
  87. function fSetDate()
  88. {
  89. ipt_srvarmapfromdd.value = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMM");
  90. ipt_srvarmaptodd.value = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMM");
  91. }
  92. ]]>
  93. </script>
  94. </xhtml:head>
  95. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  96. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  97. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">개인별 근태 사용 내역</caption>
  98. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  99. </group>
  100. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  101. <group id="group4" style="left:0px; top:10px; width:1195px; height:56px; vertical-align:top; ">
  102. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:56px; background-color:#fffbf2; border-color:#ffd799; "/>
  103. <line id="line3" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
  104. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:17px; width:56px; height:22px; text-align:left; ">
  105. <caption>조회</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. submit("TRRPD04801");
  109. exeReportPreview("RPRPD04901", "XMLSTR");
  110. ]]>
  111. </script>
  112. </button>
  113. <caption id="caption1" class="search_name" style="left:452px; top:32px; width:86px; height:17px; ">사원번호 :</caption>
  114. <button id="btn_emplno" class="icon_search" disabled="true" style="left:617px; top:32px; width:16px; height:16px; ">
  115. <caption/>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
  119. model.refresh();
  120. ]]>
  121. </script>
  122. </button>
  123. <input id="ipt_emplnm" ref="/root/send/dutschedeptcnfm/emplnm" class="input_search" disabled="true" navindex="3" style="left:635px; top:31px; width:104px; height:19px; ">
  124. <script type="javascript" ev:event="onkeypress">
  125. <![CDATA[
  126. if(event.keyCode == 13)
  127. {
  128. if(ipt_emplnm.value == ipt_emplnm.currentText) return;
  129. ipt_emplnm.value = ipt_emplnm.currentText;
  130. model.setValue("/root/temp/tempdeptcd", cmb_dutplce.value);
  131. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  132. if(cmb_dutplce.value == "") cmb_dutplce.value = model.getValue("/root/temp/tempdeptcd")
  133. model.refresh();
  134. }
  135. ]]>
  136. </script>
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. model.setValue("/root/temp/tempdeptcd", cmb_dutplce.value);
  140. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  141. if(cmb_dutplce.value == "") cmb_dutplce.value = model.getValue("/root/temp/tempdeptcd")
  142. model.refresh();
  143. ]]>
  144. </script>
  145. </input>
  146. <input id="ipt_emplno" ref="/root/send/dutschedeptcnfm/emplno" class="input_search" disabled="true" navindex="2" maxlength="10" style="left:540px; top:31px; width:74px; height:19px; text-align:center; ">
  147. <script type="javascript" ev:event="onkeypress">
  148. <![CDATA[
  149. if(event.keyCode == 13)
  150. {
  151. if(ipt_emplno.value == ipt_emplno.currentText) return;
  152. ipt_emplno.value = ipt_emplno.currentText;
  153. model.setValue("/root/temp/tempdeptcd", cmb_dutplce.value);
  154. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  155. if(cmb_dutplce.value == "") cmb_dutplce.value = model.getValue("/root/temp/tempdeptcd")
  156. model.refresh();
  157. }
  158. ]]>
  159. </script>
  160. <script type="javascript" ev:event="xforms-value-changed">
  161. <![CDATA[
  162. model.setValue("/root/temp/tempdeptcd", cmb_dutplce.value);
  163. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  164. if(cmb_dutplce.value == "") cmb_dutplce.value = model.getValue("/root/temp/tempdeptcd")
  165. model.refresh();
  166. ]]>
  167. </script>
  168. </input>
  169. <input id="ipt_srvarmapfromdd" ref="/root/send/dutschedeptcnfm/dutym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:540px; top:7px; width:91px; height:19px; text-align:center; ">
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. ]]>
  173. </script>
  174. </input>
  175. <select1 id="cmb_instcd" ref="/root/send/dutschedeptcnfm/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:108px; top:8px; width:230px; height:19px; ">
  176. <choices>
  177. <itemset>
  178. <label/>
  179. <value/>
  180. </itemset>
  181. </choices>
  182. </select1>
  183. <caption id="caption8" class="search_name" style="left:20px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
  184. <button id="btn_dutdept" class="icon_search" style="left:192px; top:32px; width:16px; height:16px; ">
  185. <caption/>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_srvarmapfromdd.value, "instcd,basedd");
  189. model.refresh();
  190. ]]>
  191. </script>
  192. </button>
  193. <caption id="caption5" class="search_name" style="left:20px; top:31px; width:87px; height:17px; ">관리부서 :</caption>
  194. <input id="ipt_dutdeptnm" ref="/root/send/dutschedeptcnfm/dutunitnm" class="input_search" disabled="true" navindex="3" style="left:212px; top:30px; width:127px; height:19px; ">
  195. <script type="javascript" ev:event="xforms-value-changed">
  196. <![CDATA[
  197. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  198. model.refresh();
  199. ]]>
  200. </script>
  201. <script type="javascript" ev:event="onkeypress">
  202. <![CDATA[
  203. if(event.keyCode == 13)
  204. {
  205. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  206. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  207. model.refresh();
  208. }
  209. ]]>
  210. </script>
  211. </input>
  212. <input id="ipt_dutdeptcd" ref="/root/send/dutschedeptcnfm/dutunitcd" class="input_search" disabled="true" navindex="2" maxlength="10" style="left:108px; top:30px; width:80px; height:19px; ">
  213. <script type="javascript" ev:event="xforms-value-changed">
  214. <![CDATA[
  215. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  216. model.refresh();
  217. ]]>
  218. </script>
  219. <script type="javascript" ev:event="onkeypress">
  220. <![CDATA[
  221. if(event.keyCode == 13)
  222. {
  223. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  224. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  225. model.setValue("/root/send/dutcd/dutunitcd", model.getValue("/root/send/dutscheapp/dutunitcd"));
  226. model.refresh();
  227. }
  228. ]]>
  229. </script>
  230. </input>
  231. <select1 id="cmb_dutplce" ref="/root/send/dutschedeptcnfm/dutunitcd" class="combo_search" disabled="true" visibility="visible" appearance="minimal" style="left:110px; top:30px; width:225px; height:19px; ">
  232. <choices>
  233. <itemset>
  234. <label/>
  235. <value/>
  236. </itemset>
  237. </choices>
  238. <script type="javascript" ev:event="xforms-value-changed">
  239. <![CDATA[
  240. //btn_search.dispatch("DOMActivate");
  241. ]]>
  242. </script>
  243. </select1>
  244. <select1 id="combo1" ref="/root/send/dutschedeptcnfm/deptgb" disabled="true" visibility="hidden" appearance="minimal" style="left:345px; top:30px; width:100px; height:19px; ">
  245. <choices>
  246. <item>
  247. <label>근무지</label>
  248. <value>1</value>
  249. </item>
  250. <item>
  251. <label>소속부서</label>
  252. <value>2</value>
  253. </item>
  254. <item>
  255. <label>소속과(팀)</label>
  256. <value>3</value>
  257. </item>
  258. <item>
  259. <label>소속부(실)</label>
  260. <value>4</value>
  261. </item>
  262. </choices>
  263. </select1>
  264. <caption id="caption2" class="search_name" style="left:452px; top:9px; width:86px; height:17px; ">근무년월 :</caption>
  265. <input id="ipt_srvarmaptodd" ref="/root/send/dutschedeptcnfm/dutym2" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:645px; top:7px; width:91px; height:19px; text-align:center; ">
  266. <script type="javascript" ev:event="xforms-value-changed">
  267. <![CDATA[
  268. ]]>
  269. </script>
  270. </input>
  271. <caption id="caption7" style="left:632px; top:9px; width:15px; height:20px; ">~</caption>
  272. </group>
  273. <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:1194px; y2:89px; "/>
  274. <caption id="caption3" class="tit_2" style="left:5px; top:74px; width:165px; height:14px; ">근태내역</caption>
  275. <bool id="bool1" visibility="hidden" ref="/root/hidden/check" style="left:785px; top:66px; width:20px; height:20px; ">
  276. <script type="javascript" ev:event="xforms-value-changed">
  277. <![CDATA[
  278. if(model.getValue("/root/hidden/check") == "true")
  279. {
  280. for(var i=1; i<grd_dutschedeptcnfmlist.rows; i++)
  281. {
  282. if(grd_dutschedeptcnfmlist.valueMatrix(i, grd_dutschedeptcnfmlist.colRef("deprtmangraprvyn")) == "N")
  283. {
  284. grd_dutschedeptcnfmlist.valueMatrix(i, grd_dutschedeptcnfmlist.colRef("deprtmangraprvyn")) = "Y";
  285. grd_dutschedeptcnfmlist.addStatus(i, "update");
  286. }
  287. }
  288. }
  289. else
  290. {
  291. for(var i=1; i<grd_dutschedeptcnfmlist.rows; i++)
  292. {
  293. if(grd_dutschedeptcnfmlist.valueMatrix(i, grd_dutschedeptcnfmlist.colRef("deprtmangraprvyn")) == "Y")
  294. {
  295. grd_dutschedeptcnfmlist.valueMatrix(i, grd_dutschedeptcnfmlist.colRef("deprtmangraprvyn")) = "N";
  296. grd_dutschedeptcnfmlist.addStatus(i, "update");
  297. }
  298. }
  299. }
  300. model.refresh();
  301. ]]>
  302. </script>
  303. </bool>
  304. </group>
  305. <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  306. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  307. <input id="opt_dutdeptnm" ref="/root/send/dutschedeptcnfm/dutunitnm" class="output_fix" disabled="true" navindex="2" visibility="hidden" style="left:715px; top:3px; width:20px; height:19px; "/>
  308. <input id="opt_dutdeptcd" ref="/root/send/dutschedeptcnfm/dutunitcd" class="output_fix" disabled="true" navindex="2" visibility="hidden" style="left:695px; top:3px; width:20px; height:19px; "/>
  309. </group>
  310. </xhtml:body>
  311. </xhtml:html>