123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRFE00100" position="absolute 0 0 1191 687" titletext="악세사리" oninit="SMRFE00100_oninit" onload="SMRFE00100_onload">
- <Layouts>
- <Layout>
- <Button id="button27" taborder="1" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48" onclick="button27_onclick"/>
- <Button id="button26" taborder="2" text="화면이동" class="btn3" visible="false" position="absolute 58 26 138 48"/>
- <Shape id="line14" linetype="horizontal" class="line_6" position="absolute 0 47 1185 53" anchor="left top right"/>
- <Button id="button20" taborder="3" text="저장" class="btn4" position="absolute 1057 26 1113 48" anchor="top right" onclick="button20_onclick"/>
- <Button id="button29" taborder="4" text="초기화" class="btn4" position="absolute 1116 26 1184 48" anchor="top right" onclick="button29_onclick"/>
- <Static id="caption6" text="소모품구성이력등록" class="tit_1" position="absolute 0 0 262 25"/>
- <Grid id="grd_setcompslist" taborder="5" binddataset="ds_main_setcompslist" useinputpanel="false" position="absolute 0 175 1185 682" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="52"/>
- <Column size="110"/>
- <Column size="0"/>
- <Column size="215"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="170"/>
- <Column size="100"/>
- <Column size="100"/>
- <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="Set 구분"/>
- <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="고정자산코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:compsgoodseq"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:goodcd"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:setflag"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:center middle;" text="bind:itemnm"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:center middle;" text="bind:setcompsspec"/>
- <Cell col="6" displaytype="number" edittype="text" text="bind:compsgoodqty"/>
- <Cell col="7" displaytype="number" edittype="text" text="bind:compsgoodunitcost"/>
- <Cell col="8" displaytype="number" text="bind:goodamt"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:suplflag" combodataset="ds_init_suplflag" combocodecol="value" combodatacol="label"/>
- <Cell col="10" text="bind:instcd"/>
- <Cell col="11" text="bind:fixasetcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_delrow" taborder="6" text="행삭제" class="btn2" position="absolute 1132 151 1185 170" anchor="top right" onclick="btn_delrow_onclick"/>
- <Button id="btn_addrow" taborder="7" text="행추가" class="btn2" position="absolute 1076 151 1129 170" anchor="top right" onclick="btn_addrow_onclick"/>
- <Static id="caption9" text="소모품 구성이력" class="tit_2" position="absolute 0 154 140 176"/>
- <Shape id="line1" class="line_10" position="absolute 0 170 1185 176" anchor="left top right"/>
- <Static id="cap_possndd" text="취득일자" class="cell_1" position="absolute 404 125 489 148"/>
- <Edit id="opt_installplcenm" taborder="8" class="output" position="absolute 185 103 401 122" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <Edit id="ipt_installplcecd" taborder="9" readonly="true" class="output" position="absolute 88 103 183 122"/>
- <Static id="cap_mngtno" text="SERIAL NO" class="cell_1" position="absolute 677 101 777 124"/>
- <Combo id="cmb_instcd" taborder="10" class="combo_essential" position="absolute 88 78 240 97"/>
- <Edit id="ipt_mngtno" taborder="11" readonly="true" class="output" position="absolute 779 103 979 122"/>
- <Edit id="ipt_possnamt" taborder="12" readonly="true" class="output" position="absolute 779 126 979 145"/>
- <Static id="cap_possnamt" text="취득금액" class="cell_1" position="absolute 677 125 777 148"/>
- <Edit id="ipt_cntrdeptcd" taborder="13" readonly="true" class="output" position="absolute 88 127 183 146"/>
- <Static id="caption1" text="소모품 구성 이력등록" class="tit_2" position="absolute 0 56 165 78"/>
- <Button id="btn_fixasetcd" taborder="14" class="icon_search" position="absolute 601 78 617 94" onclick="btn_fixasetcd_onclick"/>
- <Edit id="ipt_goodspec" taborder="15" readonly="true" class="output" position="absolute 491 103 674 122"/>
- <Static id="cap_goodspec" text="규격" class="cell_1" position="absolute 404 101 489 124"/>
- <Edit id="ipt_fixasetnm" taborder="16" class="input_fix" position="absolute 620 78 979 97" autoselect="true"/>
- <Shape id="line2" class="line_2" position="absolute 0 122 1185 128" anchor="left top right"/>
- <Calendar id="ipt_possndd" taborder="17" readonly="true" class="output" position="absolute 491 126 674 145" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <Edit id="opt_cntrdeptcd" taborder="18" readonly="true" class="output" position="absolute 185 127 401 146"/>
- <Static id="cap_installplcecd" text="설치장소" class="cell_1" position="absolute 0 101 85 124"/>
- <Static id="cap_instcd" text="기관코드" class="cell_1" position="absolute 0 77 85 100"/>
- <Edit id="ipt_fixasetcd" taborder="19" class="input_essential" position="absolute 491 78 597 97" autoselect="true" onkeydown="ipt_fixasetcd_onkeydown"/>
- <Shape id="line3" class="line_10" position="absolute 0 72 1185 78" anchor="left top right"/>
- <Shape id="line4" class="line_2" position="absolute 0 98 1185 104" anchor="left top right"/>
- <Static id="cap_fixasetcd" text="자산코드" class="cell_1" position="absolute 404 77 489 100"/>
- <Button id="btn_search" taborder="20" text="조회" class="btn1" position="absolute 1125 102 1181 124" anchor="top right" onclick="btn_search_onclick"/>
- <Shape id="line6" class="line_3" position="absolute 0 145 1185 151" anchor="left top right"/>
- <Static id="cap_cntrdeptcd" text="귀속부서" class="cell_1" position="absolute 0 125 85 148"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="goodflaghngnm" type="STRING" size="256"/>
- <Column id="possndd" type="STRING" size="256"/>
- <Column id="installplcecd" type="STRING" size="256"/>
- <Column id="installplcenm" type="STRING" size="256"/>
- <Column id="goodspec" type="STRING" size="256"/>
- <Column id="possnamt" type="STRING" size="256"/>
- <Column id="cntrdeptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- <Column id="mngtno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="fixasetcd"/>
- <Col id="goodflaghngnm"/>
- <Col id="possndd"/>
- <Col id="installplcecd"/>
- <Col id="installplcenm"/>
- <Col id="goodspec"/>
- <Col id="possnamt"/>
- <Col id="cntrdeptcd"/>
- <Col id="depthngnm"/>
- <Col id="mngtno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_setcompslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_setcompslist_oncolumnchanged">
- <ColumnInfo>
- <Column id="compsgoodseq" type="STRING" size="256" sumtext="순번"/>
- <Column id="setflag" type="STRING" size="256" sumtext="Set구분"/>
- <Column id="itemnm" type="STRING" size="256" sumtext="Set명칭"/>
- <Column id="setcompsspec" type="STRING" size="256" sumtext="규격"/>
- <Column id="compsgoodqty" type="STRING" size="256" sumtext="수량"/>
- <Column id="compsgoodunitcost" type="STRING" size="256" sumtext="단가"/>
- <Column id="goodamt" type="STRING" size="256" sumtext="금액"/>
- <Column id="suplflag" type="STRING" size="256" sumtext="조달구분"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="fixasetcd" type="STRING" size="256" sumtext="자산코드"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_suplflag" 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>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item1" compid="ipt_fixasetcd" propid="value" datasetid="ds_send" columnid="fixasetcd"/>
- <BindItem id="item2" compid="ipt_fixasetnm" propid="value" datasetid="ds_send" columnid="goodflaghngnm"/>
- <BindItem id="item3" compid="ipt_installplcecd" propid="value" datasetid="ds_send" columnid="installplcecd"/>
- <BindItem id="item4" compid="opt_installplcenm" propid="value" datasetid="ds_send" columnid="installplcenm"/>
- <BindItem id="item5" compid="ipt_goodspec" propid="value" datasetid="ds_send" columnid="goodspec"/>
- <BindItem id="item6" compid="ipt_mngtno" propid="value" datasetid="ds_send" columnid="mngtno"/>
- <BindItem id="item7" compid="ipt_cntrdeptcd" propid="value" datasetid="ds_send" columnid="cntrdeptcd"/>
- <BindItem id="item8" compid="opt_cntrdeptcd" propid="value" datasetid="ds_send" columnid="depthngnm"/>
- <BindItem id="item9" compid="ipt_possndd" propid="value" datasetid="ds_send" columnid="possndd"/>
- <BindItem id="item10" compid="ipt_possnamt" propid="value" datasetid="ds_send" columnid="possnamt"/>
- </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";
- include "mis_miscommonxp::RSZ001.xjs";
- function SMRFE00100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRFE00100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_setcompslist);
- grdf_setRowTypeIcon(grd_setcompslist, 0);
-
- try
- {
- ds_temp.copyData(arg_ds_temp)
- }
- catch(e)
- {
- }
- fInitialize();
- fGetdata();
- }
- function fInitialize()
- {
- ds_send.clearData();
- ds_send.addRow();
-
- misfGridInit(grd_setcompslist);
-
- misfComboComCdListMulti("Z0007", "cmb_instcd"); // 기관코드
-
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- misfMsterDetailSet(grd_setcompslist, null, "TRRFC00204", "Y");
- }
- function fGetdata()
- {
- ds_send.enableevent = false;
- var sInstcd = ds_temp.getColumn(0, "instcd");
- var sFixasetcd = ds_temp.getColumn(0, "fixasetcd");
- var sInstallplcecd = ds_temp.getColumn(0, "installplcecd");
- var sInstallplcenm = ds_temp.getColumn(0, "installplcenm");
- var sGoodspec = ds_temp.getColumn(0, "goodspec");
- var sMngtno = ds_temp.getColumn(0, "mngtno");
- var sCntrdeptcd = ds_temp.getColumn(0, "cntrdeptcd");
- var sCntrdeptnm = ds_temp.getColumn(0, "cntrdeptnm");
- var sPossndd = ds_temp.getColumn(0, "possndd");
- var sPossnamt = ds_temp.getColumn(0, "possnamt");
-
- if(!utlf_isNull(sInstcd))
- {
- cmb_instcd.value = ds_temp.getColumn(0, "instcd");
- }
-
- if(!utlf_isNull(sFixasetcd))
- {
- ipt_fixasetcd.value = ds_temp.getColumn(0, "fixasetcd");
- ipt_fixasetnm.value = ds_temp.getColumn(0, "goodflaghngnm");
- var eventObj = new EventInfo(); // 이벤트생성
- eventObj.columnid = "fixasetcd";
- eventObj.newvalue = ds_send.getColumn(0, "fixasetcd");
- ds_send_oncolumnchanged(ds_send, eventObj);
- }
-
- if(!utlf_isNull(sInstallplcecd))
- {
- ipt_installplcecd.value = ds_temp.getColumn(0, "installplcecd");
- }
-
- if(!utlf_isNull(sInstallplcenm))
- {
- opt_installplcenm.value = ds_temp.getColumn(0, "installplcenm");
- }
-
- if(!utlf_isNull(sGoodspec))
- {
- ipt_goodspec.value = ds_temp.getColumn(0, "goodspec");
- }
-
- if(!utlf_isNull(sMngtno))
- {
- ipt_mngtno.value = ds_temp.getColumn(0, "mngtno");
- }
-
- if(!utlf_isNull(sCntrdeptcd))
- {
- ipt_cntrdeptcd.value = ds_temp.getColumn(0, "cntrdeptcd");
- }
-
- if(!utlf_isNull(sCntrdeptnm))
- {
- opt_cntrdeptcd.value = ds_temp.getColumn(0, "cntrdeptnm");
- }
-
- if(!utlf_isNull(sPossndd))
- {
- ipt_possndd.value = ds_temp.getColumn(0, "possndd");
- }
-
- if(!utlf_isNull(sPossnamt))
- {
- ipt_possnamt.value = ds_temp.getColumn(0, "possnamt");
- }
-
- if(!utlf_isNull(sFixasetcd))
- {
- btn_search.click();
- }
- ds_send.enableevent = true;
- }
- function ds_send_oncolumnchanged(obj, e)
- {
- if(e.columnid == "fixasetcd")
- {
- var objFocus = this.getFocus();
-
- if(!utlf_isNull(e.newvalue))
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + e.newvalue, "", "fixasetcd,goodflaghngnm",
- ipt_fixasetcd, "SPRSD00240", "instcd","cmb_instcd");
- }
- else
- {
- ipt_fixasetcd.value = "";
- ipt_fixasetnm.value = "";
- }
-
- objFocus.setFocus();
- }
- if(e.columnid == "goodflaghngnm")
- {
- var objFocus = this.getFocus();
-
- if(!utlf_isNull(e.newvalue))
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
- "goodflaghngnm," + cmb_instcd.value + "," + e.newvalue, "", "fixasetcd,goodflaghngnm",
- ipt_fixasetnm, "SPRSD00240", "instcd","cmb_instcd");
- }
- else
- {
- ipt_fixasetcd.value = "";
- ipt_fixasetnm.value = "";
- }
-
- objFocus.setFocus();
- }
- }
- function btn_fixasetcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var temp = "fixasetcd,goodflaghngnm,cntrdeptcd,installplcenm,possnamt,goodspec,mngtno,possndd,installplcecd,depthngnm";
-
- rszfOpenPopUpListByWndName(ipt_fixasetcd,"", temp, "SPRSD00240","instcd","cmb_instcd", "Y");
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function fSearch()
- {
- arrCompId = new Array("ipt_fixasetcd");
- if(!frmf_isRequiredControls(arrCompId)) return;
-
- var updtdata = grdf_getGridUpdateData(grd_setcompslist).rowcount;
- if ( updtdata != 0)
- {
- var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6)
- {
- return;
- }
- }
-
- misfMsterDetailRetrieve();
- }
- function ds_main_setcompslist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "compsgoodqty" || e.columnid == "compsgoodunitcost")
- {
- var sQty = obj.getColumn(e.row, "compsgoodqty");
- var sCost = obj.getColumn(e.row, "compsgoodunitcost");
-
- if(e.columnid == "compsgoodqty")
- {
- if(!utlf_isNull(e.newvalue))
- {
- sQty = e.newvalue;
- }
- }
- if(e.columnid == "compsgoodunitcost")
- {
- if(!utlf_isNull(e.newvalue))
- {
- sCost = e.newvalue;
- }
- }
-
- obj.setColumn(e.row, "goodamt", (sQty * sCost));
- }
- }
- function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
- {
- arrCompId = new Array("ipt_fixasetcd");
- if(!frmf_isRequiredControls(arrCompId)) return;
-
- misfGridIUD(grd_setcompslist, "A");
- var cur_row = ds_main_setcompslist.rowposition;
- ds_main_setcompslist.setColumn(cur_row, "setflag", 1);
- // ds_main_setcompslist.setColumn(cur_row, "instcd", ds_send.getColumn(0, "instcd");
- // ds_main_setcompslist.setColumn(cur_row, "instcd", ds_send.getColumn(0, "instcd");
- }
- function btn_delrow_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_setcompslist, "D");
- }
- function button20_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- }
- function fSave()
- {
- var updtdata = grdf_getGridUpdateData(grd_setcompslist).rowcount;
-
- if (updtdata == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- var oParam = {};
- oParam.id = "TXRFC00203";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqSaveSetCompsList";
- oParam.inds = "req=ds_main_setcompslist:u";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRFC00203";
- tranf_submit(oParam);
- }
- function cf_TXRFC00203(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else btn_search.click();
- }
- function button29_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function ipt_fixasetcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|