123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRAC00300" position="absolute 0 0 1204 794" titletext="기재사항 코드관리" oninit="SMRAC00300_oninit" onload="SMRAC00300_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="기재사항 코드관리" class="tit_1" position="absolute 0 0 229 25"/>
- <Shape id="line2" class="line_6" position="absolute 0 48 1195 54"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1139 27 1195 49" anchor="top right" onclick="btn_save_onclick"/>
- <Button id="btn_prt" taborder="2" text="출력" class="btn6" visible="false" position="absolute 0 27 56 49"/>
- <Div id="grp_sea" anchor="left top right" taborder="3" class="div_SA2" position="absolute 0 52 1195 92">
- <Layouts>
- <Layout>
- <Static id="caption7" text="기재사항코드 :" class="search_name" position="absolute 16 11 141 28"/>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1104 8 1110 30" anchor="top right"/>
- <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 1123 8 1179 30" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Edit id="ipt_notecd" taborder="8" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 135 10 215 29" onkeyup="grp_sea_ipt_notecd_onkeyup"/>
- <Edit id="ipt_notecdnm" taborder="9" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 241 10 471 29" onkeyup="grp_sea_ipt_notecdnm_onkeyup"/>
- <Button id="btn_help" taborder="10" class="icon_search" position="absolute 221 12 237 28" onclick="grp_sea_btn_help_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line3" class="line_10" position="absolute 0 121 1195 127" anchor="left top right"/>
- <Static id="caption21" text="관리항목코드 목록" class="tit_2" position="absolute 0 105 131 127"/>
- <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1087 102 1140 121" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="5" text="행삭제" class="btn2" position="absolute 1142 102 1195 121" anchor="top right" onclick="btn_grddel_onclick"/>
- <Button id="btn_excadd" taborder="6" text="엑셀입력" class="btn7" position="absolute 1004 102 1084 121" anchor="top right" onclick="btn_excadd_onclick"/>
- <Grid id="grd_notelist" taborder="7" binddataset="ds_main_notelist" useinputpanel="false" position="absolute 0 126 1194 789" autoenter="select" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="160"/>
- <Column size="230"/>
- <Column size="90"/>
- <Column size="80"/>
- <Column size="146"/>
- <Column size="132"/>
- <Column size="320"/>
- </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="HELP명"/>
- <Cell col="7" text="Return List"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:notecd"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:notecdnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:mngtkind" combodataset="ds_cmb_mngtkind" combocodecol="value" combodatacol="label"/>
- <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:inptkind" combodataset="ds_cmb_inptkind" combocodecol="value" combodatacol="label"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:frmt"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:popwnd" combodataset="ds_init_helppopup_popup" combocodecol="cd" combodatacol="nm" id="popwnd"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:returninstancelist"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="8" text="엑셀출력" class="btn7" position="absolute 922 102 1002 121" anchor="top right" onclick="button1_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_condition_oncolumnchanged">
- <ColumnInfo>
- <Column id="notecd" type="STRING" size="256"/>
- <Column id="notecdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="notecd"/>
- <Col id="notecdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_notelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="notecd" type="STRING" size="256" sumtext="기재코드"/>
- <Column id="notecdnm" type="STRING" size="256" sumtext="기재코드명"/>
- <Column id="mngtkind" type="STRING" size="256" sumtext="관리형태"/>
- <Column id="inptkind" type="STRING" size="256" sumtext="입력유형"/>
- <Column id="frmt" type="STRING" size="256" sumtext="관리형태가 입력유형에 따른 입력포멧"/>
- <Column id="popwnd" type="STRING" size="256" sumtext="관리형태가 코드 또는 콤보일때 조회를 위한 식별자"/>
- <Column id="returninstancelist" type="STRING" size="256" sumtext="각 인스턴스에 값을 가져오기위해 사용"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_mngtkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">코드</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">내역</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">콤보</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_inptkind" 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">C</Col>
- </Row>
- <Row>
- <Col id="label">숫자</Col>
- <Col id="value">N</Col>
- </Row>
- <Row>
- <Col id="label">날짜</Col>
- <Col id="value">D</Col>
- </Row>
- <Row>
- <Col id="label">백분율</Col>
- <Col id="value">P</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_helppopup_popup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">15</Col>
- <Col id="nm">계좌번호</Col>
- </Row>
- <Row>
- <Col id="cd">05</Col>
- <Col id="nm">대체계정</Col>
- </Row>
- <Row>
- <Col id="cd">50</Col>
- <Col id="nm">차입금관리</Col>
- </Row>
- <Row>
- <Col id="cd">51</Col>
- <Col id="nm">유가증권관리</Col>
- </Row>
- <Row>
- <Col id="cd">02</Col>
- <Col id="nm">부서코드</Col>
- </Row>
- <Row>
- <Col id="cd">01</Col>
- <Col id="nm">사번</Col>
- </Row>
- <Row>
- <Col id="cd">14</Col>
- <Col id="nm">거래처</Col>
- </Row>
- <Row>
- <Col id="cd">36</Col>
- <Col id="nm">부서코드</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_notecd" propid="value" datasetid="ds_main_condition" columnid="notecd"/>
- <BindItem id="item1" compid="grp_sea.ipt_notecdnm" propid="value" datasetid="ds_main_condition" columnid="notecdnm"/>
- </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";
- function SMRAC00300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRAC00300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_notelist);
- grdf_setRowTypeIcon(grd_notelist, 0);
- fCheckAuth();
- fOpenForm();
- fGetNoteList();
- }
- function fCheckAuth()
- {
- grp_sea.btn_search.enable = frmf_checkAuth("R") ;
- btn_save.enable = frmf_checkAuth("X") ;
- btn_prt.enable = frmf_checkAuth("P") ;
- }
- function fOpenForm()
- {
- ds_main_notelist.clearData();
- }
- function fGetNoteList()
- {
- ds_main_notelist.clearData();
-
- var oParam = {};
- oParam.id = "TRRAC00301";
- oParam.service = "acntbaseinfoapp.AcntBaseInfo";
- oParam.method = "reqGetNoteCdList";
- oParam.inds = "req=ds_main_condition";
- oParam.outds = "ds_main_notelist=notelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRAC00301";
- tranf_submit(oParam);
- misfSetReadOnlyCol(grd_notelist, "notecd");
- }
- function grp_sea_ipt_notecd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea.ipt_notecdnm.setFocus();
- }
- }
- function ds_main_condition_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "notecd")
- {
- racfNoteValidCheck("notecd,notecdnm")
- }
- if(e.columnid == "notecdnm")
- {
- racfNoteValidCheck("notecd,notecdnm")
- }
- }
- function grp_sea_ipt_notecdnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea.btn_search.setFocus();
- }
- }
- function grp_sea_btn_help_onclick(obj:Button, e:ClickEventInfo)
- {
- misfOpenPopUpList("06", grp_sea.ipt_notecd, "", "notecd,notecdnm");
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetNoteList();
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_ImportExcel("ds_main_notelist ", 2, grd_notelist, 0);
- }
- function btn_excadd_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_ImportExcel("ds_main_notelist ", 2, grd_notelist, 0);
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_notelist, "A");
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_notelist, "D");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickSaveBtn();
- }
- function fClickSaveBtn()
- {
- if(!fIsValidForSave()) return;
-
- var oParam = {};
- oParam.id = "TXRAC00301";
- oParam.service = "acntbaseinfoapp.AcntBaseInfo";
- oParam.method = "reqExeSaveNoteCd";
- oParam.inds = "req=ds_main_notelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRAC00301";
- tranf_submit(oParam);
- }
- function fIsValidForSave()
- {
- var sNoteList = grdf_getGridUpdateData(grd_notelist).rowcount;
- if(sNoteList == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return false;
- }
- else
- {
- return true;
- }
- }]]></Script>
- </Form>
- </FDL>
|