123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB00600" position="absolute 0 0 1202 805" titletext="Untitle" onload="SMAEB00600_onload" oninit="SMAEB00600_oninit">
- <Layouts>
- <Layout>
- <Static text="부위코드관리" position="absolute 1 0 107 29" id="caption19" class="tit_1" anchor="default"/>
- <Div position="absolute 0 29 1195 773" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 1 66 1194 72" linetype="vertical" id="line1" class="line_1" anchor="default"/>
- <Shape position="absolute 0 0 1194 35" id="roundrect1" type="roundrectangle" anchor="default"/>
- <Button position="absolute 1124 8 1180 30" id="btn_sea" class="btn1" text="조회" anchor="default" onclick="grp_biz_btn_sea_onclick"/>
- <Button position="absolute 1086 40 1139 59" id="btn_grdadd" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_grdadd_onclick"/>
- <Button position="absolute 1142 40 1195 59" id="btn_grddel" class="btn2" text="행삭제" anchor="default" onclick="grp_biz_btn_grddel_onclick"/>
- <Static text="부위코드관리" position="absolute 5 47 125 61" id="caption1" class="tit_2" anchor="default"/>
- <Grid position="absolute 1 66 1194 731" id="grd_bodypart" binddataset="ds_main_bodypart" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="50"/>
- <Column size="113"/>
- <Column size="770"/>
- <Column size="209"/>
- <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="부위(품목)명"/>
- <Cell col="4" text="부위(품목)그룹"/>
- <Cell col="5" text="basecdflag"/>
- <Cell col="6" text="basesuppdeptcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="bind:update"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" suppressalign="middle"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:basecd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts"/>
- <Cell col="5" text="bind:basecdflag"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 757 1195 784" id="grp_btn">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1194 6" linetype="vertical" id="line32" class="line_6"/>
- <Button position="absolute 1139 4 1195 26" id="btn_save" class="btn4" text="저장" onclick="grp_btn_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="부위코드 :" position="absolute 15 39 111 56" id="caption2" class="search_name"/>
- <Button position="absolute 245 40 261 56" id="button61" class="icon_search" text=""/>
- <Edit position="absolute 105 39 240 58" id="ipt_basecd" class="input_search" onkeydown="ipt_basecd_onkeydown"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sortno" type="STRING"/>
- <Column id="basecd" type="STRING"/>
- <Column id="basecdflagdesc" type="STRING"/>
- <Column id="basecdcnts" type="STRING"/>
- <Column id="basecdflag" type="STRING"/>
- <Column id="basesuppdeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instance1" 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">
- <ColumnInfo>
- <Column id="checkseq" type="STRING" size="256"/>
- <Column id="grupcdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <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="basecd" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="bbasecdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_bodypartgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <Column id="basecdcnts" type="STRING" size="256" sumtext="부위그룹코드"/>
- <Column id="basecdcnts" type="STRING" size="256" sumtext="부위그룹코드"/>
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256" sumtext="부위그룹코드"/>
- <Column id="basecdcnts" type="STRING" size="256" sumtext="부위그룹코드"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="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";
- include "com_departmentcodexp::ZSD001.xjs";
- function fn_TRAEB00601(){
- if (ds_send.rowcount < 1 ) {
- ds_send.addRow();
- }
-
- ds_send.setColumn(0,'basesuppdeptcd', utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))); //부서코드
- ds_send.setColumn(0,'bbasecdflag', 'B'); //검사실기본코드구분
-
- var oParam = {};
- oParam.id = "TRAEB00601";
- oParam.service = "examcurebaseapp.BodyPart";
- oParam.method = "reqGetBodyPartList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_bodypart=bodypart ds_main_bodypartgrp=bodypartgrp";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00601";
-
- tranf_submit(oParam);
- }
- function cf_TRAEB00601(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function fn_TXAEB00601(){
- if (ds_send_reqdata.rowcount < 1 ) {
- ds_send_reqdata.addRow();
- }
- ds_send_reqdata.addColumn( 'bbasecdflag', 'string');
- ds_send_reqdata.setColumn(0,'bbasecdflag', 'B'); //검사실기본코드구분
-
- var oParam = {};
- oParam.id = "TXAEB00601";
- oParam.service = "examcurebaseapp.BodyPart";
- oParam.method = "reqExeBodyPartList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- oParam.callback = "cf_TXAEB00601";
- tranf_submit(oParam);
- }
- function cf_TXAEB00601(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function SMAEB00600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAEB00600_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
-
- sysf_trace("suppdeptcd = " + frmf_getParameter("AST_DEPTCD"));
-
- ds_main_bodypart.clearData();
- grdf_setRowTypeIcon(grp_biz.grd_bodypart, 0); //status 표시 : 입력, 삭제, 갱신
- ipt_basecd.setFocus();
- }
- function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_main_bodypart.addRow();
- // 행추가 시 bottomRow 사용하지 마세요!! 꼭
- grp_biz.grd_bodypart.setCellPos(nRow);
- ds_main_bodypart.setColumn(nRow,"basesuppdeptcd",ds_send_globalinstance.getColumn(0,"instance1"));
- ds_main_bodypart.setColumn(nRow,"sortno",nRow + 1);
- }
- function grp_biz_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var arrRow = new Array();
- arrRow[0] = ds_main_bodypart.rowposition;
- grdf_setStatus(grp_biz.grd_bodypart, "D", arrRow);
- }
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("","Q002")==6 ) {
-
- var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_bodypart, "all");
- grdf_setStatusColumn(dsUpdate, "m");
-
- if(dsUpdate.rowcount == 0){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- ds_send_reqdata.clear();
- ds_send_reqdata.copyData(dsUpdate, true);
-
- dsf_setDefaultVal(ds_send_reqdata, "ubasecdflag:U");
- fn_TXAEB00601();
- }
- }
-
- fn_TRAEB00601();
- }
- function ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- grp_biz_grp_sea_btn_sea_onclick();
- }
- }
- function grp_biz_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fn_TRAEB00601();
- }
- ]]></Script>
- </Form>
- </FDL>
|