123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SPAVB00200" position="absolute 0 0 590 780" titletext="처리_물품 선택" onload="SPAVB00200_onload">
- <Layouts>
- <Layout>
- <Div id="group4" scrollbars="autoboth" position="absolute 0 741 555 769" style="">
- <Layouts>
- <Layout>
- <Button id="button9" class="btn4_letter2" position="absolute 492 3 548 25" style="" text="취소" onclick="group4_button9_onclick" />
- <Button id="btn_cfm" class="btn4_letter2" position="absolute 433 3 489 25" style="" text="확인" onclick="group4_btn_cfm_onclick" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_tle" position="absolute 0 0 555 13" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 155 14" style="" text="묶음 관리" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group1" scrollbars="autoboth" position="absolute 0 13 555 740" style="">
- <Layouts>
- <Layout>
- <Div id="group5" position="absolute 0 10 555 48" style="align: top;">
- <Layouts>
- <Layout>
- <Shape id="roundrect2" anchor="default" type="roundrectangle" position="absolute 0 3 554 38" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;" />
- <Button id="btn_sel" class="btn1_letter2" position="absolute 490 7 546 29" style="" text="조회" onclick="group1_group5_btn_sel_onclick" />
- <Static id="caption4" class="search_name" position="absolute 8 9 95 26" style="" text="조회코드 :" />
- <Static id="caption7" class="search_name" position="absolute 209 9 296 26" style="" text="조회내용 :" />
- <Edit id="ipt_partcd" class="input_search" position="absolute 95 8 202 27" style="" anchor="default" />
- <Edit id="ipt_partnm" class="input_search" position="absolute 300 8 461 27" style="" anchor="default" />
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 0 70 555 73" style="" anchor="default" />
- <Static id="caption1" class="tit_2" position="absolute 5 54 105 67" style="" text="묶음코드 List" />
- <Grid id="grd_bdllst" binddataset="ds_main_bdcdlstmst_item" position="absolute 0 74 555 290" style="" oncellclick="group1_grd_bdllst_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100" />
- <Column size="404" />
- </Columns>
- <Rows>
- <Row size="25" band="head" />
- <Row size="25" />
- </Rows>
- <Band id="head">
- <Cell text="묶음코드" />
- <Cell col="1" text="묶음명" />
- </Band>
- <Band id="body">
- <Cell text="bind:bdlcd" />
- <Cell col="1" text="bind:bdlnm" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_choices" binddataset="ds_main_bdcdlstdtl_item" position="absolute 0 314 555 727" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="55" />
- <Column size="70" />
- <Column size="60" />
- <Column size="190" />
- <Column size="90" />
- <Column size="50" />
- </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="수량" />
- </Band>
- <Band id="body">
- <Cell text="bind:sel" />
- <Cell col="1" text="bind:bandmcd" />
- <Cell col="2" text="bind:banddcd" />
- <Cell col="3" text="bind:banddnm" />
- <Cell col="4" text="bind:gbdcd" />
- <Cell col="5" text="bind:qty" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" class="tit_2" position="absolute 5 294 105 307" style="" text="상세코드 List" />
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 310 555 313" style="" 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">
- <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>
- <Col id="bdlnm"></Col>
- <Col id="useyn"></Col>
- </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_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"></Col>
- </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="list" 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" />
- <Column id="useyn" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchbdlcd"></Col>
- <Col id="srchbdlnm"></Col>
- <Col id="bdlcd"></Col>
- <Col id="bandcd"></Col>
- <Col id="useyn"></Col>
- </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">
- <ColumnInfo>
- <Column id="sel" 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="gbdcd" type="STRING" size="256" />
- <Column id="qty" type="STRING" size="256" />
- <Column id="useyn" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel"></Col>
- <Col id="bandmcd"></Col>
- <Col id="banddcd"></Col>
- <Col id="banddnm"></Col>
- <Col id="gbdcd"></Col>
- <Col id="qty"></Col>
- <Col id="useyn"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.group5.ipt_partcd" propid="value" datasetid="ds_send" columnid="srchbdlcd" />
- <BindItem id="item1" compid="group1.group5.ipt_partnm" propid="value" datasetid="ds_send" columnid="srchbdlnm" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[
- //스크립트 시작 ***
- //전체에서 event와 src를 제외한 script 를 모두포함.
- /**
- * 콤보 초기화
- */
- function fGetComboInit(){
- // 콤보내용 불러오기
- tbGetBscdList( new Array("C04","C06"), new Array("ds_init_combobscdlst", "ds_init_combobscdlst") );
- // 코드없는값 첫번째 내용 삭제
- model.removeNodeset("ds_init_combobscdlst_C04[" + 1 + "]");
- //model.refresh();
- }
- /**
- * 묶음코드 리스트 조회
- */
- function fGetBdCdListMst(){
- // 조회 Node Clear
- ds_main_bdcdlstmst_item.clearData();
- ds_main_bdcdlstdtl_item.clearData();
- //model.refresh();
- // 조회값 setting
- ds_send.setColumn( 0, "bandcd", "-");
- ds_send.setColumn( 0, "useyn", "Y");
- // 조회 Call
- // submit("TRAVB00401");
- var oParam = {};
- oParam.id = "TRAVB00401";
- oParam.service = "tissuebankbaseapp.TissueBankBndl";
- oParam.method = "reqGetBdCdList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TRAVB00401";
- tranf_submit(oParam);
- /*
- function cf_TRAVB00401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRAVB00401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRAVB00401") > -1
- arErrorCode.pop("TRAVB00401") < 0
- */
- }
- /**
- * 상세코드 리스트 조회
- */
- function fGetBdCdListDtl(){
- var idx = group1.grd_bdllst.row;
- if( idx < 1) return ;
- // 조회 Node Clear
- ds_main_bdcdlstdtl_item.clearData();
- //model.refresh();
- // 조회값 setting
- ds_send.setColumn( 0, "bdlcd", model.getValue(group1.grd_bdllst.nodeset + "[" + idx + "]_bdlcd" ) );
- ds_send.setColumn( 0, "bandcd", "" );
- ds_send.setColumn( 0, "useyn", "Y");
- // 조회 Call
- // submit("TRAVB00402");
- var oParam = {};
- oParam.id = "TRAHB00103";
- oParam.service = "tissuebankbaseapp.TissueBankBndl";
- oParam.method = "reqGetBdCdList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHB00103";
- tranf_submit(oParam);
- /*
- function cf_TRAHB00103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRAHB00103(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRAHB00103") > -1
- arErrorCode.pop("TRAHB00103") < 0
- */
- }
- /**
- * Open 화면에 값 넘기기
- */
- function fSetData(){
- if( frmf_checkOpener() ){
- opener.dsf_makeValue( ds_temp, "okflag", "string", "" );
- opener.ds_temp.setColumn( 0, "okflag", "");
- var vRet = 0;
- model.removeNodeset("ds_temp_list" );
- vRet = fSetTestCd();
- // Open 화면에 Check 값설정
- if( vRet == 1) {
- opener.ds_temp.setColumn( 0, "okflag", "ok");
- } else {
- opener.ds_temp.setColumn( 0, "okflag", "");
- }
- }
- }
- /**
- * 추가검사 및 검사코드선택 시 데이터 setting
- */
- function fSetTestCd(){
- var nodeList = instance1.selectNodes(group1.grd_choices.nodeset + "[sel='Y']");
- if( nodeList.length > 0) {
- var rCSV = getNodeListCSV(nodeList);
- dsf_setCSVToDs("ds_temp", rCSV);
- // Opener Node에 복사
- copyNodeListType("ds_temp_templst", "ds_temp_list", "replace", opener.model, model );
- }
- else return 0;
- return 1;
- }
- //스크립트 끝
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._ast_tissuebankbaseweb_js_tissuebankcombolist.js'
- function SPAVB00200_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fGetComboInit();
- fGetBdCdListMst();
- // 그리드 체크박스
- group1.grd_choices.fixedcellcheckbox(0 , 1) = true;
- //model.refresh();
- }
- function group4_button9_onclick(obj:Button, e:ClickEventInfo) {
- if( frmf_checkOpener() ) {
- opener.dsf_makeValue( ds_temp, "okflag", "string", "" );
- opener.ds_temp.setColumn( 0, "okflag", "");
- }
- window.close();
- }
- function group4_btn_cfm_onclick(obj:Button, e:ClickEventInfo) {
- fSetData();
- window.close();
- }
- function group1_group5_btn_sel_onclick(obj:Button, e:ClickEventInfo) {
- fGetBdCdListMst();
- }
- function group1_grd_bdllst_oncellclick(obj:Grid, e:GridClickEventInfo) {
- fGetBdCdListDtl();
- }
- ]]></Script>
- </Form>
- </FDL>
|