123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRAD09900" position="absolute 0 0 875 572" titletext="기준코드관리" oninit="SMRAD09900_oninit">
- <Layouts>
- <Layout>
- <Shape position="absolute 3 25 870 60" id="rectangle1" type="roundrectangle"/>
- <Static text="코드명검색:" position="absolute 404 33 498 50" id="caption11" class="search_name" visible="false"/>
- <Edit position="absolute 506 32 615 51" id="input13" class="input_search" visible="false"/>
- <Button position="absolute 797 31 853 53" id="btn_sea" class="btn1" text="조회" onclick="btn_sea_onclick"/>
- <Shape position="absolute 684 31 690 53" linetype="vertical" id="line6"/>
- <Shape position="absolute 3 87 868 93" linetype="horizontal" id="line7" class="line_10"/>
- <Grid position="absolute 3 92 870 542" id="datagrid1" binddataset="ds_main_codeinfo_codelist" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="76"/>
- <Column size="198"/>
- <Column size="316"/>
- <Column size="67"/>
- <Column size="56"/>
- <Column size="56"/>
- <Column size="56"/>
- <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="구분1"/>
- <Cell col="7" text="구분2"/>
- <Cell col="8" text="caption1"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:cdid" editautoselect="true" enable="false"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:cdnm" editautoselect="true"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:detldesc" editautoselect="true"/>
- <Cell col="4" displaytype="combo" edittype="combo" style="align:center;" text="bind:useyn" combodataset="ds_cbo_useyn" combocodecol="value" combodatacol="label"/>
- <Cell col="5" displaytype="number" edittype="masknumber" style="align:center;" text="bind:cntlcd3" mask="#" maskchar=" " editautoselect="true"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:cntlcd1" editautoselect="true"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:cntlcd2" editautoselect="true"/>
- <Cell col="8" text="bind:grupcdid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="코드별 상세정보" position="absolute 3 71 119 87" id="caption4" class="tit_2"/>
- <Button position="absolute 759 68 812 87" id="btn_grdadd" class="btn2" text="행추가" onclick="btn_grdadd_onclick"/>
- <Button position="absolute 814 68 867 87" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
- <Button position="absolute 704 68 757 87" id="button27" class="btn2" visible="false" text="행복사" onclick="button27_onclick"/>
- <Button position="absolute 816 547 872 569" id="btn_save" class="btn4" text="저장" onclick="btn_save_onclick"/>
- <Shape position="absolute 3 541 868 547" linetype="horizontal" id="line1" class="line_3"/>
- <Static text="구분:" position="absolute 24 33 87 50" id="caption2" class="search_name"/>
- <Combo position="absolute 86 32 395 51" id="combo1" codecolumn="codecolumn" datacolumn="datacolumn" oncloseup="combo1_oncloseup">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A0001</Col>
- <Col id="datacolumn">보조비계좌관리</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A0003</Col>
- <Col id="datacolumn">원가비용코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A0004</Col>
- <Col id="datacolumn">프로젝트별코드관리</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A0005</Col>
- <Col id="datacolumn">관리항목 필수입력 계정과목</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A0006</Col>
- <Col id="datacolumn">예산합의 전 적합성 검증 대상 계정과목</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static text="구분:" position="absolute 625 33 689 50" id="caption3" class="search_name" visible="false"/>
- <Combo position="absolute 685 32 770 51" id="combo2" visible="false" codecolumn="codecolumn" datacolumn="datacolumn" oncloseup="combo2_oncloseup">
- <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">A</Col>
- <Col id="datacolumn">A</Col>
- </Row>
- <Row>
- <Col id="codecolumn">B</Col>
- <Col id="datacolumn">B</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">C</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">D</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption1" text="기준코드관리" class="tit_1" position="absolute 0 0 252 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cbo_useyn" 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">Y</Col>
- </Row>
- <Row>
- <Col id="label">사용안함</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_codeinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="detldesc" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="cntlcd1" type="STRING" size="256"/>
- <Column id="cntlcd2" type="STRING" size="256"/>
- <Column id="cntlcd3" type="STRING" size="256"/>
- <Column id="grupcdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- <Col id="detldesc"/>
- <Col id="useyn"/>
- <Col id="cntlcd1"/>
- <Col id="cntlcd2"/>
- <Col id="cntlcd3"/>
- <Col id="grupcdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="grupcdid" type="STRING" size="256"/>
- <Column id="srcd" type="STRING" size="256"/>
- <Column id="gb" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="grupcdid"/>
- <Col id="srcd"/>
- <Col id="gb"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_senddata_execdata_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdgrupid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="combo1" propid="value" datasetid="ds_send_reqdata" columnid="grupcdid"/>
- <BindItem id="item1" compid="input13" propid="value" datasetid="ds_send_reqdata" columnid="srcd"/>
- <BindItem id="item2" compid="combo2" propid="value" datasetid="ds_send_reqdata" columnid="gb"/>
- </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";
- var arErrorCode = new HashArray();
- function SMRAD09900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- readfunc();
- }
- function readfunc(){ // 해당 조건에 대한 사용자 권한내역을 조회한다.
- if (utlf_isNull(ds_send_reqdata.getColumn(0, "grupcdid"))){
- sysf_messageBox("구분코드를 선택한 후 조회하시기 바랍니다.", "E999", "");
- return;
- }
- ds_main_codeinfo_codelist.clearData();
- btn_save.enable = true;
-
- var oParam = {};
- oParam.id = "TRRWC02202";
- oParam.service = "paybaseinfomngtapp.PayBaseInfoMngt";
- oParam.method = "reqGetBaseInfo2";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_codeinfo_codelist=codelist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_isNull(ds_send_reqdata.getColumn(0, "grupcdid"))){
- sysf_messageBox("구분코드를 선택한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
- ds_main_codeinfo_codelist.addRow();
-
- var irow = ds_main_codeinfo_codelist.rowposition;
- ds_main_codeinfo_codelist.setColumn(irow, "grupcdid", ds_send_reqdata.getColumn(0, "grupcdid"));
-
- ds_main_codeinfo_codelist.rowposition = irow;
- datagrid1.setCellPos(1);
- datagrid1.showEditor(true);
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_codeinfo_codelist.deleteRow(ds_main_codeinfo_codelist.rowposition);
- }
- function button27_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- function datacheck(){
- var scdid1 = "";
- var scdid2 = "";
- for (var i = 0; i < ds_main_codeinfo_codelist.rowcount; i ++){
- if (utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "cdid"))){
- sysf_messageBox("코드는 필수 입력항목입니다.", "E999", "");
- return false;
- }
-
- scdid1 = ds_main_codeinfo_codelist.getColumn(i, "cdid");
- var k = i + 1;
- for (var j = k; j < ds_main_codeinfo_codelist.rowcount; j++){
- scdid2 = ds_main_codeinfo_codelist.getColumn(j, "cdid");
- if (i != j){
- if (scdid1 == scdid2){
- sysf_messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- return true;
- }
- function ExecData(){
- var oParam = {};
- oParam.id = "TXRWC02201";
- oParam.service = "paybaseinfomngtapp.PayBaseInfoMngt";
- oParam.method = "reqExeBaseCodeList";
- oParam.inds = "codelist=ds_main_codeinfo_codelist:U";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- oParam.typeStr = "m";
- oParam.callback = "cf_TXRWC02201";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXRWC02201") > -1){
- readfunc();
- }
- }
- function cf_TXRWC02201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function combo1_oncloseup(obj:Combo, e:ComboCloseUpEventInfo)
- {
- if (ds_send_reqdata.getColumn(0, "grupcdid") == "A0004"){
- caption3.visible = true;
- combo2.visible = true;
- btn_grdadd.enable = true;
- btn_grddel.enable = true;
- btn_save.enable = true;
-
- readfunc();
- }else{
- caption3.visible = false;
- combo2.visible = false;
- btn_grdadd.enable = true;
- btn_grddel.enable = true;
- btn_save.enable = true;
- readfunc();
- }
- }
- function combo2_oncloseup(obj:Combo, e:ComboCloseUpEventInfo)
- {
- btn_sea_onclick();
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (datacheck() == false){
- return;
- }
- ExecData();
- }
- ]]></Script>
- </Form>
- </FDL>
|