SMRPD12200_미사용연차휴가계획표.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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. <unuseholilist/>
  11. </main>
  12. <init>
  13. </init>
  14. <send>
  15. <instcd/>
  16. <dutunitcd/>
  17. <dutunitnm/>
  18. <emplno/>
  19. <emplnm/>
  20. <dutunitcd1/>
  21. <year/>
  22. </send>
  23. </root>
  24. </instance>
  25. <submission id="TRRPD12201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/unuseholilist"/>
  26. </model>
  27. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  30. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  31. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  32. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  33. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. fInitialize();
  37. ]]>
  38. </script>
  39. <script type="javascript">
  40. <![CDATA[
  41. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  42. function fInitialize()
  43. {
  44. model.removeNodeset("/root/main/unuseholilist");
  45. misfGridInit(grd_unuseholilist);
  46. misfMsterDetailSet(grd_unuseholilist, null, "TRRPD12201", "Y");
  47. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  48. misfGetAndSetUserInfo();
  49. misfGetUserAuth();
  50. rpdfDeptComboCdList(cmb_dutplce,'Y'); // 근무부서 조회
  51. rpdfSetDutUnitCombo(); // 조회된 근무부서를 콤보에 세팅해줌
  52. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  53. model.setValue("/root/send/dutunitcd", DUT_UNIT_CD);
  54. model.setValue("/root/send/dutunitnm", DUT_UNIT_NM);
  55. model.setValue("/root/send/dutunitcd1", DUT_UNIT_CD);
  56. model.setValue("/root/send/year", getCurrentDate().substr(0, 4));
  57. if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y") { // 의료원 복무담당자
  58. cmb_instcd.disabled = false;
  59. }
  60. else {
  61. cmb_instcd.disabled = true;
  62. }
  63. if ( DUTY_PART_YN == "Y" ) { // 복무담당자는 모든부서 조회가 가능해야 한다.
  64. ipt_dutdeptcd.disabled = false;
  65. btn_dutdept.disabled = false;
  66. ipt_dutunitnm.disabled = false;
  67. }
  68. else if(JOB_RESP_CD == "1070" || JOB_RESP_CD == "1080" || JOB_RESP_CD == "2010" || JOB_RESP_CD == "1901"
  69. || JOB_RESP_CD == "1907" || DUTY_RESP_YN == "Y" )
  70. { // 팀장 / 부장 / 간호부장 / UM / JM / 복무위임 일때 자기 부서만 조회가 가능해야 한다.
  71. cmb_dutplce.visible = true ;
  72. ipt_dutdeptcd.visible = false ;
  73. ipt_dutunitnm.visible = false ;
  74. btn_dutdept.visible = false ;
  75. }
  76. else { // 일반 개인은 자기정보만 조회 수정 삭제 저장 가능해야 한다.
  77. ipt_dutdeptcd.disabled = true;
  78. btn_dutdept.disabled = true;
  79. ipt_dutunitnm.disabled = true;
  80. ipt_emplno.disabled = true;
  81. btn_emplhelp.disabled = true;
  82. ipt_emplnm.disabled = true;
  83. model.setValue("/root/send/emplno", getUserInfo("userid"));
  84. model.setValue("/root/send/emplnm", getUserInfo("usernm"));
  85. }
  86. model.refresh();
  87. }
  88. ]]>
  89. </script>
  90. </xhtml:head>
  91. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  92. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  93. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">미사용연차휴가사용계획표</caption>
  94. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  95. </group>
  96. <group id="group3" scroll="auto" style="left:0px; top:23px; width:1195px; height:744px; ">
  97. <line id="line2" class="line_3" style="x1:0px; y1:726px; x2:1194px; y2:726px; "/>
  98. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:1195px; y2:64px; "/>
  99. <caption id="caption9" class="tit_2" style="left:5px; top:49px; width:175px; height:14px; ">미사용연차휴가사용계획표</caption>
  100. <group id="group4" style="left:0px; top:5px; width:1195px; height:35px; vertical-align:top; ">
  101. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  102. <caption id="caption5" class="search_name" style="left:498px; top:9px; width:90px; height:17px; ">근무부서 :</caption>
  103. <line id="line3" class="line_4" style="x1:1105px; y1:5px; x2:1105px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  104. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
  105. <caption>조회</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. misfMsterDetailRetrieve();
  109. ]]>
  110. </script>
  111. </button>
  112. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:115px; top:8px; width:145px; height:19px; ">
  113. <choices>
  114. <itemset>
  115. <label/>
  116. <value/>
  117. </itemset>
  118. </choices>
  119. </select1>
  120. <caption id="caption3" class="search_name" style="left:25px; top:9px; width:91px; height:17px; ">근무기관 :</caption>
  121. <button id="btn_dutdept" class="icon_search" style="left:672px; top:9px; width:16px; height:16px; ">
  122. <caption/>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + getCurrentDate().substr(0, 8), "instcd,basedd");
  126. model.refresh();
  127. ]]>
  128. </script>
  129. </button>
  130. <input id="ipt_dutunitnm" ref="/root/send/dutunitnm" class="input_search" navindex="4" style="left:690px; top:8px; width:114px; height:19px; ">
  131. <script type="javascript" ev:event="onkeypress">
  132. <![CDATA[
  133. if(event.keyCode == 13)
  134. {
  135. if(ipt_dutdeptnm.value == ipt_dutdeptnm.currentText) return;
  136. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  137. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  138. model.refresh();
  139. }
  140. ]]>
  141. </script>
  142. <script type="javascript" ev:event="xforms-value-changed">
  143. <![CDATA[
  144. misfValidationCheck("02", "", "dutdutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  145. model.refresh();
  146. ]]>
  147. </script>
  148. </input>
  149. <input id="ipt_dutdeptcd" ref="/root/send/dutunitcd" class="input_search" navindex="3" maxlength="10" style="left:594px; top:8px; width:75px; height:19px; text-align:center; ">
  150. <script type="javascript" ev:event="onkeypress">
  151. <![CDATA[
  152. if(event.keyCode == 13)
  153. {
  154. if(ipt_dutdeptcd.value == ipt_dutdeptcd.currentText) return;
  155. ipt_dutdeptcd.value = ipt_dutdeptcd.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. <button id="btn_emplhelp" class="icon_search" style="left:983px; top:9px; width:16px; height:16px; ">
  169. <caption/>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N","Y");
  173. model.refresh();
  174. ]]>
  175. </script>
  176. </button>
  177. <caption id="caption2" class="search_name" style="left:827px; top:9px; width:86px; height:17px; ">사원번호 :</caption>
  178. <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" navindex="7" style="left:1002px; top:8px; width:88px; height:19px; ">
  179. <script type="javascript" ev:event="onkeypress">
  180. <![CDATA[
  181. if(event.keyCode == 13)
  182. {
  183. if(ipt_emplnm.value == ipt_emplnm.currentText) return;
  184. ipt_emplnm.value = ipt_emplnm.currentText;
  185. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  186. model.refresh();
  187. }
  188. ]]>
  189. </script>
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  193. model.refresh();
  194. ]]>
  195. </script>
  196. </input>
  197. <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" navindex="6" style="left:915px; top:8px; width:65px; height:19px; ">
  198. <script type="javascript" ev:event="onkeypress">
  199. <![CDATA[
  200. if(event.keyCode == 13)
  201. {
  202. if(ipt_emplno.value == ipt_emplno.currentText) return;
  203. ipt_emplno.value = ipt_emplno.currentText;
  204. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  205. model.refresh();
  206. }
  207. ]]>
  208. </script>
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  212. model.refresh();
  213. ]]>
  214. </script>
  215. </input>
  216. <caption id="caption1" class="search_name" style="left:290px; top:9px; width:91px; height:17px; ">기준년도 :</caption>
  217. <input id="input1" ref="/root/send/year" maxlength="4" style="left:380px; top:8px; width:85px; height:19px; text-align:center; "/>
  218. </group>
  219. <datagrid id="grd_unuseholilist" nodeset="/root/main/unuseholilist" class="text_center" visibility="visible" allowuserresize="false" caption="사원번호^성명^근무부서^직위^신청월^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^합계^최종수정일시" colsep="^" colwidth="60, 54, 100, 70, 60, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 45" frozencols="2" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:69px; width:1194px; height:656px; ">
  220. <col ref="emplno"/>
  221. <col ref="emplnm"/>
  222. <col ref="dutunitnm"/>
  223. <col ref="jobposnm"/>
  224. <col ref="appym" format="yyyy-mm"/>
  225. <col ref="day01" style="font-family:돋움체; font-size:9pt; "/>
  226. <col ref="day02" style="font-family:돋움체; font-size:9pt; "/>
  227. <col ref="day03" style="font-family:돋움체; font-size:9pt; "/>
  228. <col ref="day04" style="font-family:돋움체; font-size:9pt; "/>
  229. <col ref="day05" style="font-family:돋움체; font-size:9pt; "/>
  230. <col ref="day06" style="font-family:돋움체; font-size:9pt; "/>
  231. <col ref="day07" style="font-family:돋움체; font-size:9pt; "/>
  232. <col ref="day08" style="font-family:돋움체; font-size:9pt; "/>
  233. <col ref="day09" style="font-family:돋움체; font-size:9pt; "/>
  234. <col ref="day10" style="font-family:돋움체; font-size:9pt; "/>
  235. <col ref="day11" style="font-family:돋움체; font-size:9pt; "/>
  236. <col ref="day12" style="font-family:돋움체; font-size:9pt; "/>
  237. <col ref="day13" style="font-family:돋움체; font-size:9pt; "/>
  238. <col ref="day14" style="font-family:돋움체; font-size:9pt; "/>
  239. <col ref="day15" style="font-family:돋움체; font-size:9pt; "/>
  240. <col ref="day16" style="font-family:돋움체; font-size:9pt; "/>
  241. <col ref="day17" style="font-family:돋움체; font-size:9pt; "/>
  242. <col ref="day18" style="font-family:돋움체; font-size:9pt; "/>
  243. <col ref="day19" style="font-family:돋움체; font-size:9pt; "/>
  244. <col ref="day20" style="font-family:돋움체; font-size:9pt; "/>
  245. <col ref="day21" style="font-family:돋움체; font-size:9pt; "/>
  246. <col ref="day22" style="font-family:돋움체; font-size:9pt; "/>
  247. <col ref="day23" style="font-family:돋움체; font-size:9pt; "/>
  248. <col ref="day24" style="font-family:돋움체; font-size:9pt; "/>
  249. <col ref="day25" style="font-family:돋움체; font-size:9pt; "/>
  250. <col ref="day26" style="font-family:돋움체; font-size:9pt; "/>
  251. <col ref="day27" style="font-family:돋움체; font-size:9pt; "/>
  252. <col ref="day28" style="font-family:돋움체; font-size:9pt; "/>
  253. <col ref="day29" style="font-family:돋움체; font-size:9pt; "/>
  254. <col ref="day30" style="font-family:돋움체; font-size:9pt; "/>
  255. <col ref="day31" style="font-family:돋움체; font-size:9pt; "/>
  256. <col ref="holisum"/>
  257. </datagrid>
  258. <button id="btn_excsave" class="btn2_letter4" style="left:1127px; top:44px; width:64px; height:19px; ">
  259. <caption>엑셀저장</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. misfSaveExcel(grd_unuseholilist);
  263. ]]>
  264. </script>
  265. </button>
  266. <select1 id="cmb_dutplce" ref="/root/send/dutunitcd1" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:597px; top:13px; width:205px; height:19px; ">
  267. <choices>
  268. <itemset>
  269. <label/>
  270. <value/>
  271. </itemset>
  272. </choices>
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. model.setValue(ipt_dutdeptcd.attribute("ref"), cmb_dutplce.value );
  276. model.setValue(ipt_dutunitnm.attribute("ref"), cmb_dutplce.label );
  277. model.refresh();
  278. ]]>
  279. </script>
  280. </select1>
  281. </group>
  282. </xhtml:body>
  283. </xhtml:html>