123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SPPIE03700" position="absolute 0 0 530 460" titletext="구입기관코드">
- <Layouts>
- <Layout>
- <Div id="group1" scrollbars="autoboth" position="absolute 0 405 518 432" style="">
- <Layouts>
- <Layout>
- <Button id="btn_cancel" class="btn4_letter2" position="absolute 461 3 517 25" style="" text="닫기" onclick="group1_btn_cancel_onclick" />
- <Shape id="line88" class="line_6" linetype="horizontal" position="absolute 0 0 518 3" style="" anchor="default" />
- <Button id="button2" class="btn4_letter2" position="absolute 404 3 460 25" style="" text="저장" onclick="group1_button2_onclick" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 0 518 402" style="">
- <Layouts>
- <Layout>
- <Grid id="grd_p2002" binddataset="ds_main_list01_gridp2002" position="absolute 0 50 515 400" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="141" />
- <Column size="265" />
- <Column size="74" />
- <Column size="91" />
- <Column size="63" />
- <Column size="93" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="구입기관코드" />
- <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="최종수정자ID" />
- <Cell col="8" text="최종수정일시" />
- </Band>
- <Band id="body">
- <Cell text="bind:cdid" />
- <Cell col="1" text="bind:cdnm" />
- <Cell col="2" text="bind:fstrgstrid" />
- <Cell col="3" text="bind:fromdd" />
- <Cell col="4" text="bind:instcd" />
- <Cell col="5" text="bind:todd" />
- <Cell col="6" text="bind:fstrgstdt" />
- <Cell col="7" text="bind:lastupdtrid" />
- <Cell col="8" text="bind:lastupdtdt" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group4" position="absolute 0 0 518 13" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 158 14" style="" text="구입기관코드" />
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption8" class="tit_2" position="absolute 5 28 116 41" style="" text="구입기관코드" />
- <Shape id="line5" class="line_1" linetype="horizontal" position="absolute 0 45 518 48" style="" anchor="default" />
- <Button id="btn_addRow" class="btn2_letter3" position="absolute 340 23 393 42" style="" text="행추가" onclick="group3_btn_addRow_onclick" />
- <Button id="btn_delRow" class="btn2_letter3" position="absolute 396 23 449 42" style="" text="행삭제" onclick="group3_btn_delRow_onclick" />
- <Button id="btn_search" class="btn1_letter2" position="absolute 455 20 511 42" style="" text="조회" onclick="group3_btn_search_onclick" />
- </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="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_insdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="insdatalist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="insdatalist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="gridp2002" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="gridp2002"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind />
- <Script type="xscript4.0"><![CDATA[include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- // 부제기 사유코드 테이블에 한 Row을 추가하고 HIdden Column을 셋팅한다.
- function fAddRow() {
- // 행추가시 부제기구분만 check된 구분을 셋팅한다.
- // 나머지 컬럼은 Application Business 구현 Class에서 처리한다.
- var abdflag = ds_send.getColumn(0, "abdflag");
- grd_pirmabdm.addRow();
- var curr_row = grd_pirmabdm.row;
- ds_main_list01.setColumn( curr_row , "abdflag" , abdflag);
- //model.refresh();
- grd_pirmabdm.topRow = curr_row;
- return true;
- }
- function fDelRow() {
- var cur_row = grd_pirmabdm.row;
- if (ds_main_list01_gridpirmabdm.getColumn(cur_row, "useyn")) == "Y") {
- model.alert("이미 사용된 부제기 코드는 삭제할 수 없습니다");
- return;
- }
- // 행삭제시 DB에 저장되어 있는 자료에 대한 Delete, Update
- // 행추가로 인한 Row 생성후 저장하지 않는 자료는 그냥 삭제한다.
- if (sysf_messageBox("선택된 부제기사유 자료를", "Q001") != 6) return;
- if (cur_row > 0) {
- // DB에 저장되지 않은 데이타는 그냥 삭제한다.
- // if (grd_pirmabdm.rowStatus(cur_row) == "1" || grd_pirmabdm.rowStatus(cur_row) == "3" ) {
- // grd_pirmabdm.deleteItem(cur_row);
- //
- //model.refresh();
- // return;
- grd_pirmabdm.deleteRow(cur_row);
- // grd_pirmabdm.addStatus( cur_row, "delete");
- // ds_send_insdata.setColumn( 0, "insdatalist", grd_pirmabdm.getUpdateData("delete"));
- // if (submit("TXPIR30220")) {
- // }
- // else
- // grd_pirmabdm.removeStatus( cur_row, "delete");
- //
- //model.refresh();
- }
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- model.close();
- }
- function group1_button2_onclick(obj:Button, e:ClickEventInfo) {
- ds_send_insdata.setColumn( 0, "insdatalist",grd_pirmabdm.getUpdateData());
- // submit("TXPIR30220");
- var oParam = {};
- oParam.id = "TXPIR30220";
- oParam.service = "cutmngtapp.CutMngt";
- oParam.method = "reqExePirmAbdm";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=gridpirmabdm";
- oParam.async = false;
- oParam.callback = "cf_TXPIR30220";
- tranf_submit(oParam);
- /*
- function cf_TXPIR30220(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPIR30220(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPIR30220") > -1
- arErrorCode.pop("TXPIR30220") < 0
- */
- // 자료 입력, 수정, 삭제 후 저장했을 때 저장한 자료를 재조회한다.
- // submit("TRPIR30220");
- var oParam = {};
- oParam.id = "TRPIR30220";
- oParam.service = "cutmngtapp.CutMngt";
- oParam.method = "reqGetPirmAbdm";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=gridpirmabdm";
- oParam.async = false;
- oParam.callback = "cf_TRPIR30220";
- tranf_submit(oParam);
- /*
- function cf_TRPIR30220(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIR30220(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIR30220") > -1
- arErrorCode.pop("TRPIR30220") < 0
- */
- }
- function group3_btn_addRow_onclick(obj:Button, e:ClickEventInfo) {
- fAddRow();
- }
- function group3_btn_delRow_onclick(obj:Button, e:ClickEventInfo) {
- fDelRow();
- }
- function group3_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- // submit("TRPIR30220");
- var oParam = {};
- oParam.id = "TRPIR30220";
- oParam.service = "cutmngtapp.CutMngt";
- oParam.method = "reqGetPirmAbdm";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=gridpirmabdm";
- oParam.async = false;
- oParam.callback = "cf_TRPIR30220";
- tranf_submit(oParam);
- /*
- function cf_TRPIR30220(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIR30220(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIR30220") > -1
- arErrorCode.pop("TRPIR30220") < 0
- */
- // ds_main_list01.clearData(); ds_main_list01.addRow();
- //
- //model.refresh();
- }
- ]]></Script>
- </Form>
- </FDL>
|