SMRTS02500_개인복무계획신청수련부승인.xrw 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  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>SMRTS02500_개인복무계획신청수련부승인</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <srvarlist>
  11. <dutscheapplist/>
  12. </srvarlist>
  13. <reqsrvarlist>
  14. <dutscheapplist>
  15. <dutplcedeptnm/>
  16. <emplno/>
  17. <emplnm/>
  18. <seqno/>
  19. <dutcd/>
  20. <dutdetlcd/>
  21. <srvarmfromdd/>
  22. <srvarmtodd/>
  23. <srvarmdayno/>
  24. <academyfromdd/>
  25. <academytodd/>
  26. <academydayno/>
  27. <academy_tp/>
  28. <subject/>
  29. <paper_nm/>
  30. <pbl_yn/>
  31. <nation_cd/>
  32. <organ/>
  33. <s_money/>
  34. <s_money_unit/>
  35. <r_money/>
  36. <r_money_unit/>
  37. <appresn/>
  38. <deprtmangraprvyn/>
  39. <psnworkapryn/>
  40. </dutscheapplist>
  41. </reqsrvarlist>
  42. </main>
  43. <send>
  44. <dutschepsnworkcnfm>
  45. <instcd/>
  46. <frommm/>
  47. <tomm/>
  48. <dutunitcd/>
  49. <dutunitnm/>
  50. <emplno/>
  51. <emplnm/>
  52. <psnworkapryn/>
  53. <apprtcdrflag/>
  54. <dutdetlcd/>
  55. <dutcd/>
  56. <anual/>
  57. </dutschepsnworkcnfm>
  58. <save>
  59. <dutscheapplist/>
  60. </save>
  61. <req>
  62. <fromdutdetlcd/>
  63. <todutdetlcd/>
  64. </req>
  65. </send>
  66. <hidden>
  67. <dutdetlcd/>
  68. <dutdetlcdserch/>
  69. </hidden>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. misfGridInit(grd_dutschepsnworkcnfmlist);
  75. misfMsterDetailSet(grd_dutschepsnworkcnfmlist, null, "TRRTS02501" ,"Y");
  76. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  77. misfGridComboComCdList("R0317",grd_dutschepsnworkcnfmlist,"dutcd");
  78. misfGridComboComCdList("R0318",grd_dutschepsnworkcnfmlist,"dutdetlcd");
  79. misfGridComboComCdList("R0142",grd_dutschepsnworkcnfmlist,"nation_cd");
  80. misfGridComboComCdList("R0047",grd_dutschepsnworkcnfmlist,"s_money_unit");
  81. misfGridComboComCdList("R0047",grd_dutschepsnworkcnfmlist,"r_money_unit");
  82. misfComboComCdListMulti("R0151,R0317,R0281,R0317,R0142,R0047,R0047","cmb_apprtcdrflag,cmb_dutcd_serch,cmb_anual,cmb_dutcd,cmb_nation_cd,cmb_s_money_unit,cmb_r_money_unit");
  83. addComboItem( "cmb_instcd", "전체", "", "above");
  84. addComboItem( "cmb_dutcd_serch", "전체", "", "above");
  85. addComboItem( "cmb_apprtcdrflag", "전체", "", "above");
  86. addComboItem( "cmb_anual", "전체", "", "above");
  87. model.setValue("/root/send/dutschepsnworkcnfm/instcd", getUserInfo("dutplceinstcd"));
  88. //model.setValue("/root/send/dutschepsnworkcnfm/dutunitcd", getUserInfo("dutplcecd"));
  89. //화면 권한 설정
  90. btn_search.disabled = !(checkAuth("R"));
  91. btn_save.disabled = !(checkAuth("X"));
  92. btn_search.dispatch("DOMActivate");
  93. model.refresh();
  94. ]]>
  95. </script>
  96. <submission id="TXRTS02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hiddeen/temp"/>
  97. <submission id="TRRTS02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutschepsnworkcnfm" resultref="/root/main/srvarlist"/>
  98. <submission id="TRRTS02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/dutdetlcd"/>
  99. <submission id="TRRTS02303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/dutdetlcdserch"/>
  100. <submission id="TXRTS02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/srvarlist/dutscheapplist" resultref="/root/temp"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  106. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  107. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  108. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  109. <script type="javascript">
  110. <![CDATA[
  111. /* 근태구분이 바뀜에 따라 그에 맞는 세부구분을 조회해온다 */
  112. function fReqDutdetlCd(value, check){
  113. if(value == '01'){
  114. model.setValue("/root/send/req/fromdutdetlcd","01");
  115. model.setValue("/root/send/req/todutdetlcd","02");
  116. }
  117. else if(value == '02'){
  118. model.setValue("/root/send/req/fromdutdetlcd","03");
  119. model.setValue("/root/send/req/todutdetlcd","11");
  120. }
  121. else if(value == '03'){
  122. model.setValue("/root/send/req/fromdutdetlcd","12");
  123. model.setValue("/root/send/req/todutdetlcd","12");
  124. }
  125. else if(value == '04'){
  126. model.setValue("/root/send/req/fromdutdetlcd","13");
  127. model.setValue("/root/send/req/todutdetlcd","13");
  128. }
  129. else if(value == '05'){
  130. model.setValue("/root/send/req/fromdutdetlcd","14");
  131. model.setValue("/root/send/req/todutdetlcd","17");
  132. }
  133. else if(value == '06'){
  134. model.setValue("/root/send/req/fromdutdetlcd","18");
  135. model.setValue("/root/send/req/todutdetlcd","18");
  136. }
  137. else
  138. {
  139. model.setValue("/root/send/req/fromdutdetlcd","");
  140. model.setValue("/root/send/req/todutdetlcd","");
  141. }
  142. // 신청 메뉴의 세부구분 세팅
  143. if(!check)
  144. {
  145. submit("TRRTS02302");
  146. }
  147. // 조회조건의 세부구분 세팅
  148. else
  149. {
  150. submit("TRRTS02303");
  151. }
  152. }
  153. function fDisabledControl(check)
  154. {
  155. ipt_emplno.disabled = check;
  156. ipt_emplnm.disabled = check;
  157. cmb_dutcd.disabled = check;
  158. cmb_dutdetlcd.disabled = check;
  159. ipt_srvarmfromdd.disabled = check;
  160. ipt_srvarmtodd.disabled = check;
  161. ipt_srvarmdayno.disabled = check;
  162. ipt_appresn.disabled = check;
  163. btn_emplsearch.disabled = check;
  164. }
  165. function fDisabledSubControl(check)
  166. {
  167. ipt_academyfromdd.disabled = check;
  168. ipt_academytodd.disabled = check;
  169. cmb_academy_tp.disabled = check;
  170. ipt_academydayno.disabled = check;
  171. ipt_subject.disabled = check;
  172. ipt_paper_nm.disabled = check;
  173. cmb_pbl_yn.disabled = check;
  174. cmb_nation_cd.disabled = check;
  175. ipt_organ.disabled = check;
  176. ipt_s_money.disabled = check;
  177. cmb_s_money_unit.disabled = check;
  178. ipt_r_money.disabled = check;
  179. cmb_r_money_unit.disabled = check;
  180. }
  181. /*공가(학회및기타)일 경우 값필드값 초기화*/
  182. function fInitOfficeHoliday() {
  183. cmb_academy_tp.value = "";
  184. ipt_srvarmdayno.value = "";
  185. ipt_academyfromdd.value = "";
  186. ipt_academytodd.value = "";
  187. ipt_academydayno.value = "";
  188. ipt_paper_nm.value = "";
  189. ipt_subject.value = "";
  190. cmb_pbl_yn.value = "";
  191. cmb_nation_cd.value = "";
  192. ipt_organ.value = "";
  193. ipt_s_money.value = "";
  194. cmb_s_money_unit.value = "";
  195. ipt_r_money.value = "";
  196. cmb_r_money_unit.value = "";
  197. ipt_appresn.value = "";
  198. }
  199. ]]>
  200. </script>
  201. </xhtml:head>
  202. <xhtml:body guideline="2,783;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  203. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  204. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">개인복무계획신청수련부승인</caption>
  205. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  206. </group>
  207. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  208. <datagrid id="grd_dutschepsnworkcnfmlist" nodeset="/root/main/srvarlist/dutscheapplist" caption="부서명^사원번호^성명^순번^근무코드^근태세부구분^신청(체류)기간^신청(체류)기간^신청일수^임상과장승인^승인^신청사유^실학회기간^실학회기간^공가일수^학회구분^학회명^발표시연제명^발표여부^국가^기관^학회보조비^단위^학회등록비^단위^전공의구분|부서명^사원번호^성명^순번^근무코드^근태세부구분^시작일^종료일^신청일수^임상과장승인^승인^신청사유^시작일^종료일^공가일수^학회구분^학회명^발표시연제명^발표여부^국가^기관^학회보조비^단위^학회등록비^단위^전공의구분" colsep="^" colwidth="100, 73, 80, 0, 65, 100, 92, 99, 58, 45, 45, 270, 100, 100, 45, 100, 100, 100, 100, 70, 80, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:120px; width:1195px; height:425px; ">
  209. <col disabled="true" ref="dutplcedeptnm"/>
  210. <col disabled="true" ref="emplno"/>
  211. <col disabled="true" ref="emplnm"/>
  212. <col disabled="true" ref="seqno" visibility="hidden"/>
  213. <col disabled="true" ref="dutcd" type="combo" style="text-align:center; ">
  214. <choices>
  215. <itemset>
  216. <label/>
  217. <value/>
  218. </itemset>
  219. </choices>
  220. </col>
  221. <col disabled="true" ref="dutdetlcd" type="combo" style="text-align:center; ">
  222. <choices>
  223. <itemset>
  224. <label/>
  225. <value/>
  226. </itemset>
  227. </choices>
  228. </col>
  229. <col disabled="true" ref="srvarmfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  230. <col disabled="true" ref="srvarmtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  231. <col disabled="true" ref="srvarmdayno"/>
  232. <col checkvalue="Y,N" disabled="false" ref="deprtmangraprvyn" type="checkbox"/>
  233. <col checkvalue="Y,N" disabled="false" ref="psnworkapryn" type="checkbox"/>
  234. <col disabled="true" ref="appresn"/>
  235. <col disabled="true" ref="academyfromdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  236. <col disabled="true" ref="academytodd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  237. <col disabled="true" ref="academydayno" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  238. <col disabled="true" ref="academy_tp" type="combo" visibility="hidden">
  239. <choices>
  240. <item>
  241. <label>학회참석</label>
  242. <value>00001</value>
  243. </item>
  244. <item>
  245. <label>좌장</label>
  246. <value>00002</value>
  247. </item>
  248. <item>
  249. <label>구연</label>
  250. <value>00003</value>
  251. </item>
  252. <item>
  253. <label>포스터 First Name</label>
  254. <value>00004</value>
  255. </item>
  256. <item>
  257. <label>포스터 Second Name</label>
  258. <value>00005</value>
  259. </item>
  260. </choices>
  261. </col>
  262. <col ref="subject" visibility="hidden"/>
  263. <col ref="paper_nm" visibility="hidden"/>
  264. <col ref="pbl_yn" visibility="hidden"/>
  265. <col disabled="true" ref="nation_cd" type="combo" visibility="hidden">
  266. <choices>
  267. <itemset>
  268. <label/>
  269. <value/>
  270. </itemset>
  271. </choices>
  272. </col>
  273. <col ref="organ" visibility="hidden"/>
  274. <col disabled="true" ref="s_money" visibility="hidden"/>
  275. <col disabled="true" ref="s_money_unit" type="combo" visibility="hidden">
  276. <choices>
  277. <itemset>
  278. <label/>
  279. <value/>
  280. </itemset>
  281. </choices>
  282. </col>
  283. <col disabled="true" ref="r_money" visibility="hidden"/>
  284. <col disabled="true" ref="r_money_unit" type="combo" visibility="hidden">
  285. <choices>
  286. <itemset>
  287. <label/>
  288. <value/>
  289. </itemset>
  290. </choices>
  291. </col>
  292. <col disabled="true" ref="apprtname" visibility="hidden"/>
  293. <script type="javascript" ev:event="onrowchanged">
  294. <![CDATA[
  295. var cur_row = grd_dutschepsnworkcnfmlist.row;
  296. model.copyNode("/root/main/reqsrvarlist/dutscheapplist", "/root/main/srvarlist/dutscheapplist["+ (cur_row - 1 )+ "]");
  297. fDisabledControl(true);
  298. fDisabledSubControl(true);
  299. fReqDutdetlCd(cmb_dutcd.value, false);
  300. model.dispatch("onmouseup");
  301. model.refresh();
  302. ]]>
  303. </script>
  304. </datagrid>
  305. <line id="line1" class="line_1" style="x1:0px; y1:114; x2:1195px; y2:114; "/>
  306. <caption id="caption3" class="tit_2" style="left:5px; top:99; width:100px; height:13px; ">개인신청현황</caption>
  307. <group id="group4" style="left:0px; top:10px; width:1195px; height:80; vertical-align:top; ">
  308. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:80; background-color:#fffbf2; border-color:#ffd799; "/>
  309. <line id="line3" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:76; border-color:#ffe4bb; border-left-style:solid; "/>
  310. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:32; width:56px; height:22px; text-align:left; ">
  311. <caption>조회</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. //if(!isRequiredControls("ipt_dutdeptcd"))return;
  315. misfMsterDetailRetrieve();
  316. misfSetReadOnlyCol(grd_dutschepsnworkcnfmlist, "dutplcedeptnm,emplno,emplnm,dutcd,dutplcedeptcd,srvarmfromdd,srvarmtodd,srvarmdayno,appresn", true);
  317. ]]>
  318. </script>
  319. </button>
  320. <caption id="caption1" class="search_name" style="left:20px; top:52; width:86px; height:17px; ">사원번호 :</caption>
  321. <button id="btn_emplno" class="icon_search" style="left:192px; top:53; width:16px; height:16px; ">
  322. <caption/>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. rpbfOpenPopUpList("SPRPB00101", ipt_emplno_search, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
  326. model.refresh();
  327. ]]>
  328. </script>
  329. </button>
  330. <input id="ipt_emplnm_search" ref="/root/send/dutschepsnworkcnfm/emplnm" class="input_search" navindex="3" style="left:212px; top:51px; width:127px; height:19px; ">
  331. <script type="javascript" ev:event="onkeypress">
  332. <![CDATA[
  333. if(event.keyCode == 13)
  334. {
  335. if(ipt_emplnm_search.value == ipt_emplnm_search.currentText) return;
  336. ipt_emplnm_search.value = ipt_emplnm_search.currentText;
  337. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  338. model.refresh();
  339. }
  340. ]]>
  341. </script>
  342. <script type="javascript" ev:event="xforms-value-changed">
  343. <![CDATA[
  344. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  345. model.refresh();
  346. ]]>
  347. </script>
  348. </input>
  349. <input id="ipt_emplno_search" ref="/root/send/dutschepsnworkcnfm/emplno" class="input_search" navindex="2" maxlength="10" style="left:108px; top:51px; width:80px; height:19px; text-align:center; ">
  350. <script type="javascript" ev:event="onkeypress">
  351. <![CDATA[
  352. if(event.keyCode == 13)
  353. {
  354. if(ipt_emplno_search.value == ipt_emplno_search.currentText) return;
  355. ipt_emplno_search.value = ipt_emplno_search.currentText;
  356. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  357. model.refresh();
  358. }
  359. ]]>
  360. </script>
  361. <script type="javascript" ev:event="xforms-value-changed">
  362. <![CDATA[
  363. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  364. model.refresh();
  365. ]]>
  366. </script>
  367. </input>
  368. <select1 id="rdo_deprtmangraprvyn" ref="/root/send/dutschepsnworkcnfm/psnworkapryn" appearance="full" cols="3" overflow="visible" style="left:910px; top:31px; width:150px; height:14px; border-style:none; ">
  369. <choices>
  370. <item>
  371. <label>승인</label>
  372. <value>Y</value>
  373. </item>
  374. <item>
  375. <label>미승인</label>
  376. <value>N</value>
  377. </item>
  378. <item>
  379. <label>전체</label>
  380. <value/>
  381. </item>
  382. </choices>
  383. </select1>
  384. <caption id="caption9" class="search_name" style="left:805px; top:30px; width:101px; height:17px; ">승인 여부 :</caption>
  385. <select1 id="cmb_instcd" ref="/root/send/dutschepsnworkcnfm/instcd" class="combo_search" disabled="false" navindex="1" appearance="minimal" style="left:108px; top:8px; width:230px; height:19px; ">
  386. <choices>
  387. <itemset>
  388. <label ref="CDID"/>
  389. <value ref="DETLDESC"/>
  390. </itemset>
  391. </choices>
  392. </select1>
  393. <caption id="caption8" class="search_name" style="left:20px; top:9px; width:112px; height:17px; ">근무기관 :</caption>
  394. <button id="btn_dutdept" class="icon_search" disabled="false" style="left:192px; top:32px; width:16px; height:16px; ">
  395. <caption/>
  396. <script type="javascript" ev:event="DOMActivate">
  397. <![CDATA[
  398. misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  399. model.refresh();
  400. ]]>
  401. </script>
  402. </button>
  403. <caption id="cap_dutdeptcd" class="search_name" style="left:20px; top:31px; width:87px; height:17px; ">부 서 :</caption>
  404. <input id="ipt_dutdeptnm" ref="/root/send/dutschepsnworkcnfm/dutunitnm" class="input_search" disabled="false" navindex="3" style="left:212px; top:30px; width:127px; height:19px; ">
  405. <script type="javascript" ev:event="xforms-value-changed">
  406. <![CDATA[
  407. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  408. model.refresh();
  409. ]]>
  410. </script>
  411. <script type="javascript" ev:event="onkeypress">
  412. <![CDATA[
  413. if(event.keyCode == 13)
  414. {
  415. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  416. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  417. model.refresh();
  418. }
  419. ]]>
  420. </script>
  421. </input>
  422. <input id="ipt_dutdeptcd" ref="/root/send/dutschepsnworkcnfm/dutunitcd" class="input_search" disabled="false" navindex="2" maxlength="10" style="left:108px; top:30px; width:80px; height:19px; ">
  423. <script type="javascript" ev:event="xforms-value-changed">
  424. <![CDATA[
  425. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  426. model.refresh();
  427. ]]>
  428. </script>
  429. <script type="javascript" ev:event="onkeypress">
  430. <![CDATA[
  431. if(event.keyCode == 13)
  432. {
  433. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  434. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  435. model.refresh();
  436. }
  437. ]]>
  438. </script>
  439. </input>
  440. <caption id="caption12" class="search_name" style="left:452px; top:9px; width:112px; height:17px; ">전공의 구분 :</caption>
  441. <select1 id="cmb_apprtcdrflag" ref="/root/send/dutschepsnworkcnfm/apprtcdrflag" appearance="minimal" style="left:560px; top:8px; width:150px; height:19px; ">
  442. <choices>
  443. <itemset>
  444. <label/>
  445. <value/>
  446. </itemset>
  447. </choices>
  448. </select1>
  449. <select1 id="cmb_anual" ref="/root/send/dutschepsnworkcnfm/anual" appearance="minimal" style="left:910px; top:50px; width:150px; height:19px; ">
  450. <choices>
  451. <itemset>
  452. <label/>
  453. <value/>
  454. </itemset>
  455. </choices>
  456. </select1>
  457. <caption id="caption13" class="search_name" style="left:805px; top:52px; width:101px; height:17px; ">년 차 :</caption>
  458. <select1 id="cmb_dutcd_serch" ref="/root/send/dutschepsnworkcnfm/dutcd" appearance="minimal" style="left:540px; top:30px; width:170px; height:19px; ">
  459. <choices>
  460. <itemset>
  461. <label/>
  462. <value/>
  463. </itemset>
  464. </choices>
  465. <script type="javascript" ev:event="xforms-select">
  466. <![CDATA[
  467. if(cmb_dutcd_serch.value == "") {
  468. cmb_dutdetlcd_serch.value = "";
  469. model.resetInstanceNode("/root/hidden/dutdetlcdserch");
  470. model.refresh();
  471. }else{
  472. fReqDutdetlCd(cmb_dutcd_serch.value, true);
  473. addComboItem( "cmb_dutdetlcd_serch", "전체", "", "above");
  474. cmb_dutdetlcd_serch.select(0);
  475. cmb_dutdetlcd_serch.refresh();
  476. }
  477. ]]>
  478. </script>
  479. </select1>
  480. <caption id="caption10" class="search_name" style="left:452px; top:52px; width:88px; height:17px; ">세부구분 :</caption>
  481. <caption id="caption11" class="search_name" style="left:452px; top:31px; width:87px; height:17px; ">근태구분 :</caption>
  482. <select1 id="cmb_dutdetlcd_serch" ref="/root/send/dutschepsnworkcnfm/dutdetlcd" appearance="minimal" style="left:540px; top:51px; width:170px; height:19px; ">
  483. <choices>
  484. <itemset nodeset="/root/hidden/dutdetlcdserch">
  485. <label ref="cdnm"/>
  486. <value ref="cdid"/>
  487. </itemset>
  488. </choices>
  489. </select1>
  490. </group>
  491. <button id="btn_excellsave" class="btn2_letter4" style="left:803px; top:93px; width:64px; height:19px; ">
  492. <caption>엑셀저장</caption>
  493. <script type="javascript" ev:event="DOMActivate">
  494. <![CDATA[
  495. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  496. if (fileName != "") {
  497. grd_dutschepsnworkcnfmlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  498. }
  499. ]]>
  500. </script>
  501. </button>
  502. <button id="button1" class="btn2_letter4" visibility="visible" style="left:868px; top:93px; width:64px; height:19px; ">
  503. <caption>전체승인</caption>
  504. <script type="javascript" ev:event="DOMActivate">
  505. <![CDATA[
  506. for(var i=grd_dutschepsnworkcnfmlist.fixedRows; i<grd_dutschepsnworkcnfmlist.rows; i++)
  507. {
  508. if(grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn")) == "N")
  509. {
  510. grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn")) = "Y";
  511. grd_dutschepsnworkcnfmlist.addStatus(i, "update");
  512. }
  513. }
  514. for(var i=grd_dutschepsnworkcnfmlist.fixedRows; i<grd_dutschepsnworkcnfmlist.rows; i++)
  515. {
  516. if(grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("deprtmangraprvyn")) == "N")
  517. {
  518. grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("deprtmangraprvyn")) = "Y";
  519. grd_dutschepsnworkcnfmlist.addStatus(i, "update");
  520. }
  521. }
  522. model.refresh();
  523. ]]>
  524. </script>
  525. </button>
  526. <button id="button2" class="btn2_letter6" visibility="visible" style="left:933px; top:93px; width:86px; height:19px; ">
  527. <caption>전체승인취소</caption>
  528. <script type="javascript" ev:event="DOMActivate">
  529. <![CDATA[
  530. for(var i=grd_dutschepsnworkcnfmlist.fixedRows; i<grd_dutschepsnworkcnfmlist.rows; i++)
  531. {
  532. if(grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn")) == "Y")
  533. {
  534. grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn")) = "N";
  535. grd_dutschepsnworkcnfmlist.addStatus(i, "update");
  536. }
  537. }
  538. model.refresh();
  539. ]]>
  540. </script>
  541. </button>
  542. <input id="input1" ref="/root/send/req/fromdutdetlcd" visibility="hidden" style="left:575px; top:90px; width:55px; height:19px; "/>
  543. <input id="input2" ref="/root/send/req/todutdetlcd" visibility="hidden" style="left:635px; top:90px; width:35px; height:19px; "/>
  544. <button id="button3" class="btn5_letter2" visibility="visible" style="left:1148px; top:562px; width:42px; height:19px; ">
  545. <caption>저장</caption>
  546. <script type="javascript" ev:event="DOMActivate">
  547. <![CDATA[
  548. if(!isRequiredControls("ipt_emplno")) return;
  549. if(!isRequiredControls("cmb_dutcd")) return;
  550. if(!isRequiredControls("ipt_srvarmfromdd")) return;
  551. if(!isRequiredControls("ipt_srvarmfromdd")) return;
  552. /* 새로운 데이터를 입력시 */
  553. if(grd_dutschepsnworkcnfmlist.rowStatus(grd_dutschepsnworkcnfmlist.row) == 1)
  554. {
  555. model.copyNode("/root/main/srvarlist/dutscheapplist[" + (grd_dutschepsnworkcnfmlist.row - 1) + "]","/root/main/reqsrvarlist/dutscheapplist");
  556. model.resetInstanceNode("/root/main/reqsrvarlist/dutscheapplist");
  557. grd_dutschepsnworkcnfmlist.refresh();
  558. misfSave("TXRTS02301");
  559. fDisabledControl(true);
  560. fDisabledSubControl(true);
  561. btn_search.dispatch("DOMActivate");
  562. }
  563. /* 조회된 데이터를 수정 할때 */
  564. else if(grd_dutschepsnworkcnfmlist.rowStatus(grd_dutschepsnworkcnfmlist.row) == 0)
  565. {
  566. misfGridRowStatusChange(grd_dutschepsnworkcnfmlist, "/root/main/srvarlist" , "/root/main/reqsrvarlist");
  567. grd_dutschepsnworkcnfmlist.refresh();
  568. var updtdata = getGridUpdateData(grd_dutschepsnworkcnfmlist);
  569. if (updtdata == "")
  570. {
  571. messageBox("변경된 데이터가","I004");
  572. cmb_dutcd.disabled = false;
  573. cmb_dutdetlcd.disabled = false;
  574. ipt_srvarmfromdd.disabled = false;
  575. ipt_srvarmtodd.disabled = false;
  576. return;
  577. }
  578. model.resetInstanceNode("/root/main/reqsrvarlist/dutscheapplist");
  579. misfSave("TXRTS02301");
  580. cmb_dutcd.disabled = true;
  581. cmb_dutdetlcd.disabled = true;
  582. ipt_srvarmfromdd.disabled = true;
  583. ipt_srvarmtodd.disabled = true;
  584. ipt_appresn.disabled = true;
  585. fDisabledSubControl(true);
  586. btn_search.dispatch("DOMActivate");
  587. }
  588. /* 조회된 데이터를 삭제 할때
  589. else if(grd_dutschepsnworkcnfmlist.rowStatus(grd_dutschepsnworkcnfmlist.row) == 4)
  590. {
  591. misfSave("TXRPB11001");
  592. model.resetInstanceNode("/root/main/list/crtfctlist");
  593. fAllControlDisabled(true);
  594. btn_search.dispatch("DOMActivate");
  595. grd_crtfctlist.select(1, 1, 1, grd_crtfctlist.colRef("jobrespcd")) = true;
  596. grd_crtfctlist.dispatch("onrowchanged");
  597. model.refresh();
  598. return;
  599. }
  600. */
  601. ]]>
  602. </script>
  603. </button>
  604. <caption id="caption25" class="tit_2" style="left:0px; top:565px; width:144px; height:13px; ">근태 신청 메뉴</caption>
  605. <button id="btn_grdadddutschedeptcnfmlist" class="btn2_letter2" visibility="visible" style="left:1020px; top:93px; width:42px; height:19px; ">
  606. <caption>신청</caption>
  607. <script type="javascript" ev:event="DOMActivate">
  608. <![CDATA[
  609. var updtdata = getGridUpdateData(grd_dutschepsnworkcnfmlist);
  610. if ( updtdata != "")
  611. {
  612. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 작업을","Q003");
  613. if (ret == 7) { // not OK
  614. return;
  615. }
  616. }
  617. misfGridIUD(grd_dutschepsnworkcnfmlist, "A");
  618. grd_dutschepsnworkcnfmlist.dispatch("onrowchanged");
  619. ipt_deprtmangraprvyn.value = 'N';
  620. ipt_psnworkapryn.value = 'N';
  621. model.setValue("/root/main/reqsrvarlist/dutscheapplist/emplno",ipt_emplno.value);
  622. fDisabledControl(false);
  623. fDisabledSubControl(true);
  624. misfSetReadOnlyCol(grd_dutschepsnworkcnfmlist, ",psnworkapryn,deprtmangraprvyn,dutcd,dutdetlcd,academy_tp,nation_cd,submoney,acompmfamy,s_money_unit,r_money_unit", true);
  625. ]]>
  626. </script>
  627. </button>
  628. <button id="button4" class="btn2_letter4" visibility="visible" style="left:1128px; top:93px; width:64px; height:19px; ">
  629. <caption>신청삭제</caption>
  630. <script type="javascript" ev:event="DOMActivate">
  631. <![CDATA[
  632. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  633. if ( retMes != 6) {
  634. return;
  635. }
  636. var sPsnworkapryn = grd_dutschepsnworkcnfmlist.valueMatrix(grd_dutschepsnworkcnfmlist.row, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn"));
  637. if(sPsnworkapryn == 'Y'){
  638. messageBox("수련부에서 승인하여 삭제 할 수 ","I004");
  639. return;
  640. }
  641. else
  642. {
  643. misfGridIUD(grd_dutschepsnworkcnfmlist, "D");
  644. misfSave("TXRTS02301");
  645. }
  646. btn_search.dispatch("DOMActivate");
  647. ]]>
  648. </script>
  649. </button>
  650. <button id="button5" class="btn2_letter4" visibility="visible" style="left:1063px; top:93px; width:64px; height:19px; ">
  651. <caption>신청수정</caption>
  652. <script type="javascript" ev:event="DOMActivate">
  653. <![CDATA[
  654. var updtdata = getGridUpdateData(grd_dutschepsnworkcnfmlist);
  655. if ( updtdata != "")
  656. {
  657. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 작업을","Q003");
  658. if (ret == 7) { // not OK
  659. return;
  660. }
  661. }
  662. if(grd_dutschepsnworkcnfmlist.rows - grd_dutschepsnworkcnfmlist.fixedRows == 0)
  663. {
  664. return;
  665. }
  666. var sPsnworkapryn = grd_dutschepsnworkcnfmlist.valueMatrix(grd_dutschepsnworkcnfmlist.row, grd_dutschepsnworkcnfmlist.colRef("psnworkapryn"));
  667. if(sPsnworkapryn == 'Y'){
  668. messageBox("수련부에서 승인하여 삭제 할 수 ","I004");
  669. return;
  670. }
  671. cmb_dutcd.disabled = true;
  672. cmb_dutdetlcd.disabled = true;
  673. if(cmb_dutcd.value == "05"){
  674. ipt_srvarmfromdd.disabled = false;
  675. ipt_srvarmtodd.disabled = false;
  676. ipt_srvarmdayno.disabled = false;
  677. ipt_appresn.disabled = false;
  678. cmb_academy_tp.disabled = false;
  679. ipt_academyfromdd.disabled = false;
  680. ipt_academytodd.disabled = false;
  681. ipt_academydayno.disabled = false;
  682. ipt_paper_nm.disabled = false;
  683. ipt_subject.disabled = false;
  684. cmb_pbl_yn.disabled = false;
  685. cmb_nation_cd.disabled = false;
  686. ipt_organ.disabled = false;
  687. ipt_s_money.disabled = false;
  688. cmb_s_money_unit.disabled = false;
  689. ipt_r_money.disabled = false;
  690. cmb_r_money_unit.disabled = false;
  691. }else{
  692. ipt_srvarmfromdd.disabled = false;
  693. ipt_srvarmtodd.disabled = false;
  694. ipt_srvarmdayno.disabled = false;
  695. ipt_appresn.disabled = false;
  696. }
  697. model.copyNode("/root/main/reqsrvarlist/dutscheapplist","/root/main/srvarlist/dutscheapplist[" + (grd_dutschepsnworkcnfmlist.row - 1) + "]");
  698. fReqDutdetlCd(cmb_dutcd.value, false);
  699. cmb_dutdetlcd.dispatch("xforms-value-changed");
  700. model.refresh();
  701. ]]>
  702. </script>
  703. </button>
  704. <group id="group2" visibility="visible" style="left:5px; top:585px; width:1190px; height:159px; ">
  705. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:5px; width:1190px; height:145px; "/>
  706. <select1 id="cmb_dutcd" ref="/root/main/reqsrvarlist/dutscheapplist/dutcd" disabled="true" appearance="minimal" style="left:563px; top:8px; width:112px; height:19px; ">
  707. <choices>
  708. <itemset>
  709. <label/>
  710. <value/>
  711. </itemset>
  712. </choices>
  713. <script type="javascript" ev:event="xforms-select">
  714. <![CDATA[
  715. fReqDutdetlCd(cmb_dutcd.value);
  716. cmb_dutdetlcd.select(0);
  717. cmb_dutdetlcd.refresh();
  718. //필드갓 초기화
  719. fInitOfficeHoliday();
  720. if(cmb_dutcd.value == "05"){
  721. cmb_academy_tp.select(0);
  722. cmb_nation_cd.select(0);
  723. cmb_pbl_yn.select(0);
  724. fDisabledSubControl(false);
  725. }
  726. else {
  727. fDisabledSubControl(true);
  728. }
  729. ]]>
  730. </script>
  731. </select1>
  732. <caption id="cap_srvarmtodd" class="cell_1" style="left:233px; top:31px; width:91px; height:23px; vertical-align:middle; ">체류종료일</caption>
  733. <select1 id="cmb_dutdetlcd" ref="/root/main/reqsrvarlist/dutscheapplist/dutdetlcd" disabled="true" appearance="minimal" style="left:677px; top:8px; width:152px; height:19px; ">
  734. <choices>
  735. <itemset nodeset="/root/hidden/dutdetlcd">
  736. <label ref="cdnm"/>
  737. <value ref="cdid"/>
  738. </itemset>
  739. </choices>
  740. </select1>
  741. <caption id="cap_appresn" class="cell_1" style="left:2px; top:122px; width:91px; height:23px; vertical-align:middle; ">장소및신청사유</caption>
  742. <caption id="cap_srvarmfromdd" class="cell_1" style="left:2px; top:31px; width:91px; height:23px; vertical-align:middle; ">체류시작일</caption>
  743. <input id="ipt_srvarmfromdd" ref="/root/main/reqsrvarlist/dutscheapplist/srvarmfromdd" disabled="true" inputtype="date" style="left:95px; top:33px; width:135px; height:19px; ">
  744. <script type="javascript" ev:event="xforms-value-changed">
  745. <![CDATA[
  746. var sFromDD = ipt_srvarmfromdd.value;
  747. var sToDD = ipt_srvarmtodd.value;
  748. if(sToDD.length != 8)
  749. {
  750. ipt_srvarmtodd.value = sFromDD;
  751. }
  752. var dayno = getDateInterval(ipt_srvarmfromdd.value, ipt_srvarmtodd.value);
  753. ipt_srvarmdayno.value = dayno + 1;
  754. ]]>
  755. </script>
  756. </input>
  757. <input id="ipt_srvarmtodd" ref="/root/main/reqsrvarlist/dutscheapplist/srvarmtodd" disabled="true" inputtype="date" style="left:326px; top:33px; width:135px; height:19px; ">
  758. <script type="javascript" ev:event="xforms-value-changed">
  759. <![CDATA[
  760. var sFromDD = ipt_srvarmfromdd.value;
  761. var sToDD = ipt_srvarmtodd.value;
  762. if(sFromDD.length != 8)
  763. {
  764. ipt_srvarmfromdd.value = sToDD;
  765. }
  766. var dayno = getDateInterval(ipt_srvarmfromdd.value, ipt_srvarmtodd.value);
  767. ipt_srvarmdayno.value = dayno + 1;
  768. ]]>
  769. </script>
  770. </input>
  771. <line id="line2" class="line_2" style="x1:0px; y1:30px; x2:466px; y2:30px; "/>
  772. <line id="line4" class="line_2" style="x1:0px; y1:54px; x2:466px; y2:54px; "/>
  773. <input id="ipt_appresn" ref="/root/main/reqsrvarlist/dutscheapplist/appresn" disabled="true" maxlength="255" style="left:95px; top:125px; width:1071px; height:19px; "/>
  774. <caption id="cap_dutcd" class="cell_1" style="left:470px; top:7px; width:91px; height:23px; vertical-align:middle; ">근태구분</caption>
  775. <line id="line5" class="line_2" style="x1:0px; y1:123px; x2:466px; y2:123px; "/>
  776. <input id="ipt_srvarmdayno" ref="/root/main/reqsrvarlist/dutscheapplist/srvarmdayno" disabled="true" visibility="visible" style="left:563px; top:33px; width:267px; height:19px; "/>
  777. <caption id="cap_srvarmdayno" class="cell_1" visibility="visible" style="left:470px; top:31px; width:91px; height:23px; vertical-align:middle; ">휴가일수</caption>
  778. <line id="line7" class="line_2" style="x1:0px; y1:78px; x2:465px; y2:77px; "/>
  779. <input id="ipt_s_money" ref="/root/main/reqsrvarlist/dutscheapplist/s_money" disabled="true" style="left:95px; top:103px; width:135px; height:19px; "/>
  780. <input id="ipt_r_money" ref="/root/main/reqsrvarlist/dutscheapplist/r_money" disabled="true" style="left:563px; top:101px; width:135px; height:19px; "/>
  781. <line id="line11" class="line_2" style="x1:470px; y1:54px; x2:1190px; y2:54px; "/>
  782. <line id="line13" class="line_2" style="x1:470px; y1:78px; x2:1190px; y2:78px; "/>
  783. <input id="ipt_paper_nm" ref="/root/main/reqsrvarlist/dutscheapplist/paper_nm" disabled="true" maxlength="255" style="left:928px; top:33px; width:240px; height:19px; "/>
  784. <caption id="cap_s_money" class="cell_1" style="left:2px; top:99px; width:91px; height:23px; vertical-align:middle; ">보조비</caption>
  785. <caption id="cap_r_money_unit" class="cell_1" style="left:701px; top:100px; width:91px; height:23px; vertical-align:middle; ">화페단위</caption>
  786. <input id="ipt_subject" ref="/root/main/reqsrvarlist/dutscheapplist/subject" disabled="true" maxlength="255" style="left:563px; top:80px; width:267px; height:19px; "/>
  787. <caption id="cap_pbl_yn" class="cell_1" style="left:835px; top:55px; width:91px; height:23px; vertical-align:middle; ">발표여부</caption>
  788. <input id="ipt_organ" ref="/root/main/reqsrvarlist/dutscheapplist/organ" disabled="true" maxlength="50" style="left:929px; top:80px; width:238px; height:19px; "/>
  789. <caption id="cap_nation_cd" class="cell_1" style="left:2px; top:79px; width:91px; height:23px; vertical-align:middle; ">국가</caption>
  790. <select1 id="cmb_pbl_yn" ref="/root/main/reqsrvarlist/dutscheapplist/pbl_yn" disabled="true" appearance="minimal" style="left:928px; top:57px; width:240px; height:19px; ">
  791. <choices>
  792. <item>
  793. <label>Y</label>
  794. <value>Y</value>
  795. </item>
  796. <item>
  797. <label>N</label>
  798. <value>N</value>
  799. </item>
  800. </choices>
  801. </select1>
  802. <caption id="cap_subject" class="cell_1" style="left:470px; top:77px; width:91px; height:23px; vertical-align:middle; ">학회명</caption>
  803. <select1 id="cmb_academy_tp" ref="/root/main/reqsrvarlist/dutscheapplist/academy_tp" disabled="true" appearance="minimal" style="left:929px; top:9px; width:240px; height:19px; ">
  804. <choices>
  805. <item>
  806. <label>학회참석</label>
  807. <value>00001</value>
  808. </item>
  809. <item>
  810. <label>좌장</label>
  811. <value>00002</value>
  812. </item>
  813. <item>
  814. <label>구연</label>
  815. <value>00003</value>
  816. </item>
  817. <item>
  818. <label>포스터 First Name</label>
  819. <value>00004</value>
  820. </item>
  821. <item>
  822. <label>포스터 Second Name</label>
  823. <value>00005</value>
  824. </item>
  825. </choices>
  826. </select1>
  827. <caption id="cap_paper_nm" class="cell_1" style="left:835px; top:31px; width:91px; height:23px; vertical-align:middle; ">발표시연제명</caption>
  828. <select1 id="cmb_nation_cd" ref="/root/main/reqsrvarlist/dutscheapplist/nation_cd" disabled="true" appearance="minimal" style="left:95px; top:80px; width:252px; height:19px; ">
  829. <choices>
  830. <itemset>
  831. <label/>
  832. <value/>
  833. </itemset>
  834. </choices>
  835. </select1>
  836. <caption id="cap_organ" class="cell_1" style="left:835px; top:79px; width:91px; height:23px; vertical-align:middle; ">학회주체기관</caption>
  837. <caption id="cap_academy_tp" class="cell_1" style="left:835px; top:7px; width:91px; height:23px; vertical-align:middle; ">참가형태</caption>
  838. <line id="line14" class="line_2" style="x1:469px; y1:121px; x2:1189px; y2:121px; "/>
  839. <line id="line15" class="line_2" style="x1:470px; y1:30px; x2:1190px; y2:30px; "/>
  840. <input id="ipt_seqno" ref="/root/main/reqsrvarlist/dutscheapplist/seqno" visibility="hidden" style="left:1061px; top:101px; width:30px; height:19px; "/>
  841. <input id="ipt_academytodd" ref="/root/main/reqsrvarlist/dutscheapplist/academytodd" disabled="true" inputtype="date" style="left:326px; top:56px; width:135px; height:19px; ">
  842. <script type="javascript" ev:event="xforms-value-changed">
  843. <![CDATA[
  844. var sFromDD = ipt_academyfromdd.value;
  845. var sToDD = ipt_academytodd.value;
  846. if(sFromDD.length != 8)
  847. {
  848. ipt_academyfromdd.value = sToDD;
  849. }
  850. var dayno1 = 0;
  851. var dayno2 = 0;
  852. dayno1 = getDateInterval(ipt_srvarmfromdd.value, ipt_srvarmtodd.value);
  853. dayno2 = getDateInterval(ipt_academyfromdd.value, ipt_academytodd.value);
  854. ipt_academydayno.value = dayno2 + 1;
  855. ipt_srvarmdayno.value = (dayno1 + 1) - (dayno2 + 1);
  856. ]]>
  857. </script>
  858. </input>
  859. <caption id="cap_academytodd" class="cell_1" style="left:233px; top:55px; width:91px; height:23px; vertical-align:middle; ">실학회종료일</caption>
  860. <caption id="cap_academyfromdd" class="cell_1" style="left:2px; top:55px; width:91px; height:23px; vertical-align:middle; ">실학회시작일</caption>
  861. <input id="ipt_academyfromdd" ref="/root/main/reqsrvarlist/dutscheapplist/academyfromdd" disabled="true" inputtype="date" style="left:95px; top:57px; width:135px; height:19px; ">
  862. <script type="javascript" ev:event="xforms-value-changed">
  863. <![CDATA[
  864. var sFromDD = ipt_academyfromdd.value;
  865. var sToDD = ipt_academytodd.value;
  866. if(sToDD.length != 8)
  867. {
  868. ipt_academytodd.value = sFromDD;
  869. }
  870. var dayno1 = 0;
  871. var dayno2 = 0;
  872. dayno1 = getDateInterval(ipt_srvarmfromdd.value, ipt_srvarmtodd.value);
  873. dayno2 = getDateInterval(ipt_academyfromdd.value, ipt_academytodd.value);
  874. ipt_academydayno.value = dayno2 + 1;
  875. ipt_srvarmdayno.value = (dayno1 + 1) - (dayno2 + 1);
  876. ]]>
  877. </script>
  878. </input>
  879. <line id="line6" class="line_2" style="x1:10px; y1:101px; x2:475px; y2:100px; "/>
  880. <line id="line8" class="line_2" style="x1:470px; y1:100px; x2:1190px; y2:100px; "/>
  881. <caption id="cap_r_money" class="cell_1" style="left:470px; top:101px; width:91px; height:23px; vertical-align:middle; ">등록비</caption>
  882. <line id="line9" class="line_2" style="x1:3px; y1:145px; x2:469px; y2:145px; "/>
  883. <line id="line10" class="line_2" style="x1:469px; y1:145px; x2:1189px; y2:145px; "/>
  884. <caption id="cap_s_money_unit" class="cell_1" style="left:233px; top:101px; width:91px; height:23px; vertical-align:middle; ">화페단위</caption>
  885. <input id="ipt_deprtmangraprvyn" ref="/root/main/reqsrvarlist/dutscheapplist/deprtmangraprvyn" visibility="hidden" style="left:1101px; top:101px; width:30px; height:19px; "/>
  886. <input id="ipt_psnworkapryn" ref="/root/main/reqsrvarlist/dutscheapplist/psnworkapryn" visibility="hidden" style="left:1136px; top:101px; width:30px; height:19px; "/>
  887. <select1 id="cmb_s_money_unit" ref="/root/main/reqsrvarlist/dutscheapplist/s_money_unit" disabled="true" appearance="minimal" style="left:326px; top:103px; width:135px; height:19px; ">
  888. <choices>
  889. <itemset>
  890. <label/>
  891. <value/>
  892. </itemset>
  893. </choices>
  894. </select1>
  895. <select1 id="cmb_r_money_unit" ref="/root/main/reqsrvarlist/dutscheapplist/r_money_unit" disabled="true" appearance="minimal" style="left:794px; top:102px; width:135px; height:19px; ">
  896. <choices>
  897. <itemset>
  898. <label/>
  899. <value/>
  900. </itemset>
  901. </choices>
  902. </select1>
  903. <input id="ipt_emplnm" ref="/root/main/reqsrvarlist/dutscheapplist/emplnm" class="input_search" disabled="true" navindex="3" style="left:199px; top:9px; width:147px; height:19px; ">
  904. <script type="javascript" ev:event="onkeypress">
  905. <![CDATA[
  906. if(event.keyCode == 13)
  907. {
  908. if(ipt_emplnm.value == ipt_emplnm.currentText) return;
  909. ipt_emplnm.value = ipt_emplnm.currentText;
  910. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  911. model.refresh();
  912. }
  913. ]]>
  914. </script>
  915. <script type="javascript" ev:event="xforms-value-changed">
  916. <![CDATA[
  917. rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
  918. model.refresh();
  919. ]]>
  920. </script>
  921. </input>
  922. <caption id="cap_emplno" class="cell_1" style="left:2px; top:7px; width:91px; height:23px; vertical-align:middle; ">사원번호</caption>
  923. <input id="ipt_emplno" ref="/root/main/reqsrvarlist/dutscheapplist/emplno" class="input_search" disabled="true" navindex="2" maxlength="10" style="left:95px; top:9px; width:80px; height:19px; text-align:left; ">
  924. <script type="javascript" ev:event="onkeypress">
  925. <![CDATA[
  926. if(event.keyCode == 13)
  927. {
  928. if(ipt_emplno.value == ipt_emplno.currentText) return;
  929. ipt_emplno.value = ipt_emplno.currentText;
  930. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  931. model.refresh();
  932. }
  933. ]]>
  934. </script>
  935. <script type="javascript" ev:event="xforms-value-changed">
  936. <![CDATA[
  937. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  938. model.refresh();
  939. ]]>
  940. </script>
  941. </input>
  942. <button id="btn_emplsearch" class="icon_search" disabled="true" style="left:179px; top:9px; width:16px; height:16px; ">
  943. <caption/>
  944. <script type="javascript" ev:event="DOMActivate">
  945. <![CDATA[
  946. rpbfOpenPopUpList("SPRTC00900", ipt_emplno, "emplno,emplnm", "cmb_instcd,ipt_dutdeptcd", "N");
  947. model.refresh();
  948. ]]>
  949. </script>
  950. </button>
  951. <input id="ipt_academydayno" ref="/root/main/reqsrvarlist/dutscheapplist/academydayno" disabled="true" visibility="visible" style="left:563px; top:57px; width:267px; height:19px; "/>
  952. <caption id="cap_academydayno" class="cell_1" visibility="visible" style="left:470px; top:55px; width:91px; height:23px; vertical-align:middle; ">공가일수</caption>
  953. </group>
  954. <button id="btn_suppprn" class="btn5_letter4" style="left:722px; top:93px; width:85px; height:19px; vertical-align:middle; ">
  955. <caption>근태출력</caption>
  956. <script type="javascript" ev:event="DOMActivate">
  957. <![CDATA[
  958. if (cmb_dutcd_serch.value == "") {
  959. messageBox("근태구분을" ,"C001");
  960. return;
  961. }
  962. model.resetInstanceNode("/root/main/prnlist");
  963. var reportID = "";
  964. if (cmb_dutcd_serch.value == "05") {
  965. for (var i=grd_dutschepsnworkcnfmlist.fixedRows; i<grd_dutschepsnworkcnfmlist.rows; i++){
  966. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/dgno", i-1);
  967. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/emplno", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("emplno")));
  968. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/emplnm", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("emplnm")));
  969. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/apprtname", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("apprtname")));
  970. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/dutplcedeptnm", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("dutplcedeptnm")));
  971. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/organ", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("organ")));
  972. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/paper_nm", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("paper_nm")));
  973. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/academy_tp", grd_dutschepsnworkcnfmlist.labelMatrix(i, grd_dutschepsnworkcnfmlist.colRef("academy_tp")));
  974. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/s_money", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("s_money")));
  975. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/r_money", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("r_money")));
  976. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/srvarmfromdd", grd_dutschepsnworkcnfmlist.labelMatrix(i, grd_dutschepsnworkcnfmlist.colRef("srvarmfromdd")));
  977. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/srvarmtodd", grd_dutschepsnworkcnfmlist.labelMatrix(i, grd_dutschepsnworkcnfmlist.colRef("srvarmtodd")));
  978. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/srvarmdayno", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("srvarmdayno")));
  979. reportID = "RPRTS02502";
  980. }
  981. }else{
  982. for (var i=grd_dutschepsnworkcnfmlist.fixedRows; i<grd_dutschepsnworkcnfmlist.rows; i++){
  983. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/dgno", i-1);
  984. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/emplno", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("emplno")));
  985. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/emplnm", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("emplnm")));
  986. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/apprtname", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("apprtname")));
  987. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/dutplcedeptnm", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("dutplcedeptnm")));
  988. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/dutdetlname", grd_dutschepsnworkcnfmlist.labelMatrix(i, grd_dutschepsnworkcnfmlist.colRef("dutdetlcd")));
  989. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/srvarmfromdd", grd_dutschepsnworkcnfmlist.labelMatrix(i, grd_dutschepsnworkcnfmlist.colRef("srvarmfromdd")));
  990. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/srvarmtodd", grd_dutschepsnworkcnfmlist.labelMatrix(i, grd_dutschepsnworkcnfmlist.colRef("srvarmtodd")));
  991. model.makeValue("/root/prnlist/dutscheapplist[" + (i-1) + "]/srvarmdayno", grd_dutschepsnworkcnfmlist.valueMatrix(i, grd_dutschepsnworkcnfmlist.colRef("srvarmdayno")));
  992. reportID = "RPRTS02501";
  993. }
  994. }
  995. model.makeValue("/root/prnlist/send/dutname", cmb_dutcd_serch.label);
  996. exeReportPreview(reportID,"XMLSTR");
  997. ]]>
  998. </script>
  999. </button>
  1000. </group>
  1001. <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  1002. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  1003. <caption>저장</caption>
  1004. <script type="javascript" ev:event="DOMActivate">
  1005. <![CDATA[
  1006. misfSave("TXRTS02501");
  1007. ]]>
  1008. </script>
  1009. </button>
  1010. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  1011. </group>
  1012. </xhtml:body>
  1013. </xhtml:html>