SMRPD02610_개인복무계획신청수간호사승인.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  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>SMRPD02600_개인복무계획신청수간호사승인</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <dutcd>
  11. <dutcdlist/>
  12. </dutcd>
  13. <dutschedeptcnfm>
  14. <dutschedeptcnfmlist/>
  15. </dutschedeptcnfm>
  16. </main>
  17. <send>
  18. <save>
  19. <dutschedeptcnfmlist/>
  20. </save>
  21. <dutschedeptcnfm>
  22. <instcd/>
  23. <srvarmapfromdd/>
  24. <srvarmaptodd/>
  25. <dutunitcd/>
  26. <dutunitnm/>
  27. <emplno/>
  28. <emplnm/>
  29. <ymdflag>1</ymdflag>
  30. <nurseyn>N</nurseyn>
  31. <tempfromdd/>
  32. <temptodd/>
  33. <deptgb/>
  34. <chk/>
  35. </dutschedeptcnfm>
  36. </send>
  37. <hidden>
  38. <check/>
  39. </hidden>
  40. <temp>
  41. <tempdeptcd/>
  42. </temp>
  43. <tempday>
  44. <dutinfo/>
  45. </tempday>
  46. </root>
  47. </instance>
  48. <submission id="TRRPD02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutschedeptcnfm" resultref="/root/main/dutschedeptcnfm"/>
  49. <submission id="TXRPD02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hiddeen/temp"/>
  50. <submission id="TRRPD03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutschedeptcnfm" resultref="/root/main/dutcd"/>
  51. <submission id="TRRPD10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/tempday/dutinfo"/>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  58. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  59. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. fInit();
  63. ]]>
  64. </script>
  65. <script type="javascript">
  66. <![CDATA[
  67. function fInit()
  68. {
  69. //grd_dutschedeptcnfmlist.fixedcellcheckbox(0, grd_dutschedeptcnfmlist.colRef("nurseyn")) = true;
  70. //grd_dutschedeptcnfmlist.fixedcellcheckbox(1, grd_dutschedeptcnfmlist.colRef("nurseyn")) = true;
  71. misfGridInit(grd_dutschedeptcnfmlist);
  72. misfMsterDetailSet(grd_dutschedeptcnfmlist, null, "TRRPD02602" ,"Y");
  73. fSetDate();
  74. misfComboInstCdListMulti("cmb_instcd",ipt_srvarmapfromdd.value,"","N");
  75. misfGetAndSetUserInfo();
  76. misfGetUserAuth();
  77. rpdfSetControlAuth();
  78. rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
  79. rpdfSetDutUnitCombo();
  80. model.setValue("/root/send/dutschedeptcnfm/dutunitcd", DUT_UNIT_CD);
  81. model.setValue("/root/send/dutschedeptcnfm/dutunitnm", DUT_UNIT_NM);
  82. model.setValue("/root/send/dutschedeptcnfm/instcd", getUserInfo("dutplceinstcd"));
  83. //화면 권한 설정
  84. btn_search.disabled = !(checkAuth("R"));
  85. btn_save.disabled = !(checkAuth("X"));
  86. cmb_dutplce.value = DUT_UNIT_CD;
  87. if (cmb_dutplce.value == "") {
  88. cmb_dutplce.select(0);
  89. }
  90. //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");
  91. model.setValue("/root/send/dutschedeptcnfm/deptgb", "1");
  92. if(!btn_search.disabled)
  93. {
  94. btn_search.dispatch("DOMActivate");
  95. }
  96. model.refresh();
  97. }
  98. function fSetDate()
  99. {
  100. var dtLast = new Date(getCurrentDate().substr(0, 4), getCurrentDate().substr(4, 2), 0);
  101. var iLastDay = dtLast.getDate();
  102. submit("TRRPD10102", false);
  103. ipt_srvarmapfromdd.value = model.getValue("/root/tempday/dutinfo/dutlist/fromymd");
  104. ipt_srvarmaptodd.value = model.getValue("/root/tempday/dutinfo/dutlist/toymd");
  105. //ipt_srvarmapfromdd.value = getCurrentDate().substr(0, 6) + "01";
  106. //ipt_srvarmaptodd.value = getCurrentDate().substr(0, 6) + (iLastDay).toString();
  107. }
  108. function fSetDutCdAppList()
  109. {
  110. if (grd_dutschedeptcnfmlist.rows > 0 && grd_dutschedeptcnfmlist.row > 0)
  111. {
  112. var sDeprtAppYn = grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("deprtmangraprvyn"));
  113. var sFromDD = grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("srvarmfromdd"));
  114. var sSetCd = grd_dutcdlist.valueMatrix(grd_dutcdlist.row, grd_dutcdlist.colRef("dutcd"));
  115. var iRowStatus = grd_dutschedeptcnfmlist.rowStatus(grd_dutschedeptcnfmlist.row);
  116. if(sDeprtAppYn == "Y" && (iRowStatus != 1 && iRowStatus != 3))
  117. {
  118. messageBox("부서장 승인 된 내역입니다.", "I999");
  119. }
  120. else if(sDeprtAppYn == "Y" && (iRowStatus == 1 || iRowStatus == 3))
  121. {
  122. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("dutcd")) = sSetCd;
  123. if(grd_dutschedeptcnfmlist.rowStatus(grd_dutschedeptcnfmlist.row) == 0)
  124. {
  125. grd_dutschedeptcnfmlist.addStatus(grd_dutschedeptcnfmlist.row, "update");
  126. }
  127. if(sSetCd == "B")
  128. {
  129. grd_dutschedeptcnfmlist.col = grd_dutschedeptcnfmlist.colRef("srvarmfromdd");
  130. grd_dutschedeptcnfmlist.dispatch("xforms-value-changed");
  131. }
  132. }
  133. }
  134. }
  135. ]]>
  136. </script>
  137. </xhtml:head>
  138. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  139. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  140. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">개인복무계획신청수간호사승인</caption>
  141. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  142. </group>
  143. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  144. <group id="group4" style="left:0px; top:10px; width:1195px; height:56px; vertical-align:top; ">
  145. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:56px; background-color:#fffbf2; border-color:#ffd799; "/>
  146. <line id="line3" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
  147. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:17px; width:56px; height:22px; text-align:left; ">
  148. <caption>조회</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. submit("TRRPD03702");
  152. misfMsterDetailRetrieve();
  153. ]]>
  154. </script>
  155. </button>
  156. <caption id="caption1" class="search_name" style="left:452px; top:32px; width:86px; height:17px; ">사원번호 :</caption>
  157. <button id="btn_emplno" class="icon_search" style="left:617px; top:32px; width:16px; height:16px; ">
  158. <caption/>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
  162. model.refresh();
  163. ]]>
  164. </script>
  165. </button>
  166. <input id="ipt_emplnm" ref="/root/send/dutschedeptcnfm/emplnm" class="input_search" navindex="3" style="left:635px; top:31px; width:104px; height:19px; ">
  167. <script type="javascript" ev:event="onkeypress">
  168. <![CDATA[
  169. if(event.keyCode == 13)
  170. {
  171. if(ipt_emplnm.value == ipt_emplnm.currentText) return;
  172. ipt_emplnm.value = ipt_emplnm.currentText;
  173. model.setValue("/root/temp/tempdeptcd", cmb_dutplce.value);
  174. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  175. if(cmb_dutplce.value == "") cmb_dutplce.value = model.getValue("/root/temp/tempdeptcd")
  176. model.refresh();
  177. }
  178. ]]>
  179. </script>
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. model.setValue("/root/temp/tempdeptcd", cmb_dutplce.value);
  183. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  184. if(cmb_dutplce.value == "") cmb_dutplce.value = model.getValue("/root/temp/tempdeptcd")
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </input>
  189. <input id="ipt_emplno" ref="/root/send/dutschedeptcnfm/emplno" class="input_search" navindex="2" maxlength="10" style="left:540px; top:31px; width:74px; height:19px; text-align:center; ">
  190. <script type="javascript" ev:event="onkeypress">
  191. <![CDATA[
  192. if(event.keyCode == 13)
  193. {
  194. if(ipt_emplno.value == ipt_emplno.currentText) return;
  195. ipt_emplno.value = ipt_emplno.currentText;
  196. model.setValue("/root/temp/tempdeptcd", cmb_dutplce.value);
  197. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  198. if(cmb_dutplce.value == "") cmb_dutplce.value = model.getValue("/root/temp/tempdeptcd")
  199. model.refresh();
  200. }
  201. ]]>
  202. </script>
  203. <script type="javascript" ev:event="xforms-value-changed">
  204. <![CDATA[
  205. model.setValue("/root/temp/tempdeptcd", cmb_dutplce.value);
  206. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  207. if(cmb_dutplce.value == "") cmb_dutplce.value = model.getValue("/root/temp/tempdeptcd")
  208. model.refresh();
  209. ]]>
  210. </script>
  211. </input>
  212. <caption id="caption2" class="search_name" style="left:451px; top:9px; width:15px; height:17px; "/>
  213. <input id="ipt_srvarmapfromdd" ref="/root/send/dutschedeptcnfm/srvarmapfromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:546px; top:7px; width:91px; height:19px; text-align:center; ">
  214. <script type="javascript" ev:event="xforms-value-changed">
  215. <![CDATA[
  216. var instcd = cmb_instcd.value;
  217. if( getStringLength(ipt_srvarmapfromdd.value) == "8" ) {
  218. model.removeNodeset(cmb_instcd.attribute("ref"));
  219. model.makeNode("/root/send/dutschedeptcnfm/instcd");
  220. misfComboInstCdListMulti("cmb_instcd",ipt_srvarmapfromdd.value,"","N");
  221. cmb_instcd.value = instcd;
  222. model.refresh();
  223. }
  224. ]]>
  225. </script>
  226. </input>
  227. <input id="ipt_srvarmaptodd" ref="/root/send/dutschedeptcnfm/srvarmaptodd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:650px; top:7px; width:91px; height:19px; text-align:center; "/>
  228. <select1 id="rdo_deprtmangraprvyn" ref="/root/send/dutschedeptcnfm/nurseyn" overflow="visible" appearance="full" cols="3" style="left:865px; top:9px; width:150px; height:14px; border-style:none; ">
  229. <choices>
  230. <item>
  231. <label>승인</label>
  232. <value>Y</value>
  233. </item>
  234. <item>
  235. <label>미승인</label>
  236. <value>N</value>
  237. </item>
  238. <item>
  239. <label>전체</label>
  240. <value/>
  241. </item>
  242. </choices>
  243. </select1>
  244. <caption id="caption7" style="left:638px; top:10px; width:11px; height:15px; ">~</caption>
  245. <caption id="caption9" class="search_name" style="left:779px; top:9px; width:86px; height:17px; ">승인여부 :</caption>
  246. <select1 id="cmb_ymdflag" ref="/root/send/dutschedeptcnfm/ymdflag" class="combo_search" appearance="minimal" style="left:472px; top:7px; width:75px; height:19px; text-align:center; ">
  247. <choices>
  248. <item>
  249. <label>적용년월</label>
  250. <value>1</value>
  251. </item>
  252. <item>
  253. <label>신청년월</label>
  254. <value>2</value>
  255. </item>
  256. </choices>
  257. </select1>
  258. <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; ">
  259. <choices>
  260. <itemset>
  261. <label/>
  262. <value/>
  263. </itemset>
  264. </choices>
  265. </select1>
  266. <caption id="caption8" class="search_name" style="left:20px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
  267. <button id="btn_dutdept" class="icon_search" style="left:192px; top:32px; width:16px; height:16px; ">
  268. <caption/>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_srvarmaptodd.value, "instcd,basedd");
  272. model.refresh();
  273. ]]>
  274. </script>
  275. </button>
  276. <caption id="caption5" class="search_name" style="left:20px; top:31px; width:87px; height:17px; ">관리부서 :</caption>
  277. <input id="ipt_dutdeptnm" ref="/root/send/dutschedeptcnfm/dutunitnm" class="input_search" navindex="3" style="left:212px; top:30px; width:127px; height:19px; ">
  278. <script type="javascript" ev:event="xforms-value-changed">
  279. <![CDATA[
  280. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  281. model.refresh();
  282. ]]>
  283. </script>
  284. <script type="javascript" ev:event="onkeypress">
  285. <![CDATA[
  286. if(event.keyCode == 13)
  287. {
  288. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  289. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  290. model.refresh();
  291. }
  292. ]]>
  293. </script>
  294. </input>
  295. <input id="ipt_dutdeptcd" ref="/root/send/dutschedeptcnfm/dutunitcd" class="input_search" navindex="2" maxlength="10" style="left:108px; top:30px; width:80px; height:19px; ">
  296. <script type="javascript" ev:event="xforms-value-changed">
  297. <![CDATA[
  298. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  299. model.refresh();
  300. ]]>
  301. </script>
  302. <script type="javascript" ev:event="onkeypress">
  303. <![CDATA[
  304. if(event.keyCode == 13)
  305. {
  306. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  307. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  308. model.setValue("/root/send/dutcd/dutunitcd", model.getValue("/root/send/dutscheapp/dutunitcd"));
  309. model.refresh();
  310. }
  311. ]]>
  312. </script>
  313. </input>
  314. <select1 id="cmb_dutplce" ref="/root/send/dutschedeptcnfm/dutunitcd" class="combo_search" visibility="visible" appearance="minimal" style="left:108px; top:30px; width:230px; height:19px; ">
  315. <choices>
  316. <itemset>
  317. <label/>
  318. <value/>
  319. </itemset>
  320. </choices>
  321. <script type="javascript" ev:event="xforms-value-changed">
  322. <![CDATA[
  323. btn_search.dispatch("DOMActivate");
  324. ]]>
  325. </script>
  326. </select1>
  327. <select1 id="combo1" ref="/root/send/dutschedeptcnfm/deptgb" appearance="minimal" style="left:345px; top:30px; width:100px; height:19px; ">
  328. <choices>
  329. <item>
  330. <label>근무지</label>
  331. <value>1</value>
  332. </item>
  333. <item>
  334. <label>소속부서</label>
  335. <value>2</value>
  336. </item>
  337. <item>
  338. <label>소속과(팀)</label>
  339. <value>3</value>
  340. </item>
  341. <item>
  342. <label>소속부(실)</label>
  343. <value>4</value>
  344. </item>
  345. </choices>
  346. </select1>
  347. </group>
  348. <button id="btn_grdadddutschedeptcnfmlist" class="btn2_letter3" visibility="visible" style="left:1086px; top:68px; width:53px; height:19px; ">
  349. <caption>행추가</caption>
  350. <script type="javascript" ev:event="DOMActivate">
  351. <![CDATA[
  352. if(ipt_emplno.value == "" || ipt_emplnm.value == "")
  353. {
  354. messageBox("사원번호를 입력하십시오.", "I999");
  355. return;
  356. }
  357. misfGridIUD(grd_dutschedeptcnfmlist, "A");
  358. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("srvarmappdd")) = getCurrentDate();
  359. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("dutplcedeptcd")) = cmb_dutplce.value;
  360. //grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("deprtmangrinptyn")) = "Y";
  361. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("nurseyn")) = "Y";
  362. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("deprtmangraprvyn")) = "N";
  363. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("psnworkapryn")) = "N";
  364. ]]>
  365. </script>
  366. </button>
  367. <button id="btn_grddeldutschedeptcnfmlist" class="btn2_letter3" visibility="visible" style="left:1142px; top:68px; width:53px; height:19px; ">
  368. <caption>행삭제</caption>
  369. <script type="javascript" ev:event="DOMActivate">
  370. <![CDATA[
  371. misfGridIUD(grd_dutschedeptcnfmlist, "D");
  372. ]]>
  373. </script>
  374. </button>
  375. <datagrid id="grd_dutschedeptcnfmlist" nodeset="/root/main/dutschedeptcnfm/dutschedeptcnfmlist" allowuserresize="false" caption="근무부서^기관코드^사번^성명^직종^근무코드^근무지부서^신청일^시작일^종료일^신청일수^사용^잔여^사용^잔여^부서장입력여부^ 승인^부서장^신청사유^근무형태^밤근무월제한일수" colsep="^" colwidth="0, 0, 48, 57, 91, 57, 114, 90, 90, 90, 58, 42, 43, 41, 42, 0, 62, 53, 318, 52" explorerbar="sortshow" fixedcols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:94px; width:1004px; height:640px; ">
  376. <col ref="dutplcedeptcd" visibility="hidden"/>
  377. <col ref="instcd" visibility="hidden"/>
  378. <col ref="emplno" style="text-align:center; "/>
  379. <col ref="emplnm"/>
  380. <col ref="jobkindnm" style="text-align:left; "/>
  381. <col ref="dutcd" type="output" style="text-align:center; "/>
  382. <col ref="dutplcedeptnm"/>
  383. <col disabled="true" ref="srvarmappdd" type="inputdate" style="text-align:center; "/>
  384. <col disabled="true" ref="srvarmfromdd" type="inputdate" style="text-align:center; "/>
  385. <col disabled="true" ref="srvarmtodd" type="inputdate" style="text-align:center; "/>
  386. <col ref="srvarmdayno" style="text-align:center; "/>
  387. <col visibility="hidden" style="text-align:center; "/>
  388. <col visibility="hidden" style="text-align:center; "/>
  389. <col visibility="hidden" style="text-align:center; "/>
  390. <col visibility="hidden" style="text-align:center; "/>
  391. <col checkvalue="Y,N" ref="deprtmangrinptyn" type="checkbox" visibility="hidden"/>
  392. <col checkvalue="Y,N" ref="nurseyn" type="checkbox"/>
  393. <col checkvalue="Y,N" disabled="true" ref="deprtmangraprvyn" type="checkbox"/>
  394. <col disabled="true" ref="appresn" type="input"/>
  395. <col ref="dutkindcd"/>
  396. <script type="javascript" ev:event="onclick">
  397. <![CDATA[
  398. if(grd_dutschedeptcnfmlist.row >= grd_dutschedeptcnfmlist.fixedRows)
  399. {
  400. model.setValue("/root/send/dutschedeptcnfm/emplno", grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("emplno")));
  401. model.setValue("/root/send/dutschedeptcnfm/emplnm", grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("emplnm")));
  402. model.refresh();
  403. }
  404. /*
  405. if(grd_dutschedeptcnfmlist.isCell(event.focus) > 0)
  406. {
  407. if(grd_dutschedeptcnfmlist.row <= grd_dutschedeptcnfmlist.fixedRows && grd_dutschedeptcnfmlist.mouseCol == grd_dutschedeptcnfmlist.colRef("nurseyn"))
  408. {
  409. for(var i = 1; i < grd_dutschedeptcnfmlist.rows; i++)
  410. {
  411. grd_dutschedeptcnfmlist.addStatus(i, "update");
  412. }
  413. }
  414. }
  415. */
  416. ]]>
  417. </script>
  418. <script type="javascript" ev:event="xforms-value-changed">
  419. <![CDATA[
  420. if (grd_dutschedeptcnfmlist.col == grd_dutschedeptcnfmlist.colRef("srvarmfromdd"))
  421. {
  422. var sFromDD = grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("srvarmfromdd"));
  423. var sToDD = grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("srvarmtodd"));
  424. var sDutCd = grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("dutcd"));
  425. if(sToDD.length != 8)
  426. {
  427. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("srvarmtodd")) = sFromDD;
  428. }
  429. if(sDutCd.length > 0)
  430. {
  431. if(sDutCd.substr(0, 1) == "B" && sFromDD.length == 8)
  432. {
  433. var dtCurrent = new Date(misfConvertChar2Date(sFromDD, "/"));
  434. dtCurrent.setDate(dtCurrent.getDate() + 89);
  435. model.makeValue("/root/temp/date", dtCurrent.getVarDate());
  436. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("srvarmtodd")) = model.getValue("/root/temp/date").replace("-", "").replace("-", "");
  437. }
  438. }
  439. var dayno = getDateInterval(grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("srvarmfromdd")), grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row,grd_dutschedeptcnfmlist.colRef("srvarmtodd")));
  440. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row, grd_dutschedeptcnfmlist.colRef("srvarmdayno")) = dayno + 1;
  441. model.refresh();
  442. }
  443. else if (grd_dutschedeptcnfmlist.col == grd_dutschedeptcnfmlist.colRef("srvarmtodd"))
  444. {
  445. var dayno = getDateInterval(grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row,grd_dutschedeptcnfmlist.colRef("srvarmfromdd")), grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row,grd_dutschedeptcnfmlist.colRef("srvarmtodd")));
  446. grd_dutschedeptcnfmlist.valueMatrix(grd_dutschedeptcnfmlist.row,grd_dutschedeptcnfmlist.colRef("srvarmdayno")) = dayno + 1;
  447. model.refresh();
  448. }
  449. ]]>
  450. </script>
  451. <script type="javascript" ev:event="onaftersort">
  452. <![CDATA[
  453. grd_dutschedeptcnfmlist.gridToInstance();
  454. ]]>
  455. </script>
  456. </datagrid>
  457. <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:1194px; y2:89px; "/>
  458. <caption id="caption3" class="tit_2" style="left:5px; top:74px; width:165px; height:13px; ">개인신청현황</caption>
  459. <datagrid id="grd_dutcdlist" nodeset="/root/main/dutcd/dutcdlist" allowuserresize="true" caption="근무&#xA;코드^근무명^근무시간^Day인원^Evening인원^Night인원|근무&#xA;코드^근무명^근무시간^Day인원^Evening인원^Night인원" colsep="^" colwidth="42, 121, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1010px; top:94px; width:185px; height:640px; ">
  460. <col ref="dutcd" style="font-size:8pt; text-align:left; "/>
  461. <col ref="dutnm" style="font-size:8pt; "/>
  462. <col ref="duttm" visibility="hidden"/>
  463. <col ref="daycnt" visibility="hidden"/>
  464. <col ref="eveningpsnno" visibility="hidden"/>
  465. <col ref="nigtpsnno" visibility="hidden"/>
  466. <script type="javascript" ev:event="ondblclick">
  467. <![CDATA[
  468. fSetDutCdAppList();
  469. ]]>
  470. </script>
  471. </datagrid>
  472. <line id="line4" class="line_1" style="x1:1007px; y1:93px; x2:1006px; y2:733px; "/>
  473. <bool id="bool2" checkvalue="Y,N" ref="/root/send/dutschedeptcnfm/chk" style="left:720px; top:95px; width:20px; height:20px; ">
  474. <script type="javascript" ev:event="xforms-value-changed">
  475. <![CDATA[
  476. for (var i = 1; i < grd_dutschedeptcnfmlist.rows; i++){
  477. var schk = model.getValue("/root/main/dutschedeptcnfm/dutschedeptcnfmlist[" + i + "]/deprtmangraprvyn");
  478. var sbool = bool2.value;
  479. if (schk != "Y"){
  480. model.setValue("/root/main/dutschedeptcnfm/dutschedeptcnfmlist[" + i + "]/nurseyn", bool2.value);
  481. grd_dutschedeptcnfmlist.rowStatus(i) = 2;
  482. }
  483. }
  484. model.refresh();
  485. ]]>
  486. </script>
  487. </bool>
  488. </group>
  489. <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  490. <button id="btn_save" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  491. <caption>저장</caption>
  492. <script type="javascript" ev:event="DOMActivate">
  493. <![CDATA[
  494. for (var i = 1; i < grd_dutschedeptcnfmlist.rows; i ++){
  495. if (grd_dutschedeptcnfmlist.rowStatus(i) != 0){
  496. if (model.getValue("/root/main/dutschedeptcnfm/dutschedeptcnfmlist[" + i + "]/deprtmangraprvyn") == "Y" || model.getValue("/root/main/dutschedeptcnfm/dutschedeptcnfmlist[" + i + "]/psnworkapryn") == "Y"){
  497. messageBox(i + "번째 부서장이나 인사팀에서 승인된 자료는 변경할 수 없습니다.", "E999", "");
  498. return;
  499. }
  500. }
  501. }
  502. if (misfSave("TXRPD02602")){
  503. btn_search.dispatch("DOMActivate");
  504. }
  505. ]]>
  506. </script>
  507. </button>
  508. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  509. <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; "/>
  510. <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; "/>
  511. </group>
  512. </xhtml:body>
  513. </xhtml:html>