SMRPD05200_중간관리자근무표.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" ytype="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. <daylist/>
  11. <dutlist>
  12. <dutschelist/>
  13. </dutlist>
  14. <print>
  15. <printlist/>
  16. <daylist/>
  17. </print>
  18. </main>
  19. <send>
  20. <instcd/>
  21. <dutym/>
  22. <deptkind>dpt</deptkind>
  23. </send>
  24. <init/>
  25. <hidden/>
  26. <temp>
  27. </temp>
  28. </root>
  29. </instance>
  30. <submission id="TRRPD02206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/daylist"/>
  31. <submission id="TRRPD05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/resltdata"/>
  32. </model>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/stringHelper.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/dligclaznsmngtweb/js/RPD001.js"/>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. fInitialize();
  42. ]]>
  43. </script>
  44. <script type="javascript">
  45. <![CDATA[
  46. var arrDayMax = new Array();
  47. var arrEveningMax = new Array();
  48. var arrNightMax = new Array();
  49. var DUTCODE_FLAG = false;
  50. var ZOOM_FLAG = false;
  51. var MOUSE_DOWN = false;
  52. var FIRST_CHECK = false;
  53. var iDay1ColIdx = 10;
  54. var iDay31ColIdx = 42;
  55. var bFirst = true;
  56. var sCurYM = "";
  57. var SELECTED_ROW = -1;
  58. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  59. function fInitialize()
  60. {
  61. model.removeNodeset("/root/main/dutlist/dutschelist");
  62. misfMsterDetailSet(grd_dutschelist, null, "TRRPD05201", "Y");
  63. // misfComboComCdListMulti("Z0007","cmb_instcd");
  64. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  65. misfGetAndSetUserInfo();
  66. misfGetUserAuth();
  67. sCurYM = getCurrentDate().substr(0, 6);
  68. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  69. model.setValue("/root/send/dutym", getCurrentDate().substr(0, 6));
  70. if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
  71. {
  72. cmb_instcd.disabled = false;
  73. cmb_dutplce.disabled = false;
  74. }
  75. if(DUTY_PART_YN == "Y")
  76. {
  77. cmb_dutplce.disabled = false;
  78. }
  79. model.refresh();
  80. }
  81. // 조회
  82. function fRetrieve()
  83. {
  84. grd_dutschelist.rebuildStyle();
  85. misfMsterDetailRetrieve();
  86. submit("TRRPD02206");
  87. fSetCalendarScheList(); // 번표에 달력의 일자를 세팅한다.
  88. }
  89. function fSetCalendarScheList()
  90. {
  91. var basedd = new Array();
  92. var holiflag = new Array();
  93. var daynm = new Array();
  94. for( var i=1; i<=31; i++)
  95. {
  96. basedd[i - 1] = model.getValue("/root/main/daylist["+ i + "]/basedd");
  97. holiflag[i - 1] = model.getValue("/root/main/daylist["+ i + "]/holiflag");
  98. daynm[i - 1] = model.getValue("/root/main/daylist["+ i + "]/daynm");
  99. if(basedd[i - 1] == "")
  100. {
  101. grd_dutschelist.colHidden(i + iDay1ColIdx) = true;
  102. }
  103. else
  104. {
  105. grd_dutschelist.colHidden(i + iDay1ColIdx) = false;
  106. }
  107. if(holiflag[i - 1] == '4')
  108. {
  109. grd_dutschelist.colStyle((i + iDay1ColIdx), "all", "color") = "#0000FF";
  110. }
  111. else if(holiflag[i - 1] == '0')
  112. {
  113. grd_dutschelist.colStyle((i + iDay1ColIdx), "all", "color") = "#FF0000";
  114. }
  115. else
  116. {
  117. grd_dutschelist.colStyle((i + iDay1ColIdx), "all", "color") = "#000000";
  118. }
  119. }
  120. var sche_caption = grd_dutschelist.caption;
  121. var sche_split = sche_caption.split("^");
  122. sche_caption = "근무년월";
  123. man_caption = "Duty별 근무자수";
  124. for(var j=1; j<sche_split.length; j++ )
  125. {
  126. // alert(sche_split[j] + " " + j);
  127. if(j > 60 && j < 92)
  128. {
  129. sche_caption = sche_caption + "^" + daynm[j - 61];
  130. }
  131. else
  132. {
  133. sche_caption = sche_caption + "^" + sche_split[j];
  134. }
  135. }
  136. grd_dutschelist.caption = sche_caption;
  137. }
  138. // 근무년월 변경 이벤트
  139. function fDutYMValueChanged()
  140. {
  141. submit("TRRPD02206");
  142. btn_search.dispatch("DOMActivate");
  143. }
  144. function fPrint()
  145. {
  146. exeReportPreview("RPRPD02201", "XMLSTR");
  147. model.removeNodeset("/root/main/print/printlist");
  148. model.refresh();
  149. }
  150. ]]>
  151. </script>
  152. </xhtml:head>
  153. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  154. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  155. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">중간관리자근무표</caption>
  156. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  157. </group>
  158. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  159. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:1195px; y2:64px; "/>
  160. <caption id="caption9" class="tit_2" style="left:5px; top:49px; width:109px; height:13px; ">근무 스케줄</caption>
  161. <group id="group4" style="left:0px; top:10px; width:1195px; height:32px; vertical-align:top; ">
  162. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:31px; background-color:#fffbf2; border-color:#ffd799; "/>
  163. <caption id="caption5" class="search_name" style="left:523px; top:8px; width:86px; height:17px; ">부서구분 :</caption>
  164. <line id="line3" class="line_4" style="x1:1110px; y1:2px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  165. <caption id="caption1" class="search_name" style="left:298px; top:7px; width:91px; height:17px; ">근무년월 :</caption>
  166. <input id="ipt_dutym" ref="/root/send/dutym" class="input_search" inputtype="date" format="yyyy-mm" style="left:385px; top:6px; width:110px; height:19px; text-align:center; ">
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. var instcd = cmb_instcd.value;
  170. if( getStringLength(ipt_dutym.value) == "6" ) {
  171. model.removeNodeset(cmb_instcd.attribute("ref"));
  172. model.makeNode("/root/send/instcd");
  173. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
  174. cmb_instcd.value = instcd;
  175. model.refresh();
  176. }
  177. fDutYMValueChanged();
  178. ]]>
  179. </script>
  180. </input>
  181. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:5px; width:56px; height:22px; text-align:left; ">
  182. <caption>조회</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. fRetrieve();
  186. ]]>
  187. </script>
  188. </button>
  189. <select1 id="cmb_dutplce" ref="/root/send/deptkind" class="combo_search" disabled="true" visibility="visible" appearance="minimal" style="left:610px; top:6px; width:120px; height:19px; text-align:center; ">
  190. <choices>
  191. <item>
  192. <label>전체</label>
  193. <value>all</value>
  194. </item>
  195. <item>
  196. <label>간호부</label>
  197. <value>dpt</value>
  198. </item>
  199. </choices>
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. btn_search.dispatch("DOMActivate");
  203. ]]>
  204. </script>
  205. </select1>
  206. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" disabled="true" navindex="1" appearance="minimal" style="left:92px; top:6px; width:178px; height:19px; ">
  207. <choices>
  208. <itemset>
  209. <label/>
  210. <value/>
  211. </itemset>
  212. </choices>
  213. </select1>
  214. <caption id="caption29" class="search_name" style="left:4px; top:7px; width:86px; height:17px; ">근무기관 :</caption>
  215. </group>
  216. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1127px; top:44px; width:64px; height:19px; ">
  217. <caption>엑셀저장</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. var sName = cmb_instcd.label + " " + model.getValue("/root/send/dutym").substr(0, 4) + "년 " + model.getValue("/root/send/dutym").substr(4, 2) + "월 " + "중간 관리자 근무표 (" + cmb_dutplce.label + ")";
  221. misfSaveExcel(grd_dutschelist, sName);
  222. ]]>
  223. </script>
  224. </button>
  225. <button id="btn_retrsrvp" class="btn2_letter8" visibility="hidden" style="left:1018px; top:44px; width:108px; height:19px; ">
  226. <caption>복무계획신청내역</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. model.setValue("/root/send/winparams/instcd", model.getValue("/root/send/instcd"));
  230. model.setValue("/root/send/winparams/dutunitcd", model.getValue("/root/send/dutunitcd"));
  231. model.setValue("/root/send/winparams/dutym", model.getValue("/root/send/dutym"));
  232. modal("SPRPD02610", "", "", "", "", "/root/send/winparams", "/root/target" );
  233. ]]>
  234. </script>
  235. </button>
  236. <datagrid id="grd_dutschelist" nodeset="/root/main/dutlist/dutschelist" class="text_center" allowuserresize="false" backcoloralternate="transparent" caption="근무년월^근무부서^신청예정&#xA;실시구분^기관코드^사원번호^성명^근무지부서코드^근무부서^직책^P^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^Total&#xA;휴가수^사용&#xA;휴가수^보호&#xA;휴가수^Day&#xA;합계^Evening&#xA;합계^Night&#xA;합계^Off&#xA;합계^시간제&#xA;근무합계^시간제&#xA;주휴합계^비고^최종수정일시|근무년월^근무부서^신청예정&#xA;실시구분^기관코드^사원번호^성명^근무지부서코드^근무부서^직책^P^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^Total&#xA;휴가수^사용&#xA;휴가수^보호&#xA;휴가수^Day&#xA;합계^Evening&#xA;합계^Night&#xA;합계^Off&#xA;합계^시간제&#xA;근무합계^시간제&#xA;주휴합계^비고^최종수정일시" colsep="^" colwidth="0, 0, 0, 0, 70, 60, 0, 100, 70, 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, 35, 53, 53, 53, 53, 53, 53, 53, 55, 55, 150" explorerbar="sort" frozencols="6" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:69px; width:1195px; height:646px; ">
  237. <col ref="dutym" visibility="hidden"/>
  238. <col ref="dutplcedeptcd" visibility="hidden"/>
  239. <col ref="appscheexecflag" visibility="hidden"/>
  240. <col ref="instcd" visibility="hidden"/>
  241. <col ref="emplno"/>
  242. <col ref="emplnm"/>
  243. <col ref="dutplcedeptcdtemp" visibility="hidden"/>
  244. <col ref="dutplcedeptnm"/>
  245. <col ref="jobrespnm"/>
  246. <col ref="part" style="text-align:center; "/>
  247. <col ref="day01" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  248. <col ref="day02" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  249. <col ref="day03" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  250. <col ref="day04" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  251. <col ref="day05" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  252. <col ref="day06" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  253. <col ref="day07" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  254. <col ref="day08" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  255. <col ref="day09" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  256. <col ref="day10" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  257. <col ref="day11" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  258. <col ref="day12" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  259. <col ref="day13" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  260. <col ref="day14" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  261. <col ref="day15" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  262. <col ref="day16" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  263. <col ref="day17" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  264. <col ref="day18" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  265. <col ref="day19" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  266. <col ref="day20" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  267. <col ref="day21" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  268. <col ref="day22" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  269. <col ref="day23" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  270. <col ref="day24" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  271. <col ref="day25" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  272. <col ref="day26" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  273. <col ref="day27" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  274. <col ref="day28" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  275. <col ref="day29" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  276. <col ref="day30" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  277. <col ref="day31" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
  278. <col ref="holitotcnt" style="text-align:right; padding-right:2; "/>
  279. <col ref="useholidayno" style="text-align:right; padding-right:2; "/>
  280. <col ref="mensholidayno" format="9999" style="text-align:right; padding-right:2; "/>
  281. <col ref="daysum" format="9999" style="text-align:right; padding-right:2; "/>
  282. <col ref="eveningsum" format="9999" style="text-align:right; padding-right:2; "/>
  283. <col ref="nigtsum" format="9999" style="text-align:right; padding-right:2; "/>
  284. <col ref="offsum" format="9999" style="left:993px; top:0px; width:0px; height:0px; text-align:right; padding-right:2; "/>
  285. <col ref="surp1_totduttm" format="9999" style="text-align:right; padding-right:2; "/>
  286. <col ref="surp2_otofftm" format="9999" style="text-align:right; padding-right:2; "/>
  287. <col ref="cmt" type="input"/>
  288. <script type="javascript" ev:event="onaftersort">
  289. <![CDATA[
  290. grd_dutschelist.gridToInstance();
  291. ]]>
  292. </script>
  293. </datagrid>
  294. </group>
  295. <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  296. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  297. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  298. <caption>출력</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. fPrint();
  302. ]]>
  303. </script>
  304. </button>
  305. </group>
  306. </xhtml:body>
  307. </xhtml:html>