SMRPD11400_스케쥴인력조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. <schedule>
  11. <dutschesumlist/>
  12. </schedule>
  13. <holiday>
  14. <daylist/>
  15. </holiday>
  16. </main>
  17. <send>
  18. <retrparams>
  19. <instcd/>
  20. <dutym/>
  21. <dutplcedeptcd/>
  22. <dutplcedeptnm/>
  23. <teamcd/>
  24. <teamnm/>
  25. <emplno/>
  26. <emplnm/>
  27. </retrparams>
  28. </send>
  29. <init/>
  30. <temp/>
  31. </root>
  32. </instance>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  37. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  38. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  39. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  40. <submission id="TRRPD11401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  41. <submission id="TRRPD02005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/holiday/daylist"/>
  42. </model>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. fInit();
  46. ]]>
  47. </script>
  48. <script type="javascript">
  49. <![CDATA[
  50. var DAY_1_COLIDX = 3;
  51. var DAY_31_COLIDX = 34;
  52. var basedd = new Array();
  53. var holiflag = new Array();
  54. var daynm = new Array();
  55. var baseday = new Array();
  56. function fInit()
  57. {
  58. model.removenode("/root/main/schedule/dutschesumlist");
  59. // misfComboComCdListMulti("Z0007","cmb_instcd");
  60. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  61. misfGetAndSetUserInfo();
  62. misfGetUserAuth();
  63. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  64. model.setValue("/root/send/retrparams/dutym", getCurrentDate().substr(0, 6));
  65. if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
  66. {
  67. cmb_instcd.disabled = false;
  68. }
  69. else
  70. {
  71. cmb_instcd.disabled = true;
  72. }
  73. submit("TRRPD02005");
  74. fSetGridDayforMonth();
  75. grd_dutschesumlist.rowHeight(0) = 25;
  76. grd_dutschesumlist.rowHeight(1) = 25;
  77. model.refresh();
  78. }
  79. function fSetGridDayforMonth()
  80. {
  81. fSetHolidayColor();
  82. var sche_caption = grd_dutschesumlist.caption;
  83. var sche_split = sche_caption.split("^");
  84. sche_caption = "부서";
  85. for(var j=1; j < sche_split.length; j ++ )
  86. {
  87. if(j > 36 && j < 68){
  88. sche_caption = sche_caption + "^" + daynm[j - 37];
  89. }else if(j > 2 && j < 34){
  90. sche_caption = sche_caption + "^" + baseday[j - 3];
  91. }else{
  92. sche_caption = sche_caption + "^" + sche_split[j];
  93. }
  94. }
  95. grd_dutschesumlist.caption = sche_caption;
  96. }
  97. function fSetHolidayColor()
  98. {
  99. for (var i=1; i<=31; i++)
  100. {
  101. basedd[i - 1] = model.getValue("/root/main/holiday/daylist["+ i + "]/basedd");
  102. holiflag[i - 1] = model.getValue("/root/main/holiday/daylist["+ i + "]/holiflag");
  103. daynm[i - 1] = model.getValue("/root/main/holiday/daylist["+ i + "]/daynm");
  104. baseday[i - 1] = model.getValue("/root/main/holiday/daylist["+ i + "]/basedd").substr(6, 2);
  105. if(basedd[i-1] == "")
  106. {
  107. grd_dutschesumlist.colHidden(i + DAY_1_COLIDX) = true;
  108. }
  109. else
  110. {
  111. grd_dutschesumlist.colHidden(i + DAY_1_COLIDX) = false;
  112. }
  113. if(holiflag[i - 1] == '4')
  114. {
  115. grd_dutschesumlist.colStyle((i + DAY_1_COLIDX), "all", "color") = "#0000FF";
  116. }
  117. else if(holiflag[i - 1] == '0')
  118. {
  119. grd_dutschesumlist.colStyle((i + DAY_1_COLIDX), "all", "color") = "#FF0000";
  120. }
  121. else
  122. {
  123. grd_dutschesumlist.colStyle((i + DAY_1_COLIDX), "all", "color") = "#000000";
  124. }
  125. }
  126. }
  127. ]]>
  128. </script>
  129. </xhtml:head>
  130. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  132. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">스케줄 인력조회</caption>
  133. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  134. </group>
  135. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  136. <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:1195px; y2:89px; "/>
  137. <caption id="caption9" class="tit_2" style="left:5px; top:74px; width:139px; height:13px; ">근무 스케줄</caption>
  138. <group id="group4" style="left:0px; top:10px; width:1195px; height:56px; vertical-align:top; ">
  139. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:56px; background-color:#fffbf2; border-color:#ffd799; "/>
  140. <caption id="caption5" class="search_name" style="left:342px; top:8px; width:86px; height:17px; ">근무년월 :</caption>
  141. <caption id="caption1" class="search_name" style="left:16px; top:32px; width:86px; height:17px; ">소속부서 :</caption>
  142. <caption id="caption2" class="search_name" visibility="hidden" style="left:666px; top:32px; width:86px; height:17px; ">사원번호 :</caption>
  143. <line id="line5" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  144. <caption id="caption3" class="search_name" style="left:341px; top:32px; width:87px; height:17px; ">팀 :</caption>
  145. <input id="ipt_dutym" ref="/root/send/retrparams/dutym" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm" style="left:430px; top:7px; width:110px; height:19px; text-align:center; ">
  146. <script type="javascript" ev:event="xforms-value-changed">
  147. <![CDATA[
  148. var instcd = cmb_instcd.value;
  149. if( getStringLength(ipt_dutym.value) == "6" ) {
  150. model.removeNodeset(cmb_instcd.attribute("ref"));
  151. model.makeNode("/root/send/retrparams/instcd");
  152. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
  153. cmb_instcd.value = instcd;
  154. model.refresh();
  155. }
  156. submit("TRRPD02005");
  157. fSetGridDayforMonth();
  158. btn_search.dispatch("DOMActivate");
  159. ]]>
  160. </script>
  161. </input>
  162. <input id="ipt_dutplcedeptcd" ref="/root/send/retrparams/dutplcedeptcd" class="input_search" navindex="2" maxlength="10" style="left:104px; top:31px; width:80px; height:19px; ">
  163. <script type="javascript" ev:event="onkeypress">
  164. <![CDATA[
  165. if(event.keyCode == 13)
  166. {
  167. racfDeptValidCheck("dutplcedeptcd,dutplcedeptnm");
  168. }
  169. ]]>
  170. </script>
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. racfDeptValidCheck("dutplcedeptcd,dutplcedeptnm");
  174. ]]>
  175. </script>
  176. </input>
  177. <input id="ipt_dutplcedeptnm" ref="/root/send/retrparams/dutplcedeptnm" class="input_search" navindex="3" style="left:208px; top:31px; width:115px; height:19px; ">
  178. <script type="javascript" ev:event="onkeypress">
  179. <![CDATA[
  180. if(event.keyCode == 13)
  181. {
  182. racfDeptValidCheck("dutplcedeptcd,dutplcedeptnm");
  183. }
  184. ]]>
  185. </script>
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. racfDeptValidCheck("dutplcedeptcd,dutplcedeptnm");
  189. ]]>
  190. </script>
  191. </input>
  192. <button id="btn_dutplcedepthelp" class="icon_search" style="left:188px; top:32px; width:16px; height:16px; ">
  193. <caption/>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. rpbfOpenDeptCdHelp(ipt_dutplcedeptcd, "dutplcedeptcd,dutplcedeptnm");
  197. model.refresh();
  198. ]]>
  199. </script>
  200. </button>
  201. <input id="ipt_teamcd" ref="/root/send/retrparams/teamcd" class="input_search" navindex="4" maxlength="10" style="left:430px; top:31px; width:81px; height:19px; ">
  202. <script type="javascript" ev:event="onkeypress">
  203. <![CDATA[
  204. if(event.keyCode == 13)
  205. {
  206. racfDeptValidCheck("teamcd,teamnm");
  207. }
  208. ]]>
  209. </script>
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. racfDeptValidCheck("teamcd,teamnm");
  213. ]]>
  214. </script>
  215. </input>
  216. <input id="ipt_teamnm" ref="/root/send/retrparams/teamnm" class="input_search" navindex="5" style="left:535px; top:31px; width:120px; height:19px; ">
  217. <script type="javascript" ev:event="onkeypress">
  218. <![CDATA[
  219. if(event.keyCode == 13)
  220. {
  221. racfDeptValidCheck("teamcd,teamnm");
  222. }
  223. ]]>
  224. </script>
  225. <script type="javascript" ev:event="xforms-value-changed">
  226. <![CDATA[
  227. racfDeptValidCheck("teamcd,teamnm");
  228. ]]>
  229. </script>
  230. </input>
  231. <button id="btn_teamhelp" class="icon_search" style="left:514px; top:32px; width:16px; height:16px; ">
  232. <caption/>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. rpbfOpenDeptCdHelp(ipt_dutplcedeptcd, "teamcd,teamnm");
  236. model.refresh();
  237. ]]>
  238. </script>
  239. </button>
  240. <input id="ipt_emplno" ref="/root/send/retrparams/emplno" class="input_search" navindex="6" visibility="hidden" style="left:754px; top:31px; width:65px; height:19px; ">
  241. <script type="javascript" ev:event="onkeypress">
  242. <![CDATA[
  243. if(event.keyCode == 13)
  244. {
  245. if(ipt_emplno.value == ipt_emplno.currentText) return;
  246. ipt_emplno.value = ipt_emplno.currentText;
  247. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  248. fDutCdRetreive();
  249. }
  250. ]]>
  251. </script>
  252. <script type="javascript" ev:event="xforms-value-changed">
  253. <![CDATA[
  254. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  255. fDutCdRetreive();
  256. ]]>
  257. </script>
  258. </input>
  259. <input id="ipt_emplnm" ref="/root/send/retrparams/emplnm" class="input_search" navindex="7" visibility="hidden" style="left:845px; top:31px; width:100px; height:19px; ">
  260. <script type="javascript" ev:event="onkeypress">
  261. <![CDATA[
  262. if(event.keyCode == 13)
  263. {
  264. if(ipt_emplnm.value == ipt_emplnm.currentText) return;
  265. ipt_emplnm.value = ipt_emplnm.currentText;
  266. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  267. fDutCdRetreive();
  268. }
  269. ]]>
  270. </script>
  271. <script type="javascript" ev:event="xforms-value-changed">
  272. <![CDATA[
  273. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  274. fDutCdRetreive();
  275. ]]>
  276. </script>
  277. </input>
  278. <button id="btn_emplhelp" class="icon_search" visibility="hidden" style="left:824px; top:32px; width:16px; height:16px; ">
  279. <caption/>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutplcedeptcd,dutplcedeptnm", "", "N");
  283. fDutCdRetreive();
  284. ]]>
  285. </script>
  286. </button>
  287. <button id="btn_search" class="btn1_letter2" navindex="8" selected="true" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
  288. <caption>조회</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. submit("TRRPD11401");
  292. fSetHolidayColor();
  293. ]]>
  294. </script>
  295. </button>
  296. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:105px; top:7px; width:218px; height:19px; ">
  297. <choices>
  298. <itemset>
  299. <label/>
  300. <value/>
  301. </itemset>
  302. </choices>
  303. </select1>
  304. <caption id="caption7" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">소속기관 :</caption>
  305. </group>
  306. <datagrid id="grd_dutschesumlist" nodeset="/root/main/list/dutschesumlist" caption="부서^직원구분^Duty^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^caption1|부서^직원구분^Duty^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^caption1" colsep="^" colwidth="111, 70, 35, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 32, 28" frozencols="3" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:94px; width:1195px; height:640px; ">
  307. <col ref="dutplcedeptnm"/>
  308. <col ref="jobposnm" style="text-align:center; "/>
  309. <col ref="duty" style="text-align:center; "/>
  310. <col ref="day01" style="text-align:center; "/>
  311. <col ref="day02" style="text-align:center; "/>
  312. <col ref="day03" style="text-align:center; "/>
  313. <col ref="day04" style="text-align:center; "/>
  314. <col ref="day05" style="text-align:center; "/>
  315. <col ref="day06" style="text-align:center; "/>
  316. <col ref="day07" style="text-align:center; "/>
  317. <col ref="day08" style="text-align:center; "/>
  318. <col ref="day09" style="text-align:center; "/>
  319. <col ref="day10" style="text-align:center; "/>
  320. <col ref="day11" style="text-align:center; "/>
  321. <col ref="day12" style="text-align:center; "/>
  322. <col ref="day13" style="text-align:center; "/>
  323. <col ref="day14" style="text-align:center; "/>
  324. <col ref="day15" style="text-align:center; "/>
  325. <col ref="day16" style="text-align:center; "/>
  326. <col ref="day17" style="text-align:center; "/>
  327. <col ref="day18" style="text-align:center; "/>
  328. <col ref="day19" style="text-align:center; "/>
  329. <col ref="day20" style="text-align:center; "/>
  330. <col ref="day21" style="text-align:center; "/>
  331. <col ref="day22" style="text-align:center; "/>
  332. <col ref="day23" style="text-align:center; "/>
  333. <col ref="day24" style="text-align:center; "/>
  334. <col ref="day25" style="text-align:center; "/>
  335. <col ref="day26" style="text-align:center; "/>
  336. <col ref="day27" style="text-align:center; "/>
  337. <col ref="day28" style="text-align:center; "/>
  338. <col ref="day29" style="text-align:center; "/>
  339. <col ref="day30" style="text-align:center; "/>
  340. <col ref="day31" style="text-align:center; "/>
  341. <col visibility="hidden"/>
  342. </datagrid>
  343. <button id="btn_excsave" class="btn2_letter4" style="left:1125px; top:68px; width:64px; height:19px; ">
  344. <caption>엑셀저장</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. misfSaveExcel(grd_dutschesumlist);
  348. ]]>
  349. </script>
  350. </button>
  351. </group>
  352. <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  353. <button id="button89" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  354. <caption>출력</caption>
  355. </button>
  356. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  357. </group>
  358. </xhtml:body>
  359. </xhtml:html>