123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMZWT00000" position="absolute 0 0 380 220" oninit="SMZWT00000_oninit" onload="SMZWT00000_onload">
- <Layouts>
- <Layout>
- <Shape position="absolute 2 2 380 48" id="awt_rect" class="roundrect_search" type="roundrectangle"/>
- <Grid position="absolute 2 50 380 220" id="awt_grd" binddataset="ds_awt_grd" autosizingtype="row" extendsizetype="row" oncelldblclick="awt_grd_oncelldblclick" onkeydown="awt_grd_onkeydown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="296"/>
- <Column size="61"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="단어/구문"/>
- <Cell col="2" text="약어"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" style="align:left;padding:4;linespace:2;" text="bind:data" wordwrap="both" autosizerow="limitmin"/>
- <Cell col="2" text="bind:keyword"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="대상그룹:" position="absolute 5 6 87 23" id="awt_cap1" class="search_name"/>
- <Static text="검 색 어:" position="absolute 5 28 87 45" id="awt_cap2" class="search_name"/>
- <Radio position="absolute 85 4 177 24" id="awt_rdo" class="radio_search" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" onkeydown="awt_rdo_onkeydown" onitemchanged="awt_rdo_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">개인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">공용</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit position="absolute 84 26 170 45" id="awt_ipt" onkeydown="awt_ipt_onkeydown"/>
- <Button position="absolute 172 25 228 47" id="awt_btn_search" class="btn1" text="조회" onclick="awt_btn_search_onclick" onkeyup="awt_btn_search_onkeyup"/>
- <Button position="absolute 312 25 368 47" id="awt_btn_manage" class="btn4" text="관리" onclick="awt_btn_manage_onclick"/>
- <Button position="absolute 255 25 311 47" id="awt_btn_close" class="btn3" text="닫기" onclick="awt_btn_close_onclick"/>
- <Button id="awt_btn_sav" class="btn2" visible="false" text="기본그룹저장"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_awt_grd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="data" type="STRING"/>
- <Column id="keyword" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-23
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-23 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var gvUserAwtGrpCd;
- var parentForm;
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function SMZWT00000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMZWT00000_onload(obj:Form, e:LoadEventInfo)
- {
- gvUserAwtGrpCd = sysf_getUserInfo("awtgrpcd");
- }
- function initSearch(obj, awtSendWord) {
- parentForm = obj;
-
- //if (frmf_checkOpener()) {
- if(awtSendWord != null){
- awt_ipt.value = awtSendWord;
- }
- //}
- awt_rdo.value = gvUserAwtGrpCd;
- doSearch();
- }
- function doSearch() {
- // model.removenode("/root/main/words");
- // model.makeNode("/root/main/words");
- // model.refresh();
- // parent.javascript.AwtSearchLike(model.getValue("/root/send/keyword"), model.getValue("/root/send/awttype"));
- ds_awt_grd.clearData();
- var arg_ipt = awt_ipt.value;
- if(arg_ipt == undefined){
- arg_ipt = "";
- }
- awtf_AwtSearchLike(arg_ipt, awt_rdo.value);
- }
- function doSel(row) {
- //parent.javascript.AwtSetResult(model.getValue("/root/main/words/item[" + row + "]/data"), parent.javascript.AwtMode);
- //awtf_AwtSetResult(ds_awt_grd.getColumn(row, "data"), AwtMode);
-
- var iParam = ds_awt_grd.getColumn(row, "data");
-
- //if ( frmf_checkOpener() ) {
- parentForm.awtf_AwtSetResult(iParam, parentForm.AwtMode);
- this.visible = false;
- //} else {
- // var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
- //}
-
- }
- function doRefresh() {
- // awt_grd.resizeCells();
- // model.refresh();
- }
- function doFocus() {
- awt_ipt.setFocus();
-
- if (awt_grd.rowcount > 0) {
- awt_grd.setFocus();
- awt_grd.currentrow = 0;
- }
- }
- function awt_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.visible = false;
- }
- function awt_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- doSearch();
- }
- function awt_rdo_onkeydown(obj:Radio, e:KeyEventInfo)
- {
- if (e.keycode == 40) {
- awt_ipt.setFocus();
- }
- }
- function awt_rdo_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- //getViewer("sysMessage").window.javascript.fSetUserAwtGrpCd(model.getValue("/root/send/awttype"));
-
- fSetUserAwtGrpCd(awt_rdo.value);
-
- doSearch();
- }
- function fSetUserAwtGrpCd(awt_rdo)
- {
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [ {col: "awtgrpcd", val: awt_rdo} ]);
- var oParam = {};
- oParam.id = "TXZUM00303";
- oParam.service = "awtapp.AwtUser";
- oParam.method = "reqExeUserAwtGrp";
- oParam.inds = "req="+sInDsName;
- oParam.outds = "null";
- oParam.async = false;
- oParam.callback = "cf_TXZUM00303";
- tranf_submit(oParam);
- }
- function cf_TXZUM00303(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function awt_grd_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- doSel(e.row);
- }
- function awt_grd_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if (e.keycode == 13 || e.keycode == 32) {
- doSel(awt_grd.currentrow);
- }
- if (e.keycode == 38) {
- if (awt_grd.rowcount <= 0) {
- awt_ipt.setFocus();
- }
- if (awt_grd.currentrow == 0) {
- awt_grd.currentrow = -1;
- awt_ipt.setFocus();
- }
- }
- }
- function awt_ipt_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if (e.keycode == 13) {
- awt_grd.setFocus();
- awt_ipt.setFocus();
- doSearch();
- }
- if (e.keycode == 40) {
- if (awt_grd.rowcount > 0) {
- awt_grd.setFocus();
- awt_grd.currentrow = 1;
- }
- }
- if (e.keycode == 38) {
- awt_rdo.setFocus();
- }
- }
- function awt_btn_search_onkeyup(obj:Button, e:KeyEventInfo)
- {
- if (event.keyCode == 27) {
- //parent.window.javascript.AwtHide();
- this.visible = false;
- }
- }
- function awt_btn_manage_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMZWT00110", "SMZWT00110");
- }]]></Script>
- </Form>
- </FDL>
|