123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRFE02200" position="absolute 0 0 1200 782" titletext="재물조사(비품답사)" oninit="SMRFE02200_oninit" onload="SMRFE02200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="재물조사(비품답사)" class="tit_1" position="absolute 0 0 230 25"/>
- <Shape id="line7" class="line_6" position="absolute 0 52 1195 58" anchor="left top right"/>
- <Button id="btn_init" taborder="1" text="초기화" class="btn4" position="absolute 1126 31 1194 53" anchor="top right" onclick="btn_init_onclick"/>
- <Shape id="line1" class="line_10" position="absolute 0 148 1195 154" anchor="left top right"/>
- <Static id="caption21" text="비품 답사(의료 장비)" class="tit_2" position="absolute 0 132 167 153"/>
- <Grid id="grd_fixtrscnfmlist" taborder="2" binddataset="ds_main_list_fixtrscnfminfo_fixtrscnfmlist" useinputpanel="false" position="absolute 0 153 1194 505" autoenter="select" cellsizingtype="col" anchor="all" oncellclick="grd_fixtrscnfmlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21" band="left"/>
- <Column size="45"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="49"/>
- <Column size="0"/>
- <Column size="69"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="98"/>
- <Column size="192"/>
- <Column size="88"/>
- <Column size="80"/>
- <Column size="94"/>
- <Column size="119"/>
- <Column size="69"/>
- <Column size="100"/>
- <Column size="149"/>
- <Column size="46"/>
- <Column size="166"/>
- </Columns>
- <Rows>
- <Row size="24" 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" text="물품구분"/>
- <Cell col="7" text="기관코드"/>
- <Cell col="8" text="사용부서코드"/>
- <Cell col="9" text="자산코드"/>
- <Cell col="10" text="장비명"/>
- <Cell col="11" text="모델명"/>
- <Cell col="12" text="구입일자"/>
- <Cell col="13" text="거래처"/>
- <Cell col="14" text="제조원"/>
- <Cell col="15" text="실사결과"/>
- <Cell col="16" text="현보유부서코드"/>
- <Cell col="17" text="현보유부서명"/>
- <Cell col="18" text="이동"/>
- <Cell col="19" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? 1 : 0"/>
- <Cell col="2" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:inptflag"/>
- <Cell col="3" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:seqno"/>
- <Cell col="4" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:rowno"/>
- <Cell col="5" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:execyy"/>
- <Cell col="6" displaytype="combo" edittype="combo" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:goodflag" combodataset="ds_cmb_goodflag" combocodecol="value" combodatacol="label"/>
- <Cell col="7" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:instcd"/>
- <Cell col="8" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:usedeptcd"/>
- <Cell col="9" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:fixasetcd"/>
- <Cell col="10" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:goodflagengnm"/>
- <Cell col="11" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:goodmodel"/>
- <Cell col="12" displaytype="date" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:possndd" mask="yyyy/MM/dd" calendardisplaynulltype="nulltext"/>
- <Cell col="13" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:suplplcenm"/>
- <Cell col="14" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:prodcmpynm"/>
- <Cell col="15" displaytype="checkbox" edittype="checkbox" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:orginsprst" expr="expr:orginsprst == 'Y' || orginsprst == '1' ? 1 : 0"/>
- <Cell col="16" displaytype="text" edittype="text" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:possndeptcd" expandshow="show"/>
- <Cell col="17" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:possndeptnm"/>
- <Cell col="18" displaytype="checkbox" edittype="checkbox" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:mvflag" expr="expr:mvflag == 'Y' || mvflag == '1' ? 1 : 0"/>
- <Cell col="19" displaytype="text" edittype="text" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:cmt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="바코드 물품 정보" class="tit_2" position="absolute 0 525 143 547" anchor="left bottom"/>
- <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 541 1195 547" anchor="left right bottom"/>
- <Button id="button2" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 522 1195 541" anchor="right bottom" onclick="button2_onclick"/>
- <Button id="btn_deptmove" taborder="4" text="부서 이동 실시" class="btn2" position="absolute 1098 129 1195 148" anchor="top right" onclick="btn_deptmove_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="5" class="div_SA2" position="absolute 0 56 1195 116">
- <Layouts>
- <Layout width="1195" height="63">
- <Shape id="line30" linetype="vertical" class="line_4" position="absolute 1109 6 1115 52" anchor="top right"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1125 19 1181 41" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Combo id="cmb_instcd" taborder="2" innerdataset="ds_init_cmb_instcd" codecolumn="cnstcd" datacolumn="cnstnm" class="combo_default" position="absolute 125 7 295 26"/>
- <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 30 7 116 24"/>
- <Combo id="cmb_goodflag" taborder="3" innerdataset="ds_init_cmb_goodflag" codecolumn="value" datacolumn="label" class="combo_default" position="absolute 125 34 295 53"/>
- <Static id="cap_goodflag" text="물품구분 :" class="search_name" position="absolute 30 33 116 50"/>
- <Static id="cap_usedeptcd" text="사용부서 :" class="search_name" position="absolute 500 8 589 25"/>
- <Edit id="ipt_usedeptnm" taborder="4" class="input_search" position="absolute 758 7 990 26" autoselect="true" autoskip="true" style="align:center middle;"/>
- <Button id="btn_deptcd" taborder="5" class="icon_search" position="absolute 735 10 751 26" onclick="grp_sea_btn_deptcd_onclick"/>
- <Edit id="ipt_usedeptcd" taborder="6" class="input_search" position="absolute 595 7 730 26" autoselect="true" autoskip="true" style="align:center middle;" onkeydown="grp_sea_ipt_usedeptcd_onkeydown"/>
- <Button id="btn_fixasetcd" taborder="7" class="icon_search" position="absolute 735 35 751 51" onclick="grp_sea_btn_fixasetcd_onclick"/>
- <Edit id="ipt_fixasetnm" taborder="8" class="input_search" position="absolute 759 33 991 52" autoselect="true" autoskip="true" style="align:center middle;"/>
- <Edit id="ipt_fixasetcd" taborder="9" class="input_search" position="absolute 595 34 730 53" autoselect="true" autoskip="true" style="align:center middle;" onkeydown="grp_sea_ipt_fixasetcd_onkeydown"/>
- <Static id="cap_fixasetcd" text="자산코드 :" class="search_name" position="absolute 500 34 589 51"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excel" taborder="6" text="저장" class="btn2" position="absolute 1048 129 1090 148" anchor="top right" onclick="btn_excel_onclick"/>
- <Edit id="ipt_fixasetcd_barcd" taborder="7" position="absolute 135 522 255 541" autoselect="true" autoskip="true" anchor="left bottom"/>
- <Button id="btn_input" taborder="8" text="입력" class="btn2" position="absolute 260 522 302 541" onclick="btn_input_onclick" anchor="left bottom"/>
- <Button id="btn_exec" taborder="9" text="실사 적용" class="btn2" position="absolute 1039 522 1114 541" anchor="right bottom" onclick="btn_exec_onclick"/>
- <Button id="btn_del" taborder="10" text="삭제" class="btn2" position="absolute 305 522 347 541" onclick="btn_del_onclick" anchor="left bottom"/>
- <Button id="btn_fixasetcd_barcd" taborder="11" text="자산코드 조회" class="btn2" position="absolute 350 522 452 541" onclick="btn_fixasetcd_barcd_onclick" anchor="left bottom"/>
- <Grid id="grd_bcfixtrsinfo" taborder="12" binddataset="ds_main_list_bcfixtrsinfo_bcfixtrslist" useinputpanel="false" position="absolute 0 546 1194 776" autoenter="select" autofittype="col" cellsizingtype="col" anchor="left right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23" band="left"/>
- <Column size="40"/>
- <Column size="51"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="241"/>
- <Column size="120"/>
- <Column size="110"/>
- <Column size="164"/>
- <Column size="83"/>
- </Columns>
- <Rows>
- <Row size="24" 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" text="실사결과"/>
- <Cell col="7" text="현보유 부서코드"/>
- <Cell col="8" text="이동"/>
- <Cell col="9" text="부서 코드"/>
- <Cell col="10" text="부서명"/>
- <Cell col="11" text="장비코드"/>
- <Cell col="12" text="장비명"/>
- <Cell col="13" text="모델"/>
- <Cell col="14" text="구입일자"/>
- <Cell col="15" text="거래처"/>
- <Cell col="16" text="제조원"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? 1 : 0"/>
- <Cell col="2" displaytype="date" text="bind:rowno" calendardisplaynulltype="nulltext"/>
- <Cell col="3" text="bind:execyy"/>
- <Cell col="4" text="bind:instcd"/>
- <Cell col="5" text="bind:goodflag"/>
- <Cell col="6" text="bind:orginsprst"/>
- <Cell col="7" text="bind:possndeptcd"/>
- <Cell col="8" text="bind:mvflag"/>
- <Cell col="9" text="bind:usedeptcd"/>
- <Cell col="10" text="bind:usedeptnm"/>
- <Cell col="11" text="bind:fixasetcd"/>
- <Cell col="12" text="bind:goodflagengnm"/>
- <Cell col="13" text="bind:goodmodel" enable="false"/>
- <Cell col="14" displaytype="date" text="bind:possndd" mask="yyyy/MM/dd" calendardisplaynulltype="nulltext"/>
- <Cell col="15" text="bind:suplplcenm" enable="false"/>
- <Cell col="16" text="bind:prodcmpynm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_list_fixtrscnfminfo_fixtrscnfmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_fixtrscnfminfo_fixtrscnfmlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext=" 선택 "/>
- <Column id="inptflag" type="STRING" size="256" sumtext=" 입력 구분 "/>
- <Column id="rowno" type="STRING" size="256" sumtext=" 순번 "/>
- <Column id="execyy" type="STRING" size="256" sumtext=" 실시년도 "/>
- <Column id="goodflag" type="STRING" size="256" sumtext=" 물품구분 "/>
- <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드 "/>
- <Column id="usedeptcd" type="STRING" size="256" sumtext=" 사용부서코드 "/>
- <Column id="fixasetcd" type="STRING" size="256" sumtext=" 자산코드 "/>
- <Column id="seqno" type="STRING" size="256" sumtext=" (자산코드)순번 "/>
- <Column id="goodflagengnm" type="STRING" size="256" sumtext=" 장비명 "/>
- <Column id="goodmodel" type="STRING" size="256" sumtext=" 모델명 "/>
- <Column id="possndd" type="STRING" size="256" sumtext=" 구입일자(DB:취득일자)"/>
- <Column id="suplplcenm" type="STRING" size="256" sumtext=" 거래처 "/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext=" 제조원 "/>
- <Column id="orginsprst" type="STRING" size="256" sumtext=" 실사결과 "/>
- <Column id="possndeptcd" type="STRING" size="256" sumtext=" 현보유 부서코드 "/>
- <Column id="possndeptnm" type="STRING" size="256" sumtext=" 현보유 부서명 "/>
- <Column id="mvflag" type="STRING" size="256" sumtext=" 이동 "/>
- <Column id="cmt" type="STRING" size="256" sumtext=" 비고 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_list_bcfixtrsinfo_bcfixtrslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_bcfixtrsinfo_bcfixtrslist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext=" 선택 "/>
- <Column id="inptflag" type="STRING" size="256" sumtext=" 입력 구분 "/>
- <Column id="rowno" type="STRING" size="256" sumtext=" 순번 "/>
- <Column id="execyy" type="STRING" size="256" sumtext=" 실시년도 "/>
- <Column id="goodflag" type="STRING" size="256" sumtext=" 물품구분 "/>
- <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드 "/>
- <Column id="usedeptcd" type="STRING" size="256" sumtext=" 사용부서코드 "/>
- <Column id="usedeptnm" type="STRING" size="256" sumtext=" 사용부서명 "/>
- <Column id="fixasetcd" type="STRING" size="256" sumtext=" 자산코드 "/>
- <Column id="seqno" type="STRING" size="256" sumtext=" (자산코드)순번 "/>
- <Column id="goodflagengnm" type="STRING" size="256" sumtext=" 장비명 "/>
- <Column id="goodmodel" type="STRING" size="256" sumtext=" 모델명 "/>
- <Column id="possndd" type="STRING" size="256" sumtext=" 구입일자(DB:취득일자)"/>
- <Column id="suplplcenm" type="STRING" size="256" sumtext=" 거래처 "/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext=" 제조원 "/>
- <Column id="orginsprst" type="STRING" size="256" sumtext=" 실사결과 "/>
- <Column id="possndeptcd" type="STRING" size="256" sumtext=" 현보유 부서코드 "/>
- <Column id="possndeptnm" type="STRING" size="256" sumtext=" 현보유 부서명 "/>
- <Column id="mvflag" type="STRING" size="256" sumtext=" 이동 "/>
- <Column id="cmt" type="STRING" size="256" sumtext=" 비고 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="goodflag" type="STRING" size="256"/>
- <Column id="usedeptcd" type="STRING" size="256"/>
- <Column id="usedeptnm" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="goodflagengnm" type="STRING" size="256"/>
- <Column id="infoflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="goodflag"/>
- <Col id="usedeptcd"/>
- <Col id="usedeptnm"/>
- <Col id="fixasetcd"/>
- <Col id="goodflagengnm"/>
- <Col id="infoflag">M</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_goodflag" 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">E</Col>
- </Row>
- <Row>
- <Col id="label">일반비품</Col>
- <Col id="value">G</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_barcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="goodflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="fixasetcd"/>
- <Col id="goodflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_bcfixtrstempinfo_bcfixtrstemplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_bcfixtrstempinfo_bcfixtrstemplist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext=" 선택 "/>
- <Column id="inptflag" type="STRING" size="256" sumtext=" 입력 구분 "/>
- <Column id="rowno" type="STRING" size="256" sumtext=" 순번 "/>
- <Column id="execyy" type="STRING" size="256" sumtext=" 실시년도 "/>
- <Column id="goodflag" type="STRING" size="256" sumtext=" 물품구분 "/>
- <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드 "/>
- <Column id="usedeptcd" type="STRING" size="256" sumtext=" 사용부서코드 "/>
- <Column id="usedeptnm" type="STRING" size="256" sumtext=" 사용부서명 "/>
- <Column id="fixasetcd" type="STRING" size="256" sumtext=" 자산코드 "/>
- <Column id="seqno" type="STRING" size="256" sumtext=" (자산코드)순번 "/>
- <Column id="goodflagengnm" type="STRING" size="256" sumtext=" 장비명 "/>
- <Column id="goodmodel" type="STRING" size="256" sumtext=" 모델명 "/>
- <Column id="possndd" type="STRING" size="256" sumtext=" 구입일자(DB:취득일자)"/>
- <Column id="suplplcenm" type="STRING" size="256" sumtext=" 거래처 "/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext=" 제조원 "/>
- <Column id="orginsprst" type="STRING" size="256" sumtext=" 실사결과 "/>
- <Column id="possndeptcd" type="STRING" size="256" sumtext=" 현보유 부서코드 "/>
- <Column id="possndeptnm" type="STRING" size="256" sumtext=" 현보유 부서명 "/>
- <Column id="mvflag" type="STRING" size="256" sumtext=" 이동 "/>
- <Column id="cmt" type="STRING" size="256" sumtext=" 비고 "/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
- <BindItem id="item1" compid="grp_sea.cmb_goodflag" propid="value" datasetid="ds_send_search" columnid="goodflag"/>
- <BindItem id="item2" compid="grp_sea.ipt_usedeptcd" propid="value" datasetid="ds_send_search" columnid="usedeptcd"/>
- <BindItem id="item3" compid="grp_sea.ipt_usedeptnm" propid="value" datasetid="ds_send_search" columnid="usedeptnm"/>
- <BindItem id="item4" compid="grp_sea.ipt_fixasetcd" propid="value" datasetid="ds_send_search" columnid="fixasetcd"/>
- <BindItem id="item5" compid="grp_sea.ipt_fixasetnm" propid="value" datasetid="ds_send_search" columnid="goodflagengnm"/>
- <BindItem id="item6" compid="ipt_fixasetcd_barcd" propid="value" datasetid="ds_send_barcdinfo" columnid="fixasetcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- function SMRFE02200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRFE02200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_bcfixtrsinfo);
- grdf_setRowTypeIcon(grd_bcfixtrsinfo, 0);
- grdf_initGrid(grd_fixtrscnfmlist);
- grdf_setRowTypeIcon(grd_fixtrscnfmlist, 0);
- fInitialize();
- }
- function fInitialize()
- {
- rszfGoodFlagListByPgmGubn(grp_sea.cmb_goodflag,"2","N");
- misfComboComCdList('Z0007', grp_sea.cmb_instcd);
-
- ds_send_search.enableevent = false;
- ds_send_search.updatecontrol = false;
-
- grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
- grp_sea.ipt_usedeptcd.value = sysf_getUserInfo("dutplcecd");
- grp_sea.ipt_usedeptnm.value = sysf_getUserInfo("dutplcenm");
-
- ds_send_search.updatecontrol = true;
- ds_send_search.enableevent = true;
-
- ds_main_list_bcfixtrsinfo_bcfixtrslist.clearData();
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.clearData();
- }
- function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "usedeptcd")
- {
- var objFocus = this.getFocus();
- grp_sea.ipt_usedeptcd.value = e.newvalue;
- grp_sea.ipt_usedeptcd.setFocus();
-
- if(utlf_isNull(e.newvalue))
- {
- grp_sea.ipt_usedeptnm.value = "";
- }
- else
- {
- misfValidationCheck("02", "", "usedeptcd,usedeptnm");
- }
-
- objFocus.setFocus();
- }
- if(e.columnid == "usedeptnm")
- {
- var objFocus = this.getFocus();
- grp_sea.ipt_usedeptnm.value = e.newvalue;
- grp_sea.ipt_usedeptnm.setFocus();
-
- if(utlf_isNull(e.newvalue))
- {
- grp_sea.ipt_usedeptcd.value = "";
- }
- else
- {
- misfValidationCheck("02", "", "usedeptcd,usedeptnm");
- }
-
- objFocus.setFocus();
- }
- if(e.columnid == "fixasetcd")
- {
- var objFocus = this.getFocus();
- grp_sea.ipt_fixasetcd.value = e.newvalue;
- grp_sea.ipt_fixasetcd.setFocus();
-
- if(!utlf_isNull(e.newvalue))
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm", "fixasetcd," + grp_sea.cmb_instcd.value + "," + e.newvalue, "", "fixasetcd,goodflagengnm",
- grp_sea.ipt_fixasetcd, "SPRSD00240", "instcd,goodflag","grp_sea.cmb_instcd,grp_sea.cmb_goodflag");
- }
- else
- {
- grp_sea.ipt_fixasetnm.value = "";
- }
-
- objFocus.setFocus();
- }
- if(e.columnid == "goodflagengnm")
- {
- var objFocus = this.getFocus();
- grp_sea.ipt_fixasetnm.value = e.newvalue;
- grp_sea.ipt_fixasetnm.setFocus();
-
- if(!utlf_isNull(e.newvalue))
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm", "goodflagengnm," + grp_sea.cmb_instcd.value + "," + e.newvalue, "", "fixasetcd,goodflagengnm",
- grp_sea.ipt_fixasetnm, "SPRSD00240", "instcd,goodflag","grp_sea.cmb_instcd,grp_sea.cmb_goodflag");
- }
- else
- {
- grp_sea.ipt_fixasetcd.value = "";
- }
-
- objFocus.setFocus();
- }
- }
- function grp_sea_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "usedeptcd,usedeptnm";
- misfOpenPopUpList("02", grp_sea.ipt_usedeptcd,"", recv_list, ds_send_search.getColumn(0, "instcd"), "instcd") ;
- }
- function grp_sea_btn_fixasetcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var temp = "fixasetcd,goodflagengnm";
- rszfOpenPopUpListByWndName(grp_sea.ipt_fixasetcd,"", temp, "SPRSD00240","instcd,goodflag","grp_sea.cmb_instcd,grp_sea.cmb_goodflag");
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- arrCompId = new Array("grp_sea.cmb_instcd","grp_sea.cmb_goodflag","grp_sea.ipt_usedeptcd");
- if(!frmf_isRequiredControls(arrCompId)) return;
-
- var oParam = {};
- oParam.id = "TRRFE02201";
- oParam.service = "purcbaseapp.CalcScorTrsmMngt";
- oParam.method = "reqGetFixtrsCnfmList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_list_fixtrscnfminfo_fixtrscnfmlist=fixtrscnfmlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRFE02201";
- tranf_submit(oParam);
- }
- function ds_main_list_fixtrscnfminfo_fixtrscnfmlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- if(e.columnid == "orginsprst")
- {
- obj.setColumn(e.row, "orginsprst", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- if(e.columnid == "mvflag")
- {
- obj.setColumn(e.row, "mvflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function grd_fixtrscnfmlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var cur_row = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition;
- var orginsprst = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "orginsprst");
- var inptflag = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "inptflag");
- var chk = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "chk");
- if (e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","orginsprst") && e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","possndeptcd")
- && e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","mvflag") && e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","cmt")
- && e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","chk"))
- {
- return;
- }
- if (inptflag == "R")
- {
- if (e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body", "chk"))
- {
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(cur_row, "");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
-
- sysf_messageBox("미입력된 건이므로 수정" ,"E001");
-
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "orginsprst", "N");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "mvflag", "N");
- }
- if (chk == "Y")
- {
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(cur_row, "i");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
- }
- else
- {
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(cur_row, "");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
- }
- return;
- }
- else
- {
- if (e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "chk"))
- {
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "chk", "N");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(cur_row, "");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
- }
- }
- if (ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition < 0)
- {
- return;
- }
-
- if (!( e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "mvflag") || e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "possndeptcd")))
- {
- return;
- }
-
- if (e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "mvflag"))
- {
- if (orginsprst == "Y")
- {
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition, "mvflag", "N");
- sysf_messageBox("실사결과 본 장비는 사용부서에서 보유하고 있으므로 선택" ,"E001");
- return;
- }
-
- if (String(ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition, "possndeptcd")).length == 0)
- {
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition,"mvflag", "N");
- sysf_messageBox("현사용부서를" ,"C001");
- return;
- }
- }
- if (e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "possndeptcd"))
- {
- if (orginsprst == "Y")
- {
- sysf_messageBox("실사결과 본 장비는 사용부서에서 보유하고 있으므로 선택" ,"E001");
- return;
- }
- else
- {
- if(e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "possndeptcd"))
- {
- var recv_list = "possndeptcd,possndeptnm";
- rpbfOpenDeptCdHelp(grd_fixtrscnfmlist,recv_list, ds_send_search.getColumn(0, "instcd"), "instcd");
-
- if (ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "usedeptcd") == ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "possndeptcd"))
- {
- sysf_messageBox("사용부서와 현보유부서가 일치하여 변경할 수","I004");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "possndeptcd", "");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "possndeptnm", "");
- return;
- }
- }
- }
- }
- grd_fixtrscnfmlist.setCellPos(17);
- grd_fixtrscnfmlist.showEditor(true);
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- var chk;
-
- for (var i = 0; i < ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowcount; i++)
- {
- chk = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(i, "chk");
- inptflag = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(i, "inptflag");
-
- if (chk == "Y" && inptflag == "R")
- {
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(i, "i");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
- }
- }
- var retMes = sysf_messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6)
- {
- return;
- }
- dsf_makeValue(ds_send, "savetype", "string", "S", 0);
-
- for (var i = 0; i < ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowcount; i++)
- {
- if (ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(i, "inptflag") == "R" && ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(i, "chk") == "Y")
- {
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(i, "i");
- ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
- }
- }
-
- var updtdata = grdf_getGridUpdateData(grd_fixtrscnfmlist).rowcount;
-
- if (updtdata == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- var oParam = {};
- oParam.id = "TXRFE02201";
- oParam.service = "purcbaseapp.CalcScorTrsmMngt";
- oParam.method = "reqExeSaveFixtrsCnfmList";
- oParam.inds = "savetype=ds_send req=ds_main_list_fixtrscnfminfo_fixtrscnfmlist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRFE02201";
- tranf_submit(oParam);
-
- grp_sea.btn_search.click();
- }
- function btn_deptmove_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_makeValue(ds_send, "savetype", "string", "M", 0);
-
- var retMes = sysf_messageBox("부서 이동을 실시 하시겠습니까?", "Q999");
- if ( retMes != 6)
- {
- return;
- }
- var updtdata = grdf_getGridUpdateData(grd_fixtrscnfmlist).rowcount;
-
- if (updtdata == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- var oParam = {};
- oParam.id = "TXRFE02201";
- oParam.service = "purcbaseapp.CalcScorTrsmMngt";
- oParam.method = "reqExeSaveFixtrsCnfmList";
- oParam.inds = "savetype=ds_send req=ds_main_list_fixtrscnfminfo_fixtrscnfmlist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRFE02201";
- tranf_submit(oParam);
-
- grp_sea.btn_search.click();
- }
- function btn_input_onclick(obj:Button, e:ClickEventInfo)
- {
- arrCompId = new Array("grp_sea.cmb_instcd","grp_sea.cmb_goodflag","grp_sea.ipt_usedeptcd");
- if(!frmf_isRequiredControls(arrCompId)) return;
-
- ds_send_barcdinfo.setColumn(0, "instcd", grp_sea.cmb_instcd.value);
- ds_send_barcdinfo.setColumn(0, "goodflag", grp_sea.cmb_goodflag.value);
-
- for (var i = 0; i < ds_main_list_bcfixtrsinfo_bcfixtrslist.rowcount; i++)
- {
- if (ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(i, "instcd") == grp_sea.cmb_instcd.value && ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(i, "fixasetcd") == ipt_fixasetcd_barcd.value)
- {
- sysf_messageBox("이미 입력된 데이타 ","I009");
- return;
- }
-
- }
- var oParam = {};
- oParam.id = "TRRFE02202";
- oParam.service = "purcbaseapp.CalcScorTrsmMngt";
- oParam.method = "reqGetFixtrsCnfmList";
- oParam.inds = "req=ds_send_barcdinfo";
- oParam.outds = "ds_main_list_bcfixtrstempinfo_bcfixtrstemplist=bcfixtrstemplist";
- oParam.async = false;
- //oParam.callback = "cf_TRRFE02202";
- tranf_submit(oParam);
- if (String(ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(0, "fixasetcd")).length == 0)
- {
- sysf_messageBox("존재하지 않는 데이타 ","I009");
- return;
- }
-
- var addRow = ds_main_list_bcfixtrsinfo_bcfixtrslist.addRow();
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "chk", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "chk"));
- if(ds_main_list_bcfixtrsinfo_bcfixtrslist.rowposition == 0)
- {
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "rowno", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "rowno"));
- }
- else
- {
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "rowno", parseInt(ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(parseInt(addRow)-1, "rowno"))+1);
- }
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "execyy", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "execyy"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "goodflag", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "goodflag"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "instcd", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "instcd"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "usedeptcd", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "usedeptcd"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "usedeptnm", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "usedeptnm"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "fixasetcd", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "fixasetcd"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "goodflagengnm", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "goodflagengnm"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "goodmodel", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "goodmodel"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "possndd", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "possndd"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "suplplcenm", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "suplplcenm"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "prodcmpynm", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "prodcmpynm"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "orginsprst", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "orginsprst"));
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "mvflag", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "mvflag"));
- if (ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(addRow, "usedeptcd") == ds_send_search.getColumn(0, "usedeptcd"))
- {
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "possndeptcd", "");
- }
- else
- {
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "possndeptcd",ds_send_search.getColumn(0, "usedeptcd"));
- }
- }
- function ds_main_list_bcfixtrsinfo_bcfixtrslist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- var chk, count=0;
-
- for (var i = 0; i < ds_main_list_bcfixtrsinfo_bcfixtrslist.rowcount; i++)
- {
- chk = ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(i, "chk");
- if (chk == "Y")
- {
- ds_main_list_bcfixtrsinfo_bcfixtrslist.deleteRow(i);
- }
- ++count;
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "rowno", count);
- }
- }
- function btn_fixasetcd_barcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var temp = "fixasetcd,goodflagengnm";
- arrCompId = new Array("grp_sea.cmb_instcd","grp_sea.cmb_goodflag","grp_sea.ipt_usedeptcd");
- if(!frmf_isRequiredControls(arrCompId)) return;
-
- rszfOpenPopUpListByWndName(ipt_fixasetcd_barcd,"", temp, "SPRSD00240","instcd,goodflag","grp_sea.cmb_instcd,grp_sea.cmb_goodflag");
- }
- function btn_exec_onclick(obj:Button, e:ClickEventInfo)
- {
- for (var i = 0; i < ds_main_list_bcfixtrsinfo_bcfixtrslist.rowcount; i++)
- {
- if (ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(i, "usedeptcd") == grp_sea.ipt_usedeptcd.value)
- {
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "orginsprst", "Y");
- ds_main_list_bcfixtrsinfo_bcfixtrslist.updatecontrol = false;
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setRowType(i, "u");
- ds_main_list_bcfixtrsinfo_bcfixtrslist.updatecontrol = true;
- }
- else
- {
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "orginsprst", "N");
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "mvflag", "Y");
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "possndeptcd", grp_sea.ipt_usedeptcd.value);
- ds_main_list_bcfixtrsinfo_bcfixtrslist.updatecontrol = false;
- ds_main_list_bcfixtrsinfo_bcfixtrslist.setRowType(i, "i");
- ds_main_list_bcfixtrsinfo_bcfixtrslist.updatecontrol = true;
- }
- }
- var retMes = sysf_messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6)
- {
- return;
- }
- var updtdata = grdf_getGridUpdateData(grd_bcfixtrsinfo).rowcount;
-
- if (updtdata == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- var oParam = {};
- oParam.id = "TXRFE02202";
- oParam.service = "purcbaseapp.CalcScorTrsmMngt";
- oParam.method = "reqExeSaveBcFixtrsList";
- oParam.inds = "req=ds_main_list_bcfixtrsinfo_bcfixtrslist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRFE02202";
- tranf_submit(oParam);
- for (var i = ds_main_list_bcfixtrsinfo_bcfixtrslist.rowcount; i > -1 ; i--)
- {
- ds_main_list_bcfixtrsinfo_bcfixtrslist.deleteRow(i);
- }
- grp_sea.btn_search.click();
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_yyendapplist, "자산변동사항이력List", "Sheet1", "true", "", "");
- }
- function ds_main_list_bcfixtrstempinfo_bcfixtrstemplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function grp_sea_ipt_usedeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- }
- }
- function grp_sea_ipt_fixasetcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|