123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB00700" position="absolute 0 0 1199 805" titletext="Untitle" oninit="SMAEB00700_oninit" onload="SMAEB00700_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 101 1195 772" id="grd_opinlist" binddataset="ds_main_opinlist_item" autoenter="key" cellsizingtype="col" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21" band="left"/>
- <Column size="100"/>
- <Column size="205"/>
- <Column size="446"/>
- <Column size="432"/>
- <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"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" editautoselect="true"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:basecd" editautoselect="true"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editautoselect="true"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editautoselect="true"/>
- <Cell col="5" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" taborder="1" position="absolute 0 24 1195 64" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption25" text="코드 :" class="search_name" position="absolute 9 12 95 29"/>
- <Edit id="ipt_basecd" taborder="1" class="input_search" position="absolute 70 10 170 29" autoselect="true"/>
- <Button id="button61" taborder="2" class="icon_search" position="absolute 175 11 191 27" onclick="grp_sea_button61_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1114 9 1120 31" anchor="top right"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1124 9 1180 31" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 96 1195 102" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
- <Button position="absolute 1088 77 1141 96" id="btn_grdadd" class="btn2" text="행추가" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Button position="absolute 1142 77 1195 96" id="btn_grddel" class="btn2" text="행삭제" anchor="top right" onclick="btn_grddel_onclick"/>
- <Button position="absolute 1139 774 1195 796" id="btn_save" class="btn4" text="저장" anchor="right bottom" onclick="btn_save_onclick"/>
- <Static id="caption19" text="소견명관리" class="tit_1" position="absolute 0 0 165 24"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="hbasecdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_opinlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sortno" type="STRING" size="256" sumtext="순번"/>
- <Column id="basecd" type="STRING" size="256" sumtext="소견명코드"/>
- <Column id="basecdflagdesc" type="STRING" size="256" sumtext="기본코드구분"/>
- <Column id="basecdcnts" type="STRING" size="256" sumtext="소견명코드내용"/>
- <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="basecdflag" type="STRING" size="256" sumtext="소견명코드구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- var vSuppdeptcd;
- function SMAEB00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAEB00700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_opinlist);
- grdf_setRowTypeIcon(grd_opinlist, 0);
-
- lf_aezfSetSuppDeptcd();
- vSuppdeptcd = frmf_getPrestDeptCd();
-
- dsf_makeValue(ds_send, "basesuppdeptcd", "string", vSuppdeptcd);
-
- ds_main_opinlist_item.clearData();
- grp_sea.ipt_basecd.setFocus();
- }
- function grp_sea_button61_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_sea.btn_sea.click();
- }
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_setFixVal(ds_send, "hbasecdflag:H");
- var oParam = {};
- oParam.id = "TRAEB00701";
- oParam.service = "examcurebaseapp.OpinCode";
- oParam.method = "reqGetOpinCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_opinlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB00701";
- tranf_submit(oParam);
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var cnt = ds_main_opinlist_item.addRow();
- ds_main_opinlist_item.setColumn(cnt, "basesuppdeptcd", ds_send.getColumn(0, "basesuppdeptcd"));
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = grdf_getSelectedRows(grd_opinlist);
- for(var i = rows.length-1; i >= 0; i--)
- {
- var m_row = rows[i];
- if(ds_main_opinlist_item.getRowType(m_row) == 2)
- {
- ds_main_opinlist_item.deleteRow(m_row);
- }
- else
- {
- ds_main_opinlist_item.updatecontrol = false;
- ds_main_opinlist_item.setRowType(m_row, "d");
- ds_main_opinlist_item.updatecontrol = true;
- }
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("","Q002")==6 )
- {
- var update = grdf_getGridUpdateData(grd_opinlist);
- if(update.rowcount == 0)
- {
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- }
- else
- {
- alert(ds_send.getColumn(0, "basesuppdeptcd"));
- grdf_setStatusColumn(update, "m");
- ds_send_req_data.copyData(update, true);
- dsf_setTypeFormat(ds_send_req_data, "sortno:INT");
- dsf_setFixVal(ds_send_req_data, "hbasecdflag:H");
- var oParam = {};
- oParam.id = "TXAEB00701";
- oParam.service = "examcurebaseapp.OpinCode";
- oParam.method = "reqExeOpinCodeList";
- oParam.inds = "req=ds_send_req_data";
- oParam.outds = "ds_=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAEB00701";
- tranf_submit(oParam);
- }
- }
- dsf_setFixVal(ds_send, "hbasecdflag:H");
- var oParam = {};
- oParam.id = "TRAEB00701";
- oParam.service = "examcurebaseapp.OpinCode";
- oParam.method = "reqGetOpinCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_opinlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB00701";
- tranf_submit(oParam);
- }
- ]]></Script>
- </Form>
- </FDL>
|