123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAEB00101" position="absolute 0 0 945 699" titletext="부서별장비코드조회" oninit="SPAEB00101_oninit" onload="SPAEB00101_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 941 690" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="부서별장비코드" position="absolute 0 54 158 70" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 70 934 76" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 75 930 681" id="grd_fixasetcd" binddataset="ds_main_fixasetcdlist_subfixasetcdlist" cellsizingtype="both" extendsizetype="row" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="31" band="left"/>
- <Column size="89"/>
- <Column size="120"/>
- <Column size="180"/>
- <Column size="180"/>
- <Column size="163"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="70"/>
- <Column size="145"/>
- </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="최초등록일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
- <Cell col="2" displaytype="text" text="bind:fixasetcd"/>
- <Cell col="3" displaytype="text" text="bind:goodmodel"/>
- <Cell col="4" displaytype="text" text="bind:goodflaghngnm"/>
- <Cell col="5" displaytype="text" text="bind:goodflagengnm"/>
- <Cell col="6" displaytype="text" style="align:left middle;" text="bind:goodspec"/>
- <Cell col="7" displaytype="text" text="bind:suplplcenm"/>
- <Cell col="8" displaytype="text" text="bind:suplplcecd"/>
- <Cell col="9" displaytype="date" text="bind:possndd"/>
- <Cell col="10" text="bind:fstrgstdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 870 48 926 70" id="btn_cls" class="btn4" text="닫기" anchor="default" onclick="group3_btn_cls_onclick"/>
- <Button position="absolute 811 48 867 70" id="btn_cfm" class="btn4" text="선택" anchor="default" onclick="group3_btn_cfm_onclick"/>
- <Div position="absolute 0 0 938 40" align="align:center top;" id="group2" class="div_SA2" anchor="default">
- <Layouts>
- <Layout>
- <Static text="관리부서 :" position="absolute 8 13 86 30" id="caption2" class="search_name" anchor="default"/>
- <Button position="absolute 872 9 928 31" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
- <Shape position="absolute 853 9 859 30" linetype="vertical" id="line13" anchor="default"/>
- <Combo position="absolute 89 11 259 30" id="cmb_mngtdeptcd" class="combo_search" innerdataset="@ds_init_cmb_instdeptcd_instdeptcd" datacolumn="cdnm" codecolumn="cdid" anchor="default" onitemchanged="group3_group2_cmb_instdeptcd_onitemchanged"/>
- <Static id="caption00" text="설치장소 :" class="search_name" position="absolute 312 13 390 30"/>
- <Combo id="cmb_instdeptcd" taborder="1" innerdataset="@ds_init_cmb_instdeptcd_instdeptcd" codecolumn="cdid" datacolumn="cdnm" onitemchanged="group3_group2_cmb_instdeptcd_onitemchanged" class="combo_search" position="absolute 393 11 563 30"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_fixasetcdlist_subfixasetcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="goodmodel" type="STRING" size="256"/>
- <Column id="goodflaghngnm" type="STRING" size="256"/>
- <Column id="goodflagengnm" type="STRING" size="256"/>
- <Column id="goodspec" type="STRING" size="256"/>
- <Column id="suplplcenm" type="STRING" size="256"/>
- <Column id="suplplcecd" type="STRING" size="256"/>
- <Column id="possndd" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="check"/>
- <Col id="fixasetcd"/>
- <Col id="goodmodel"/>
- <Col id="goodflaghngnm"/>
- <Col id="goodflagengnm"/>
- <Col id="goodspec"/>
- <Col id="suplplcenm"/>
- <Col id="suplplcecd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instdeptcd" type="STRING" size="256"/>
- <Column id="mngtdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_instdeptcd_instdeptcd" 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"/>
- </ColumnInfo>
- <Rows>
- <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="group3.group2.cmb_mngtdeptcd" propid="value" datasetid="ds_send" columnid="mngtdeptcd"/>
- <BindItem id="item1" compid="group3.group2.cmb_instdeptcd" propid="value" datasetid="ds_send" columnid="instdeptcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_examcurexp::AEZ0001.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gSuppdeptcd = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAEB00101
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAEB00101_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAEB00101
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAEB00101_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setGridSort(group3.grd_fixasetcd); // 그리드 소트만
- grdf_setRowTypeIcon(group3.grd_fixasetcd, 0); // 그리드 상태 표시
- grdf_setToolTipBind(group3.grd_fixasetcd);
-
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
-
- dsf_createDsRow("ds_req", [
- {col:"not", type:"STRING", size:256, val:"1"}
- ]);
- var oParam = {};
- oParam.id = "TRAEB00103";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqGetFixaSetCodeList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_cmb_instdeptcd_instdeptcd=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB00103";
- tranf_submit(oParam);
-
- ds_send.clearData();
- ds_send.addRow();
- ds_send.setColumn(0,"instdeptcd", opener.frmf_getParameter("SPAEB00101_param_suppdeptcd"));
- ds_send.setColumn(0,"mngtdeptcd", opener.frmf_getParameter("SPAEB00101_param_suppdeptcd"));
-
- }
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRAEB00104";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqGetFixaSetCodeDetailList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_fixasetcdlist_subfixasetcdlist=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00104";
- tranf_submit(oParam);
- }
- function cf_TRAEB00104(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_main_fixasetcdlist_subfixasetcdlist.updateColID("check1","check");
- }
- function group3_group2_cmb_instdeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- obj.updateToDataset();
- group3_group2_btn_search_onclick();
- }
- function group3_btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( ds_main_fixasetcdlist_subfixasetcdlist.rowposition < 0 ) return;
-
- var srcXpath1 = opener.frmf_getParameter("SPAEB00101_param_srcXpath1");
- //var srcXgrid1 = opener.frmf_getParameter("SPAEB00101_param_srcXgrid1");
- var srcXrow1 = opener.frmf_getParameter("SPAEB00101_param_srcXrow1");
- var srcXnode1 = opener.frmf_getParameter("SPAEB00101_param_srcXnode1");
- var srcXnodenm1 = opener.frmf_getParameter("SPAEB00101_param_srcXnodenm1");
- var srchLength1 = ds_main_fixasetcdlist_subfixasetcdlist.rowcount;
-
- if ( srchLength1 > 0 ) {
- for ( var i = 0; i < srchLength1; i++ ) {
- if ( ds_main_fixasetcdlist_subfixasetcdlist.getColumn(i,"check") == "1" ) {
- trace("1");
- if (!utlf_isNull(srcXnode1)) {
- opener.objects[srcXpath1].setColumn(srcXrow1,srcXnode1,ds_main_fixasetcdlist_subfixasetcdlist.getColumn(i,"fixasetcd"));
- }
- if (!utlf_isNull(srcXnodenm1)) {
- opener.objects[srcXpath1].setColumn(srcXrow1,srcXnodenm1,ds_main_fixasetcdlist_subfixasetcdlist.getColumn(i,"goodmodel"));
- }
-
- }
- }
- this.close();
- }
- }
- function group3_btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|