123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAVB00200" position="absolute 0 0 1280 1024" titletext="부위코드 관리" onload="SMAVB00200_onload">
- <Layouts>
- <Layout>
- <Div id="grp_biz" scrollbars="autoboth" 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 width="1194" height="35">
- <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1107 7 1110 29" style="" anchor="default"/>
- <Button id="btn_sea" class="btn1" position="absolute 1125 7 1181 29" style="" text="조회" onclick="grp_biz_grp_sea_btn_sea_onclick" anchor="default"/>
- <Static id="caption2" class="search_name" position="absolute 15 9 89 26" style="" text="부위코드 :" anchor="default"/>
- <Edit id="ipt_partcd" class="input_search" position="absolute 95 8 165 27" style="" anchor="default" onkeydown="grp_biz_grp_sea_ipt_partcd_onkeydown"/>
- <Static id="caption3" class="search_name" position="absolute 195 9 269 26" style="" text="부 위 명 :" anchor="default"/>
- <Edit id="ipt_partnm" class="input_search" position="absolute 272 8 472 27" style="" anchor="default" onkeydown="grp_biz_grp_sea_ipt_partnm_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_gedadd" class="btn2" position="absolute 1084 50 1137 69" style="" text="행추가" onclick="grp_biz_btn_gedadd_onclick"/>
- <Button id="btn_grddel" class="btn2" position="absolute 1141 50 1194 69" style="" text="행삭제" onclick="grp_biz_btn_grddel_onclick"/>
- <Static id="caption1" class="tit_2" position="absolute 5 57 125 76" style="" text="부위코드관리"/>
- <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 3 74 1194 78" style="" anchor="default"/>
- <Grid id="grd_ptcdlst" binddataset="ds_main_ptcdlst_item" position="absolute 0 90 1191 740" style="" ontextchanged="grp_biz_grd_ptcdlst_ontextchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="80"/>
- <Column size="300"/>
- <Column size="150"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="150"/>
- </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="조직코드M"/>
- <Cell col="5" text="조직"/>
- <Cell col="6" text="조직구분M"/>
- <Cell col="7" text="조직구분"/>
- <Cell col="8" text="사용여부"/>
- <Cell col="9" text="수정일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:partcode"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:partname" editlimit="100"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:partaname" editlimit="50"/>
- <Cell col="4" text="bind:tissuemcd"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:tissuedcd" combodataset="ds_init_combobscdlst_C01" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="6" text="bind:tissuegbdcd"/>
- <Cell col="7" displaytype="combo" edittype="combo" text="bind:useyn" combodataset="ds_init_combobscdlst_C05" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:(useyn == 'Y' || useyn == '1') ? '1' : '0'"/>
- <Cell col="9" displaytype="date" edittype="date" text="bind:lastupdtdt" calendardisplaynulltype="nulltext"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_btn" position="absolute 0 757 1195 784" style="">
- <Layouts>
- <Layout>
- <Button id="btn_save" class="btn4" position="absolute 1138 5 1194 27" style="" text="저장" onclick="grp_btn_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_tle" position="absolute 0 0 1195 25" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 200 23" style="" text="조직은행 부위코드 관리"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <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>
- </Dataset>
- <Dataset id="ds_main_ptcdlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_ptcdlst_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="partcode" type="STRING" size="256"/>
- <Column id="partname" type="STRING" size="256"/>
- <Column id="partaname" type="STRING" size="256"/>
- <Column id="tissuemcd" type="STRING" size="256"/>
- <Column id="tissuedcd" type="STRING" size="256"/>
- <Column id="tissuegbmcd" type="STRING" size="256"/>
- <Column id="tissuegbdcd" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="partcode"/>
- <Col id="partname"/>
- <Col id="partaname"/>
- <Col id="tissuemcd"/>
- <Col id="tissuedcd"/>
- <Col id="tissuegbmcd"/>
- <Col id="tissuegbdcd"/>
- <Col id="useyn"/>
- <Col id="lastupdtdt"/>
- </Row>
- </Rows>
- </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"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="savedata"/>
- </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_main_ptcdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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="srchpartcode" type="STRING" size="256"/>
- <Column id="srchpartname" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchpartcode"/>
- <Col id="srchpartname"/>
- </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_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_combobscdlst_C01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_combobscdlst_C05" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.ipt_partcd" propid="value" datasetid="ds_send" columnid="srchpartcode"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.ipt_partnm" propid="value" datasetid="ds_send" columnid="srchpartname"/>
- </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_C01", cdGrpId: "C01"},
- {dsNm: "ds_init_combobscdlst_C05", cdGrpId: "C05"}
- ]; // C25 의료관리자 2011.1.19 cyw
-
- tbGetBscdList( arrparm );
-
-
- }
- /**
- * 부위코드 리스트 조회
- */
- function fGetPartCodeList(){
- ds_main_ptcdlst_item.clearData();
-
- dsf_createDsRow('ds_TRAVB00201', [
- { col: 'srchpartcode', type: 'string', size: 256, val: '' },
- { col: 'srchpartname', type: 'string', size: 256, val: '' },
- { col: 'srchuseyn', type: 'string', size: 256, val: '' }
- ], false);
-
- ds_TRAVB00201.copyRow(0, ds_send, 0);
- var oParam = {};
- oParam.id = "TRAVB00201";
- oParam.service = "tissuebankbaseapp.TissueBankPart";
- oParam.method = "reqGetPtCdList";
- oParam.inds = "req=ds_TRAVB00201";
- oParam.outds = "ds_main_ptcdlst_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAVB00201";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAVB00201") > -1)
- ret = true;
- else
- ret = false;
- return ret;
- }
- function cf_TRAVB00201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /**
- * 부위코드 저장
- */
- function fSaveExer() {
- var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_ptcdlst, "all");
- grdf_setStatusColumn(dsUpdate, "m");
-
- ds_tmp.copyData(dsUpdate,true);
- if(ds_tmp.rowcount < 1)
- {
- alert("저장할 내역이 없습니다.");
- return ;
- }
- var rsv_cnt = ds_main_ptcdlst_item.rowcount;
- for( var i = 0; i < rsv_cnt ; i++){
- if( utlf_transNullToEmpty(ds_main_ptcdlst_item.getColumn( i, "partcode" )) == "") {
- alert("부위코드의 코드값이 비어있습니다.");
- return ;
- }
- }
- var ret = false;
- if ( sysf_messageBox("부위코드정보를","Q002") == 6 ) {
- //ds_send_req.setColumn( 0, "savedata", grp_biz.grd_ptcdlst.getUpdateData());
- var updateDs = grdf_getGridUpdateData(grp_biz.grd_ptcdlst);
- grdf_setStatusColumn(updateDs, "m");
- ds_send_req_savedata.copyData(updateDs);
-
- //ret = submit("TXAVB00201");
- var oParam = {};
- oParam.id = "TXAVB00201";
- oParam.service = "tissuebankbaseapp.TissueBankPart";
- oParam.method = "reqExePartCode";
- oParam.inds = "req=ds_send_req_savedata";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXAVB00201";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAVB00201") > -1)
- ret = true;
- else
- ret = false;
- }
- return ret;
- }
- function cf_TXAVB00201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //스크립트 끝
- function SMAVB00200_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(grp_biz.grd_ptcdlst);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(grp_biz.grd_ptcdlst, 0);
- fGetPtcdInputInit();
-
- //submit("TRAVB00201");
- var oParam = {};
- oParam.id = "TRAVB00201";
- oParam.service = "tissuebankbaseapp.TissueBankPart";
- oParam.method = "reqGetPtCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_ptcdlst_item=item";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function grp_biz_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo) {
- fGetPartCodeList();
- }
- function grp_biz_grp_sea_ipt_partcd_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13){
- obj.updateToDataset();
- grp_biz.grp_sea.btn_sea.click();
- }
- }
- function grp_biz_grp_sea_ipt_partnm_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13){
- obj.updateToDataset();
- grp_biz.grp_sea.btn_sea.click();
- }
- }
- function grp_biz_btn_gedadd_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_ptcdlst_item.addRow();
- //var addRow = grp_biz.grd_ptcdlst.rows -1 ;
- //grp_biz.grd_ptcdlst.valueMatrix(addRow , grp_biz.grd_ptcdlst.colRef("tissuedcd")) = ds_init.getColumn(0, "combobscdlst");
- }
- function grp_biz_btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- dsf_deleteSelectedRows(grp_biz.grd_ptcdlst, true);
- }
- function grp_biz_grd_ptcdlst_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- var col = e.col;
- var row = e.row;
- if(col == grp_biz.grd_ptcdlst.getBindCellIndex("body", "partcode")) {
- var count = -1;
- var chkRow = 0;
- var partCd = ds_main_ptcdlst_item.getColumn( row,"partcode");
- //선행검사 중복체크
- while(chkRow >= 0) {
- chkRow = ds_main_ptcdlst_item.findRow( "partcode", partCd, chkRow + 1);
- count++;
- }
- if(count >= 2) {
- sysf_messageBox("부위코드가 ","E006");
- //model.resetInstanceNode(grp_biz.grd_ptcdlst.nodeset + "[" + row + "]");
- return;
- }
- }
- }
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- if( fSaveExer() == true ){
- //submit("TRAVB00201");
- var oParam = {};
- oParam.id = "TRAVB00201";
- oParam.service = "tissuebankbaseapp.TissueBankPart";
- oParam.method = "reqGetPtCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_ptcdlst_item=item";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- function ds_main_ptcdlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == 'useyn'){
- var value = (e.newvalue == '1' || e.newvalue == 'Y') ? 'Y' : 'N';
- obj.setColumn(e.row, 'useyn', value);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|