SMRPD04400_개인시간외신청부서장승인.xrw 23 KB

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