123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC16000" position="absolute 0 0 1196 797" titletext="고정자산이동및폐기접수" onload="SMRSC16000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 26 1195 53" 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 1139 0 1195 22" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group1_btn_save_onclick"/>
- <Button position="absolute 1081 0 1137 22" id="btn_conf" class="btn4" visible="false" text="확인" anchor="top right" onclick="group1_btn_conf_onclick"/>
- <Button position="absolute 1 0 57 22" id="button5" class="btn6" text="출력" anchor="default" onclick="group1_button5_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 51 1195 795" id="group3" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 60" align="align:center top;" id="grp_search" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Button position="absolute 1127 19 1183 41" id="btn_search" class="btn1" taborder="8" 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="0" anchor="default"/>
- <Static text="기관코드" position="absolute 13 9 99 26" id="cap_instcd" class="search_name" anchor="default"/>
- <Shape position="absolute 1112 9 1118 51" linetype="vertical" id="line30" class="line_4" anchor="top right"/>
- <Edit position="absolute 92 33 215 52" id="ipt_takeindeptcd" class="input_search" taborder="4" anchor="default" autoselect="true" onkeydown="group3_grp_search_ipt_takeindeptcd_onkeydown"/>
- <Button position="absolute 220 34 236 50" id="btn_takeindeptcd" class="icon_search" taborder="10" text="" anchor="default" onclick="group3_grp_search_btn_takeindeptcd_onclick"/>
- <Edit position="absolute 239 33 430 52" id="ipt_takeindeptnm" class="input_search" enable="false" anchor="default" autoselect="true" taborder="5"/>
- <Static text="인수부서" position="absolute 13 35 105 52" id="cap_mngtdeptcd_search" class="search_name" anchor="default"/>
- <Static text="승인일자" position="absolute 270 9 356 26" id="caption4" class="search_name" anchor="default"/>
- <Calendar position="absolute 350 8 460 27" align="align:center middle;" id="ipt_fromdd" taborder="1" mask="yyyy-mm-dd" anchor="default" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar position="absolute 480 8 590 27" align="align:center middle;" id="ipt_todd" taborder="2" mask="yyyy-mm-dd" anchor="default" autoselect="true" dateformat="yyyy-MM-dd"/>
- <Static text="~" position="absolute 465 10 480 30" id="caption2" anchor="default"/>
- <Button position="absolute 673 35 689 51" id="btn_takeoutdeptcd" class="icon_search" taborder="9" text="" anchor="default" onclick="group3_grp_search_btn_takeoutdeptcd_onclick"/>
- <Edit position="absolute 692 33 883 52" id="ipt_takeoutdeptnm" class="input_search" enable="false" anchor="default" autoselect="true" taborder="7"/>
- <Edit position="absolute 545 33 668 52" id="ipt_takeoutdeptcd" class="input_search" taborder="6" anchor="default" autoselect="true" onkeydown="group3_grp_search_ipt_takeoutdeptcd_onkeydown"/>
- <Static text="인계부서" position="absolute 466 35 558 52" id="caption3" class="search_name" anchor="default"/>
- <Static text="변동유형" position="absolute 625 9 711 26" id="caption5" class="search_name" anchor="default"/>
- <Combo position="absolute 710 8 810 27" id="cmb_chantype" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" taborder="3">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">이동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">폐기</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 87 1195 93" id="line1" class="line_10" anchor="left top right"/>
- <Static text="고정자산 내역" position="absolute 0 71 180 88" id="caption1" class="tit_2" anchor="default"/>
- <Grid position="absolute 0 92 1195 744" id="grd_fixedassetstretlist" binddataset="ds_main_fixedassetstret_fixedassetstretlist" anchor="all" oncelldblclick="group3_grd_fixedassetstretlist_oncelldblclick" ontextchanged="group3_grd_fixedassetstretlist_ontextchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="35" band="left"/>
- <Column size="100" band="left"/>
- <Column size="95" band="left"/>
- <Column size="120" band="left"/>
- <Column size="45"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="55"/>
- <Column size="150"/>
- <Column size="70"/>
- <Column size="45"/>
- <Column size="45"/>
- <Column size="45"/>
- <Column size="100"/>
- <Column size="55"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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/>
- <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="반려사유"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:(sel=="Y"||sel==1)?1:0"/>
- <Cell col="2" displaytype="text" text="bind:acntnm"/>
- <Cell col="3" displaytype="text" text="bind:fixasetcd"/>
- <Cell col="4" displaytype="text" style="align:left top;padding:4 2 2 2;" text="bind:goodflaghngnm" wordwrap="word"/>
- <Cell col="5" 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" text="bind:takeoutdeptnm"/>
- <Cell col="10" displaytype="text" text="bind:takeindeptnm"/>
- <Cell col="11" displaytype="combo" style="align:center;" text="bind:chantype" combodataset="ds_cmb_chantype" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="12" displaytype="text" style="align:left top;padding:4 2 2 2;" text="bind:cmt" wordwrap="word"/>
- <Cell col="13" displaytype="expr:utlf_isNull(confdt) ? 'normal' : 'date' " text="bind:confdt" enable="false"/>
- <Cell col="14" displaytype="checkbox" edittype="checkbox" text="bind:tretyn" expr="expr:(tretyn=="Y"||tretyn==1)?1:0"/>
- <Cell col="15" displaytype="checkbox" edittype="checkbox" text="bind:partyn" expr="expr:(partyn=="Y"||partyn==1)?1:0"/>
- <Cell col="16" displaytype="checkbox" edittype="checkbox" text="bind:teamyn" expr="expr:(teamyn=="Y"||teamyn==1)?1:0"/>
- <Cell col="17" displaytype="date" edittype="date" text="bind:tretdt" calendardisplaynulltype="none"/>
- <Cell col="18" displaytype="checkbox" edittype="checkbox" text="bind:returnyn" expr="expr:returnyn == 'Y' || returnyn == '1' ? '1' : '0'"/>
- <Cell col="19" displaytype="text" edittype="text" style="align:left top;padding:4 2 2 2;" text="bind:returncmt" wordwrap="word"/>
- <Cell col="20" text="bind:takeoutdeptcd"/>
- <Cell col="21" text="bind:takeindeptcd"/>
- <Cell col="22" text="bind:instcd"/>
- <Cell col="23" text="bind:reqno"/>
- <Cell col="24" text="bind:reqdd"/>
- <Cell col="25" text="bind:groupcd"/>
- <Cell col="26" text="bind:partpsn"/>
- <Cell col="27" text="bind:teampsn"/>
- <Cell col="28" text="bind:tretnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1115 65 1195 87" id="btn_excsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_btn_excsave_onclick"/>
- <Button position="absolute 1050 65 1114 87" id="btn_allsel" class="btn2" visible="false" text="전체선택" anchor="top right" onclick="group3_btn_allsel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="고정자산 이동 및 폐기 접수" class="tit_1" position="absolute 0 0 200 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <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="takeindeptcd" type="STRING" size="256"/>
- <Column id="takeindeptnm" type="STRING" size="256"/>
- <Column id="takeoutdeptcd" type="STRING" size="256"/>
- <Column id="takeoutdeptnm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="chantype" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="takeindeptcd"/>
- <Col id="takeindeptnm"/>
- <Col id="takeoutdeptcd"/>
- <Col id="takeoutdeptnm"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="chantype"/>
- </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_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_save_fixedassetstretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_main_fixedassetstret_fixedassetstretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_fixedassetstret_fixedassetstretlist_oncolumnchanged"/>
- <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_takeindeptcd" propid="value" datasetid="ds_send_search" columnid="takeindeptcd"/>
- <BindItem id="item2" compid="group3.grp_search.ipt_takeindeptnm" propid="value" datasetid="ds_send_search" columnid="takeindeptnm"/>
- <BindItem id="item3" compid="group3.grp_search.ipt_fromdd" propid="value" datasetid="ds_send_search" columnid="fromdd"/>
- <BindItem id="item4" compid="group3.grp_search.ipt_todd" propid="value" datasetid="ds_send_search" columnid="todd"/>
- <BindItem id="item5" compid="group3.grp_search.ipt_takeoutdeptnm" propid="value" datasetid="ds_send_search" columnid="takeoutdeptnm"/>
- <BindItem id="item6" compid="group3.grp_search.ipt_takeoutdeptcd" propid="value" datasetid="ds_send_search" columnid="takeoutdeptcd"/>
- <BindItem id="item7" compid="group3.grp_search.cmb_chantype" propid="value" datasetid="ds_send_search" columnid="chantype"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // 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);
- // model.refresh();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMRSC16000_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_fixedassetstretlist);
- grdf_setRowTypeIcon(group3.grd_fixedassetstretlist, 0);
- if((sysf_getUserInfo("dutplcecd") == "4020334000") || sysf_getUserInfo("userid") == "MIS" ){
- }else{
- sysf_messageBox("물류파트가 아닌부서는 화면권한이 없습니다.", "E999", "");
- group1.enable = false;
- group3.enable = false;
- return;
- }
- //화면 Control을 초기화한다
- group3.grd_fixedassetstretlist.setFormatColProperty(group3.grd_fixedassetstretlist.getBindCellIndex("body","sel"),"size",0);
- var flag = ds_ref.getColumn(0, "flag");
- if(flag == "1"){
- group3.grd_fixedassetstretlist.setFormatColProperty(group3.grd_fixedassetstretlist.getBindCellIndex("body","sel"),"size",35);
- group3.grd_fixedassetstretlist.setFormatColProperty(group3.grd_fixedassetstretlist.getBindCellIndex("body","cmt"),"size",115);
- group3.btn_allsel.visible = true;
- group1.btn_conf.visible = true;
- ds_send_search.setColumn( 0, "chantype","0");
- group3.grp_search.cmb_chantype.enable = false;
- }else if(flag == "2"){
- ds_send_search.setColumn( 0, "chantype","1");
- group3.grp_search.cmb_chantype.enable = false;
- }
- misfGridInit(group3.grd_fixedassetstretlist);
- misfMsterDetailSet(group3.grd_fixedassetstretlist, null, "TRRSC16001" ,"Y", "free");
- misfComboInstCdListMulti("group3.grp_search.cmb_instcd",utlf_getCurrentDate(),"","N");
- ds_send_search.setColumn( 0, "instcd", sysf_getUserInfo("dutplceinstcd")); //기관 설정
- ds_send_search.setColumn( 0, "fromdd", utlf_getCurrentDate().substr(0,6)+"01");
- ds_send_search.setColumn( 0, "todd", utlf_getCurrentDate());
- misfMsterDetailRetrieve();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function group1_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- for(var i = 0 ; i < ds_main_fixedassetstret_fixedassetstretlist.rowcount ; i++){
- var tretyn = ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "tretyn");
- var tretdt = dsf_getColumnNullToEmpty(ds_main_fixedassetstret_fixedassetstretlist, i, "tretdt");
- if(tretyn == "Y" && tretdt == ""){
- sysf_messageBox(i+"번째행에 접수는 되었지만 접수일자가 없습니다. 입력하여주십시오.", "E999", "");
- ds_main_fixedassetstret_fixedassetstretlist.rowposition = i;
- group3.grd_fixedassetstretlist.setFocus();
- group3.grd_fixedassetstretlist.setCellPos(group3.grd_fixedassetstretlist.getBindCellIndex("body","tretdt"));
- group3.grd_fixedassetstretlist.showEditor(true);
- return;
- }
- }
-
- misfSave("TXRSC16001");
-
- group3.grp_search.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function group1_btn_conf_onclick(obj:Button, e:ClickEventInfo) {
- if(!frmf_isPopup()) return;
-
- var parent = this.opener;
- var flag = ds_ref.getColumn(0, "flag");
- if(flag == "1"){
- var cnt = 0;
- parent.dsf_createDs("ds_ref_chgnhist", [
- {col:"fixasetcd", type:"STRING", size:256}
- , {col:"goodflaghngnm", type:"STRING", size:256}
- , {col:"tretdt", type:"STRING", size:256}
- , {col:"chantype", type:"STRING", size:256}
- , {col:"takeindeptcd", type:"STRING", size:256}
- , {col:"takeindeptnm", type:"STRING", size:256}
- , {col:"takeoutdeptcd", type:"STRING", size:256}
- , {col:"takeoutdeptnm", type:"STRING", size:256}
- , {col:"fixasetamt", type:"STRING", size:256}
- , {col:"instcd", type:"STRING", size:256}
- ]);
- for(var i = 0 ; i < ds_main_fixedassetstret_fixedassetstretlist.rowcount ; i++){
- var sel = ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "sel");
- if(sel == "Y"){
- var nRow = parent.ds_ref_chgnhist.addRow();
- parent.ds_ref_chgnhist.setColumn( nRow, "fixasetcd", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "fixasetcd"));
- parent.ds_ref_chgnhist.setColumn( nRow, "goodflaghngnm", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "goodflaghngnm"));
- parent.ds_ref_chgnhist.setColumn( nRow, "tretdt", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "tretdt"));
- parent.ds_ref_chgnhist.setColumn( nRow, "chantype", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "chantype"));
- parent.ds_ref_chgnhist.setColumn( nRow, "takeindeptcd", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "takeindeptcd"));
- parent.ds_ref_chgnhist.setColumn( nRow, "takeindeptnm", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "takeindeptnm"));
- parent.ds_ref_chgnhist.setColumn( nRow, "takeoutdeptcd", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "takeoutdeptcd"));
- parent.ds_ref_chgnhist.setColumn( nRow, "takeoutdeptnm", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "takeoutdeptnm"));
- parent.ds_ref_chgnhist.setColumn( nRow, "fixasetamt", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "fixasetamt"));
- parent.ds_ref_chgnhist.setColumn( nRow, "instcd", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "instcd"));
- cnt++;
- }
- }
-
- if(utlf_isNull(this.objects["ds_temp"])) parent.dsf_createDs("ds_ref");
- dsf_makeValue(parent.ds_ref, "cnt", "string", cnt);
- }
-
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 출력
- ****************************************************************************************/
- function group1_button5_onclick(obj:Button, e:ClickEventInfo) {
- group3.grp_search.btn_search.click();
- if(ds_main_fixedassetstret_fixedassetstretlist.rowcount == 0){
- sysf_messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
-
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/main/fixedassetstret/fixedassetstretlist" , ds_main_fixedassetstret_fixedassetstretlist);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
- rptf_exeReportPreview30(["RPRSC16000"],[objParam], option);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 고정자산 내역 조회
- ****************************************************************************************/
- function group3_grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- misfGridInit(group3.grd_fixedassetstretlist);
- misfMsterDetailRetrieve();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 인수부서 조회
- ****************************************************************************************/
- function group3_grp_search_btn_takeindeptcd_onclick(obj:Button, e:ClickEventInfo) {
- misfOpenPopUpList("02", group3.grp_search.ipt_takeindeptcd,"","takeindeptcd,takeindeptnm");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 인계부서 조회
- ****************************************************************************************/
- function group3_grp_search_btn_takeoutdeptcd_onclick(obj:Button, e:ClickEventInfo) {
- misfOpenPopUpList("02", group3.grp_search.ipt_takeoutdeptcd,"","takeoutdeptcd,takeoutdeptnm");
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 고정자산내역 선택
- ****************************************************************************************/
- function group3_grd_fixedassetstretlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if(!frmf_isPopup()) return;
-
- var parent = this.opener;
- var flag = ds_ref.getColumn(0, "flag");
- if(flag == "2"){
- var goodflaghngnm = ds_main_fixedassetstret_fixedassetstretlist.getColumn(e.row, "goodflaghngnm");
- var fixasetcd = ds_main_fixedassetstret_fixedassetstretlist.getColumn(e.row, "fixasetcd");
- parent.ds_send.setColumn( 0, "fixasetcd_search",fixasetcd);
- parent.ds_send.setColumn( 0, "fixasetnm_search",goodflaghngnm);
- this.close();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 고정자산내역 수정
- ****************************************************************************************/
- function group3_grd_fixedassetstretlist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- if(ds_main_fixedassetstret_fixedassetstretlist.getColumn(e.row, "tretyn") == "Y"){
- ds_main_fixedassetstret_fixedassetstretlist.setColumn(e.row, "tretdt", utlf_getCurrentDate());
- }
- if(ds_main_fixedassetstret_fixedassetstretlist.getColumn(e.row, "sel") == "Y"){
- var teamyn = dsf_getColumnNullToEmpty(ds_main_fixedassetstret_fixedassetstretlist, e.row, "teamyn");
- if(teamyn == "N" || teamyn == ""){
- sysf_messageBox("아직 접수중인 자료입니다. 선택할수없습니다.", "E999", "");
- ds_main_fixedassetstret_fixedassetstretlist.setColumn(e.row, "sel", "N");
- group3.grd_fixedassetstretlist.rowStatus(group3.grd_fixedassetstretlist.row) = 0;
- grdf_setStatus(obj, "", [e.row]);
- return;
- }
- grdf_setStatus(obj, "", [e.row]);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 고정자산내역 엑셀저장
- ****************************************************************************************/
- function group3_btn_excsave_onclick(obj:Button, e:ClickEventInfo) {
- misfSaveExcel(group3.grd_fixedassetstretlist);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 전체선택
- ****************************************************************************************/
- function group3_btn_allsel_onclick(obj:Button, e:ClickEventInfo) {
- for(var i = 0 ; i < ds_main_fixedassetstret_fixedassetstretlist.rowcount ; i++){
- var teamyn = ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "teamyn");
- if(teamyn == "Y"){
- ds_main_fixedassetstret_fixedassetstretlist.setColumn(i, "sel", "Y");
- }
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Description : 고정자산 내역 체크박스 설정
- ****************************************************************************************/
- function ds_main_fixedassetstret_fixedassetstretlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="sel" || e.columnid=="tretyn" || e.columnid=="partyn" || e.columnid=="teamyn" || 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_takeindeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) obj.updateToDataset();
- }
- function group3_grp_search_ipt_takeoutdeptcd_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 == "takeindeptcd") {
- var objFocus = this.getFocus();
-
- if(utlf_isNull(group3.grp_search.ipt_takeindeptcd.value)) {
- group3.grp_search.ipt_takeindeptnm.value = "";
- }else {
- group3.grp_search.ipt_takeindeptcd.setFocus();
- misfValidationCheck("02", "", "takeindeptcd,takeindeptnm");
- }
-
- objFocus.setFocus();
- }
- if(e.columnid == "takeoutdeptcd") {
- var objFocus = this.getFocus();
-
- if(utlf_isNull(group3.grp_search.ipt_takeoutdeptcd.value)) {
- group3.grp_search.ipt_takeoutdeptnm.value = "";
- }else {
- group3.grp_search.ipt_takeoutdeptcd.setFocus();
- misfValidationCheck("02", "", "takeoutdeptcd,takeoutdeptnm");
- }
-
- objFocus.setFocus();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|