123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC15000" position="absolute 0 0 1197 796" titletext="고정자산이동확인" onload="SMRSC15000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 26 1195 53" id="group1" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 21 1194 27" id="line17" class="line_6" anchor="left top right"/>
- <Button position="absolute 1138 0 1195 22" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group1_btn_save_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 40" align="align:center top;" id="grp_search" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Button position="absolute 1127 9 1183 31" id="btn_search" class="btn1" taborder="6" text="조회" anchor="top right" onclick="group3_grp_search_btn_search_onclick"/>
- <Combo position="absolute 92 11 237 30" id="cmb_instcd" class="combo_default" enable="false" taborder="0" anchor="default"/>
- <Static text="기관코드" position="absolute 13 12 99 29" id="cap_instcd" class="search_name" anchor="default"/>
- <Shape position="absolute 1112 8 1118 32" linetype="vertical" id="line30" class="line_4" anchor="top right"/>
- <Edit position="absolute 329 11 452 30" id="ipt_mngtdeptcd" class="input_search" enable="false" taborder="1" anchor="default" autoselect="true" onkeydown="group3_grp_search_ipt_mngtdeptcd_onkeydown"/>
- <Button position="absolute 457 12 473 28" id="btn_mngtdeptcd" class="icon_search" enable="false" taborder="3" text="" anchor="default" onclick="group3_grp_search_btn_mngtdeptcd_onclick"/>
- <Edit position="absolute 476 11 667 30" id="ipt_mngtdeptnm" class="input_search" enable="false" anchor="default" autoselect="true" taborder="2"/>
- <Static text="인수부서" position="absolute 250 12 342 29" id="cap_mngtdeptcd_search" class="search_name" anchor="default"/>
- <Static text="요청일자" position="absolute 685 12 771 29" id="caption4" class="search_name" anchor="default"/>
- <Calendar position="absolute 765 11 883 30" align="align:center middle;" id="ipt_fromdd" taborder="4" mask="yyyy-mm-dd" anchor="default" autoselect="true"/>
- <Calendar position="absolute 903 11 1021 30" align="align:center middle;" id="ipt_todd" taborder="5" mask="yyyy-mm-dd" anchor="default" autoselect="true"/>
- <Static text="~" position="absolute 888 11 900 31" id="caption2" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 66 1195 72" id="line1" class="line_10" anchor="left top right"/>
- <Static text="고정자산 내역" position="absolute 0 50 180 67" id="caption1" class="tit_2" anchor="default"/>
- <Grid position="absolute 0 71 1195 743" id="grd_fixedassetsconflist" binddataset="ds_main_fixedassetsconf_fixedassetsconflist" anchor="all" cellclickbound="cell" cellsizingtype="col" selecttype="multirow" ontextchanged="group3_grd_fixedassetsconflist_ontextchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="90"/>
- <Column size="110"/>
- <Column size="35"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="99"/>
- <Column size="100"/>
- <Column size="55"/>
- <Column size="80"/>
- <Column size="150"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="100"/>
- <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"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" text="bind:fixasetcd"/>
- <Cell col="2" displaytype="text" style="align:left top;padding:4 2 2 2;" text="bind:goodflaghngnm" wordwrap="word"/>
- <Cell col="3" text="bind:fixasetqty"/>
- <Cell col="4" displaytype="number" text="bind:unicost"/>
- <Cell col="5" displaytype="number" text="bind:fixasetamt"/>
- <Cell col="6" displaytype="expr:utlf_isNull(possndd) ? 'normal' : 'date'" text="bind:possndd"/>
- <Cell col="7" displaytype="text" text="bind:takeoutdeptnm"/>
- <Cell col="8" displaytype="text" text="bind:takeindeptnm"/>
- <Cell col="9" displaytype="combo" style="align:center;" text="bind:chantype" combodataset="ds_cmb_chantype" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="10" text="bind:disuserno"/>
- <Cell col="11" displaytype="text" style="align:left top;padding:4 2 2 2;" text="bind:cmt" wordwrap="word"/>
- <Cell col="12" displaytype="expr:utlf_isNull(reqdd) ? 'normal' : 'date'" text="bind:reqdd" enable="false"/>
- <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:confyn" expr="expr:(confyn=="Y"||confyn==1)?1:0"/>
- <Cell col="14" displaytype="expr:utlf_isNull(confdt) ? 'normal' : 'date'" edittype="date" text="bind:confdt" calendardisplay="display"/>
- <Cell col="15" text="bind:takeoutdeptcd"/>
- <Cell col="16" text="bind:instcd"/>
- <Cell col="17" text="bind:reqno"/>
- <Cell col="18" text="bind:tretyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1115 44 1195 66" id="btn_excsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_btn_excsave_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="고정자산 이동 확인" class="tit_1" position="absolute 0 0 160 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_fixedassetsconf_fixedassetsconflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_fixedassetsconf_fixedassetsconflist_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="255"/>
- <Column id="fixasetcd" type="STRING" size="255"/>
- <Column id="goodflaghngnm" type="STRING" size="255"/>
- <Column id="fixasetqty" type="BIGDECIMAL" size="255"/>
- <Column id="unicost" type="BIGDECIMAL" size="255"/>
- <Column id="fixasetamt" type="BIGDECIMAL" size="255"/>
- <Column id="possndd" type="STRING" size="255"/>
- <Column id="takeoutdeptcd" type="STRING" size="255"/>
- <Column id="takeoutdeptnm" type="STRING" size="255"/>
- <Column id="takeindeptcd" type="STRING" size="255"/>
- <Column id="takeindeptnm" type="STRING" size="255"/>
- <Column id="chantype" type="STRING" size="255"/>
- <Column id="cmt" type="STRING" size="255"/>
- <Column id="reqdd" type="STRING" size="255"/>
- <Column id="reqno" type="STRING" size="255"/>
- <Column id="confyn" type="STRING" size="255"/>
- <Column id="confdt" type="STRING" size="255"/>
- <Column id="confpsn" type="STRING" size="255"/>
- <Column id="tretyn" type="STRING" size="255"/>
- <Column id="disuseno" type="STRING" size="255"/>
- </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="mngtdeptcd" type="STRING" size="256"/>
- <Column id="mngtdeptnm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="mngtdeptcd"/>
- <Col id="mngtdeptnm"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- </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_hidden" 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_send_save_fixedassetsconflist" 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_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_mngtdeptnm" propid="value" datasetid="ds_send_search" columnid="mngtdeptnm"/>
- <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"/>
- </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);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMRSC15000_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_fixedassetsconflist);
- grdf_setRowTypeIcon(group3.grd_fixedassetsconflist, 0);
- //화면 Control을 초기화한다
- misfGridInit(group3.grd_fixedassetsconflist);
- misfMsterDetailSet(group3.grd_fixedassetsconflist, null, "TRRSC15001" ,"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, "mngtdeptcd", sysf_getUserInfo("dutplcecd")); //기관 설정
- ds_send_search.setColumn( 0, "mngtdeptnm", sysf_getUserInfo("dutplcenm")); //기관 설정
-
- misfMsterDetailRetrieve();
-
- ds_send_search.setColumn( 0, "fromdd", utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
- ds_send_search.setColumn( 0, "todd", utlf_getCurrentDate());
- if(sysf_getUserInfo("userid") == "MIS"){
- group3.grp_search.ipt_mngtdeptcd.enable = true;
- group3.grp_search.btn_mngtdeptcd.enable = true;
- }
- for(var i = 0 ; i < ds_main_fixedassetsconf_fixedassetsconflist.rowcount ; i++) {
- var confyn = ds_main_fixedassetsconf_fixedassetsconflist.getColumn(i, "tretyn");
- if(confyn == "Y"){
- misfSetReadOnlyCol(group3.grd_fixedassetsconflist, "confyn,tretyn", true, i);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function group1_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- for(var i = 0 ; i < ds_main_fixedassetsconf_fixedassetsconflist.rowcount ; i++){
- var confyn = dsf_getColumnNullToEmpty(ds_main_fixedassetsconf_fixedassetsconflist, i, "confyn");
- var confdt = dsf_getColumnNullToEmpty(ds_main_fixedassetsconf_fixedassetsconflist, i, "confdt");
- if(confyn == "Y" && confdt == ""){
- sysf_messageBox(i+"번째행에 승인은 되었지만 승인일자가 없습니다. 입력하여주십시오.", "E999", "");
- ds_main_fixedassetsconf_fixedassetsconflist.rowposition = i;
- // group3.grd_fixedassetsconflist.col = group3.grd_fixedassetsconflist.colRef("confdt");
- group3.grd_fixedassetsconflist.setFocus();
- group3.grd_fixedassetsconflist.setCellPos(group3.grd_fixedassetsconflist.getBindCellIndex("body","confdt"));
- group3.grd_fixedassetsconflist.showEditor(true);
- return;
- }
- }
-
- misfSave("TXRSC15001");
-
- group3.grp_search.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- misfGridInit(group3.grd_fixedassetsconflist);
- misfMsterDetailRetrieve();
-
- for(var i = 0 ; i < ds_main_fixedassetsconf_fixedassetsconflist.rowcount ; i++){
- var confyn = ds_main_fixedassetsconf_fixedassetsconflist.getColumn(i, "tretyn");
- if(confyn == "Y"){
- misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "confyn,tretyn", 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_fixedassetsconflist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- if(ds_main_fixedassetsconf_fixedassetsconflist.getColumn(e.row, "confyn") == "Y") {
- ds_main_fixedassetsconf_fixedassetsconflist.setColumn(e.row, "confdt", utlf_getCurrentDate());
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 고정자선 내역 엑셀저장
- ****************************************************************************************/
- function group3_btn_excsave_onclick(obj:Button, e:ClickEventInfo) {
- misfSaveExcel(group3.grd_fixedassetsconflist);
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 인수부서 조회
- ****************************************************************************************/
- function group3_grp_search_ipt_mngtdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) obj.updateToDataset();
- }
- 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");
- }
- }
- }
- function ds_main_fixedassetsconf_fixedassetsconflist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "confyn" ){
- if( e.newvalue == "Y" || e.newvalue == "1" ){
- obj.setColumn(e.row, e.columnid, "Y");
- }else{
- obj.setColumn(e.row, e.columnid, "N");
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|