123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAVB00100" position="absolute 0 0 1201 790" titletext="Untitle" onload="SMAVB00100_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 169 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">
- <Layouts>
- <Layout>
- <Static id="caption2" class="search_name" position="absolute 16 9 102 26" style="" text="분류구분 :" anchor="default"/>
- <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"/>
- <Combo innerdataset="ds_init_selectinput_item" datacolumn="etcdetlnm" codecolumn="etcdetlcd" columncount="-1" rowcount="-1" id="cmb_clscd" class="combo_essential" position="absolute 105 8 255 27" style="" anchor="default" onitemchanged="group1_grp_sea_cmb_clscd_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" class="tit_2" position="absolute 5 54 83 71" style="" text="분류코드"/>
- <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 71 594 75" style="" anchor="default"/>
- <Grid id="grd_etclst" binddataset="ds_main_bscdlstmst_item" position="absolute 0 75 594 738" style="" oncelldblclick="group1_grd_etclst_oncelldblclick">
- <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 celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:etccd" editlimit="10"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:etcdetlnm" editlimit="50"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:useyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" class="tit_2" position="absolute 606 54 684 72" style="" text="상세코드"/>
- <Grid id="grd_detlcodelst" binddataset="ds_main_bscdlstdtl_item" position="absolute 601 75 1195 738" style="" onkeypress="group1_grd_detlcodelst_onkeypress">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="60"/>
- <Column size="250"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="60"/>
- </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="참고치"/>
- <Cell col="6" text="비고"/>
- <Cell col="7" text="적용여부"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:etcdetlcd" editlimit="50"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:etcdetlnm" editlimit="50"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:etcitemcnts" editlimit="50"/>
- <Cell col="4" displaytype="combo" edittype="combo" text="bind:etcitemcnts" combodataset="ds_init_combobscdlst_C06" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:etcitemcnts" combodataset="ds_init_combobscdlst_C07" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:etcitemcnts2" editlimit="50"/>
- <Cell col="7" displaytype="checkbox" edittype="checkbox" text="bind:useyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 601 71 1195 75" style="" anchor="default"/>
- <Button id="button2" class="btn2" position="absolute 484 50 537 69" style="" text="행추가" onclick="group1_button2_onclick"/>
- <Button id="btn_grddel" class="btn2" position="absolute 540 50 593 69" style="" text="행삭제" onclick="group1_btn_grddel_onclick"/>
- <Button id="button1" class="btn2" position="absolute 1060 50 1113 69" style="" text="행삭제" onclick="group1_button1_onclick"/>
- <Button id="btn_grdadd" class="btn2" position="absolute 1005 50 1058 69" style="" text="행추가" onclick="group1_btn_grdadd_onclick"/>
- <Button id="btn_fileupload" class="btn2" position="absolute 1115 50 1190 69" style="" text="파일업로드" onclick="group1_btn_fileupload_onclick"/>
- <CheckBox id="bool_pastdata" position="absolute 914 50 934 70" style="" text="" anchor="left bottom"/>
- <Static id="caption5" position="absolute 934 52 999 67" style="" text="과거DATA"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_btn" position="absolute 0 757 1195 784" style="">
- <Layouts>
- <Layout>
- <Button id="btn_clear2" class="btn4" position="absolute 1067 5 1135 27" style="" text="초기화" onclick="grp_btn_btn_clear2_onclick"/>
- <Button id="btn_save2" class="btn4" position="absolute 1138 5 1194 27" style="" text="저장" onclick="grp_btn_btn_save2_onclick"/>
- <Button id="btn_save1" class="btn4" position="absolute 537 5 593 27" style="" text="저장" onclick="grp_btn_btn_save1_onclick"/>
- <Button id="btn_clear1" class="btn4" position="absolute 466 5 534 27" style="" text="초기화" onclick="grp_btn_btn_clear1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_bscdlstdtl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </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_init_selectinput_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="etcdetlnm" type="STRING" size="256"/>
- <Column id="etcdetlcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="etcdetlnm"/>
- <Col id="etcdetlcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bscdlstmst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="clscd" type="STRING" size="256"/>
- <Column id="etccd" type="STRING" size="256"/>
- <Column id="etccdkey" type="STRING" size="256"/>
- <Column id="etcdetlnm" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="clscd"/>
- <Col id="etccd"/>
- <Col id="etccdkey"/>
- <Col id="etcdetlnm"/>
- <Col id="useyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_selectinput" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </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>
- </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_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_main_bscdlstmst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_bscdlstdtl_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="clscd" type="STRING" size="256"/>
- <Column id="etccd" type="STRING" size="256"/>
- <Column id="etcdetlcd" type="STRING" size="256"/>
- <Column id="etcdetlcdkey" type="STRING" size="256"/>
- <Column id="etcdetlnm" type="STRING" size="256"/>
- <Column id="etcitemcnts" type="STRING" size="256"/>
- <Column id="etcitemcnts2" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="clscd"/>
- <Col id="etccd"/>
- <Col id="etcdetlcd"/>
- <Col id="etcdetlcdkey"/>
- <Col id="etcdetlnm"/>
- <Col id="etcitemcnts"/>
- <Col id="etcitemcnts2"/>
- <Col id="useyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="clscd" type="STRING" size="256"/>
- <Column id="etccd" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="clscd"/>
- <Col id="etccd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_combobscdlst_C06" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_combobscdlst_C07" 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.cmb_clscd" propid="value" datasetid="ds_send" columnid="clscd"/>
- <BindItem id="item1" compid="group1.bool_pastdata" propid="value" datasetid="ds_send" columnid="useyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "com_commodulexp::SSZFM00901.xjs";
- include "ast_tissuebankbasexp::tissuebankcombolist.xjs"; //yjh : 커밋
- var arErrorCode = new HashArray();
- //스크립트 시작 ***
- //전체에서 event와 src를 제외한 script 를 모두포함.
- /**
- * 콤보 초기화
- */
- function fGetPtcdInputInit(){
-
- var arrparm = [
- {dsNm: "ds_init_combobscdlst_C06", cdGrpId: "C06"}, // C06 구분
- {dsNm: "ds_init_combobscdlst_C07", cdGrpId: "C07"}
- ]; // C25 의료관리자 2011.1.19 cyw
-
- tbGetBscdList( arrparm );
-
- }
- /**==================================================================================================================
- @author : 손주연
- @version : 2007-04-18
- @desc : fExcelUpload 엑셀파일을 해당 그리드로 in
- @param : grid object
- *====================================================================================================================*/
- function fExcelUpload(grid: Grid) {
- if (utlf_isNull(grid)) {
- sysf_messageBox("grid is null!", "E999");
- return;
- }
- var dataset = eval(grid.binddataset);
- dataset.clearData();
- grdf_ImportExcel(dataset.name, 0, grid, 0);
- // grid.deleteRow(1);
- }
- /**
- * 분류구분 초기화
- */
- function fGetSelInputInit(){
- ds_send.setColumn( 0, "clscd", "00");
- ds_send.setColumn( 0, "etccd", "00");
- //var ret = submit("TRAVB00101");
- var oParam = {};
- oParam.id = "TRAVB00101";
- oParam.service = "tissuebankbaseapp.TissueBankBase";
- oParam.method = "reqGetBsCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_selectinput_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAVB00101";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAVB00101") > -1) {
- ret = true;
- }
- else {
- ret = false;
- }
- group1.grp_sea.cmb_clscd.index = 0;
- group1.bool_pastdata.value = false;
- return ret;
- }
- function cf_TRAVB00101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 분류코드 리스트 조회
- */
- function fGetBsCdListMst(){
- // 분류구분에 따라 상세코드 타이틀 변경 및 콤보변경
- var XXX_defSize = 100;
- if (group1.grp_sea.cmb_clscd.value== "M") {
- group1.bool_pastdata.visible = false;
- group1.caption5.visible = false;
- group1.grd_detlcodelst.setFormatColProperty( 3, "size", 0);
- group1.grd_detlcodelst.setFormatColProperty( 4, "size", XXX_defSize);
- group1.grd_detlcodelst.setFormatColProperty( 5, "size", 0);
- } else if (group1.grp_sea.cmb_clscd.value== "P") {
- group1.bool_pastdata.visible = true;
- group1.caption5.visible = true;
- group1.bool_pastdata.selected = false;
- group1.grd_detlcodelst.setFormatColProperty( 3, "size", 0);
- group1.grd_detlcodelst.setFormatColProperty( 4, "size", 0);
- group1.grd_detlcodelst.setFormatColProperty( 5, "size", XXX_defSize);
- } else {
- group1.bool_pastdata.visible = false;
- group1.caption5.visible = false;
- group1.grd_detlcodelst.setFormatColProperty( 3, "size", XXX_defSize);
- group1.grd_detlcodelst.setFormatColProperty( 4, "size", 0);
- group1.grd_detlcodelst.setFormatColProperty( 5, "size", 0);
- }
- ds_main_bscdlstmst_item.clearData();
- ds_main_bscdlstdtl_item.clearData();
- //model.refresh();
- ds_send.setColumn( 0, "etccd", "");
- //var ret = submit("TRAVB00102");
- var oParam = {};
- oParam.id = "TRAVB00102";
- oParam.service = "tissuebankbaseapp.TissueBankBase";
- oParam.method = "reqGetBsCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_bscdlstmst_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAVB00102";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAVB00102") > -1)
- ret = true;
- else
- ret = false;
- return ret;
- }
- function cf_TRAVB00102(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 상세코드 리스트 조회
- */
- function fGetBsCdListDtl(){
- var idx = ds_main_bscdlstmst_item.rowposition;
- if( idx < 0) return ;
- ds_main_bscdlstdtl_item.clearData();
- trace('etccd: ' + ds_main_bscdlstmst_item.getColumn( idx, "etccd" ));
- ds_send.setColumn( 0, "etccd", ds_main_bscdlstmst_item.getColumn( idx, "etccd" ));
-
- var oParam = {};
- oParam.id = "TRAVB00103";
- oParam.service = "tissuebankbaseapp.TissueBankBase";
- oParam.method = "reqGetBsCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_bscdlstdtl_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAVB00103";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAVB00103") > -1)
- ret = true;
- else
- ret = false;
- return ret;
- }
- function cf_TRAVB00103(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 초기화
- */
- function fBscdmstclear(){
- ds_main_bscdlstmst_item.clearData();
- ds_main_bscdlstdtl_item.clearData();
- //model.refresh();
- }
- function fBscddtlclear(){
- ds_main_bscdlstdtl_item.clearData();
- //model.refresh();
- }
- /**
- * 분류코드 저장
- */
- function fSaveBsCdMst(){
- var updateDs = grdf_getGridUpdateData(group1.grd_etclst);
- if( updateDs.rowcount <= 0 )
- {
- alert("저장할 내역이 없습니다.");
- return ;
- }
- var rsv_cnt = ds_main_bscdlstmst_item.rowcount;
- for( var i = 0; i < rsv_cnt ; i++){
- if( ds_main_bscdlstmst_item.getColumn( i, "etccd" ) == "") {
- alert("분류코드의 코드값이 비어있습니다.");
- return ;
- }
- }
- var ret = false;
- if ( sysf_messageBox("분류코드정보를","Q002")==6 ) {
- var updateDs = grdf_getGridUpdateData(group1.grd_etclst);
- grdf_setStatusColumn(updateDs, "m");
- ds_send_req_savedata.copyData(updateDs);
- ds_send_req_savedata.setColumn( 0, "clscd", ds_send.getColumn(0, "clscd") );
- ds_send_req_savedata.setColumn( 0, "etcdetlcd", "-" );
- //ret = submit("TXAVB00101");
- var oParam = {};
- oParam.id = "TXAVB00101";
- oParam.service = "tissuebankbaseapp.TissueBankBase";
- oParam.method = "reqExeBaseCodeMst";
- oParam.inds = "req=ds_send_req_savedata";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXAVB00101";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAVB00101") > -1)
- ret = true;
- else
- ret = false;
- }
- return ret;
- }
- function cf_TXAVB00101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 상세코드 저장
- */
- function fSaveDetlCode(){
- var idx = ds_main_bscdlstmst_item.rowposition;
- if( idx < 0) return ;
- var updateDs = grdf_getGridUpdateData(group1.grd_detlcodelst);
-
- if( updateDs.rowcount <= 0)
- {
- alert("저장할 내역이 없습니다.");
- return ;
- }
- var rsv_cnt = ds_main_bscdlstdtl_item.rowcount;
- for( var i = 0; i < rsv_cnt ; i++){
- if( utlf_transNullToEmpty(ds_main_bscdlstdtl_item.getColumn( i, "etcdetlcd" )) == "") {
- 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, "clscd", ds_send.getColumn(0, "clscd") );
- ds_send_req_savedata.setColumn( 0, "etccd", ds_main_bscdlstmst_item.getColumn( idx, "etccd" ) );
- //ret = submit("TXAVB00102");
- var oParam = {};
- oParam.id = "TXAVB00102";
- oParam.service = "tissuebankbaseapp.TissueBankBase";
- oParam.method = "reqExeBaseCodeDtl";
- oParam.inds = "req=ds_send_req_savedata";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXAVB00102";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAVB00102") > -1)
- ret = true;
- else
- ret = false;
- }
- return ret;
- }
- function cf_TXAVB00102(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //스크립트 끝
- function SMAVB00100_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(group1.grd_detlcodelst);
- grdf_initGrid(group1.grd_etclst);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- grdf_setRowTypeIcon(group1.grd_detlcodelst, 0);
- grdf_setRowTypeIcon(group1.grd_etclst, 0);
- fGetPtcdInputInit();
- fGetSelInputInit();
-
- group1.grp_sea.btn_search.click();
-
- }
- function group1_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetBsCdListMst();
- }
- function group1_grd_etclst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- fGetBsCdListDtl();
- }
- // function group1_grd_detlcodelst_onentercell {
- //
- // if( group1.grd_detlcodelst.colType(group1.grd_detlcodelst.col) == "input" ){
- // group1.grd_detlcodelst.editCell();
- // }
- //
- // }
- function group1_grd_detlcodelst_onkeydown(obj:Grid, e:KeyEventInfo) {
- if( e.keycode == 13 ) {
- if( obj.currentcol == 1) {
- group1.grd_detlcodelst.setCellPos(2);
- group1.grd_detlcodelst.showEditor();
- }
- else if( obj.currentcol == 2 ){
- var row = ds_main_bscdlstdtl_item.addRow();
- group1.grd_detlcodelst.setCellPos(1);
- group1.grd_detlcodelst.showEditor();
- }
- }
- }
- function group1_button2_onclick(obj:Button, e:ClickEventInfo) {
- var row = ds_main_bscdlstmst_item.addRow();
- group1.grd_etclst.setCellPos(1);
- group1.grd_etclst.showEditor();
- }
- function group1_btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- dsf_deleteSelectedRows(group1.grd_etclst, true);
- }
- function group1_button1_onclick(obj:Button, e:ClickEventInfo) {
- dsf_deleteSelectedRows(group1.grd_detlcodelst, true);
- }
- function group1_btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- var row = ds_main_bscdlstdtl_item.addRow();
- group1.grd_detlcodelst.setCellPos(1);
- group1.grd_detlcodelst.showEditor();
- }
- function group1_btn_fileupload_onclick(obj:Button, e:ClickEventInfo) {
- fExcelUpload(group1.grd_detlcodelst);
- }
- function grp_btn_btn_clear2_onclick(obj:Button, e:ClickEventInfo) {
- fBscddtlclear();
- }
- function grp_btn_btn_save2_onclick(obj:Button, e:ClickEventInfo) {
- if( fSaveDetlCode() == true ){
- fGetBsCdListDtl();
- }
- }
- function grp_btn_btn_save1_onclick(obj:Button, e:ClickEventInfo) {
- if( fSaveBsCdMst() == true ){
- fGetBsCdListMst();
- }
- }
- function grp_btn_btn_clear1_onclick(obj:Button, e:ClickEventInfo) {
- fBscdmstclear();
- }
- function group1_grp_sea_cmb_clscd_onitemchanged(obj:Combo, e:ItemChangeEventInfo){
- fGetBsCdListMst();
- }
- ]]></Script>
- </Form>
- </FDL>
|