SMMNG00501_린넨마감시간등록.xfdl 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNG00501" position="absolute 0 0 1211 784" titletext="린넨 청구 시간 관리" oninit="SMMNG00501_oninit" onload="SMMNG00501_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="린넨 청구 시간 관리" position="absolute 0 0 161 25" id="caption6" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 38 1195 782" id="grp_biz" scrollbars="none">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 0 10 1195 45" align="align:center top;" id="grp_sea" anchor="default">
  18. <Layouts>
  19. <Layout>
  20. <Shape position="absolute 0 0 1195 35" id="roundrect1" class="roundrect_search" type="roundrectangle" anchor="default"/>
  21. <Shape position="absolute 997 5 1003 30" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  22. <Static text="요일구분 :" position="absolute 428 10 499 27" id="cap_csrreqdeptcd" class="search_name" anchor="default"/>
  23. <Button position="absolute 1015 8 1071 30" id="btn_search" class="btn1" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick" anchor="default"/>
  24. <Radio position="absolute 505 8 777 27" id="rdo_daykind" columncount="6" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grp_biz_grp_sea_rdo_daykind_onitemchanged" anchor="default">
  25. <Dataset id="innerdataset">
  26. <ColumnInfo>
  27. <Column id="codecolumn"/>
  28. <Column id="datacolumn"/>
  29. </ColumnInfo>
  30. <Rows>
  31. <Row>
  32. <Col id="codecolumn"/>
  33. <Col id="datacolumn">전체</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">1</Col>
  37. <Col id="datacolumn">평일</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">2</Col>
  41. <Col id="datacolumn">휴일</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">3</Col>
  45. <Col id="datacolumn">토요일</Col>
  46. </Row>
  47. <Row>
  48. <Col id="codecolumn">4</Col>
  49. <Col id="datacolumn">일요일</Col>
  50. </Row>
  51. </Rows>
  52. </Dataset>
  53. </Radio>
  54. <Static text="부 서 명 :" position="absolute 26 10 94 27" id="caption2" class="search_name" anchor="default"/>
  55. <Edit position="absolute 213 8 385 27" id="ipt_reqdeptnm" class="input_search" anchor="default"/>
  56. <Edit position="absolute 100 8 185 27" id="ipt_reqdeptcd" class="input_default" anchor="default"/>
  57. <Button position="absolute 1073 8 1129 30" id="btn_excel" class="btn7" text="엑셀" onclick="grp_biz_grp_sea_btn_excel_onclick" anchor="default"/>
  58. <Button position="absolute 1131 8 1187 30" id="btn_prt" class="btn6" text="출력" onclick="grp_biz_grp_sea_btn_prt_onclick" anchor="default"/>
  59. <Button position="absolute 190 10 206 26" id="btn_reqdept" class="icon_search" text="" onclick="grp_biz_grp_sea_btn_reqdept_onclick" anchor="default"/>
  60. </Layout>
  61. </Layouts>
  62. </Div>
  63. <Static text="부서구분" position="absolute 5 58 80 74" id="caption8" class="tit_2" anchor="default"/>
  64. <Shape position="absolute 5 74 220 80" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  65. <Grid position="absolute 5 78 220 740" id="grd_lnreqdeptlist" binddataset="ds_main_lnreqdeptlist" oncelldblclick="grp_biz_grd_lnreqdeptlist_oncelldblclick" anchor="default" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
  66. <Formats>
  67. <Format id="default">
  68. <Columns>
  69. <Column size="25" band="left"/>
  70. <Column size="170"/>
  71. <Column size="0"/>
  72. </Columns>
  73. <Rows>
  74. <Row size="24" band="head"/>
  75. <Row size="24"/>
  76. </Rows>
  77. <Band id="head">
  78. <Cell/>
  79. <Cell col="1" text="부서구분"/>
  80. <Cell col="2" text="caption1"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell celltype="head"/>
  84. <Cell col="1" displaytype="text" edittype="expr:ds_main_lnreqdeptlist.getRowType(currow) == 2 ? 'text' : 'none'" style="background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:lnreqdeptnm" enable="false"/>
  85. <Cell col="2" text="bind:lnreqdeptcd"/>
  86. </Band>
  87. </Format>
  88. </Formats>
  89. </Grid>
  90. <Edit position="absolute 525 50 625 70" id="ipt_csrreqdeptcd2" visible="false" anchor="default"/>
  91. <Tab position="absolute 226 53 1196 740" id="switch1" onchanged="grp_biz_switch1_onchanged" onlbuttondown="grp_biz_switch1_onlbuttondown" anchor="default">
  92. <Tabpages>
  93. <Tabpage text="정규" id="case1">
  94. <Layouts>
  95. <Layout>
  96. <Button position="absolute 777 3 830 22" id="button1" class="btn2" text="초기화" onclick="grp_biz_switch1_case1_button1_onclick" anchor="default"/>
  97. <Button position="absolute 833 3 875 22" id="btn_grdadd" class="btn2" text="추가" onclick="grp_biz_switch1_case1_btn_grdadd_onclick" anchor="default"/>
  98. <Button position="absolute 877 3 919 22" id="btn_grddel" class="btn5" text="삭제" onclick="grp_biz_switch1_case1_btn_grddel_onclick" anchor="default"/>
  99. <Button position="absolute 921 3 963 22" id="btn_save" class="btn5" text="저장" onclick="grp_biz_switch1_case1_btn_save_onclick" anchor="default"/>
  100. <Grid position="absolute 0 28 966 660" id="grd_lntmlist" class="datagrid2" binddataset="ds_main_lntmlist" anchor="default" selecttype="multirow" ontextchange="grp_biz_switch1_case1_grd_lntmlist_ontextchange" autoenter="select" cellsizingtype="both" extendsizetype="row">
  101. <Formats>
  102. <Format id="default">
  103. <Columns>
  104. <Column size="25" band="left"/>
  105. <Column size="80"/>
  106. <Column size="60"/>
  107. <Column size="60"/>
  108. <Column size="60"/>
  109. <Column size="80"/>
  110. <Column size="60"/>
  111. <Column size="17"/>
  112. <Column size="60"/>
  113. <Column size="130"/>
  114. <Column size="70"/>
  115. <Column size="60"/>
  116. <Column size="80"/>
  117. <Column size="80"/>
  118. <Column size="0"/>
  119. </Columns>
  120. <Rows>
  121. <Row size="30" band="head"/>
  122. <Row size="24"/>
  123. </Rows>
  124. <Band id="head">
  125. <Cell/>
  126. <Cell col="1" text="부서구분"/>
  127. <Cell col="2" text="요일구분"/>
  128. <Cell col="3" text="마감차수"/>
  129. <Cell col="4" text="마감시간"/>
  130. <Cell col="5" text="청구불가시간"/>
  131. <Cell col="6" colspan="3" text="청구가능시간"/>
  132. <Cell col="9" text="비고"/>
  133. <Cell col="10" text="수정자ID"/>
  134. <Cell col="11" text="수정자"/>
  135. <Cell col="12" text="수정일자"/>
  136. <Cell col="13" text="최초등록일자"/>
  137. <Cell col="14"/>
  138. </Band>
  139. <Band id="body">
  140. <Cell celltype="head"/>
  141. <Cell col="1" displaytype="combo" edittype="expr:ds_main_lntmlist.getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center top;padding:5 0 0 0;background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:lnreqdeptcd" wordwrap="word" combodataset="ds_main_lnreqdeptlist" combocodecol="lnreqdeptcd" combodatacol="lnreqdeptnm" enable="false"/>
  142. <Cell col="2" displaytype="combo" edittype="expr:ds_main_lntmlist.getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:daykind" combodataset="ds_daykind2" combocodecol="value" combodatacol="label" enable="false"/>
  143. <Cell col="3" displaytype="text" edittype="expr:ds_main_lntmlist.getRowType(currow) == 2 ? 'text' : 'none'" style="align:center middle;background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:reqseq" editlimit="2" editautoselect="true" editautoskip="true" enable="false"/>
  144. <Cell col="4" displaytype="text" edittype="mask" style="align:center middle;" text="bind:clotm" mask="##:##" maskchar=" " editlimit="4" edittrimtype="both" editautoselect="true" editautoskip="true"/>
  145. <Cell col="5" displaytype="text" edittype="mask" style="align:center middle;" text="bind:reqimpostm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
  146. <Cell col="6" displaytype="text" edittype="mask" style="align:center middle;" text="bind:starttm" mask="##:##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
  147. <Cell col="7" style="align:center middle;" text="bind:bar"/>
  148. <Cell col="8" displaytype="text" edittype="mask" text="bind:endtm" mask="##:##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
  149. <Cell col="9" displaytype="text" edittype="textarea" style="align:left top;padding:5 0 0 0;" text="bind:cmt" wordwrap="word" editlimit="96" editautoselect="true" editautoskip="true"/>
  150. <Cell col="10" style="align:center middle;" text="bind:lastupdtrid" enable="false"/>
  151. <Cell col="11" style="align:center middle;" text="bind:lastupdtrnm" enable="false"/>
  152. <Cell col="12" style="align:center middle;" text="bind:lastupdtdt" mask="expr:expr:utlf_isNull(lastupdtdt) ? '' : '####-##-##'" enable="false"/>
  153. <Cell col="13" style="align:center middle;" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-##'" enable="false"/>
  154. <Cell col="14" text="bind:erreqyn"/>
  155. </Band>
  156. </Format>
  157. </Formats>
  158. </Grid>
  159. <Shape position="absolute 0 24 967 30" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
  160. <Static text="청구 기준시간 등록" position="absolute 0 8 162 24" id="caption1" class="tit_2" anchor="default"/>
  161. </Layout>
  162. </Layouts>
  163. </Tabpage>
  164. <Tabpage text="응급" id="case2">
  165. <Layouts>
  166. <Layout>
  167. <Button position="absolute 777 3 830 22" id="button2" class="btn2" text="초기화" anchor="default" onclick="grp_biz_switch1_case2_button2_onclick"/>
  168. <Button position="absolute 833 3 875 22" id="button3" class="btn2" text="추가" anchor="default" onclick="grp_biz_switch1_case2_button3_onclick"/>
  169. <Button position="absolute 877 3 919 22" id="button4" class="btn5" text="삭제" onclick="grp_biz_switch1_case2_button4_onclick" anchor="default"/>
  170. <Button position="absolute 921 3 963 22" id="button5" class="btn5" text="저장" onclick="grp_biz_switch1_case2_button5_onclick" anchor="default"/>
  171. <Grid position="absolute 0 28 967 659" id="grd_erlntmlist" class="datagrid2" binddataset="ds_main_lntmlist" anchor="default" selecttype="multirow" autoenter="select" cellsizingtype="both" extendsizetype="row">
  172. <Formats>
  173. <Format id="default">
  174. <Columns>
  175. <Column size="25" band="left"/>
  176. <Column size="80"/>
  177. <Column size="60"/>
  178. <Column size="60"/>
  179. <Column size="60"/>
  180. <Column size="80"/>
  181. <Column size="60"/>
  182. <Column size="17"/>
  183. <Column size="60"/>
  184. <Column size="130"/>
  185. <Column size="70"/>
  186. <Column size="60"/>
  187. <Column size="80"/>
  188. <Column size="80"/>
  189. <Column size="0"/>
  190. </Columns>
  191. <Rows>
  192. <Row size="30" band="head"/>
  193. <Row size="24"/>
  194. </Rows>
  195. <Band id="head">
  196. <Cell/>
  197. <Cell col="1" text="부서구분"/>
  198. <Cell col="2" text="요일구분"/>
  199. <Cell col="3" text="마감차수"/>
  200. <Cell col="4" text="마감시간"/>
  201. <Cell col="5" text="청구불가시간"/>
  202. <Cell col="6" colspan="3" text="청구가능시간"/>
  203. <Cell col="9" text="비고"/>
  204. <Cell col="10" text="수정자ID"/>
  205. <Cell col="11" text="수정자"/>
  206. <Cell col="12" text="수정일자"/>
  207. <Cell col="13" text="최초등록일자"/>
  208. <Cell col="14" text="instcd"/>
  209. </Band>
  210. <Band id="body">
  211. <Cell celltype="head"/>
  212. <Cell col="1" displaytype="combo" edittype="expr:ds_main_lntmlist.getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center top;padding:5 0 0 0;background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:lnreqdeptcd" wordwrap="word" combodataset="ds_main_lnreqdeptlist" combocodecol="lnreqdeptcd" combodatacol="lnreqdeptnm" enable="false"/>
  213. <Cell col="2" displaytype="combo" edittype="expr:ds_main_lntmlist.getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:daykind" combodataset="ds_daykind" combocodecol="value" combodatacol="label" enable="false"/>
  214. <Cell col="3" displaytype="text" edittype="expr:ds_main_lntmlist.getRowType(currow) == 2 ? 'text' : 'none'" style="align:center middle;background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:reqseq" editlimit="2" editautoselect="true" editautoskip="true" enable="false"/>
  215. <Cell col="4" displaytype="text" edittype="mask" style="align:center middle;" text="bind:clotm" mask="##:##" maskchar=" " editlimit="4" edittrimtype="both" editautoselect="true" editautoskip="true"/>
  216. <Cell col="5" displaytype="text" edittype="mask" style="align:center middle;" text="bind:reqimpostm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
  217. <Cell col="6" displaytype="text" edittype="mask" style="align:center middle;" text="bind:starttm" mask="##:##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
  218. <Cell col="7" style="align:center middle;" text="bind:bar"/>
  219. <Cell col="8" displaytype="text" edittype="mask" text="bind:endtm" mask="##:##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
  220. <Cell col="9" displaytype="text" edittype="textarea" style="align:left top;padding:5 0 0 0;" text="bind:cmt" wordwrap="word" editlimit="96" editautoselect="true" editautoskip="true"/>
  221. <Cell col="10" edittype="none" style="align:center middle;" text="bind:lastupdtrid" enable="false"/>
  222. <Cell col="11" edittype="none" style="align:center middle;" text="bind:lastupdtrnm" enable="false"/>
  223. <Cell col="12" edittype="none" style="align:center middle;" text="bind:lastupdtdt" mask="expr:expr:utlf_isNull(lastupdtdt) ? '' : '####-##-##'" enable="false"/>
  224. <Cell col="13" edittype="none" style="align:center middle;" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-##'" enable="false"/>
  225. <Cell col="14" text="bind:erreqyn"/>
  226. </Band>
  227. </Format>
  228. </Formats>
  229. </Grid>
  230. <Shape position="absolute 0 24 967 30" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
  231. <Static text="응급청구 기준시간 등록" position="absolute 0 8 162 24" id="caption3" class="tit_2" anchor="default"/>
  232. </Layout>
  233. </Layouts>
  234. </Tabpage>
  235. <Tabpage text="부서관리" id="case3">
  236. <Layouts>
  237. <Layout>
  238. <Button position="absolute 777 3 830 22" id="button6" class="btn2" text="초기화" onclick="grp_biz_switch1_case3_button6_onclick" anchor="default"/>
  239. <Button position="absolute 833 3 875 22" id="button7" class="btn2" text="추가" onclick="grp_biz_switch1_case3_button7_onclick" anchor="default"/>
  240. <Button position="absolute 877 3 919 22" id="button8" class="btn5" text="삭제" anchor="default" onclick="grp_biz_switch1_case3_button8_onclick"/>
  241. <Button position="absolute 921 3 963 22" id="button9" class="btn5" text="저장" onclick="grp_biz_switch1_case3_button9_onclick" anchor="default"/>
  242. <Grid position="absolute 0 28 967 659" id="grd_lntmdeptlist" class="datagrid2" binddataset="ds_main_lntmdeptlist" onexpanddown="grp_biz_switch1_case3_grd_lntmdeptlist_onexpanddown" anchor="default" selecttype="multirow" autoenter="select" cellsizingtype="both" extendsizetype="row">
  243. <Formats>
  244. <Format id="default">
  245. <Columns>
  246. <Column size="25" band="left"/>
  247. <Column size="116"/>
  248. <Column size="135"/>
  249. <Column size="80"/>
  250. <Column size="150"/>
  251. <Column size="80"/>
  252. <Column size="80"/>
  253. <Column size="110"/>
  254. <Column size="110"/>
  255. </Columns>
  256. <Rows>
  257. <Row size="30" band="head"/>
  258. <Row size="24"/>
  259. </Rows>
  260. <Band id="head">
  261. <Cell/>
  262. <Cell col="1" text="부서코드"/>
  263. <Cell col="2" text="부서명"/>
  264. <Cell col="3" text="부서구분"/>
  265. <Cell col="4" text="비고"/>
  266. <Cell col="5" text="수정자id"/>
  267. <Cell col="6" text="수정자명"/>
  268. <Cell col="7" text="수정일자"/>
  269. <Cell col="8" text="최초등록일자"/>
  270. </Band>
  271. <Band id="body">
  272. <Cell celltype="head"/>
  273. <Cell col="1" displaytype="text" edittype="text" style="background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:deptcd" expandshow="show"/>
  274. <Cell col="2" displaytype="normal" edittype="none" style="align:left middle;" text="bind:deptnm"/>
  275. <Cell col="3" displaytype="combo" edittype="combo" style="align:center top;padding:5 0 0 0;" text="bind:lnreqdeptcd" wordwrap="word" combodataset="ds_main_lnreqdeptlist" combocodecol="lnreqdeptcd" combodatacol="lnreqdeptnm"/>
  276. <Cell col="4" displaytype="text" edittype="text" text="bind:cmt"/>
  277. <Cell col="5" style="align:left middle;" text="bind:lastupdtrid"/>
  278. <Cell col="6" style="align:left middle;" text="bind:lastupdtrnm"/>
  279. <Cell col="7" style="align:left middle;" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-##'"/>
  280. <Cell col="8" style="align:left middle;" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-##'"/>
  281. </Band>
  282. </Format>
  283. </Formats>
  284. </Grid>
  285. <Shape position="absolute 0 24 967 30" linetype="horizontal" id="line4" class="line_10" anchor="default"/>
  286. <Static text="린넨시간관리 부서등록" position="absolute 0 8 162 24" id="caption4" class="tit_2" anchor="default"/>
  287. </Layout>
  288. </Layouts>
  289. </Tabpage>
  290. </Tabpages>
  291. </Tab>
  292. <Button position="absolute 92 54 134 73" id="button13" class="btn2" text="추가" onclick="grp_biz_button13_onclick" anchor="default"/>
  293. <Button position="absolute 136 54 178 73" id="button14" class="btn5" text="삭제" onclick="grp_biz_button14_onclick" anchor="default"/>
  294. <Button position="absolute 180 54 222 73" id="button15" class="btn5" text="저장" onclick="grp_biz_button15_onclick" anchor="default"/>
  295. </Layout>
  296. </Layouts>
  297. </Div>
  298. </Layout>
  299. </Layouts>
  300. <Objects>
  301. <Dataset id="ds_main_lntmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_lntmlist_oncolumnchanged">
  302. <ColumnInfo>
  303. <Column id="csrreqdeptcd" type="STRING" size="256"/>
  304. <Column id="daykind" type="STRING" size="256"/>
  305. <Column id="reqseq" type="STRING" size="256"/>
  306. <Column id="clotm" type="STRING" size="256"/>
  307. <Column id="reqimpostm" type="STRING" size="256"/>
  308. <Column id="reqposfromtm" type="STRING" size="256"/>
  309. <Column id="bar" type="STRING" size="256"/>
  310. <Column id="reqpostotm" type="STRING" size="256"/>
  311. <Column id="cmt" type="STRING" size="256"/>
  312. <Column id="dinfaplyn" type="STRING" size="256"/>
  313. <Column id="lastupdtrid" type="STRING" size="256"/>
  314. <Column id="usernm" type="STRING" size="256"/>
  315. <Column id="lastupdtdt" type="STRING" size="256"/>
  316. <Column id="fstrgstdt" type="STRING" size="256"/>
  317. <Column id="instcd" type="STRING" size="256"/>
  318. <Column id="csrreqdeptnm" type="STRING" size="256"/>
  319. <Column id="daykindnm" type="STRING" size="256"/>
  320. </ColumnInfo>
  321. <Rows>
  322. <Row>
  323. <Col id="csrreqdeptcd"/>
  324. <Col id="daykind"/>
  325. <Col id="reqseq"/>
  326. <Col id="clotm"/>
  327. <Col id="reqimpostm"/>
  328. <Col id="reqposfromtm"/>
  329. <Col id="bar"/>
  330. <Col id="reqpostotm"/>
  331. <Col id="cmt"/>
  332. <Col id="dinfaplyn"/>
  333. <Col id="lastupdtrid"/>
  334. <Col id="usernm"/>
  335. <Col id="lastupdtdt"/>
  336. <Col id="fstrgstdt"/>
  337. <Col id="instcd"/>
  338. <Col id="csrreqdeptnm"/>
  339. <Col id="daykindnm"/>
  340. </Row>
  341. </Rows>
  342. </Dataset>
  343. <Dataset id="ds_main_lnreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  344. <ColumnInfo>
  345. <Column id="lnreqdeptnm" type="STRING" size="256"/>
  346. <Column id="lnreqdeptcd" type="STRING" size="256"/>
  347. </ColumnInfo>
  348. <Rows>
  349. <Row/>
  350. </Rows>
  351. </Dataset>
  352. <Dataset id="ds_main_csrdeptnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  353. <ColumnInfo>
  354. <Column id="csrdeptnm" type="STRING" size="256"/>
  355. </ColumnInfo>
  356. <Rows>
  357. <Row/>
  358. </Rows>
  359. </Dataset>
  360. <Dataset id="ds_main_lntmdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  361. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  362. <ColumnInfo>
  363. <Column id="instcd" type="STRING" size="256"/>
  364. <Column id="csrtmlist" type="STRING" size="256"/>
  365. <Column id="daykind" type="STRING" size="256"/>
  366. <Column id="deptcd" type="STRING" size="256"/>
  367. <Column id="deptnm" type="STRING" size="256"/>
  368. <Column id="csrreqdeptcd2" type="STRING" size="256"/>
  369. </ColumnInfo>
  370. <Rows>
  371. <Row>
  372. <Col id="instcd"/>
  373. <Col id="csrtmlist"/>
  374. <Col id="daykind"/>
  375. <Col id="deptcd"/>
  376. <Col id="deptnm"/>
  377. <Col id="csrreqdeptcd2"/>
  378. </Row>
  379. </Rows>
  380. </Dataset>
  381. <Dataset id="ds_init_csrdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  382. <ColumnInfo>
  383. <Column id="label" type="STRING" size="256"/>
  384. <Column id="value" type="STRING" size="256"/>
  385. </ColumnInfo>
  386. <Rows>
  387. <Row>
  388. <Col id="label">외래</Col>
  389. <Col id="value">1</Col>
  390. </Row>
  391. <Row>
  392. <Col id="label">병동</Col>
  393. <Col id="value">2</Col>
  394. </Row>
  395. <Row>
  396. <Col id="label">OR</Col>
  397. <Col id="value">3</Col>
  398. </Row>
  399. <Row>
  400. <Col id="label">ER</Col>
  401. <Col id="value">4</Col>
  402. </Row>
  403. <Row>
  404. <Col id="label">기타</Col>
  405. <Col id="value">5</Col>
  406. </Row>
  407. </Rows>
  408. </Dataset>
  409. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  410. <ColumnInfo>
  411. <Column id="daykind" type="STRING" size="256"/>
  412. <Column id="deptcd" type="STRING" size="256"/>
  413. <Column id="deptnm" type="STRING" size="256"/>
  414. </ColumnInfo>
  415. <Rows>
  416. <Row/>
  417. </Rows>
  418. </Dataset>
  419. <Dataset id="ds_hidden_common_instcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  420. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  421. <Dataset id="ds_send_reqData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  422. <Dataset id="ds_send_report_grd_lntmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  423. <Dataset id="ds_send_reqdata1_lntmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  424. <Dataset id="ds_daykind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  425. <ColumnInfo>
  426. <Column id="label" type="STRING" size="256"/>
  427. <Column id="value" type="STRING" size="256"/>
  428. </ColumnInfo>
  429. <Rows>
  430. <Row>
  431. <Col id="label">평일</Col>
  432. <Col id="value">1</Col>
  433. </Row>
  434. <Row>
  435. <Col id="label">휴일</Col>
  436. <Col id="value">2</Col>
  437. </Row>
  438. <Row>
  439. <Col id="label">토요일</Col>
  440. <Col id="value">3</Col>
  441. </Row>
  442. <Row>
  443. <Col id="label">일요일</Col>
  444. <Col id="value">4</Col>
  445. </Row>
  446. </Rows>
  447. </Dataset>
  448. <Dataset id="ds_send_reqdata2_lntmdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  449. <Dataset id="ds_send_reqdata_lnreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  450. <Dataset id="ds_daykind2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  451. <ColumnInfo>
  452. <Column id="label" type="STRING" size="256"/>
  453. <Column id="value" type="STRING" size="256"/>
  454. </ColumnInfo>
  455. <Rows>
  456. <Row>
  457. <Col id="label">평일</Col>
  458. <Col id="value">1</Col>
  459. </Row>
  460. <Row>
  461. <Col id="label">휴일</Col>
  462. <Col id="value">2</Col>
  463. </Row>
  464. <Row>
  465. <Col id="label">토요일</Col>
  466. <Col id="value">3</Col>
  467. </Row>
  468. <Row>
  469. <Col id="label">일요일</Col>
  470. <Col id="value">4</Col>
  471. </Row>
  472. </Rows>
  473. </Dataset>
  474. <Dataset id="ds_copynode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  475. </Objects>
  476. <Bind>
  477. <BindItem id="item0" compid="grp_biz.grp_sea.rdo_daykind" propid="value" datasetid="ds_init" columnid="daykind"/>
  478. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_reqdeptnm" propid="value" datasetid="ds_send" columnid="deptnm"/>
  479. <BindItem id="item2" compid="grp_biz.grp_sea.ipt_reqdeptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
  480. <BindItem id="item3" compid="grp_biz.ipt_csrreqdeptcd2" propid="value" datasetid="ds_send" columnid="csrreqdeptcd2"/>
  481. </Bind>
  482. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  483. * System Name :
  484. * Job Name :
  485. * Creator :
  486. * Make Date : 2015-11-13
  487. * Description :
  488. *---------------------------------------------------------------------------------------
  489. * Modify Date Modifier Modify Description
  490. *---------------------------------------------------------------------------------------
  491. * 2015-11-13 Live Converter TF->XP
  492. *
  493. *---------------------------------------------------------------------------------------
  494. ****************************************************************************************/
  495. include "com_commonxp::comm_main.xjs";
  496. include "mis_miscommonxp::MIS.xjs";
  497. include "mis_miscommonxp::RSZ001.xjs";
  498. function SMMNG00501_oninit(obj:Form, e:InitEventInfo)
  499. {
  500. frmf_initForm(obj);
  501. }
  502. function SMMNG00501_onload(obj:Form, e:LoadEventInfo)
  503. {
  504. grdf_setRowTypeIcon(grp_biz.grd_lnreqdeptlist,0);
  505. grdf_setRowTypeIcon(grp_biz.switch1.case2.grd_erlntmlist,0);
  506. grdf_setRowTypeIcon(grp_biz.switch1.case3.grd_lntmdeptlist,0);
  507. grdf_setRowTypeIcon(grp_biz.switch1.case1.grd_lntmlist,0);
  508. fInitialize();
  509. }
  510. var searchFlag = "0";
  511. var curDept = -1;
  512. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  513. function fInitialize() {
  514. ds_main_lntmlist.clearData();
  515. ds_send.clearData();
  516. misfGridInit(grp_biz.switch1.case1.grd_lntmlist);
  517. misfGridInit(grp_biz.grd_lnreqdeptlist);
  518. grp_biz.switch1.tabindex = 0;
  519. //button10.dispatch("DOMActivate");
  520. ds_main_lntmlist.clearData();
  521. dsf_makeValue(ds_send,"erreqyn","string", "N");
  522. ds_init.setColumn(0, "daykind", "");
  523. fSearch();
  524. ds_send_reqData.clearData();
  525. grp_biz.grp_sea.btn_prt.enable = false;
  526. getLnReqDeptList();
  527. }
  528. function getLnReqDeptList() {
  529. dsf_makeValue(ds_send_reqData,"cdgrupid","string", "R0269");
  530. dsf_makeValue(ds_send_reqData,"cdid","string", "%");
  531. dsf_makeValue(ds_send_reqData,"cdnm","string", "%");
  532. var oParam = {};
  533. oParam.id = "TRMNG00408";
  534. oParam.service = "csrapp.CsrDryMngt";
  535. oParam.method = "reqGetLnReqDeptList";
  536. oParam.inds = "";
  537. oParam.outds = "ds_main_lnreqdeptlist=lnreqdeptlist";
  538. oParam.async = false;
  539. tranf_submit(oParam);
  540. ds_main_lnreqdeptlist.rowposition = -1;
  541. ds_main_lntmlist.clearData();
  542. }
  543. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  544. {
  545. getLnReqDeptList();
  546. if( utlf_isNull(grp_biz.grp_sea.ipt_reqdeptcd.value) || curDept != -1) {
  547. ds_main_lnreqdeptlist.rowposition = curDept;
  548. fSearch();
  549. }
  550. }
  551. function fSearch(){
  552. var iRow = ds_main_lnreqdeptlist.rowposition;
  553. var iCol = grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd");
  554. ds_send.addColumn("erreqyn", "string");
  555. var erreqyn = ds_send.getColumn(0, "erreqyn");
  556. dsf_makeValue(ds_send,"daykind" ,"string",grp_biz.grp_sea.rdo_daykind.value);
  557. dsf_makeValue(ds_send,"lnreqdeptcd" ,"string",grp_biz.grd_lnreqdeptlist.getCellValue(iRow, iCol));
  558. if ( erreqyn == "A" ) {
  559. var oParam = {};
  560. oParam.id = "TRMNG00505";
  561. oParam.service = "csrapp.CsrDryMngt";
  562. oParam.method = "reqGetTmDeptList";
  563. oParam.inds = "req=ds_send";
  564. oParam.outds = "ds_main_lntmdeptlist=lntmdeptlist";
  565. oParam.async = false;
  566. tranf_submit(oParam);
  567. } else {
  568. var oParam = {};
  569. oParam.id = "TRMNG00504";
  570. oParam.service = "csrapp.CsrDryMngt";
  571. oParam.method = "reqGetLnTmList";
  572. oParam.inds = "req=ds_send";
  573. oParam.outds = "ds_main_lntmlist=lntmlist";
  574. oParam.async = false;
  575. tranf_submit(oParam);
  576. ds_main_lntmlist.updatecontrol = false;
  577. ds_main_lntmlist.enableevent = false;
  578. dsf_setFixVal(ds_main_lntmlist, "bar:~");
  579. ds_main_lntmlist.enableevent = true;
  580. ds_main_lntmlist.updatecontrol = true;
  581. }
  582. //misfSetReadOnlyCol(grd_lntmlist, "lnreqdeptcd,daykind, reqseq", true);
  583. }
  584. function grp_biz_grp_sea_rdo_daykind_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  585. {
  586. //if(!frmf_isRequiredControls("cmb_instcd")) return;
  587. //getCsrDeptList();
  588. fSearch();
  589. }
  590. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  591. {
  592. if(e.columnid == "deptnm"){
  593. misfValidationCheck("02", "", "deptcd,deptnm");
  594. }
  595. }
  596. function grp_biz_grp_sea_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  597. {/*1.0 오류..
  598. var fileName = window.fileDialog("save", ",", false, "CSR마감시간등록", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  599. if (fileName != "")
  600. {
  601. grd_csrtmlist.saveExcel(fileName, "청구현황List");
  602. }
  603. */
  604. }
  605. function grp_biz_grp_sea_btn_prt_onclick(obj:Button, e:ClickEventInfo)
  606. {
  607. fPrintRex();
  608. }
  609. function fPrintRex() {
  610. /*1.0출력 비활성화
  611. model.makeNode("/root/send/report/grd_lntmlist");
  612. copyNodesetType("/root/send/report/grd_lntmlist", "/root/main/grd_lntmlist");
  613. exeReportPreview("RPMNG00500", "XMLSTR", "/root/send/report/grd_lntmlist");
  614. */
  615. }
  616. function grp_biz_grp_sea_btn_reqdept_onclick(obj:Button, e:ClickEventInfo)
  617. {
  618. frmf_modal("SPMNG00300","SPMNG00300","", "", "", "", "", "", "", "", "", "", "M");
  619. ds_send.updatecontrol = false;
  620. ds_send.enableevent = false;
  621. ds_send.setColumn(0, "deptcd", sysf_getModelProperty("deptcd"));
  622. ds_send.setColumn(0, "deptnm", sysf_getModelProperty("deptnm"));
  623. ds_send.setColumn(0, "csrreqdeptcd2", sysf_getModelProperty("csrreqdeptcd"));
  624. ds_send.enableevent = true;
  625. ds_send.updatecontrol = true;
  626. for(var i = 0; i < ds_main_lnreqdeptlist.rowcount; i++) {
  627. if( grp_biz.grd_lnreqdeptlist.getCellValue(i, grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd")) == grp_biz.ipt_csrreqdeptcd2.value ){
  628. ds_main_lnreqdeptlist.rowposition = i;
  629. fSearch();
  630. curDept = ds_main_lnreqdeptlist.rowposition;
  631. break;
  632. }
  633. }
  634. }
  635. function grp_biz_grd_lnreqdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  636. {
  637. if(e.row > -1 && e.col > -1){
  638. fSearch();
  639. curDept = ds_main_lnreqdeptlist.rowposition;
  640. }
  641. }
  642. function grp_biz_switch1_case1_button1_onclick(obj:Button, e:ClickEventInfo)
  643. {
  644. fInitialize();
  645. }
  646. function grp_biz_switch1_case1_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  647. {
  648. misfGridIUD(grp_biz.switch1.case1.grd_lntmlist, "A");
  649. var cur_row = ds_main_lntmlist.rowposition;
  650. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  651. ds_main_lntmlist.updatecontrol = false;
  652. ds_main_lntmlist.enableevent = false;
  653. ds_main_lntmlist.setColumn(cur_row, "bar", "~");
  654. ds_main_lntmlist.setColumn(cur_row, "lnreqdeptcd", grp_biz.grd_lnreqdeptlist.getCellValue(ds_main_lnreqdeptlist.rowposition, grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd")));
  655. ds_main_lntmlist.setColumn(cur_row, "reqimpostm", "0000");
  656. ds_main_lntmlist.setColumn(cur_row, "erreqyn", "N");
  657. ds_main_lntmlist.enableevent = true;
  658. ds_main_lntmlist.updatecontrol = true;
  659. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  660. //grd_lntmlist.editCell();
  661. }
  662. function grp_biz_switch1_case2_button4_onclick(obj:Button, e:ClickEventInfo)
  663. {
  664. if( ds_main_lntmlist.rowposition > -1 ){
  665. var firstRow = grp_biz.switch1.case2.grd_erlntmlist.selectstartrow[0];
  666. var lastRow = grp_biz.switch1.case2.grd_erlntmlist.selectendrow[grp_biz.switch1.case2.grd_erlntmlist.selectcount-1];
  667. for( var i=firstRow ; i<=lastRow ; i++ ){
  668. if( ds_main_lntmlist.getRowType(i) == 2 ){
  669. ds_main_lntmlist.deleteRow(i);
  670. } else {
  671. ds_main_lntmlist.enableevent = false;
  672. ds_main_lntmlist.updatecontrol = false;
  673. ds_main_lntmlist.setRowType(i, 8);
  674. ds_main_lntmlist.updatecontrol = true;
  675. ds_main_lntmlist.enableevent = true;
  676. }
  677. }
  678. }
  679. }
  680. function grp_biz_switch1_case2_button5_onclick(obj:Button, e:ClickEventInfo)
  681. {
  682. fSave();
  683. }
  684. function fSave(){
  685. var erreqyn = ds_send.getColumn(0, "erreqyn");
  686. if ( erreqyn == "N" ) {
  687. var updtdata = grdf_getGridUpdateData(grp_biz.switch1.case1.grd_lntmlist);
  688. grdf_setStatusColumn(updtdata, "status");
  689. } else if ( erreqyn == "Y") {
  690. var updtdata = grdf_getGridUpdateData(grp_biz.switch1.case2.grd_erlntmlist);
  691. grdf_setStatusColumn(updtdata, "status");
  692. }
  693. if (updtdata.rowcount < 1)
  694. {
  695. sysf_messageBox("변경된 데이터가","I004");
  696. return;
  697. }
  698. rtn = sysf_messageBox("", "Q002");
  699. if(rtn != "6" ) return false;
  700. dsf_createDs("ds_send_reqdata1_lntmlist");
  701. ds_send_reqdata1_lntmlist.copyData(updtdata, true);
  702. var oParam = {};
  703. oParam.id = "TXMNG00503";
  704. oParam.service = "csrapp.CsrDryMngt";
  705. oParam.method = "reqExeSaveLnTmList";
  706. oParam.inds = "req=ds_send_reqdata1_lntmlist";
  707. oParam.outds = "";
  708. oParam.async = false;
  709. tranf_submit(oParam);
  710. frmf_inputEnterKey("grp_biz.grp_sea.btn_search", "onclick", new ClickEventInfo);
  711. }
  712. function ds_main_lntmlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  713. {
  714. if(grp_biz.switch1.tabindex ==0){
  715. if(ds_main_lntmlist.rowcount > 0 && (e.columnid == "clotm" || e.columnid == "reqimpostm") ) {
  716. fChngReqPosTm(grp_biz.switch1.case1.grd_lntmlist);
  717. }
  718. fCheckTime(e.row, e.col, obj, e.columnid);
  719. }
  720. if(grp_biz.switch1.tabindex ==1){
  721. if(ds_main_lntmlist.rowcount > 0 && (e.columnid == "clotm" || e.columnid == "reqimpostm") ) {
  722. fChngReqPosTm(grp_biz.switch1.case2.grd_erlntmlist);
  723. }
  724. fCheckTime(e.row, e.col, obj, e.columnid);
  725. }
  726. }
  727. function fChngReqPosTm(grid) {
  728. var tempClotm;
  729. var tempReqImposTm;
  730. var clotm;
  731. var stdCnt = 0 //평일
  732. var spclCnt = 0; //휴일
  733. var spclCnt2 = 0; //토요일
  734. var spclCnt3 = 0; //일요일
  735. var daykind;
  736. var gbinds = eval(grid.binddataset);
  737. stdCnt = parseInt(stdCnt);
  738. spclCnt = parseInt(spclCnt);
  739. spclCnt2 = parseInt(spclCnt2);
  740. spclCnt3 = parseInt(spclCnt3);
  741. for(var i = 0; i < gbinds.rowcount; i++) {
  742. daykind = grid.getCellValue(i, grid.getBindCellIndex("body","daykind"));
  743. switch(daykind) {
  744. case '1' :
  745. stdCnt++;
  746. break;
  747. case '2' :
  748. spclCnt++;
  749. break;
  750. case '3' :
  751. spclCnt2++;
  752. break;
  753. case '4' :
  754. spclCnt3++;
  755. break;
  756. }
  757. }
  758. gbinds.enableevent = false;
  759. gbinds.updatecontrol = false;
  760. for(var i = 1; i <= parseInt(stdCnt + spclCnt + spclCnt2 + spclCnt3); i++) {
  761. tempClotm = utlf_transNullToEmpty(grid.getCellValue(i-1, grid.getBindCellIndex("body","clotm")));
  762. tmpReqImposTm = utlf_transNullToEmpty(grid.getCellValue(i-1, grid.getBindCellIndex("body","reqimpostm")));
  763. //평일에 등록된 수량중 마지막일때
  764. if(i == stdCnt) {
  765. gbinds.setColumn(0, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
  766. clotm = utlf_transNullToEmpty(grid.getCellValue(0, grp_biz.switch1.case1.grd_lntmlist.getBindCellIndex("body","clotm")));
  767. gbinds.setColumn(0, "endtm", subTm(clotm) + "59");
  768. } else if (i < stdCnt) { //평일에 등록된 수량일때
  769. gbinds.setColumn(i, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
  770. clotm = utlf_transNullToEmpty(grid.getCellValue(i, grid.getBindCellIndex("body","clotm")));
  771. gbinds.setColumn(i, "endtm", subTm(clotm) + "59" );
  772. } else if(i == parseInt(stdCnt + spclCnt)) { //휴일에 등록된 수량중 마지막일때
  773. gbinds.setColumn(stdCnt, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
  774. clotm = utlf_transNullToEmpty(grid.getCellValue(stdCnt, grid.getBindCellIndex("body","clotm")));
  775. gbinds.setColumn(stdCnt, "endtm", subTm(clotm) + "59");
  776. } else if(i > stdCnt && i < parseInt(stdCnt + spclCnt)) { //휴일에 등록된 수량일때
  777. gbinds.setColumn(i, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
  778. clotm = utlf_transNullToEmpty(grid.getCellValue(i, grid.getBindCellIndex("body","clotm")));
  779. gbinds.setColumn(i, "endtm", subTm(clotm) + "59");
  780. } else if(i == parseInt(stdCnt + spclCnt + spclCnt2)) { //토요일에 등록된 수량중 마지막일때.
  781. gbinds.setColumn(parseInt(stdCnt + spclCnt), "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
  782. clotm = utlf_transNullToEmpty(grid.getCellValue(parseInt(stdCnt + spclCnt), grid.getBindCellIndex("body","clotm")));
  783. gbinds.setColumn(parseInt(stdCnt + spclCnt), "endtm", subTm(clotm) + "59");
  784. } else if(i > parseInt(stdCnt + spclCnt) && i < parseInt(stdCnt + spclCnt + spclCnt2)) { //토요일에 등록된 수량일때.
  785. gbinds.setColumn(i, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
  786. clotm = utlf_transNullToEmpty(grid.getCellValue(i, grid.getBindCellIndex("body","clotm")));
  787. gbinds.setColumn(i, "endtm", subTm(clotm) + "59");
  788. } else if(i == parseInt(stdCnt + spclCnt + spclCnt2 + spclCnt3)) { //일요일에 등록된 수량중 마지막일때.
  789. gbinds.setColumn(parseInt(stdCnt + spclCnt + spclCnt2), "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
  790. clotm = utlf_transNullToEmpty(grid.getCellValue(parseInt(stdCnt + spclCnt + spclCnt2), grid.getBindCellIndex("body","clotm")));
  791. gbinds.setColumn(parseInt(stdCnt + spclCnt + spclCnt2), "endtm", subTm(clotm) + "59");
  792. } else if(i > parseInt(stdCnt + spclCnt + spclCnt2) && i < parseInt(stdCnt + spclCnt + spclCnt2 + spclCnt3)) { //일요일에 등록된 수량일때.
  793. gbinds.setColumn(i, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
  794. clotm = utlf_transNullToEmpty(grid.getCellValue(i, grid.getBindCellIndex("body","clotm")));
  795. gbinds.setColumn(i, "endtm", subTm(clotm) + "59");
  796. }
  797. }
  798. gbinds.updatecontrol = true;
  799. gbinds.enableevent = true;
  800. }
  801. function addTm(fstTm, lastTm) {
  802. var fstHour = fstTm.substr(0,2);
  803. var fstTm = fstTm.substr(2,2);
  804. var lastHour = lastTm.substr(0,2);
  805. var lastTm = lastTm.substr(2,2);
  806. var sumHour = (Number(fstHour) + Number(lastHour));
  807. var sumTm = Number(fstTm) + Number(lastTm);
  808. var hour;
  809. var tm;
  810. if(sumTm >= 60) {
  811. sumHour += 1;
  812. sumTm %= 60;
  813. }
  814. if(sumHour >= 24) {
  815. sumHour %= 24;
  816. }
  817. if(sumHour < 10) {
  818. hour = "0" + sumHour;
  819. } else {
  820. hour = String(sumHour);
  821. }
  822. if(sumTm < 10) {
  823. tm = "0" + sumTm;
  824. } else {
  825. tm = String(sumTm);
  826. }
  827. return hour + tm;
  828. }
  829. function subTm(clotm) {
  830. var cloHour = clotm.substr(0,2);
  831. var cloTm = clotm.substr(2,2);
  832. var sumHour = Number(cloHour);
  833. var sumTm = Number(cloTm) - 1;
  834. var hr;
  835. var tm;
  836. if(sumTm == -1) {
  837. sumTm = 59;
  838. sumHour -= 1;
  839. }
  840. if(sumHour == -1) {
  841. sumHour = 23;
  842. }
  843. if(sumHour < 10) {
  844. hr= "0" + sumHour;
  845. } else {
  846. hr = String(sumHour);
  847. }
  848. if(sumTm < 10) {
  849. tm = "0" + sumTm;
  850. } else {
  851. tm = String(sumTm);
  852. }
  853. return hr + tm;
  854. }
  855. function grp_biz_switch1_case3_button6_onclick(obj:Button, e:ClickEventInfo)
  856. {
  857. fInitialize();
  858. }
  859. function grp_biz_switch1_case3_button7_onclick(obj:Button, e:ClickEventInfo)
  860. {
  861. //if(!frmf_isRequiredControls("cmb_instcd")) return;
  862. misfGridIUD(grp_biz.switch1.case3.grd_lntmdeptlist, "A");
  863. var cur_row = ds_main_lntmdeptlist.rowposition;
  864. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  865. ds_main_lntmdeptlist.setColumn(cur_row, "lnreqdeptcd", grp_biz.grd_lnreqdeptlist.getCellValue(ds_main_lnreqdeptlist.rowposition, grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd")));
  866. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  867. //grd_lntmdeptlist.editCell();
  868. }
  869. function grp_biz_switch1_case3_button9_onclick(obj:Button, e:ClickEventInfo)
  870. {
  871. fSavedept();
  872. }
  873. function fSavedept(){
  874. var erreqyn = ds_send.getColumn(0, "erreqyn");
  875. var updtdata = grdf_getGridUpdateData(grp_biz.switch1.case3.grd_lntmdeptlist);
  876. grdf_setStatusColumn(updtdata, "status");
  877. if (updtdata.rowcount < 1)
  878. {
  879. sysf_messageBox("변경된 데이터가","I004");
  880. return;
  881. }
  882. rtn = sysf_messageBox("", "Q002");
  883. if(rtn != "6" ) return false;
  884. dsf_createDs("ds_send_reqdata2_lntmdeptlist");
  885. ds_send_reqdata2_lntmdeptlist.copyData(updtdata, true);
  886. var oParam = {};
  887. oParam.id = "TXMNG00504";
  888. oParam.service = "csrapp.CsrDryMngt";
  889. oParam.method = "reqExeSaveLnTmDeptInfo";
  890. oParam.inds = "req=ds_send_reqdata2_lntmdeptlist";
  891. oParam.outds = "";
  892. oParam.async = false;
  893. tranf_submit(oParam);
  894. frmf_inputEnterKey("grp_biz.grp_sea.btn_search", "onclick", new ClickEventInfo);
  895. }
  896. function grp_biz_switch1_case3_grd_lntmdeptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  897. {
  898. frmf_clearParameter("SPMNG00403_");
  899. if (e.col == grp_biz.switch1.case3.grd_lntmdeptlist.getBindCellIndex("body","deptcd")) {//부서코드 버튼을 눌렀을 때
  900. ds_copynode.clearData();
  901. rszfOpenPopUpListByWndName(grp_biz.switch1.case3.grd_lntmdeptlist,"","deptcd,deptnm","SPMNG00403","","", "Y");
  902. var CSV = frmf_getParameter("SPMNG00403_");
  903. dsf_setCSVToDs("ds_copynode", CSV);
  904. fSettingGoodList("ds_copynode");
  905. }
  906. }
  907. function grp_biz_switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  908. {
  909. if(grp_biz.switch1.tabindex == 0){
  910. ds_main_lntmlist.clearData();
  911. dsf_makeValue(ds_send,"erreqyn","string", "N");
  912. fSearch();
  913. }
  914. if(grp_biz.switch1.tabindex == 1){
  915. ds_main_lntmlist.clearData();
  916. dsf_makeValue(ds_send,"erreqyn","string", "Y");
  917. fSearch();
  918. }
  919. if(grp_biz.switch1.tabindex == 2){
  920. dsf_makeValue(ds_send,"erreqyn","string", "A");
  921. fSearch();
  922. }
  923. }
  924. function grp_biz_switch1_onlbuttondown(obj:Tab, e:TabMouseEventInfo)
  925. {
  926. if(e.fromreferenceobject.name == "switch1"){
  927. var sIdx = obj.getIndex(e.clientX, e.canvasY);
  928. if( sIdx != -1){
  929. if( e.index == sIdx ){
  930. obj.tabindex = sIdx;
  931. frmf_inputEnterKey("grp_biz.switch1", "onchanged", new TabIndexChangeEventInfo);
  932. }
  933. }
  934. }
  935. }
  936. function grp_biz_button13_onclick(obj:Button, e:ClickEventInfo)
  937. {
  938. ds_main_lnreqdeptlist.addRow();
  939. }
  940. function grp_biz_button14_onclick(obj:Button, e:ClickEventInfo)
  941. {
  942. if(( ds_main_lnreqdeptlist.getRowType(ds_main_lnreqdeptlist.rowposition) =="2" )){
  943. ds_main_lnreqdeptlist.deleteRow(ds_main_lnreqdeptlist.rowposition);
  944. } else {
  945. var btn = sysf_messageBox("부서구분 삭제시 부서구분에 속한 부서목록 및 청구 기준시간도 같이 삭제됩니다. 진행하시겠습니까?", "Q");
  946. if (btn == "6") {
  947. ds_main_lnreqdeptlist.enableevent = false;
  948. ds_main_lnreqdeptlist.updatecontrol = false;
  949. ds_main_lnreqdeptlist.setRowType(ds_main_lnreqdeptlist.rowposition, 8);
  950. ds_main_lnreqdeptlist.updatecontrol = true;
  951. ds_main_lnreqdeptlist.enableevent = true;
  952. var updtdata = grdf_getGridUpdateData(grp_biz.grd_lnreqdeptlist);
  953. grdf_setStatusColumn(updtdata, "status");
  954. dsf_createDs("ds_send_reqdata_lnreqdeptlist");
  955. ds_send_reqdata_lnreqdeptlist.copyData(updtdata, true);
  956. var oParam = {};
  957. oParam.id = "TXMNG00502";
  958. oParam.service = "csrapp.CsrDryMngt";
  959. oParam.method = "reqExeSaveLnReqDeptList";
  960. oParam.inds = "req=ds_send_reqdata_lnreqdeptlist";
  961. oParam.outds = "";
  962. oParam.async = false;
  963. tranf_submit(oParam);
  964. }
  965. }
  966. }
  967. function grp_biz_button15_onclick(obj:Button, e:ClickEventInfo)
  968. {
  969. var btn = sysf_messageBox("저장하시겠습니까?", "Q");
  970. if (btn = "6") {
  971. var updtdata = grdf_getGridUpdateData(grp_biz.grd_lnreqdeptlist);
  972. grdf_setStatusColumn(updtdata, "status");
  973. dsf_createDs("ds_send_reqdata_lnreqdeptlist");
  974. ds_send_reqdata_lnreqdeptlist.copyData(updtdata, true);
  975. var oParam = {};
  976. oParam.id = "TXMNG00502";
  977. oParam.service = "csrapp.CsrDryMngt";
  978. oParam.method = "reqExeSaveLnReqDeptList";
  979. oParam.inds = "req=ds_send_reqdata_lnreqdeptlist";
  980. oParam.outds = "";
  981. oParam.async = false;
  982. tranf_submit(oParam);
  983. }
  984. }
  985. function grp_biz_switch1_case1_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  986. {
  987. if( ds_main_lntmlist.rowposition > -1 ){
  988. var firstRow = grp_biz.switch1.case1.grd_lntmlist.selectstartrow[0];
  989. var lastRow = grp_biz.switch1.case1.grd_lntmlist.selectendrow[grp_biz.switch1.case1.grd_lntmlist.selectcount-1];
  990. for( var i=firstRow ; i<=lastRow ; i++ ){
  991. if( ds_main_lntmlist.getRowType(i) == 2 ){
  992. ds_main_lntmlist.deleteRow(i);
  993. } else {
  994. ds_main_lntmlist.enableevent = false;
  995. ds_main_lntmlist.updatecontrol = false;
  996. ds_main_lntmlist.setRowType(i, 8);
  997. ds_main_lntmlist.updatecontrol = true;
  998. ds_main_lntmlist.enableevent = true;
  999. }
  1000. }
  1001. }
  1002. }
  1003. function grp_biz_switch1_case1_btn_save_onclick(obj:Button, e:ClickEventInfo)
  1004. {
  1005. fSave();
  1006. }
  1007. function grp_biz_switch1_case2_button3_onclick(obj:Button, e:ClickEventInfo)
  1008. {
  1009. misfGridIUD(grp_biz.switch1.case2.grd_erlntmlist, "A");
  1010. var cur_row = ds_main_lntmlist.rowposition;
  1011. ds_main_lntmlist.updatecontrol = false;
  1012. ds_main_lntmlist.enableevent = false;
  1013. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  1014. ds_main_lntmlist.setColumn(cur_row, "bar", "~");
  1015. ds_main_lntmlist.setColumn(cur_row, "lnreqdeptcd", grp_biz.grd_lnreqdeptlist.getCellValue(ds_main_lnreqdeptlist.rowposition, grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd")));
  1016. ds_main_lntmlist.setColumn(cur_row, "reqimpostm", "0000");
  1017. ds_main_lntmlist.setColumn(cur_row, "erreqyn", "Y");
  1018. ds_main_lntmlist.setColumn(cur_row, "reqseq", "응급");
  1019. ds_main_lntmlist.enableevent = true;
  1020. ds_main_lntmlist.updatecontrol = true;
  1021. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  1022. //grd_erlntmlist.editCell()
  1023. }
  1024. function fSettingGoodList(pnode) {
  1025. var codynode = ds_copynode.rowcount;
  1026. var addRow = ds_main_lntmdeptlist.rowcount - 1;
  1027. for (var j = 0; j < codynode; j++)
  1028. {
  1029. if(addRow > ds_main_lntmdeptlist.rowcount - 1)
  1030. {
  1031. misfGridIUD(grp_biz.switch1.case3.grd_lntmdeptlist,"A");
  1032. addRow = ds_main_lntmdeptlist.rowcount - 1;
  1033. }
  1034. ds_main_lntmdeptlist.updatecontrol = false;
  1035. ds_main_lntmdeptlist.enableevent = false;
  1036. ds_main_lntmdeptlist.setColumn(addRow, "deptcd" , ds_copynode.getColumn(j, "deptcd"));
  1037. ds_main_lntmdeptlist.setColumn(addRow, "deptnm" , ds_copynode.getColumn(j, "deptnm"));
  1038. ds_main_lntmdeptlist.setColumn(addRow, "lnreqdeptcd" , ds_send.getColumn(0, "lnreqdeptcd"));
  1039. grp_biz.switch1.case3.grd_lntmdeptlist.showEditor(false);
  1040. ds_main_lntmdeptlist.enableevent = true;
  1041. ds_main_lntmdeptlist.updatecontrol = true;
  1042. addRow = addRow + 1;
  1043. }
  1044. grp_biz.switch1.case3.grd_lntmdeptlist.setCellProperty("Body", grp_biz.switch1.case3.grd_lntmdeptlist.getBindCellIndex("body","deptcd"), "edittype", "none");
  1045. //grd_lntmdeptlist.colDisabled(grd_lntmdeptlist.colRef("deptcd")) = true;
  1046. }
  1047. function grp_biz_switch1_case3_button8_onclick(obj:Button, e:ClickEventInfo)
  1048. {
  1049. if( ds_main_lntmdeptlist.rowposition > -1 ){
  1050. var firstRow = grp_biz.switch1.case3.grd_lntmdeptlist.selectstartrow[0];
  1051. var lastRow = grp_biz.switch1.case3.grd_lntmdeptlist.selectendrow[grp_biz.switch1.case3.grd_lntmdeptlist.selectcount-1];
  1052. for( var i=firstRow ; i<=lastRow ; i++ ){
  1053. if( ds_main_lntmdeptlist.getRowType(i) == 2 ){
  1054. ds_main_lntmdeptlist.deleteRow(i);
  1055. } else {
  1056. ds_main_lntmdeptlist.enableevent = false;
  1057. ds_main_lntmdeptlist.updatecontrol = false;
  1058. ds_main_lntmdeptlist.setRowType(i, 8);
  1059. ds_main_lntmdeptlist.updatecontrol = true;
  1060. ds_main_lntmdeptlist.enableevent = true;
  1061. }
  1062. }
  1063. }
  1064. }
  1065. function grp_biz_switch1_case1_grd_lntmlist_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
  1066. {
  1067. if( e.col == 4 || e.col == 5 || e.col == 6 || e.col == 8 ){
  1068. grdf_validGridTime(obj, e);
  1069. }
  1070. }
  1071. function grp_biz_switch1_case2_button2_onclick(obj:Button, e:ClickEventInfo)
  1072. {
  1073. fInitialize();
  1074. }
  1075. function fCheckTime(row, col, obj, columnid)
  1076. {
  1077. if(columnid == "clotm")
  1078. {
  1079. var sTime = utlf_transNullToEmpty(obj.getColumn(row, "clotm"));
  1080. if( utlf_isNull(sTime) )
  1081. {
  1082. return;
  1083. }
  1084. if(sTime.length != 4)
  1085. {
  1086. sysf_messageBox("네자리를 ","C001");
  1087. obj.setColumn(row, "clotm", "");
  1088. return;
  1089. }
  1090. var sFrontTime = sTime.substr(0, 2);
  1091. var sBackTime = sTime.substr(2, 2);
  1092. if(parseInt(sFrontTime) > 24)
  1093. {
  1094. sysf_messageBox("24시를 ","E001");
  1095. obj.setColumn(row, "clotm", "");
  1096. return;
  1097. }
  1098. if(parseInt(sBackTime) > 59)
  1099. {
  1100. sysf_messageBox("59분을 ","E001");
  1101. obj.setColumn(row, "clotm", "");
  1102. return;
  1103. }
  1104. }
  1105. }]]></Script>
  1106. </Form>
  1107. </FDL>