123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAVB00400" position="absolute 0 0 1199 788" titletext="조직은행 묶음코드관리" onload="SMAVB00400_onload">
- <Layouts>
- <Layout>
- <Div id="grp_title" position="absolute 0 0 1195 25" style="">
- <Layouts>
- <Layout>
- <Static id="caption1" class="tit_1" position="absolute 0 0 167 23" style="" text="조직은행 묶음코드관리"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group1" position="absolute 0 13 1195 757" style="">
- <Layouts>
- <Layout>
- <Div id="grp_sea" position="absolute 0 10 1194 45" style="align: top;" class="div_SA" anchor="default">
- <Layouts>
- <Layout>
- <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1107 7 1110 29" style="" anchor="default"/>
- <Button id="btn_search" class="btn1" position="absolute 1123 7 1179 29" style="" text="조회" onclick="group1_grp_sea_btn_search_onclick" anchor="default"/>
- <Static id="caption2" class="search_name" position="absolute 15 9 105 26" style="" text="묶음코드 :" anchor="default"/>
- <Static id="caption5" class="search_name" position="absolute 195 9 285 26" style="" text="묶 음 명 :" anchor="default"/>
- <Edit id="ipt_partnm" class="input_search" position="absolute 280 8 480 27" style="" anchor="default" onkeydown="group1_grp_sea_ipt_partnm_onkeydown"/>
- <Edit id="ipt_partcd" class="input_search" position="absolute 103 8 173 27" style="" anchor="default" onkeydown="group1_grp_sea_ipt_partcd_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" class="tit_2" position="absolute 5 54 83 72" style="" text="묶음코드" anchor="default"/>
- <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 71 594 75" style="" anchor="default"/>
- <Grid id="grd_bdllst" binddataset="ds_main_bdcdlstmst_item" position="absolute 0 74 594 737" style="" oncelldblclick="group1_grd_bdllst_oncelldblclick" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="100"/>
- <Column size="373"/>
- <Column size="99"/>
- </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="적용여부"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:bdlcd" editlimit="10"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:bdlnm" editlimit="50"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:(useyn == 'Y' || useyn == '1') ? '1' : '0'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" class="tit_2" position="absolute 606 54 684 72" style="" text="상세코드" anchor="default"/>
- <Grid id="grd_detlcodelst" binddataset="ds_main_bdcdlstdtl_item" position="absolute 600 74 1194 737" style="" anchor="default" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="280"/>
- <Column size="0"/>
- <Column size="77"/>
- <Column size="50"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="밴드M"/>
- <Cell col="2" text="밴드"/>
- <Cell col="3" text="상세코드"/>
- <Cell col="4" text="상세코드명"/>
- <Cell col="5" text="구분M"/>
- <Cell col="6" text="구분"/>
- <Cell col="7" text="수량"/>
- <Cell col="8" text="적용여부"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" text="bind:bandcd"/>
- <Cell col="2" displaytype="combo" edittype="combo" text="bind:bandmcd" combodataset="ds_init_combobscdlst_C04" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="3" text="bind:banddcd"/>
- <Cell col="4" text="bind:banddnm" editlimit="50"/>
- <Cell col="5" text="bind:gbmcd"/>
- <Cell col="6" displaytype="combo" edittype="none" text="bind:gbdcd" combodataset="ds_init_combobscdlst_C06" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="7" displaytype="number" edittype="masknumber" text="bind:qty" mask="#,##0.##" editlimit="6"/>
- <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:(useyn == 'Y' || useyn == '1') ? '1' : '0'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 600 71 1194 75" style="" anchor="default"/>
- <Button id="button2" class="btn2" position="absolute 484 50 537 69" style="" text="행추가" onclick="group1_button2_onclick" anchor="default"/>
- <Button id="btn_grddel" class="btn2" position="absolute 540 50 593 69" style="" text="행삭제" onclick="group1_btn_grddel_onclick" anchor="default"/>
- <Button id="button1" class="btn2" position="absolute 1140 50 1193 69" style="" text="행삭제" onclick="group1_button1_onclick" anchor="default"/>
- <Button id="btn_grdadd" class="btn2" position="absolute 1085 50 1138 69" style="" text="행추가" onclick="group1_btn_grdadd_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_btn" position="absolute 0 757 1194 784" style="">
- <Layouts>
- <Layout>
- <Button id="btn_clear2" class="btn4" position="absolute 1067 5 1135 27" style="" text="초기화" onclick="grp_btn_btn_clear2_onclick" anchor="default"/>
- <Button id="btn_save2" class="btn4" position="absolute 1138 5 1194 27" style="" text="저장" onclick="grp_btn_btn_save2_onclick" anchor="default"/>
- <Button id="btn_save1" class="btn4" position="absolute 537 5 593 27" style="" text="저장" onclick="grp_btn_btn_save1_onclick" anchor="default"/>
- <Button id="btn_clear1" class="btn4" position="absolute 466 5 534 27" style="" text="초기화" onclick="grp_btn_btn_clear1_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_bdcdlstmst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_bdcdlstmst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_bdcdlstmst_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="bdlcd" type="STRING" size="256"/>
- <Column id="bdlnm" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="bdlcd"/>
- <Col id="bdlnm"/>
- <Col id="useyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bdcdlstdtl" 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_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="savedata" type="STRING" size="256"/>
- <Column id="bdlcd" type="STRING" size="256"/>
- <Column id="bandcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="savedata"/>
- <Col id="bdlcd"/>
- <Col id="bandcd"/>
- </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="combobscdlst" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="combobscdlst"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="item" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="item"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="templst" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchbdlcd" type="STRING" size="256"/>
- <Column id="srchbdlnm" type="STRING" size="256"/>
- <Column id="bdlcd" type="STRING" size="256"/>
- <Column id="bandcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchbdlcd"/>
- <Col id="srchbdlnm"/>
- <Col id="bdlcd"/>
- <Col id="bandcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bdcdlstdtl_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_bdcdlstdtl_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="bandcd" type="STRING" size="256"/>
- <Column id="bandmcd" type="STRING" size="256"/>
- <Column id="banddcd" type="STRING" size="256"/>
- <Column id="banddnm" type="STRING" size="256"/>
- <Column id="gbmcd" type="STRING" size="256"/>
- <Column id="gbdcd" type="STRING" size="256"/>
- <Column id="qty" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="bandcd"/>
- <Col id="bandmcd"/>
- <Col id="banddcd"/>
- <Col id="banddnm"/>
- <Col id="gbmcd"/>
- <Col id="gbdcd"/>
- <Col id="qty"/>
- <Col id="useyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="item" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_req_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="savedata" type="STRING" size="256"/>
- <Column id="clscd" type="STRING" size="256"/>
- <Column id="etccd" type="STRING" size="256"/>
- <Column id="etcdetlcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="savedata"/>
- <Col id="clscd"/>
- <Col id="etccd"/>
- <Col id="etcdetlcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_templst_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_combobscdlst_C04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_combobscdlst_C06" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.grp_sea.ipt_partnm" propid="value" datasetid="ds_send" columnid="srchbdlnm"/>
- <BindItem id="item1" compid="group1.grp_sea.ipt_partcd" propid="value" datasetid="ds_send" columnid="srchbdlcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "ast_tissuebankbasexp::tissuebankcombolist.xjs"; //yjh : 커밋
- var arErrorCode = new HashArray();
- //스크립트 시작 ***
- //전체에서 event와 src를 제외한 script 를 모두포함.
- /**
- * 콤보 초기화
- */
- function fGetPtcdInputInit(){
- var arrparm = [
- {dsNm: "ds_init_combobscdlst_C04", cdGrpId: "C04"},
- {dsNm: "ds_init_combobscdlst_C06", cdGrpId: "C06"}
- ]; // C25 의료관리자 2011.1.19 cyw
-
- tbGetBscdList( arrparm );
-
-
- }
- /**
- * 묶음코드 리스트 조회
- */
- function fGetBdCdListMst(){
- ds_main_bdcdlstmst_item.clearData();
- ds_main_bdcdlstdtl_item.clearData();
- //model.refresh();
- ds_send.setColumn( 0, "bandcd", "-");
- //var ret = submit("TRAVB00401");
- var oParam = {};
- oParam.id = "TRAVB00401";
- oParam.service = "tissuebankbaseapp.TissueBankBndl";
- oParam.method = "reqGetBdCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_bdcdlstmst_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAVB00401";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAVB00401") > -1)
- ret = true;
- else
- ret = false;
- return ret;
- }
- function cf_TRAVB00401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 상세코드 리스트 조회
- */
- function fGetBdCdListDtl(){
- var idx = ds_main_bdcdlstmst_item.rowposition;
- if( idx < 0) return ;
- ds_main_bdcdlstdtl_item.clearData();
- //model.refresh();
- ds_send.setColumn( 0, "bdlcd",ds_main_bdcdlstmst_item.getColumn( idx, "bdlcd" ) );
- ds_send.setColumn( 0, "bandcd", "" );
- //var ret = submit("TRAVB00402");
- var oParam = {};
- oParam.id = "TRAVB00402";
- oParam.service = "tissuebankbaseapp.TissueBankBndl";
- oParam.method = "reqGetBdCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_bdcdlstdtl_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAVB00402";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAVB00402") > -1)
- ret = true;
- else
- ret = false;
- return ret;
- }
- function cf_TRAVB00402(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 초기화
- */
- function fBdcdmstclear(){
- ds_main_bdcdlstmst_item.clearData();
- ds_main_bdcdlstdtl_item.clearData();
- //model.refresh();
- }
- function fBdcddtlclear(){
- ds_main_bdcdlstdtl_item.clearData();
- //model.refresh();
- }
- /**
- * 분류코드 저장
- */
- function fSaveBdCdMst(){
- var updateDs = grdf_getGridUpdateData(group1.grd_bdllst);
- if( updateDs.rowcount <= 0)
- {
- alert("저장할 내역이 없습니다.");
- return ;
- }
- var rsv_cnt = ds_main_bdcdlstmst_item.rowcount;
- for( var i = 0; i < rsv_cnt ; i++){
- if( ds_main_bdcdlstmst_itemgroup1.getColumn( i, "bdlcd" ) == "") {
- alert("묶음코드의 코드값이 비어있습니다.");
- return ;
- }
- }
- var ret = false;
- if ( sysf_messageBox("묶음코드정보를","Q002")==6 ) {
-
- var updateDs = grdf_getGridUpdateData(group1.grd_bdllst);
- grdf_setStatusColumn(updateDs, "m");
- ds_send_req_savedata.copyData(updateDs);
- ds_send_req_savedata.setColumn( 0, "bandcd", "-");
-
- //ret = submit("TXAVB00401");
- var oParam = {};
- oParam.id = "TXAVB00401";
- oParam.service = "tissuebankbaseapp.TissueBankBndl";
- oParam.method = "reqExeBndlCodeMst";
- oParam.inds = "req=ds_send_req_savedata";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXAVB00401";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAVB00401") > -1)
- ret = true;
- else
- ret = false;
- }
- return ret;
- }
- function cf_TXAVB00401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 상세코드 저장
- */
- function fSaveDetlCode(){
- // 저장할 건이 존재하는지 체크
- var idx = ds_main_bdcdlstmst_item.rowposition;
- if( idx < 0) return ;
-
- var updateDs = grdf_getGridUpdateData(group1.grd_detlcodelst);
- if( updateDs.rowcount <= 0)
- {
- alert("저장할 내역이 없습니다.");
- return ;
- }
- // 저장할지 확인후 저장
- var ret = false;
- if ( sysf_messageBox("상세코드정보를","Q002")==6 ) {
-
- var updateDs = grdf_getGridUpdateData(group1.grd_detlcodelst);
- grdf_setStatusColumn(updateDs, "m");
- ds_send_req_savedata.copyData(updateDs);
- ds_send_req_savedata.setColumn( 0, "bdlcd", ds_main_bdcdlstmst_item.getColumn( idx, "bdlcd") );
-
- //ret = submit("TXAVB00402");
- var oParam = {};
- oParam.id = "TXAVB00402";
- oParam.service = "tissuebankbaseapp.TissueBankBndl";
- oParam.method = "reqExeBndlCodeDtl";
- oParam.inds = "req=ds_send_req_savedata";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXAVB00402";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAVB00402") > -1)
- ret = true;
- else
- ret = false;
- }
- return ret;
- }
- function cf_TXAVB00402(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //스크립트 끝
- function SMAVB00400_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(group1.grd_bdllst);
- grdf_initGrid(group1.grd_detlcodelst);
-
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(group1.grd_bdllst, 0);
- grdf_setRowTypeIcon(group1.grd_detlcodelst, 0);
- fGetPtcdInputInit();
- fGetBdCdListMst();
- }
- function group1_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetBdCdListMst();
- }
- function group1_grp_sea_ipt_partnm_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13){
- obj.updateToDataset();
- group1.grp_sea.btn_search.click();
- }
- }
- function group1_grp_sea_ipt_partcd_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13){
- obj.updateToDataset();
- group1.grp_sea.btn_search.click();
- }
- }
- function group1_grd_bdllst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fGetBdCdListDtl();
- }
- function group1_button2_onclick(obj:Button, e:ClickEventInfo) {
- var row = ds_main_bdcdlstmst_item.addRow();
- group1.grd_bdllst.setCellPos(1);
- group1.grd_bdllst.showEditor();
- }
- function group1_btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- dsf_deleteSelectedRows(group1.grd_bdllst, true);
- }
- function group1_button1_onclick(obj:Button, e:ClickEventInfo) {
- dsf_deleteSelectedRows(group1.grd_detlcodelst, true);
- }
- function group1_btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- frmf_clearParameter("SPAVBA00100_PARAM1");
- frmf_setParameter ("SPAVBA00100_PARAM1", "F");
- // 선택화면 Call
- frmf_modal("SPAVB00100", "SPAVB00100", "", "", "", "", "", "", "", "", "", "", "M");
- // 정상인 경우 가져온값 setting
- if (ds_temp.getColumn(0, "okflag") == "ok") {
- // 가져온값 건수 반복
- var idx = ds_temp_templst_list.rowcount;
- var maxrow = ds_main_bdcdlstdtl_item.rowcount;
- for (var i = 0; i < idx; i++) {
- // 동일한 값이 없는 경우 추가
- var srcEtcdetlnm = ds_temp_templst_list.getColumn(i, "etcdetlnm");
- if (ds_main_bdcdlstdtl_item.getCaseCount("banddnm == '" + srcEtcdetlnm + "'") == 0) {
- maxrow = ds_main_bdcdlstdtl_item.addRow();
- ds_main_bdcdlstdtl_item.setColumn( maxrow, "bandcd", "C04"); // 밴드코드
- ds_main_bdcdlstdtl_item.setColumn( maxrow, "bandmcd", ds_temp_templst_list.getColumn(i, "etccd") ); // 밴드M코드
- ds_main_bdcdlstdtl_item.setColumn( maxrow, "banddcd", ds_temp_templst_list.getColumn(i, "etcdetlcd") ); // 밴드D코드
- ds_main_bdcdlstdtl_item.setColumn( maxrow, "banddnm", ds_temp_templst_list.getColumn(i, "etcdetlnm") ); // 밴드D명
- ds_main_bdcdlstdtl_item.setColumn( maxrow, "gbmcd", "C06" ); // 구분M코드
- ds_main_bdcdlstdtl_item.setColumn( maxrow, "gbdcd", ds_temp_templst_list.getColumn(i, "etcitemcnts") ); // 구분D코드
- ds_main_bdcdlstdtl_item.setColumn( maxrow, "qty", 1 ); // 수량
- ds_main_bdcdlstdtl_item.setColumn( maxrow, "useyn", "1" ); //Y // 사용여부
- maxrow++;
- }
- }
- }
- // 불필요 Node 삭제
- ds_temp_okflag.clearData();
- ds_temp_templst_list.clearData();
- }
- function grp_btn_btn_clear2_onclick(obj:Button, e:ClickEventInfo) {
- fBdcddtlclear();
- }
- function grp_btn_btn_save2_onclick(obj:Button, e:ClickEventInfo) {
- if( fSaveDetlCode() == true ){
- fGetBdCdListDtl();
- }
- }
- function grp_btn_btn_save1_onclick(obj:Button, e:ClickEventInfo) {
- if( fSaveBdCdMst() == true ){
- fGetBdCdListMst();
- }
- }
- function grp_btn_btn_clear1_onclick(obj:Button, e:ClickEventInfo) {
- fBdcdmstclear();
- }
- function ds_main_bdcdlstmst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == 'useyn'){
- var value = (e.newvalue == 'Y' || e.newvalue == '1') ? 'Y' : 'N';
- obj.setColumn(e.row, 'useyn', value);
- }
- }
- function ds_main_bdcdlstdtl_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == 'useyn'){
- var value = (e.newvalue == 'Y' || e.newvalue == '1') ? 'Y' : 'N';
- obj.setColumn(e.row, 'useyn', value);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|