1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNG00501" position="absolute 0 0 1211 784" titletext="린넨 청구 시간 관리" oninit="SMMNG00501_oninit" onload="SMMNG00501_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="린넨 청구 시간 관리" position="absolute 0 0 161 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 38 1195 782" id="grp_biz" scrollbars="none">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 1195 45" align="align:center top;" id="grp_sea" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1195 35" id="roundrect1" class="roundrect_search" type="roundrectangle" anchor="default"/>
- <Shape position="absolute 997 5 1003 30" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Static text="요일구분 :" position="absolute 428 10 499 27" id="cap_csrreqdeptcd" class="search_name" anchor="default"/>
- <Button position="absolute 1015 8 1071 30" id="btn_search" class="btn1" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick" anchor="default"/>
- <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">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">평일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">휴일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">토요일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">일요일</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="부 서 명 :" position="absolute 26 10 94 27" id="caption2" class="search_name" anchor="default"/>
- <Edit position="absolute 213 8 385 27" id="ipt_reqdeptnm" class="input_search" anchor="default"/>
- <Edit position="absolute 100 8 185 27" id="ipt_reqdeptcd" class="input_default" anchor="default"/>
- <Button position="absolute 1073 8 1129 30" id="btn_excel" class="btn7" text="엑셀" onclick="grp_biz_grp_sea_btn_excel_onclick" anchor="default"/>
- <Button position="absolute 1131 8 1187 30" id="btn_prt" class="btn6" text="출력" onclick="grp_biz_grp_sea_btn_prt_onclick" anchor="default"/>
- <Button position="absolute 190 10 206 26" id="btn_reqdept" class="icon_search" text="" onclick="grp_biz_grp_sea_btn_reqdept_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="부서구분" position="absolute 5 58 80 74" id="caption8" class="tit_2" anchor="default"/>
- <Shape position="absolute 5 74 220 80" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="170"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="부서구분"/>
- <Cell col="2" text="caption1"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <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"/>
- <Cell col="2" text="bind:lnreqdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit position="absolute 525 50 625 70" id="ipt_csrreqdeptcd2" visible="false" anchor="default"/>
- <Tab position="absolute 226 53 1196 740" id="switch1" onchanged="grp_biz_switch1_onchanged" onlbuttondown="grp_biz_switch1_onlbuttondown" anchor="default">
- <Tabpages>
- <Tabpage text="정규" id="case1">
- <Layouts>
- <Layout>
- <Button position="absolute 777 3 830 22" id="button1" class="btn2" text="초기화" onclick="grp_biz_switch1_case1_button1_onclick" anchor="default"/>
- <Button position="absolute 833 3 875 22" id="btn_grdadd" class="btn2" text="추가" onclick="grp_biz_switch1_case1_btn_grdadd_onclick" anchor="default"/>
- <Button position="absolute 877 3 919 22" id="btn_grddel" class="btn5" text="삭제" onclick="grp_biz_switch1_case1_btn_grddel_onclick" anchor="default"/>
- <Button position="absolute 921 3 963 22" id="btn_save" class="btn5" text="저장" onclick="grp_biz_switch1_case1_btn_save_onclick" anchor="default"/>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="17"/>
- <Column size="60"/>
- <Column size="130"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="부서구분"/>
- <Cell col="2" text="요일구분"/>
- <Cell col="3" text="마감차수"/>
- <Cell col="4" text="마감시간"/>
- <Cell col="5" text="청구불가시간"/>
- <Cell col="6" colspan="3" text="청구가능시간"/>
- <Cell col="9" text="비고"/>
- <Cell col="10" text="수정자ID"/>
- <Cell col="11" text="수정자"/>
- <Cell col="12" text="수정일자"/>
- <Cell col="13" text="최초등록일자"/>
- <Cell col="14"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <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"/>
- <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"/>
- <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"/>
- <Cell col="4" displaytype="text" edittype="mask" style="align:center middle;" text="bind:clotm" mask="##:##" maskchar=" " editlimit="4" edittrimtype="both" editautoselect="true" editautoskip="true"/>
- <Cell col="5" displaytype="text" edittype="mask" style="align:center middle;" text="bind:reqimpostm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
- <Cell col="6" displaytype="text" edittype="mask" style="align:center middle;" text="bind:starttm" mask="##:##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
- <Cell col="7" style="align:center middle;" text="bind:bar"/>
- <Cell col="8" displaytype="text" edittype="mask" text="bind:endtm" mask="##:##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
- <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"/>
- <Cell col="10" style="align:center middle;" text="bind:lastupdtrid" enable="false"/>
- <Cell col="11" style="align:center middle;" text="bind:lastupdtrnm" enable="false"/>
- <Cell col="12" style="align:center middle;" text="bind:lastupdtdt" mask="expr:expr:utlf_isNull(lastupdtdt) ? '' : '####-##-##'" enable="false"/>
- <Cell col="13" style="align:center middle;" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-##'" enable="false"/>
- <Cell col="14" text="bind:erreqyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 24 967 30" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
- <Static text="청구 기준시간 등록" position="absolute 0 8 162 24" id="caption1" class="tit_2" anchor="default"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="응급" id="case2">
- <Layouts>
- <Layout>
- <Button position="absolute 777 3 830 22" id="button2" class="btn2" text="초기화" anchor="default" onclick="grp_biz_switch1_case2_button2_onclick"/>
- <Button position="absolute 833 3 875 22" id="button3" class="btn2" text="추가" anchor="default" onclick="grp_biz_switch1_case2_button3_onclick"/>
- <Button position="absolute 877 3 919 22" id="button4" class="btn5" text="삭제" onclick="grp_biz_switch1_case2_button4_onclick" anchor="default"/>
- <Button position="absolute 921 3 963 22" id="button5" class="btn5" text="저장" onclick="grp_biz_switch1_case2_button5_onclick" anchor="default"/>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="17"/>
- <Column size="60"/>
- <Column size="130"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="부서구분"/>
- <Cell col="2" text="요일구분"/>
- <Cell col="3" text="마감차수"/>
- <Cell col="4" text="마감시간"/>
- <Cell col="5" text="청구불가시간"/>
- <Cell col="6" colspan="3" text="청구가능시간"/>
- <Cell col="9" text="비고"/>
- <Cell col="10" text="수정자ID"/>
- <Cell col="11" text="수정자"/>
- <Cell col="12" text="수정일자"/>
- <Cell col="13" text="최초등록일자"/>
- <Cell col="14" text="instcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <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"/>
- <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"/>
- <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"/>
- <Cell col="4" displaytype="text" edittype="mask" style="align:center middle;" text="bind:clotm" mask="##:##" maskchar=" " editlimit="4" edittrimtype="both" editautoselect="true" editautoskip="true"/>
- <Cell col="5" displaytype="text" edittype="mask" style="align:center middle;" text="bind:reqimpostm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
- <Cell col="6" displaytype="text" edittype="mask" style="align:center middle;" text="bind:starttm" mask="##:##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
- <Cell col="7" style="align:center middle;" text="bind:bar"/>
- <Cell col="8" displaytype="text" edittype="mask" text="bind:endtm" mask="##:##:##" maskchar=" " edittrimtype="both" editautoselect="true" editautoskip="true"/>
- <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"/>
- <Cell col="10" edittype="none" style="align:center middle;" text="bind:lastupdtrid" enable="false"/>
- <Cell col="11" edittype="none" style="align:center middle;" text="bind:lastupdtrnm" enable="false"/>
- <Cell col="12" edittype="none" style="align:center middle;" text="bind:lastupdtdt" mask="expr:expr:utlf_isNull(lastupdtdt) ? '' : '####-##-##'" enable="false"/>
- <Cell col="13" edittype="none" style="align:center middle;" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-##'" enable="false"/>
- <Cell col="14" text="bind:erreqyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 24 967 30" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
- <Static text="응급청구 기준시간 등록" position="absolute 0 8 162 24" id="caption3" class="tit_2" anchor="default"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="부서관리" id="case3">
- <Layouts>
- <Layout>
- <Button position="absolute 777 3 830 22" id="button6" class="btn2" text="초기화" onclick="grp_biz_switch1_case3_button6_onclick" anchor="default"/>
- <Button position="absolute 833 3 875 22" id="button7" class="btn2" text="추가" onclick="grp_biz_switch1_case3_button7_onclick" anchor="default"/>
- <Button position="absolute 877 3 919 22" id="button8" class="btn5" text="삭제" anchor="default" onclick="grp_biz_switch1_case3_button8_onclick"/>
- <Button position="absolute 921 3 963 22" id="button9" class="btn5" text="저장" onclick="grp_biz_switch1_case3_button9_onclick" anchor="default"/>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="116"/>
- <Column size="135"/>
- <Column size="80"/>
- <Column size="150"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="110"/>
- <Column size="110"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="부서코드"/>
- <Cell col="2" text="부서명"/>
- <Cell col="3" text="부서구분"/>
- <Cell col="4" text="비고"/>
- <Cell col="5" text="수정자id"/>
- <Cell col="6" text="수정자명"/>
- <Cell col="7" text="수정일자"/>
- <Cell col="8" text="최초등록일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <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"/>
- <Cell col="2" displaytype="normal" edittype="none" style="align:left middle;" text="bind:deptnm"/>
- <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"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:cmt"/>
- <Cell col="5" style="align:left middle;" text="bind:lastupdtrid"/>
- <Cell col="6" style="align:left middle;" text="bind:lastupdtrnm"/>
- <Cell col="7" style="align:left middle;" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-##'"/>
- <Cell col="8" style="align:left middle;" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-##'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 24 967 30" linetype="horizontal" id="line4" class="line_10" anchor="default"/>
- <Static text="린넨시간관리 부서등록" position="absolute 0 8 162 24" id="caption4" class="tit_2" anchor="default"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button position="absolute 92 54 134 73" id="button13" class="btn2" text="추가" onclick="grp_biz_button13_onclick" anchor="default"/>
- <Button position="absolute 136 54 178 73" id="button14" class="btn5" text="삭제" onclick="grp_biz_button14_onclick" anchor="default"/>
- <Button position="absolute 180 54 222 73" id="button15" class="btn5" text="저장" onclick="grp_biz_button15_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <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">
- <ColumnInfo>
- <Column id="csrreqdeptcd" type="STRING" size="256"/>
- <Column id="daykind" type="STRING" size="256"/>
- <Column id="reqseq" type="STRING" size="256"/>
- <Column id="clotm" type="STRING" size="256"/>
- <Column id="reqimpostm" type="STRING" size="256"/>
- <Column id="reqposfromtm" type="STRING" size="256"/>
- <Column id="bar" type="STRING" size="256"/>
- <Column id="reqpostotm" type="STRING" size="256"/>
- <Column id="cmt" type="STRING" size="256"/>
- <Column id="dinfaplyn" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="csrreqdeptnm" type="STRING" size="256"/>
- <Column id="daykindnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="csrreqdeptcd"/>
- <Col id="daykind"/>
- <Col id="reqseq"/>
- <Col id="clotm"/>
- <Col id="reqimpostm"/>
- <Col id="reqposfromtm"/>
- <Col id="bar"/>
- <Col id="reqpostotm"/>
- <Col id="cmt"/>
- <Col id="dinfaplyn"/>
- <Col id="lastupdtrid"/>
- <Col id="usernm"/>
- <Col id="lastupdtdt"/>
- <Col id="fstrgstdt"/>
- <Col id="instcd"/>
- <Col id="csrreqdeptnm"/>
- <Col id="daykindnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_lnreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lnreqdeptnm" type="STRING" size="256"/>
- <Column id="lnreqdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_csrdeptnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="csrdeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_lntmdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="csrtmlist" type="STRING" size="256"/>
- <Column id="daykind" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="csrreqdeptcd2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="csrtmlist"/>
- <Col id="daykind"/>
- <Col id="deptcd"/>
- <Col id="deptnm"/>
- <Col id="csrreqdeptcd2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_csrdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">병동</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">OR</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">ER</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">기타</Col>
- <Col id="value">5</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="daykind" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_common_instcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_report_grd_lntmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata1_lntmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_daykind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">평일</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">휴일</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">토요일</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">일요일</Col>
- <Col id="value">4</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata2_lntmdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata_lnreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_daykind2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">평일</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">휴일</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">토요일</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">일요일</Col>
- <Col id="value">4</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_copynode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.rdo_daykind" propid="value" datasetid="ds_init" columnid="daykind"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.ipt_reqdeptnm" propid="value" datasetid="ds_send" columnid="deptnm"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.ipt_reqdeptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
- <BindItem id="item3" compid="grp_biz.ipt_csrreqdeptcd2" propid="value" datasetid="ds_send" columnid="csrreqdeptcd2"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- function SMMNG00501_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNG00501_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grp_biz.grd_lnreqdeptlist,0);
- grdf_setRowTypeIcon(grp_biz.switch1.case2.grd_erlntmlist,0);
- grdf_setRowTypeIcon(grp_biz.switch1.case3.grd_lntmdeptlist,0);
- grdf_setRowTypeIcon(grp_biz.switch1.case1.grd_lntmlist,0);
-
- fInitialize();
- }
- var searchFlag = "0";
- var curDept = -1;
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- ds_main_lntmlist.clearData();
- ds_send.clearData();
-
- misfGridInit(grp_biz.switch1.case1.grd_lntmlist);
- misfGridInit(grp_biz.grd_lnreqdeptlist);
-
- grp_biz.switch1.tabindex = 0;
-
- //button10.dispatch("DOMActivate");
- ds_main_lntmlist.clearData();
- dsf_makeValue(ds_send,"erreqyn","string", "N");
-
- ds_init.setColumn(0, "daykind", "");
- fSearch();
-
- ds_send_reqData.clearData();
- grp_biz.grp_sea.btn_prt.enable = false;
-
- getLnReqDeptList();
-
- }
- function getLnReqDeptList() {
- dsf_makeValue(ds_send_reqData,"cdgrupid","string", "R0269");
- dsf_makeValue(ds_send_reqData,"cdid","string", "%");
- dsf_makeValue(ds_send_reqData,"cdnm","string", "%");
- var oParam = {};
- oParam.id = "TRMNG00408";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetLnReqDeptList";
- oParam.inds = "";
- oParam.outds = "ds_main_lnreqdeptlist=lnreqdeptlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_lnreqdeptlist.rowposition = -1;
-
- ds_main_lntmlist.clearData();
- }
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- getLnReqDeptList();
- if( utlf_isNull(grp_biz.grp_sea.ipt_reqdeptcd.value) || curDept != -1) {
- ds_main_lnreqdeptlist.rowposition = curDept;
- fSearch();
- }
- }
- function fSearch(){
-
- var iRow = ds_main_lnreqdeptlist.rowposition;
- var iCol = grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd");
- ds_send.addColumn("erreqyn", "string");
- var erreqyn = ds_send.getColumn(0, "erreqyn");
-
- dsf_makeValue(ds_send,"daykind" ,"string",grp_biz.grp_sea.rdo_daykind.value);
- dsf_makeValue(ds_send,"lnreqdeptcd" ,"string",grp_biz.grd_lnreqdeptlist.getCellValue(iRow, iCol));
-
- if ( erreqyn == "A" ) {
- var oParam = {};
- oParam.id = "TRMNG00505";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetTmDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_lntmdeptlist=lntmdeptlist";
- oParam.async = false;
- tranf_submit(oParam);
- } else {
- var oParam = {};
- oParam.id = "TRMNG00504";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetLnTmList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_lntmlist=lntmlist";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- ds_main_lntmlist.updatecontrol = false;
- ds_main_lntmlist.enableevent = false;
- dsf_setFixVal(ds_main_lntmlist, "bar:~");
- ds_main_lntmlist.enableevent = true;
- ds_main_lntmlist.updatecontrol = true;
- }
-
- //misfSetReadOnlyCol(grd_lntmlist, "lnreqdeptcd,daykind, reqseq", true);
- }
- function grp_biz_grp_sea_rdo_daykind_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- //if(!frmf_isRequiredControls("cmb_instcd")) return;
- //getCsrDeptList();
- fSearch();
- }
- function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "deptnm"){
- misfValidationCheck("02", "", "deptcd,deptnm");
- }
- }
- function grp_biz_grp_sea_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {/*1.0 오류..
- var fileName = window.fileDialog("save", ",", false, "CSR마감시간등록", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_csrtmlist.saveExcel(fileName, "청구현황List");
- }
- */
- }
- function grp_biz_grp_sea_btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrintRex();
- }
- function fPrintRex() {
- /*1.0출력 비활성화
- model.makeNode("/root/send/report/grd_lntmlist");
-
- copyNodesetType("/root/send/report/grd_lntmlist", "/root/main/grd_lntmlist");
-
- exeReportPreview("RPMNG00500", "XMLSTR", "/root/send/report/grd_lntmlist");
- */
- }
- function grp_biz_grp_sea_btn_reqdept_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPMNG00300","SPMNG00300","", "", "", "", "", "", "", "", "", "", "M");
-
- ds_send.updatecontrol = false;
- ds_send.enableevent = false;
-
- ds_send.setColumn(0, "deptcd", sysf_getModelProperty("deptcd"));
- ds_send.setColumn(0, "deptnm", sysf_getModelProperty("deptnm"));
- ds_send.setColumn(0, "csrreqdeptcd2", sysf_getModelProperty("csrreqdeptcd"));
- ds_send.enableevent = true;
- ds_send.updatecontrol = true;
-
-
- for(var i = 0; i < ds_main_lnreqdeptlist.rowcount; i++) {
-
- if( grp_biz.grd_lnreqdeptlist.getCellValue(i, grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd")) == grp_biz.ipt_csrreqdeptcd2.value ){
- ds_main_lnreqdeptlist.rowposition = i;
- fSearch();
- curDept = ds_main_lnreqdeptlist.rowposition;
- break;
- }
- }
- }
- function grp_biz_grd_lnreqdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1 && e.col > -1){
- fSearch();
- curDept = ds_main_lnreqdeptlist.rowposition;
- }
- }
- function grp_biz_switch1_case1_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function grp_biz_switch1_case1_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grp_biz.switch1.case1.grd_lntmlist, "A");
- var cur_row = ds_main_lntmlist.rowposition;
-
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- ds_main_lntmlist.updatecontrol = false;
- ds_main_lntmlist.enableevent = false;
- ds_main_lntmlist.setColumn(cur_row, "bar", "~");
- ds_main_lntmlist.setColumn(cur_row, "lnreqdeptcd", grp_biz.grd_lnreqdeptlist.getCellValue(ds_main_lnreqdeptlist.rowposition, grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd")));
- ds_main_lntmlist.setColumn(cur_row, "reqimpostm", "0000");
- ds_main_lntmlist.setColumn(cur_row, "erreqyn", "N");
- ds_main_lntmlist.enableevent = true;
- ds_main_lntmlist.updatecontrol = true;
-
- //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
- //grd_lntmlist.editCell();
- }
- function grp_biz_switch1_case2_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_lntmlist.rowposition > -1 ){
-
- var firstRow = grp_biz.switch1.case2.grd_erlntmlist.selectstartrow[0];
- var lastRow = grp_biz.switch1.case2.grd_erlntmlist.selectendrow[grp_biz.switch1.case2.grd_erlntmlist.selectcount-1];
-
- for( var i=firstRow ; i<=lastRow ; i++ ){
- if( ds_main_lntmlist.getRowType(i) == 2 ){
- ds_main_lntmlist.deleteRow(i);
- } else {
- ds_main_lntmlist.enableevent = false;
- ds_main_lntmlist.updatecontrol = false;
-
- ds_main_lntmlist.setRowType(i, 8);
-
- ds_main_lntmlist.updatecontrol = true;
- ds_main_lntmlist.enableevent = true;
- }
- }
- }
- }
- function grp_biz_switch1_case2_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- }
- function fSave(){
-
- var erreqyn = ds_send.getColumn(0, "erreqyn");
-
- if ( erreqyn == "N" ) {
- var updtdata = grdf_getGridUpdateData(grp_biz.switch1.case1.grd_lntmlist);
- grdf_setStatusColumn(updtdata, "status");
-
- } else if ( erreqyn == "Y") {
- var updtdata = grdf_getGridUpdateData(grp_biz.switch1.case2.grd_erlntmlist);
- grdf_setStatusColumn(updtdata, "status");
- }
-
- if (updtdata.rowcount < 1)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- rtn = sysf_messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- dsf_createDs("ds_send_reqdata1_lntmlist");
- ds_send_reqdata1_lntmlist.copyData(updtdata, true);
-
- var oParam = {};
- oParam.id = "TXMNG00503";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeSaveLnTmList";
- oParam.inds = "req=ds_send_reqdata1_lntmlist";
- oParam.outds = "";
- oParam.async = false;
-
- tranf_submit(oParam);
- frmf_inputEnterKey("grp_biz.grp_sea.btn_search", "onclick", new ClickEventInfo);
- }
- function ds_main_lntmlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(grp_biz.switch1.tabindex ==0){
- if(ds_main_lntmlist.rowcount > 0 && (e.columnid == "clotm" || e.columnid == "reqimpostm") ) {
- fChngReqPosTm(grp_biz.switch1.case1.grd_lntmlist);
- }
- fCheckTime(e.row, e.col, obj, e.columnid);
- }
-
- if(grp_biz.switch1.tabindex ==1){
- if(ds_main_lntmlist.rowcount > 0 && (e.columnid == "clotm" || e.columnid == "reqimpostm") ) {
- fChngReqPosTm(grp_biz.switch1.case2.grd_erlntmlist);
- }
- fCheckTime(e.row, e.col, obj, e.columnid);
- }
- }
- function fChngReqPosTm(grid) {
- var tempClotm;
- var tempReqImposTm;
-
- var clotm;
-
- var stdCnt = 0 //평일
- var spclCnt = 0; //휴일
- var spclCnt2 = 0; //토요일
- var spclCnt3 = 0; //일요일
- var daykind;
- var gbinds = eval(grid.binddataset);
-
- stdCnt = parseInt(stdCnt);
- spclCnt = parseInt(spclCnt);
- spclCnt2 = parseInt(spclCnt2);
- spclCnt3 = parseInt(spclCnt3);
-
- for(var i = 0; i < gbinds.rowcount; i++) {
- daykind = grid.getCellValue(i, grid.getBindCellIndex("body","daykind"));
-
- switch(daykind) {
- case '1' :
- stdCnt++;
- break;
- case '2' :
- spclCnt++;
- break;
- case '3' :
- spclCnt2++;
- break;
- case '4' :
- spclCnt3++;
- break;
- }
- }
- gbinds.enableevent = false;
- gbinds.updatecontrol = false;
- for(var i = 1; i <= parseInt(stdCnt + spclCnt + spclCnt2 + spclCnt3); i++) {
- tempClotm = utlf_transNullToEmpty(grid.getCellValue(i-1, grid.getBindCellIndex("body","clotm")));
-
- tmpReqImposTm = utlf_transNullToEmpty(grid.getCellValue(i-1, grid.getBindCellIndex("body","reqimpostm")));
- //평일에 등록된 수량중 마지막일때
- if(i == stdCnt) {
- gbinds.setColumn(0, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
- clotm = utlf_transNullToEmpty(grid.getCellValue(0, grp_biz.switch1.case1.grd_lntmlist.getBindCellIndex("body","clotm")));
- gbinds.setColumn(0, "endtm", subTm(clotm) + "59");
- } else if (i < stdCnt) { //평일에 등록된 수량일때
- gbinds.setColumn(i, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
- clotm = utlf_transNullToEmpty(grid.getCellValue(i, grid.getBindCellIndex("body","clotm")));
- gbinds.setColumn(i, "endtm", subTm(clotm) + "59" );
- } else if(i == parseInt(stdCnt + spclCnt)) { //휴일에 등록된 수량중 마지막일때
- gbinds.setColumn(stdCnt, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
- clotm = utlf_transNullToEmpty(grid.getCellValue(stdCnt, grid.getBindCellIndex("body","clotm")));
- gbinds.setColumn(stdCnt, "endtm", subTm(clotm) + "59");
-
- } else if(i > stdCnt && i < parseInt(stdCnt + spclCnt)) { //휴일에 등록된 수량일때
- gbinds.setColumn(i, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
- clotm = utlf_transNullToEmpty(grid.getCellValue(i, grid.getBindCellIndex("body","clotm")));
- gbinds.setColumn(i, "endtm", subTm(clotm) + "59");
- } else if(i == parseInt(stdCnt + spclCnt + spclCnt2)) { //토요일에 등록된 수량중 마지막일때.
- gbinds.setColumn(parseInt(stdCnt + spclCnt), "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
- clotm = utlf_transNullToEmpty(grid.getCellValue(parseInt(stdCnt + spclCnt), grid.getBindCellIndex("body","clotm")));
- gbinds.setColumn(parseInt(stdCnt + spclCnt), "endtm", subTm(clotm) + "59");
- } else if(i > parseInt(stdCnt + spclCnt) && i < parseInt(stdCnt + spclCnt + spclCnt2)) { //토요일에 등록된 수량일때.
- gbinds.setColumn(i, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
- clotm = utlf_transNullToEmpty(grid.getCellValue(i, grid.getBindCellIndex("body","clotm")));
- gbinds.setColumn(i, "endtm", subTm(clotm) + "59");
- } else if(i == parseInt(stdCnt + spclCnt + spclCnt2 + spclCnt3)) { //일요일에 등록된 수량중 마지막일때.
- gbinds.setColumn(parseInt(stdCnt + spclCnt + spclCnt2), "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
- clotm = utlf_transNullToEmpty(grid.getCellValue(parseInt(stdCnt + spclCnt + spclCnt2), grid.getBindCellIndex("body","clotm")));
- gbinds.setColumn(parseInt(stdCnt + spclCnt + spclCnt2), "endtm", subTm(clotm) + "59");
- } else if(i > parseInt(stdCnt + spclCnt + spclCnt2) && i < parseInt(stdCnt + spclCnt + spclCnt2 + spclCnt3)) { //일요일에 등록된 수량일때.
- gbinds.setColumn(i, "starttm", addTm(tempClotm, tmpReqImposTm) + "01" );
- clotm = utlf_transNullToEmpty(grid.getCellValue(i, grid.getBindCellIndex("body","clotm")));
- gbinds.setColumn(i, "endtm", subTm(clotm) + "59");
- }
- }
- gbinds.updatecontrol = true;
- gbinds.enableevent = true;
-
- }
- function addTm(fstTm, lastTm) {
- var fstHour = fstTm.substr(0,2);
- var fstTm = fstTm.substr(2,2);
- var lastHour = lastTm.substr(0,2);
- var lastTm = lastTm.substr(2,2);
-
- var sumHour = (Number(fstHour) + Number(lastHour));
- var sumTm = Number(fstTm) + Number(lastTm);
-
- var hour;
- var tm;
-
- if(sumTm >= 60) {
-
- sumHour += 1;
- sumTm %= 60;
- }
-
- if(sumHour >= 24) {
- sumHour %= 24;
-
- }
-
- if(sumHour < 10) {
- hour = "0" + sumHour;
- } else {
- hour = String(sumHour);
- }
-
-
- if(sumTm < 10) {
- tm = "0" + sumTm;
- } else {
- tm = String(sumTm);
- }
-
- return hour + tm;
- }
- function subTm(clotm) {
- var cloHour = clotm.substr(0,2);
- var cloTm = clotm.substr(2,2);
-
- var sumHour = Number(cloHour);
- var sumTm = Number(cloTm) - 1;
-
- var hr;
- var tm;
-
- if(sumTm == -1) {
- sumTm = 59;
- sumHour -= 1;
- }
-
- if(sumHour == -1) {
- sumHour = 23;
- }
-
- if(sumHour < 10) {
- hr= "0" + sumHour;
- } else {
- hr = String(sumHour);
- }
-
- if(sumTm < 10) {
- tm = "0" + sumTm;
- } else {
- tm = String(sumTm);
- }
-
- return hr + tm;
- }
- function grp_biz_switch1_case3_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function grp_biz_switch1_case3_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- //if(!frmf_isRequiredControls("cmb_instcd")) return;
-
- misfGridIUD(grp_biz.switch1.case3.grd_lntmdeptlist, "A");
- var cur_row = ds_main_lntmdeptlist.rowposition;
-
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- ds_main_lntmdeptlist.setColumn(cur_row, "lnreqdeptcd", grp_biz.grd_lnreqdeptlist.getCellValue(ds_main_lnreqdeptlist.rowposition, grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd")));
-
-
- //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
- //grd_lntmdeptlist.editCell();
- }
- function grp_biz_switch1_case3_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- fSavedept();
- }
- function fSavedept(){
-
- var erreqyn = ds_send.getColumn(0, "erreqyn");
-
- var updtdata = grdf_getGridUpdateData(grp_biz.switch1.case3.grd_lntmdeptlist);
-
- grdf_setStatusColumn(updtdata, "status");
-
- if (updtdata.rowcount < 1)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- rtn = sysf_messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- dsf_createDs("ds_send_reqdata2_lntmdeptlist");
- ds_send_reqdata2_lntmdeptlist.copyData(updtdata, true);
-
- var oParam = {};
- oParam.id = "TXMNG00504";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeSaveLnTmDeptInfo";
- oParam.inds = "req=ds_send_reqdata2_lntmdeptlist";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
-
- frmf_inputEnterKey("grp_biz.grp_sea.btn_search", "onclick", new ClickEventInfo);
- }
- function grp_biz_switch1_case3_grd_lntmdeptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- frmf_clearParameter("SPMNG00403_");
-
- if (e.col == grp_biz.switch1.case3.grd_lntmdeptlist.getBindCellIndex("body","deptcd")) {//부서코드 버튼을 눌렀을 때
- ds_copynode.clearData();
- rszfOpenPopUpListByWndName(grp_biz.switch1.case3.grd_lntmdeptlist,"","deptcd,deptnm","SPMNG00403","","", "Y");
-
- var CSV = frmf_getParameter("SPMNG00403_");
- dsf_setCSVToDs("ds_copynode", CSV);
- fSettingGoodList("ds_copynode");
- }
- }
- function grp_biz_switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- if(grp_biz.switch1.tabindex == 0){
- ds_main_lntmlist.clearData();
- dsf_makeValue(ds_send,"erreqyn","string", "N");
- fSearch();
- }
- if(grp_biz.switch1.tabindex == 1){
- ds_main_lntmlist.clearData();
- dsf_makeValue(ds_send,"erreqyn","string", "Y");
- fSearch();
- }
- if(grp_biz.switch1.tabindex == 2){
- dsf_makeValue(ds_send,"erreqyn","string", "A");
- fSearch();
- }
- }
- function grp_biz_switch1_onlbuttondown(obj:Tab, e:TabMouseEventInfo)
- {
- if(e.fromreferenceobject.name == "switch1"){
- var sIdx = obj.getIndex(e.clientX, e.canvasY);
- if( sIdx != -1){
- if( e.index == sIdx ){
- obj.tabindex = sIdx;
- frmf_inputEnterKey("grp_biz.switch1", "onchanged", new TabIndexChangeEventInfo);
- }
- }
- }
- }
- function grp_biz_button13_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_lnreqdeptlist.addRow();
- }
- function grp_biz_button14_onclick(obj:Button, e:ClickEventInfo)
- {
- if(( ds_main_lnreqdeptlist.getRowType(ds_main_lnreqdeptlist.rowposition) =="2" )){
- ds_main_lnreqdeptlist.deleteRow(ds_main_lnreqdeptlist.rowposition);
- } else {
- var btn = sysf_messageBox("부서구분 삭제시 부서구분에 속한 부서목록 및 청구 기준시간도 같이 삭제됩니다. 진행하시겠습니까?", "Q");
- if (btn == "6") {
- ds_main_lnreqdeptlist.enableevent = false;
- ds_main_lnreqdeptlist.updatecontrol = false;
- ds_main_lnreqdeptlist.setRowType(ds_main_lnreqdeptlist.rowposition, 8);
- ds_main_lnreqdeptlist.updatecontrol = true;
- ds_main_lnreqdeptlist.enableevent = true;
-
- var updtdata = grdf_getGridUpdateData(grp_biz.grd_lnreqdeptlist);
- grdf_setStatusColumn(updtdata, "status");
- dsf_createDs("ds_send_reqdata_lnreqdeptlist");
- ds_send_reqdata_lnreqdeptlist.copyData(updtdata, true);
- var oParam = {};
- oParam.id = "TXMNG00502";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeSaveLnReqDeptList";
- oParam.inds = "req=ds_send_reqdata_lnreqdeptlist";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- }
- function grp_biz_button15_onclick(obj:Button, e:ClickEventInfo)
- {
- var btn = sysf_messageBox("저장하시겠습니까?", "Q");
- if (btn = "6") {
- var updtdata = grdf_getGridUpdateData(grp_biz.grd_lnreqdeptlist);
- grdf_setStatusColumn(updtdata, "status");
- dsf_createDs("ds_send_reqdata_lnreqdeptlist");
- ds_send_reqdata_lnreqdeptlist.copyData(updtdata, true);
- var oParam = {};
- oParam.id = "TXMNG00502";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqExeSaveLnReqDeptList";
- oParam.inds = "req=ds_send_reqdata_lnreqdeptlist";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- function grp_biz_switch1_case1_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_lntmlist.rowposition > -1 ){
-
- var firstRow = grp_biz.switch1.case1.grd_lntmlist.selectstartrow[0];
- var lastRow = grp_biz.switch1.case1.grd_lntmlist.selectendrow[grp_biz.switch1.case1.grd_lntmlist.selectcount-1];
-
- for( var i=firstRow ; i<=lastRow ; i++ ){
- if( ds_main_lntmlist.getRowType(i) == 2 ){
- ds_main_lntmlist.deleteRow(i);
- } else {
- ds_main_lntmlist.enableevent = false;
- ds_main_lntmlist.updatecontrol = false;
-
- ds_main_lntmlist.setRowType(i, 8);
-
- ds_main_lntmlist.updatecontrol = true;
- ds_main_lntmlist.enableevent = true;
- }
- }
- }
- }
- function grp_biz_switch1_case1_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- }
- function grp_biz_switch1_case2_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grp_biz.switch1.case2.grd_erlntmlist, "A");
- var cur_row = ds_main_lntmlist.rowposition;
-
- ds_main_lntmlist.updatecontrol = false;
- ds_main_lntmlist.enableevent = false;
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- ds_main_lntmlist.setColumn(cur_row, "bar", "~");
- ds_main_lntmlist.setColumn(cur_row, "lnreqdeptcd", grp_biz.grd_lnreqdeptlist.getCellValue(ds_main_lnreqdeptlist.rowposition, grp_biz.grd_lnreqdeptlist.getBindCellIndex("body","lnreqdeptcd")));
- ds_main_lntmlist.setColumn(cur_row, "reqimpostm", "0000");
- ds_main_lntmlist.setColumn(cur_row, "erreqyn", "Y");
- ds_main_lntmlist.setColumn(cur_row, "reqseq", "응급");
- ds_main_lntmlist.enableevent = true;
- ds_main_lntmlist.updatecontrol = true;
-
- //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
- //grd_erlntmlist.editCell()
- }
- function fSettingGoodList(pnode) {
-
- var codynode = ds_copynode.rowcount;
- var addRow = ds_main_lntmdeptlist.rowcount - 1;
- for (var j = 0; j < codynode; j++)
- {
- if(addRow > ds_main_lntmdeptlist.rowcount - 1)
- {
- misfGridIUD(grp_biz.switch1.case3.grd_lntmdeptlist,"A");
- addRow = ds_main_lntmdeptlist.rowcount - 1;
- }
-
- ds_main_lntmdeptlist.updatecontrol = false;
- ds_main_lntmdeptlist.enableevent = false;
-
- ds_main_lntmdeptlist.setColumn(addRow, "deptcd" , ds_copynode.getColumn(j, "deptcd"));
- ds_main_lntmdeptlist.setColumn(addRow, "deptnm" , ds_copynode.getColumn(j, "deptnm"));
- ds_main_lntmdeptlist.setColumn(addRow, "lnreqdeptcd" , ds_send.getColumn(0, "lnreqdeptcd"));
- grp_biz.switch1.case3.grd_lntmdeptlist.showEditor(false);
- ds_main_lntmdeptlist.enableevent = true;
- ds_main_lntmdeptlist.updatecontrol = true;
-
- addRow = addRow + 1;
- }
- grp_biz.switch1.case3.grd_lntmdeptlist.setCellProperty("Body", grp_biz.switch1.case3.grd_lntmdeptlist.getBindCellIndex("body","deptcd"), "edittype", "none");
- //grd_lntmdeptlist.colDisabled(grd_lntmdeptlist.colRef("deptcd")) = true;
- }
- function grp_biz_switch1_case3_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_lntmdeptlist.rowposition > -1 ){
-
- var firstRow = grp_biz.switch1.case3.grd_lntmdeptlist.selectstartrow[0];
- var lastRow = grp_biz.switch1.case3.grd_lntmdeptlist.selectendrow[grp_biz.switch1.case3.grd_lntmdeptlist.selectcount-1];
-
- for( var i=firstRow ; i<=lastRow ; i++ ){
- if( ds_main_lntmdeptlist.getRowType(i) == 2 ){
- ds_main_lntmdeptlist.deleteRow(i);
- } else {
- ds_main_lntmdeptlist.enableevent = false;
- ds_main_lntmdeptlist.updatecontrol = false;
-
- ds_main_lntmdeptlist.setRowType(i, 8);
-
- ds_main_lntmdeptlist.updatecontrol = true;
- ds_main_lntmdeptlist.enableevent = true;
- }
- }
- }
- }
- function grp_biz_switch1_case1_grd_lntmlist_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
- {
- if( e.col == 4 || e.col == 5 || e.col == 6 || e.col == 8 ){
- grdf_validGridTime(obj, e);
- }
- }
- function grp_biz_switch1_case2_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function fCheckTime(row, col, obj, columnid)
- {
- if(columnid == "clotm")
- {
- var sTime = utlf_transNullToEmpty(obj.getColumn(row, "clotm"));
-
- if( utlf_isNull(sTime) )
- {
- return;
- }
- if(sTime.length != 4)
- {
- sysf_messageBox("네자리를 ","C001");
- obj.setColumn(row, "clotm", "");
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if(parseInt(sFrontTime) > 24)
- {
- sysf_messageBox("24시를 ","E001");
- obj.setColumn(row, "clotm", "");
- return;
- }
-
- if(parseInt(sBackTime) > 59)
- {
- sysf_messageBox("59분을 ","E001");
- obj.setColumn(row, "clotm", "");
- return;
- }
- }
- }]]></Script>
- </Form>
- </FDL>
|