123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPID32400" classname="SPPID32200_외국인진료비예상금액산정" inheritanceid="" position="absolute 0 0 693 512" titletext="외국인에이전시관리" onload="SPPID32400_onload">
- <Layouts>
- <Layout>
- <Static id="caption00" text="에이전시 관리" class="tit_1" position="absolute 0 0 130 25"/>
- <Static id="caption18" text="에이전시 리스트" onclick="caption1_onclick" class="tit_2" position="absolute 0 33 158 52" anchor="left top"/>
- <Shape id="line01" onclick="grp_tstmemo_line5_onclick" class="line_10" position="absolute 0 49 692 55" anchor="left top right"/>
- <Button id="btn_close" taborder="31" text="닫기" class="btn4" position="absolute 635 485 691 507" anchor="right bottom" onclick="btn_close_onclick"/>
- <Grid id="datagrid2" taborder="33" binddataset="ds_speccodelist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 54 692 480" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="0"/>
- <Column size="85"/>
- <Column size="137"/>
- <Column size="247"/>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="500"/>
- <Column size="0"/>
- <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="그룹ID"/>
- <Cell col="2" text="ID"/>
- <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="cdgrupid_org"/>
- <Cell col="11" text="cdid_org"/>
- <Cell col="12" text="todd_org"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:cdgrupid" enable="false"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:cdid"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:right top;padding:5 2 3 2;" text="bind:cdnm" wordwrap="word"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:left top;padding:5 2 3 2;" text="bind:detldesc" wordwrap="word"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:dispseq"/>
- <Cell col="6" displaytype="normal" edittype="normal" text="bind:dispseq"/>
- <Cell col="7" displaytype="date" edittype="date" style="align:middle;" text="bind:fromdd" calendardisplaynulltype="none"/>
- <Cell col="8" displaytype="date" edittype="date" style="align:middle;" text="bind:todd" calendardisplaynulltype="none"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:remark"/>
- <Cell col="10" text="bind:cdgrupid_org"/>
- <Cell col="11" text="bind:cdid_org"/>
- <Cell col="12" text="bind:todd_org"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button11" taborder="34" text="행추가" onclick="group2_button11_onclick" class="btn2" position="absolute 539 27 592 49" anchor="top right"/>
- <Button id="button10" taborder="35" text="행삭제" onclick="group2_button10_onclick" class="btn2" position="absolute 594 27 647 49" anchor="top right"/>
- <Button id="button4" taborder="36" text="저장" onclick="group2_button4_onclick" class="btn2" position="absolute 649 27 691 49" anchor="top right"/>
- <Div id="grp_search" taborder="32" class="div_SA" position="absolute 0 153 692 193" visible="false">
- <Layouts>
- <Layout width="1195" height="40">
- <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 620 10 676 32" onclick="grp_search_btn_search_onclick" anchor="default"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 604 9 607 32" anchor="default"/>
- <Static id="caption3" text="에이전시 명" class="search_name" position="absolute 8 13 120 30" anchor="default"/>
- <Edit id="ipt_agency_search" taborder="1" autoselect="true" position="absolute 106 11 246 30" anchor="default" onkeyup="grp_search_ipt_agency_search_onkeyup"/>
- </Layout>
- </Layouts>
- </Div>
- </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="cdgrupid" type="STRING" size="256"/>
- <Column id="agencynm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdgrupid"/>
- <Col id="agencynm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_speccodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드ID"/>
- <Column id="cdid" type="STRING" size="256" sumtext="코드ID"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="그룹코드명"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="세부코드"/>
- <Column id="dispseq" type="STRING" size="256" sumtext="코드순서"/>
- <Column id="remark" type="STRING" size="256" sumtext="참고사항"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작날자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료날자"/>
- <Column id="cdgrupid_org" type="STRING" size="256" sumtext="그룹코드ID_org"/>
- <Column id="cdid_org" type="STRING" size="256" sumtext="코드ID_org"/>
- <Column id="todd_org" type="STRING" size="256" sumtext="종료날자_org"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_updatedata2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="상태"/>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드ID"/>
- <Column id="cdid" type="STRING" size="256" sumtext="코드ID"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="그룹코드명"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="세부코드"/>
- <Column id="dispseq" type="STRING" size="256" sumtext="코드순서"/>
- <Column id="remark" type="STRING" size="256" sumtext="참고사항"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작날자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료날자"/>
- <Column id="cdgrupid_org" type="STRING" size="256" sumtext="그룹코드ID_org"/>
- <Column id="cdid_org" type="STRING" size="256" sumtext="코드ID_org"/>
- <Column id="todd_org" type="STRING" size="256" sumtext="종료날자_org"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_search.ipt_agency_search" propid="value" datasetid="ds_send" columnid="agencynm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- var gCdgrupid = "P0600";
- function fInitialize() {
- ds_send.setColumn(0, "cdgrupid", gCdgrupid);
- grdf_setRowTypeIcon(datagrid2, 0);
-
- fSearch();
- }
- function fSearch() {
- var oParam = {};
- oParam.id = "TRPMB02002";
- oParam.service = "pambaseinfomngtapp.PamComCode";
- oParam.method = "reqGetSpecCodeInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_speccodelist=speccodelist";
- oParam.async = false;
- oParam.callback = "cf_TRPMB02002";
- tranf_submit(oParam);
- }
- function cf_TRPMB02002(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- ds_speccodelist.addColumn("cdgrupid_org", "string");
- ds_speccodelist.addColumn("cdid_org", "string");
- ds_speccodelist.addColumn("todd_org", "string");
-
-
- for(var i=0; i< ds_speccodelist.rowcount; i++ ){
- var sCdgrupid = ds_speccodelist.getColumn(i, "cdgrupid");
- var sCdid = ds_speccodelist.getColumn(i, "cdid");
- var sTodd = ds_speccodelist.getColumn(i, "todd");
-
- ds_speccodelist.setColumn(i, "cdgrupid_org", sCdgrupid);
- ds_speccodelist.setColumn(i, "cdid_org", sCdid);
- ds_speccodelist.setColumn(i, "todd_org", sTodd);
- }
- ds_speccodelist.applyChange();
- }
- function fSave() {
- var updtdata = grdf_getGridUpdateData(datagrid2);
- grdf_setStatusColumn(updtdata,"status");
- if ( updtdata.rowcount == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- if (sysf_messageBox("저장", "S001") == 6)
- {
- ds_send_updatedata2.copyData(updtdata,true);
-
- var oParam = {};
- oParam.id = "TRPMB02001";
- oParam.service = "pambaseinfomngtapp.PamComCode";
- oParam.method = "reqExeSpecCode";
- oParam.inds = "grdSpecDataList=ds_send_updatedata2";
- //oParam.inds = "req=ds_send_updatedata2";
- oParam.outds = "ds_speccodelist=speccodelist";
- oParam.async = false;
- //oParam.callback = "cf_TRPMB02001";
- tranf_submit(oParam);
- }
- else
- {
- fSearch();
- }
- }
- function SPPID32400_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- fInitialize();
- }
- function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var agencynm = ds_send.getColumn(0, "agencynm");
- if(utlf_isNull(agencynm)) ds_speccodelist.filter("");
- else ds_speccodelist.filter("cdnm.indexOf('"+agencynm+"') >= 0");
- }
- function grd_foreigninfolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var objArg = new Object();
- objArg.inqudd = ds_main_foreigninfo.getColumn(e.row, "inqudd");
- objArg.inquseq = ds_main_foreigninfo.getColumn(e.row, "inquseq");
- frmf_modal("SPPID32200", "SPPID32200", objArg, "", 0, 200, 200, "", "", "", "", "", "M");
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function group2_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_speccodelist.addRow();
- var cdno = 1;
- var cdid = "";
- if(nRow > 0) {
- trace(Number(ds_speccodelist.getColumn(nRow-1, "cdid").substr(5,3)));
- cdno = Number(ds_speccodelist.getColumn(nRow-1, "cdid").substr(5,3)) + 1;
- }
- cdid = gCdgrupid + utlf_lPad(cdno, 3, "0");
-
- ds_speccodelist.setColumn(nRow, "cdgrupid", gCdgrupid);
- ds_speccodelist.setColumn(nRow, "cdid", cdid);
- }
- function group2_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- var cRow = ds_speccodelist.rowposition;
- if(ds_speccodelist.getRowType(cRow) == 2) {
- ds_speccodelist.deleteRow(cRow);
- } else {
- grdf_setStatus(datagrid2, "D", [cRow])
- }
- }
- function group2_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- }
- function grp_search_ipt_agency_search_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- grp_search.btn_search.click();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|