123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC14000" position="absolute 0 0 1194 793" titletext="고정자산이동및폐기신청" onload="SMRSC14000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 26 1193 55" id="group1" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 21 1193 27" id="line17" class="line_6" anchor="left top right"/>
- <Button position="absolute 1137 0 1193 22" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group1_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 48 1193 792" id="group3" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div position="absolute 0 3 1193 63" align="align:center top;" id="grp_search" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Button position="absolute 1127 17 1183 39" id="btn_search" class="btn1" taborder="6" text="조회" anchor="top right" onclick="group3_grp_search_btn_search_onclick"/>
- <Combo position="absolute 92 8 237 27" id="cmb_instcd" class="combo_default" enable="false" taborder="1" anchor="default"/>
- <Static text="기관코드" position="absolute 13 10 99 27" id="cap_instcd" class="search_name" anchor="default"/>
- <Shape position="absolute 1107 11 1113 51" linetype="vertical" id="line30" class="line_4" anchor="top right"/>
- <Edit position="absolute 390 8 513 27" id="ipt_mngtdeptcd" class="input_search" enable="false" taborder="3" anchor="default" autoselect="true" onkeydown="group3_grp_search_ipt_mngtdeptcd_onkeydown"/>
- <Edit position="absolute 390 33 560 52" id="ipt_goodflagnm_search" class="input_search" taborder="4" anchor="default" autoselect="true"/>
- <Static text="자산코드" position="absolute 13 34 101 51" id="caption2" class="search_name" anchor="default"/>
- <Button position="absolute 518 9 534 25" id="btn_mngtdeptcd" class="icon_search" enable="false" taborder="-1" text="" anchor="default" onclick="group3_grp_search_btn_mngtdeptcd_onclick"/>
- <Edit position="absolute 92 33 262 52" id="ipt_fixasetcd" class="input_search" taborder="5" anchor="default" autoselect="true"/>
- <Static text="자 산 명" position="absolute 311 34 399 51" id="cap_goodflagengnm_search" class="search_name" anchor="default"/>
- <Edit position="absolute 537 8 728 27" id="ipt_mngtdeptnm" class="input_search" enable="false" anchor="default" autoselect="true"/>
- <Static text="사용부서" position="absolute 311 10 403 27" id="cap_mngtdeptcd_search" class="search_name" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 88 1193 94" id="line1" class="line_10" anchor="left top right"/>
- <Static text="고정자산 내역" position="absolute 0 72 180 89" id="caption1" class="tit_2" anchor="default"/>
- <Static text="자산 이동 및 폐기 요청 목록" position="absolute 0 390 201 408" id="caption3" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 406 1193 412" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
- <Grid position="absolute 0 93 1193 380" align="align:center middle;" id="grd_fixedassetslist" binddataset="ds_main_fixedassets_fixedassetslist" anchor="left top right" cellsizingtype="col" selecttype="multirow" oncelldblclick="group3_grd_fixedassetslist_oncelldblclick" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="110"/>
- <Column size="240"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="90"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="120"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="자산코드"/>
- <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"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" style="align:center;" text="bind:fixasetcd"/>
- <Cell col="1" displaytype="text" style="align:center;" text="bind:goodflaghngnm"/>
- <Cell col="2" displaytype="text" style="align:center top;padding:4 2 2 2;" text="bind:goodmodel" wordwrap="word"/>
- <Cell col="3" displaytype="text" style="align:center top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="word"/>
- <Cell col="4" displaytype="text" style="align:center;" text="bind:goodflag"/>
- <Cell col="5" style="align:center;" text="bind:fixasetqty"/>
- <Cell col="6" displaytype="number" text="bind:unicost"/>
- <Cell col="7" displaytype="number" text="bind:fixasetamt"/>
- <Cell col="8" displaytype="expr:utlf_isNull(possndd) ? 'normal' : 'date'" text="bind:possndd"/>
- <Cell col="9" displaytype="text" style="align:center;" text="bind:mngtdeptnm"/>
- <Cell col="10" text="bind:mngtdeptcd"/>
- <Cell col="11" text="bind:tempmngtdeptcd"/>
- <Cell col="12" text="bind:tempmngtdeptnm"/>
- <Cell col="13" text="bind:takeindeptcd"/>
- <Cell col="14" text="bind:instcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 411 1193 743" id="grd_fixedassetsmodifylist" binddataset="ds_main_fixedassetsmodify_fixedassetsmodifylist" anchor="all" cellclickbound="cell" cellsizingtype="col" selecttype="multirow" onexpandup="group3_grd_fixedassetsmodifylist_onexpandup" onmousemove="group3_grd_fixedassetsmodifylist_onmousemove" ontextchanged="group3_grd_fixedassetsmodifylist_ontextchanged" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="100"/>
- <Column size="135"/>
- <Column size="45"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="19"/>
- <Column size="60"/>
- <Column size="85"/>
- <Column size="155"/>
- <Column size="85"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="품명"/>
- <Cell col="3" text="수량"/>
- <Cell col="4" text="금액"/>
- <Cell col="5" text="구입일자"/>
- <Cell col="6" text="인계부서"/>
- <Cell col="7" colspan="2" text="인수부서" taborder="undefined"/>
- <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"/>
- <Cell col="16"/>
- <Cell col="17"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" text="bind:fixasetcd"/>
- <Cell col="2" displaytype="text" text="bind:goodflaghngnm"/>
- <Cell col="3" text="bind:fixasetqty"/>
- <Cell col="4" displaytype="number" text="bind:fixasetamt"/>
- <Cell col="5" displaytype="expr:utlf_isNull(possndd) ? 'normal' : 'date'" text="bind:possndd"/>
- <Cell col="6" displaytype="text" text="bind:takeoutdeptnm"/>
- <Cell col="7" displaytype="text" text="bind:takeindeptnm"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:takeindeptcd" expandshow="show"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="align:center;" text="bind:chantype" combodataset="ds_cmb_chantype" combocodecol="value" combodatacol="label"/>
- <Cell col="10" text="bind:disuseno"/>
- <Cell col="11" displaytype="text" edittype="text" text="bind:cmt"/>
- <Cell col="12" displaytype="expr:utlf_isNull(reqdd) ? 'normal' : 'date'" text="bind:reqdd" enable="false"/>
- <Cell col="13" displaytype="checkbox" text="bind:confyn" expr="expr:(confyn=="Y"||confyn==1)?1:0" enable="false"/>
- <Cell col="14" displaytype="checkbox" text="bind:returnyn" expr="expr:(returnyn=="Y"||returnyn==1)?1:0" enable="false"/>
- <Cell col="15" text="bind:takeoutdeptcd"/>
- <Cell col="16" text="bind:instcd"/>
- <Cell col="17" text="bind:reqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1113 66 1193 88" id="btn_excsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_btn_excsave_onclick"/>
- <Button position="absolute 1140 384 1193 406" id="btn_delrow" class="btn2" text="행삭제" anchor="top right" onclick="group3_btn_delrow_onclick"/>
- <Button position="absolute 1059 384 1139 406" id="button1" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="고정자산 이동 및 폐기 신청" class="tit_1" position="absolute 0 0 200 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_fixaset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fixasetcd"/>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="reqno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_search_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="mngtdeptcd" type="STRING" size="256"/>
- <Column id="mngtdeptnm" type="STRING" size="256"/>
- <Column id="goodflaghngnm" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="mngtdeptcd"/>
- <Col id="mngtdeptnm"/>
- <Col id="goodflaghngnm"/>
- <Col id="fixasetcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_fixedassets_fixedassetslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_save_fixedassetsmodifylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_fixedassetsmodify_fixedassetsmodifylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_fixedassetsmodify_fixedassetsmodifylist_oncolumnchanged"/>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_cmb_chantype" 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">0</Col>
- </Row>
- <Row>
- <Col id="label">폐기</Col>
- <Col id="value">1</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.grp_search.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
- <BindItem id="item1" compid="group3.grp_search.ipt_mngtdeptcd" propid="value" datasetid="ds_send_search" columnid="mngtdeptcd"/>
- <BindItem id="item2" compid="group3.grp_search.ipt_goodflagnm_search" propid="value" datasetid="ds_send_search" columnid="goodflaghngnm"/>
- <BindItem id="item3" compid="group3.grp_search.ipt_fixasetcd" propid="value" datasetid="ds_send_search" columnid="fixasetcd"/>
- <BindItem id="item4" compid="group3.grp_search.ipt_mngtdeptnm" propid="value" datasetid="ds_send_search" columnid="mngtdeptnm"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- /***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회조건 변경시 Grid 초기화(사용안함)
- ****************************************************************************************/
- function fSearchCondChanged() {
- // model.removeNodeset(grd_stock.nodeset);
- // model.removeNodeset(grd_win.nodeset);
- // model.removeNodeset(grd_delive.nodeset);
- // model.removeNodeset(grd_deptstock.nodeset);
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMRSC14000_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_fixedassetslist);
- grdf_setGridSort(group3.grd_fixedassetsmodifylist);
- grdf_setRowTypeIcon(group3.grd_fixedassetsmodifylist, 0);
- //화면 Control을 초기화한다
- misfGridInit(group3.grd_fixedassetslist);
- misfGridInit(group3.grd_fixedassetsmodifylist);
- misfMsterDetailSet(group3.grd_fixedassetsmodifylist, null, "TRRSC14002" ,"Y","free");
- misfComboInstCdListMulti("group3.grp_search.cmb_instcd",utlf_getCurrentDate(),"","N");
-
- ds_send_search.setColumn( 0, "mngtdeptcd", sysf_getUserInfo("dutplcecd")); //기관 설정
- ds_send_search.setColumn( 0, "mngtdeptnm", sysf_getUserInfo("dutplcenm")); //기관 설정
- ds_send_search.setColumn( 0, "instcd", sysf_getUserInfo("dutplceinstcd")); //기관 설정
- misfMsterDetailRetrieve();
- for(var i = 0 ; i < ds_main_fixedassetsmodify_fixedassetsmodifylist.rowcount ; i++){
- var confyn = ds_main_fixedassetsmodify_fixedassetsmodifylist.getColumn(i, "confyn");
- if(confyn == "Y"){
- misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "takeindeptcd,chantype,cmt,reqdd,confyn,returnyn", true, i);
- }
- }
- if(sysf_getUserInfo("userid") == "MIS") {
- sysf_messageBox("MIS입니다.", "E999", "");
- group3.grp_search.ipt_mngtdeptcd.enable = true;
- group3.grp_search.btn_mngtdeptcd.enable = true;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function group1_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- for(var i = 0 ; i < ds_main_fixedassetsmodify_fixedassetsmodifylist.rowcount ; i++) {
- var reqdd = dsf_getColumnNullToEmpty(ds_main_fixedassetsmodify_fixedassetsmodifylist, i, "reqdd");
- var takeindeptcd = dsf_getColumnNullToEmpty(ds_main_fixedassetsmodify_fixedassetsmodifylist, i, "takeindeptcd");
- if(takeindeptcd == ""){
- sysf_messageBox((i+1)+"번째행에 인수부서가 선택되지않았습니다. 선택하여주십시오.", "E999", "");
- ds_main_fixedassetsmodify_fixedassetsmodifylist.rowposition = i;
- // group3.grd_fixedassetsmodifylist.col = group3.grd_fixedassetsmodifylist.colRef("takeindeptnm");
- group3.grd_fixedassetsmodifylist.setFocus();
- group3.grd_fixedassetsmodifylist.setCellPos(group3.grd_fixedassetsmodifylist.getBindCellIndex("body","takeindeptnm"));
- return;
- }
- if(reqdd == ""){
- sysf_messageBox((i+1)+"번째행에 요청일자가 입력되지않았습니다. 입력하여주십시오.", "E999", "");
- ds_main_fixedassetsmodify_fixedassetsmodifylist.rowposition = i;
- // group3.grd_fixedassetsmodifylist.col = group3.grd_fixedassetsmodifylist.colRef("reqdd");
- group3.grd_fixedassetsmodifylist.setFocus();
- group3.grd_fixedassetsmodifylist.setCellPos(group3.grd_fixedassetsmodifylist.getBindCellIndex("body","reqdd"));
- group3.grd_fixedassetsmodifylist.showEditor(true);
- return;
- }
- }
- misfSave("TXRSC14001");
-
- group3.grp_search.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- misfGridInit(group3.grd_fixedassetslist);
- misfGridInit(group3.grd_fixedassetsmodifylist);
-
- var oParam = {};
- oParam.id = "TRRSC14001";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetFixedAssetsList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_fixedassets_fixedassetslist=fixedassetslist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSC14001";
- tranf_submit(oParam);
-
- misfMsterDetailRetrieve();
-
- for(var i = 0 ; i < ds_main_fixedassetsmodify_fixedassetsmodifylist.rowcount ; i++){
- var confyn = ds_main_fixedassetsmodify_fixedassetsmodifylist.getColumn(i, "confyn");
- if(confyn == "Y"){
- misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "takeindeptcd,chantype,cmt,reqdd,confyn,returnyn", true, i);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 사용부서 조회
- ****************************************************************************************/
- function group3_grp_search_btn_mngtdeptcd_onclick(obj:Button, e:ClickEventInfo) {
- misfOpenPopUpList("02", group3.grp_search.ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 고정자산내역 선택
- ****************************************************************************************/
- function group3_grd_fixedassetslist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if(dsf_getColumnNullToEmpty(ds_main_fixedassets_fixedassetslist, e.row, "fixasetcd") == ""){
- sysf_messageBox("고정자산 내역이 비어있습니다.", "E999", "");
- return;
- }
-
- misfGridIUD(group3.grd_fixedassetsmodifylist,"A");
-
- var nRow = ds_main_fixedassetsmodify_fixedassetsmodifylist.rowcount - 1;
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "instcd",ds_send_search.getColumn(0, "instcd"));
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "fixasetcd",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "fixasetcd"));
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "goodflaghngnm",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "goodflaghngnm"));
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "fixasetqty",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "fixasetqty"));
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "fixasetamt",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "fixasetamt"));
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "takeoutdeptnm",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "mngtdeptnm"));
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "takeoutdeptcd",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "mngtdeptcd"));
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "possndd",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "possndd"));
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "chantype", 0);
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "confyn", "N");
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "reqdd", utlf_getCurrentDate());
- // group3.grd_fixedassetsmodifylist.cellAttribute("disabled",group3.grd_fixedassetsmodifylist.row, group3.grd_fixedassetsmodifylist.colRef("confpsn")) = "true";
- // group3.grd_fixedassetsmodifylist.cellAttribute("disabled",group3.grd_fixedassetsmodifylist.row, group3.grd_fixedassetsmodifylist.colRef("reqdd")) = "true";
- // group3.grd_fixedassetsmodifylist.cellAttribute("disabled",group3.grd_fixedassetsmodifylist.row, group3.grd_fixedassetsmodifylist.colRef("returnyn")) = "true";
- // group3.grd_fixedassetsmodifylist.cellAttribute("disabled",group3.grd_fixedassetsmodifylist.row, group3.grd_fixedassetsmodifylist.colRef("confyn")) = "true";
- misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "reqdd,returnyn,confyn", true, nRow);
- misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "takeindeptcd,chantype,cmt", false, nRow);
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 값 변경시
- ****************************************************************************************/
- function group3_grd_fixedassetsmodifylist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- if(ds_main_fixedassetsmodify_fixedassetsmodifylist.getColumn(e.row, "chantype") == "1") {
- ds_fixaset.setColumn( 0, "fixasetcd", ds_main_fixedassets_fixedassetslist.getColumn(ds_main_fixedassets_fixedassetslist.rowposition, "fixasetcd"));
- ds_fixaset.setColumn( 0, "instcd", ds_main_fixedassets_fixedassetslist.getColumn(ds_main_fixedassets_fixedassetslist.rowposition, "instcd"));
- var oParam = {};
- oParam.id = "TRRSC14003";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetFixedAssetsReqNo";
- oParam.inds = "req=ds_fixaset";
- oParam.outds = "ds_result=result";
- oParam.async = false;
- //oParam.callback = "cf_TRRSC14003";
- tranf_submit(oParam);
- var reqno = ds_result.getColumn(0, "reqno");
- ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(e.row, "disuseno", reqno);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 고정자산내역 엑셀저장
- ****************************************************************************************/
- function group3_btn_excsave_onclick(obj:Button, e:ClickEventInfo) {
- misfSaveExcel(group3.grd_fixedassetslist);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 자산이동 및 폐기 요청목록 행삭제
- ****************************************************************************************/
- function group3_btn_delrow_onclick(obj:Button, e:ClickEventInfo) {
- if(ds_main_fixedassetsmodify_fixedassetsmodifylist.getColumn(ds_main_fixedassetsmodify_fixedassetsmodifylist.rowposition, "confyn") == "Y") {
- sysf_messageBox("승인된 자료는 삭제할 수 없습니다.", "E999", "");
- return;
- }
- misfGridIUD(group3.grd_fixedassetsmodifylist, "D");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 자산이동 및 폐기 요청목록 엑셀저장
- ****************************************************************************************/
- function group3_button1_onclick(obj:Button, e:ClickEventInfo) {
- misfSaveExcel(group3.grd_fixedassetsmodifylist);
- }
- /****************************************************************************************
- * Components : Dataset
- * Description : 체크박스 설정
- ****************************************************************************************/
- function ds_main_fixedassetsmodify_fixedassetsmodifylist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="confyn" || e.columnid == "returnyn") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 사용부서 조회
- ****************************************************************************************/
- function group3_grp_search_ipt_mngtdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) obj.updateToDataset();
- }
- /****************************************************************************************
- * Components : Dataset
- * Description : 데이터 변경시
- ****************************************************************************************/
- function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "mngtdeptcd") {
- if(utlf_isNull(group3.grp_search.ipt_mngtdeptcd.value)){
- group3.grp_search.ipt_mngtdeptnm.value = "";
- }else {
- group3.grp_search.ipt_mngtdeptcd.setFocus();
- misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm");
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 그리드버튼 이벤트
- ****************************************************************************************/
- function group3_grd_fixedassetsmodifylist_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.col == obj.getBindCellIndex("body","takeindeptcd")) {
- misfOpenPopUpList("02", obj, "", "takeindeptcd,takeindeptnm");
- }
- }
- function group3_grd_fixedassetsmodifylist_onmousemove(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1 && e.col == obj.getBindCellIndex("body","takeindeptcd")) obj.autoenter = "select";
- else obj.autoenter = "key";
- }
- ]]></Script>
- </Form>
- </FDL>
|