123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLBF00200" position="absolute 0 0 1181 723" titletext="New Form" oninit="SMLBF00200_oninit" onload="SMLBF00200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="혈액출고유형관리" onclick="group2_caption6_onclick" class="tit_1" position="absolute 0 1 144 26"/>
- <Button id="btn_reset" taborder="3" text="초기화" onclick="grp_btn_btn_reset_onclick" class="btn4" position="absolute 1111 2 1179 24" anchor="top right"/>
- <Button id="btn_cnfm" taborder="4" text="저장" onclick="grp_btn_btn_cnfm_onclick" class="btn4" position="absolute 1048 2 1104 24" anchor="top right"/>
- <Div id="group1" anchor="left top right" taborder="5" class="div_SA" position="absolute 0 26 1179 61">
- <Layouts>
- <Layout>
- <Button id="btn_Ref" taborder="3" text="조회" onclick="group3_group1_btn_Ref_onclick" class="btn1" position="absolute 1108 7 1164 29" anchor="top right"/>
- <Static id="caption1" text="출고유형 :" class="search_name" position="absolute 15 9 105 26" anchor="left top"/>
- <Combo id="cmbflag" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group1_cmbflag_onitemchanged" position="absolute 108 8 258 27" anchor="left top">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">자체폐기</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">교환출고</Col>
- </Row>
- <Row>
- <Col id="codecolumn">03</Col>
- <Col id="datacolumn">사혈</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1097 7 1103 29" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" text="혈액출고유형리스트" class="tit_2" position="absolute 0 71 139 90" anchor="left top"/>
- <Button id="btn_add" taborder="6" text="행삭제" onclick="group3_btn_add_onclick" class="btn2" position="absolute 1126 65 1179 84" anchor="top right"/>
- <Button id="button1" taborder="7" text="행추가" onclick="group3_button1_onclick" class="btn2" position="absolute 1066 65 1119 84" anchor="top right"/>
- <Grid id="grd_delivelist" taborder="8" binddataset="ds_grd_delivelist" useinputpanel="false" position="absolute 0 91 1179 696" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="100"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="200"/>
- <Column size="50"/>
- <Column size="0"/>
- </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="출고사유 (영문120자까지)"/>
- <Cell col="5" text="순번"/>
- <Cell col="6" text="LB005"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:basecd2"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:basecdidnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdnm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecddesc"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:basecddispseq"/>
- <Cell col="6" text="bind:basecd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_delivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd2" type="STRING"/>
- <Column id="basecdidnm" type="STRING"/>
- <Column id="basecdnm" type="STRING"/>
- <Column id="basecddesc" type="STRING"/>
- <Column id="basecddispseq" type="STRING"/>
- <Column id="basecd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmbflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">자체폐기</Col>
- <Col id="value">01</Col>
- </Row>
- <Row>
- <Col id="label">교환출고</Col>
- <Col id="value">02</Col>
- </Row>
- <Row>
- <Col id="label">사혈</Col>
- <Col id="value">03</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bloodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd2" type="STRING" size="0"/>
- <Column id="basecdidnm" type="STRING" size="0"/>
- <Column id="basecdnm" type="STRING" size="0"/>
- <Column id="basecddesc" type="STRING" size="0"/>
- <Column id="basecddispseq" type="STRING" size="0"/>
- <Column id="basecd" type="STRING" size="0"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="delivegbn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="codeflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_senddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_gbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gbn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="" propid="" datasetid="ds_delivegbn" columnid=""/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- function SMLBF00200_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SMLBF00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grd_delivelist, 0);
- grdf_initGrid(grd_delivelist);
- group1.cmbflag.value = '02';
- fGetDelivegbnList();
- }
- // 코드별 정보 출력
- function fGetDelivegbnList()
- {
- var cmbflag = group1.cmbflag.value;
- var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "delivegbn", val: cmbflag}]);
-
- //서브밋호출
- var oParam = {};
- oParam.id = "TRLBF00201";
- oParam.service = "diagtestbaseinfomngtapp.BloodBankBaseInfoMngt";
- oParam.method = "reqGetDeliveGbnList";
- oParam.inds = "cond=" + sInDsName;
- oParam.outds = "ds_grd_delivelist=getDeliveGbnList";
- oParam.async = false;
- tranf_submit(oParam);
-
- }
- //행추가
- function fsetgrdadd()
- {
- var addRw = ds_grd_delivelist.addRow(ds_grd_delivelist.rowcount);
- var arrPostion = new Array();
- arrPostion[0] = addRw;
- if(addRw > 1)
- {
- var cd = ds_grd_delivelist.getColumn(addRw - 1, "basecd2");
- var cd2 = parseInt(cd) + 1;
- var seq = parseInt(ds_grd_delivelist.getColumn(addRw - 1, "basecddispseq")) + 1;
-
- ds_grd_delivelist.setColumn(addRw, "basecd2", cd2.toString().getLeftPad(2, "0"));
- ds_grd_delivelist.setColumn(addRw, "basecdidnm", "혈액출고유형");
- ds_grd_delivelist.setColumn(addRw, "basecdnm", ds_grd_delivelist.getColumn(addRw - 1, "basecdnm"));
- ds_grd_delivelist.setColumn(addRw, "basecddispseq", seq);
-
- }
- }
- //행삭제
- function fsetgrddel()
- {
- var arrPostion = new Array();
- arrPostion[0] = ds_grd_delivelist.rowposition;
- grdf_setStatus(grd_delivelist, "D", arrPostion);
- }
-
- //행저장
- function fExeDeliveGbn()
- {
- var tmp = grdf_getGridUpdateData(grd_delivelist, "all");
- grdf_setStatusColumn(tmp, "status");
- ds_senddata.copyData(tmp, true);
- dsf_makeValue(ds_gbn, 'gbn', 'string', group1.cmbflag.value, 0);
-
- var oParam = {};
- oParam.id = "TXLBF00201";
- oParam.service = "diagtestbaseinfomngtapp.BloodBankBaseInfoMngt";
- oParam.method = "reqExeDeliveGbn";
- oParam.inds = "cond=ds_senddata cond2=ds_gbn";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- //재조회
- fGetDelivegbnList();
- }
- //조회
- function group3_group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetDelivegbnList();
- }
- function group3_group1_cmbflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetDelivegbnList();
- }
- //초기화
- function grp_btn_btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- //행추가
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fsetgrdadd();
- }
- //행삭제
- function group3_btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- fsetgrddel();
- }
- //저장
- function grp_btn_btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeDeliveGbn();
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMLRR00400", "SMLRR00400", "" , "" , "" , "", "", "", "", "", "")
-
- }
- ]]></Script>
- </Form>
- </FDL>
|