123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLBP00200" position="absolute 0 0 1196 791" titletext="지정헌혈정보조회" oninit="SMLBP00200_oninit" onload="SMLBP00200_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_apntdon" taborder="10" binddataset="ds_grd_apntdon" useinputpanel="false" position="absolute 0 120 1194 789">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="31"/>
- <Column size="24"/>
- <Column size="57"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="75"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="105"/>
- <Column size="64"/>
- <Column size="74"/>
- <Column size="50"/>
- <Column size="65"/>
- <Column size="92"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="126"/>
- <Column size="70"/>
- <Column size="90"/>
- <Column size="102"/>
- <Column size="105"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" taborder="undefined"/>
- <Cell col="2" rowspan="2" style="align:center middle;" text="지정해제 여부" taborder="undefined"/>
- <Cell col="3" colspan="8" text="수혜자" taborder="undefined"/>
- <Cell col="11" colspan="2" text="입력정보(병동)" taborder="undefined"/>
- <Cell col="13" colspan="6" text="공여자" taborder="undefined"/>
- <Cell col="19"/>
- <Cell col="20" colspan="4" text="공여자" taborder="undefined"/>
- <Cell col="24"/>
- <Cell col="25" text="확인정보(혈액은행)"/>
- <Cell col="26" text="확인정보(혈액은행)"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell row="1" col="3" text="병동"/>
- <Cell row="1" col="4" text="병실"/>
- <Cell row="1" col="5" text="등록번호"/>
- <Cell row="1" col="6" text="환자명"/>
- <Cell row="1" col="7" text="혈액형"/>
- <Cell row="1" col="8" text="관리번호"/>
- <Cell row="1" col="9" text="혈액종류"/>
- <Cell row="1" col="10" text="비고"/>
- <Cell row="1" col="11" text="입력시간"/>
- <Cell row="1" col="12" text="입력자"/>
- <Cell row="1" col="13" text="혈액원"/>
- <Cell row="1" col="14" text="혈액형"/>
- <Cell row="1" col="15" text="혈액상태"/>
- <Cell row="1" col="16" text="혈액번호"/>
- <Cell row="1" col="17" text="관리번호"/>
- <Cell row="1" col="18" text="성명"/>
- <Cell row="1" col="19" text="주민번호"/>
- <Cell row="1" col="20" text="성별/나이"/>
- <Cell row="1" col="21" text="공여일"/>
- <Cell row="1" col="22" text="연락처"/>
- <Cell row="1" col="23" text="확인시간"/>
- <Cell row="1" col="24" text="확인자"/>
- <Cell row="1" col="25" text="seqflag"/>
- <Cell row="1" col="26" text="입고테이블혈액형"/>
- <Cell row="1" col="27"/>
- <Cell row="1" col="28"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" text="bind:apntremvincl"/>
- <Cell col="3" text="bind:tnsrwardnm"/>
- <Cell col="4" text="bind:tnsrroomcd"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:tnsrpid"/>
- <Cell col="6" text="bind:patnm"/>
- <Cell col="7" text="bind:tnsrbtype"/>
- <Cell col="8" text="bind:apntdonseqno"/>
- <Cell col="9" displaytype="normal" edittype="normal" text="bind:tnsrblodcomnm" combodataset="ds_init_lb1001" combocodecol="nm" combodatacol="cd" enable="false"/>
- <Cell col="10" text="bind:rem"/>
- <Cell col="11" displaytype="date" edittype="date" text="bind:rgstdt" mask="yyyy-MM-dd hh:mm"/>
- <Cell col="12" text="bind:usernm"/>
- <Cell col="13" text="bind:blodcntr"/>
- <Cell col="14" text="bind:dnorbtype"/>
- <Cell col="15" text="bind:deliveyn"/>
- <Cell col="16" displaytype="text" edittype="text" text="bind:blodno" expandshow="show"/>
- <Cell col="17" text="bind:apntdonseqno"/>
- <Cell col="18" text="bind:dnornm"/>
- <Cell col="19" text="bind:dnorrrgstno"/>
- <Cell col="20" text="bind:dnorsexage"/>
- <Cell col="21" displaytype="date" edittype="date" text="bind:dnordd" mask="yyyy-MM-dd"/>
- <Cell col="22" text="bind:dnorcntctel"/>
- <Cell col="23" displaytype="date" edittype="date" text="bind:cnfmtm" mask="yyyy-MM-dd hh:mm"/>
- <Cell col="24" text="bind:cnfmnm"/>
- <Cell col="25" text="bind:blodbarcd"/>
- <Cell col="26" text="bind:blodstat"/>
- <Cell col="27" text="bind:seqflag"/>
- <Cell col="28" text="bind:bldwabo"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_cle" taborder="1" text="초기화" class="btn4" position="absolute 1126 27 1194 49" onclick="btn_cle_onclick"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 51 1194 57"/>
- <Button id="button2" taborder="2" text="지정헌혈정보등록" class="btn3" position="absolute 0 27 128 50" onclick="button2_onclick"/>
- <Button id="btn_Save" taborder="3" text="저장" class="btn4" position="absolute 1012 27 1068 49" onclick="btn_Save_onclick"/>
- <Button id="btn_del" taborder="4" text="삭제" class="btn4" position="absolute 1069 27 1125 49" onclick="btn_del_onclick"/>
- <Button id="button5" taborder="5" text="입원환자병실정보조회" class="btn3" position="absolute 130 27 285 50" onclick="button5_onclick"/>
- <Static id="caption5" text="지정헌혈정보조회" class="tit_1" position="absolute 0 0 151 25"/>
- <Static id="caption11" text="지정헌혈정보 리스트" class="tit_2" position="absolute 1 98 147 114"/>
- <Shape id="line7" linetype="horizontal" class="line_10" position="absolute 0 116 1196 122"/>
- <Button id="btn_setseq" taborder="7" text="혈액형별 끝번호설정" class="btn2" position="absolute 1065 94 1195 113" onclick="btn_setseq_onclick"/>
- <Div id="group2" taborder="9" position="absolute 0 55 1195 90" class="div_SA">
- <Layouts>
- <Layout>
- <Calendar id="input1" taborder="1" class="input_s_essential" position="absolute 104 8 204 27" anchor="default"/>
- <Calendar id="input3" taborder="2" class="input_s_essential" position="absolute 220 8 320 27" anchor="default" onkeyup="group2_input3_onkeyup"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1124 7 1180 29" anchor="default" onclick="group2_btn_sea_onclick"/>
- <Static id="caption2" text="일자구간 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
- <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 715 9 801 26" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1106 7 1112 29" anchor="default"/>
- <Static id="caption4" text="~" class="search_no_b" position="absolute 206 10 221 27" anchor="default"/>
- <Combo id="cmb_dept" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 809 8 885 27" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">00</Col>
- <Col id="datacolumn">- 전체 -</Col>
- </Row>
- <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>
- <Edit id="ipt_nm" taborder="5" class="input_search" position="absolute 888 8 1048 27" anchor="default"/>
- <Static id="caption3" text="완료여부 :" class="search_name" position="absolute 345 9 431 26" anchor="default"/>
- <Radio id="radio1" taborder="6" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 419 9 603 25" anchor="default" onitemchanged="group2_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">지정헌혈완료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">미완료</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <CheckBox id="chk_apntremv" taborder="7" position="absolute 610 10 705 25" anchor="default" text="지정해제포함"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_keep" taborder="8" visible="false" position="absolute 877 184 1175 349" style="background:white;border:2 solid #fec34dff ;">
- <Layouts>
- <Layout>
- <Edit id="input2" taborder="4" class="input_button" position="absolute 72 53 235 72" anchor="default"/>
- <Button id="ipt_endnoB" taborder="5" text="저장" class="btn2" position="absolute 238 53 280 72" anchor="default" onclick="grp_keep_ipt_endnoB_onclick"/>
- <Shape id="line120" linetype="horizontal" class="line_1" position="absolute 0 74 280 80" anchor="default"/>
- <Static id="caption119" text="O형" class="cell_1" position="absolute 0 77 70 100" anchor="default"/>
- <Edit id="ipt_endnoO" taborder="6" class="input_button" position="absolute 72 78 235 97" anchor="default"/>
- <Button id="button118" taborder="7" text="저장" class="btn2" position="absolute 238 78 280 97" anchor="default" onclick="grp_keep_button118_onclick"/>
- <Shape id="line121" linetype="horizontal" class="line_1" position="absolute 0 100 280 106" anchor="default"/>
- <Static id="caption120" text="AB형" class="cell_1" position="absolute 0 103 70 126" anchor="default"/>
- <Edit id="ipt_endnoAB" taborder="8" class="input_button" position="absolute 72 104 235 123" anchor="default"/>
- <Button id="button1" taborder="9" text="저장" class="btn2" position="absolute 238 104 280 123" anchor="default" onclick="grp_keep_button1_onclick"/>
- <Shape id="line122" linetype="horizontal" class="line_1" position="absolute 0 125 280 131" anchor="default"/>
- <Static id="caption121" text="이형혈액형" class="cell_1" position="absolute 0 129 70 152" anchor="default" style="padding:0 0 0 3;align:left middle;"/>
- <Edit id="ipt_endnoE" taborder="10" class="input_button" position="absolute 72 130 235 149" anchor="default"/>
- <Button id="button113" taborder="11" text="저장" class="btn2" position="absolute 238 130 280 149" anchor="default" onclick="grp_keep_button113_onclick"/>
- <Shape id="line123" linetype="horizontal" class="line_1" position="absolute 0 150 280 156" anchor="default"/>
- <Shape id="line118" linetype="horizontal" class="line_10" position="absolute 0 21 280 27" anchor="default"/>
- <Static id="caption115" text="지정헌혈 끝번호 설정" class="tit_2" position="absolute 2 4 150 20" anchor="default"/>
- <Button id="button112" taborder="1" text="닫기" class="btn2" position="absolute 238 0 280 19" anchor="default" onclick="grp_keep_button112_onclick"/>
- <Static id="caption116" text="A형" class="cell_1" position="absolute 0 25 70 48" anchor="default"/>
- <Edit id="ipt_endnoA" taborder="2" class="input_button" position="absolute 72 26 235 45" anchor="default"/>
- <Button id="button117" taborder="3" text="저장" class="btn2" position="absolute 238 26 280 45" anchor="default" onclick="grp_keep_button117_onclick"/>
- <Shape id="line119" linetype="horizontal" class="line_1" position="absolute 0 48 280 54" anchor="default"/>
- <Static id="caption118" text="B형" class="cell_1" position="absolute 0 51 70 74" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_apntdon" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext="체크박스"/>
- <Column id="apntremvincl" type="STRING" size="256" sumtext="지정해제여부"/>
- <Column id="tnsrwardnm" type="STRING" size="256" sumtext="병동"/>
- <Column id="tnsrroomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="tnsrbtype" type="STRING" size="256" sumtext="혈액형"/>
- <Column id="tnsrblodcomnm" type="STRING" size="256" sumtext="혈액종류"/>
- <Column id="tnsrrem" type="STRING" size="256" sumtext="비고"/>
- <Column id="rgstdt" type="STRING" size="256" sumtext="입력시간"/>
- <Column id="usernm" type="STRING" size="256" sumtext="입력자"/>
- <Column id="dnornm" type="STRING" size="256" sumtext="공여자성명"/>
- <Column id="dnorrrgstno" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="dnorsexage" type="STRING" size="256" sumtext="성별나이"/>
- <Column id="dnorbtype" type="STRING" size="256" sumtext="공여자혈액형"/>
- <Column id="dnorcntctel" type="STRING" size="256" sumtext="연락처"/>
- <Column id="dnordd" type="STRING" size="256" sumtext="공여일"/>
- <Column id="cnfmdt" type="STRING" size="256" sumtext="확인시간"/>
- <Column id="cnfmnm" type="STRING" size="256" sumtext="확인자"/>
- <Column id="blodno" type="STRING" size="256" sumtext="확인자"/>
- <Column id="tnsrpid" type="STRING" size="256" sumtext="수혜자등록번호"/>
- <Column id="dnorpid" type="STRING" size="256" sumtext="공여자아이디"/>
- <Column id="blodcntr" type="STRING" size="256" sumtext="혈액원"/>
- <Column id="blodbarcd" type="STRING" size="256" sumtext="혈액바코드"/>
- <Column id="blodstat" type="STRING" size="256" sumtext="혈액상태"/>
- <Column id="deliveyn" type="STRING" size="256" sumtext="혈액상태"/>
- <Column id="seqflag" type="STRING" size="256" sumtext="번호생성여부"/>
- <Column id="bldwabo" type="STRING" size="256" sumtext="인스턴스만생성"/>
- <Column id="apntdonseqno" type="STRING" size="256" sumtext="혈액형별지정헌혈순번"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="abo" type="STRING" size="256"/>
- </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="usdd" type="STRING" size="256"/>
- <Column id="uedd" type="STRING" size="256"/>
- <Column id="refflag" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="cnfmyn" type="STRING" size="256"/>
- <Column id="apntremvincl" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refflag">00</Col>
- <Col id="cnfmyn">2</Col>
- </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="usdd" type="STRING" size="256"/>
- <Column id="uedd" type="STRING" size="256"/>
- <Column id="refflag" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="cnfmyn" type="STRING" size="256"/>
- <Column id="apntremvincl" type="STRING" size="256"/>
- <Column id="blodno" type="STRING" size="256"/>
- <Column id="tnsrpid" type="STRING" size="256"/>
- <Column id="donnm" type="STRING" size="256"/>
- <Column id="codeflag" type="STRING" size="256"/>
- <Column id="blodbarcd" type="STRING" size="256"/>
- <Column id="rgstdt" type="STRING" size="256"/>
- <Column id="data1" type="STRING" size="256"/>
- <Column id="noflag2" type="STRING" size="256"/>
- <Column id="endabo" type="STRING" size="256"/>
- <Column id="endno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_lb1001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" sumtext="코드"/>
- <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="chk" type="STRING" size="256" sumtext="chk"/>
- <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
- <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
- <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
- <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
- <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_keependno" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="endnoa" type="STRING" size="256" sumtext="A형보검끝번호"/>
- <Column id="endnob" type="STRING" size="256" sumtext="B형보검끝번호"/>
- <Column id="endnoo" type="STRING" size="256" sumtext="O형보검끝번호"/>
- <Column id="endnoab" type="STRING" size="256" sumtext="AB형보검끝번호"/>
- <Column id="endnoe" type="STRING" size="256" sumtext="이형보검끝번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_message" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.input1" propid="value" datasetid="ds_hidden_ref" columnid="usdd"/>
- <BindItem id="item1" compid="group2.input3" propid="value" datasetid="ds_hidden_ref" columnid="uedd"/>
- <BindItem id="item2" compid="group2.radio1" propid="value" datasetid="ds_hidden_ref" columnid="cnfmyn"/>
- <BindItem id="item3" compid="group2.chk_apntremv" propid="value" datasetid="ds_hidden_ref" columnid="apntremvincl"/>
- <BindItem id="item4" compid="group2.cmb_dept" propid="value" datasetid="ds_hidden_ref" columnid="refflag"/>
- <BindItem id="item5" compid="group2.ipt_nm" propid="value" datasetid="ds_hidden_ref" columnid="nm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMLBP00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLBP00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_apntdon);
- fSetInit();
- }
- //초기화
- function fSetInit()
- {
- var today = utlf_getCurrentDate();
-
- ds_hidden_ref.setColumn(0, "usdd", today);
- ds_hidden_ref.setColumn(0, "uedd", today);
- ds_hidden_ref.setColumn(0, "refflag", "00");
- ds_hidden_ref.setColumn(0, "nm", "");
-
- ds_grd_apntdon.clearData();
-
- ds_send.setColumn(0, "codeflag", "1001|");
- // submit("TRLZZ00101");
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_init_lb1001=1001";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
- fGridSet();
- }
- function fGridSet()
- {
- if(ds_hidden_ref.getColumn(0, "cnfmyn") == "1")
- {
- grd_apntdon.setFormatColProperty(8, "size", 60);
- btn_Save.enable = false;
- btn_del.enable = false;
- }
- else
- {
- grd_apntdon.setFormatColProperty(8, "size", 0);
- btn_Save.enable = true;
- btn_del.enable = true;
- }
- }
- //완료여부 값변경
- function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- ds_grd_apntdon.clearData();
- fGridSet();
- }
- //조회
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetApntDonInfoList();
- }
- //조회
- function fGetApntDonInfoList()
- {
- ds_send.setColumn(0, "usdd", ds_hidden_ref.getColumn(0, "usdd"));
- ds_send.setColumn(0, "uedd", ds_hidden_ref.getColumn(0, "uedd"));
- ds_send.setColumn(0, "refflag", ds_hidden_ref.getColumn(0, "refflag"));
- ds_send.setColumn(0, "nm", ds_hidden_ref.getColumn(0, "nm"));
- ds_send.setColumn(0, "cnfmyn", ds_hidden_ref.getColumn(0, "cnfmyn"));
- ds_send.setColumn(0, "apntremvincl", ds_hidden_ref.getColumn(0, "apntremvincl"));
-
- var oParam = {};
- oParam.id = "TRLBP00201";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetApntDonInfoList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_apntdon=getApntDonInfoList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBP00201";
- tranf_submit(oParam);
- fGridSet();
- }
- //지정헌혈정보등록
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SPLBD90100", "SPLBD90100", "", "", "", "", "", "", "", "", "", "", "M");
- }
- //입원환자병실정보조회
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SPLLP90400", "SPLLP90400", "", "", "", "", "", "", "", "", "", "", "M");
- }
- //혈액행별 끝번호 설정
- function btn_setseq_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeNoUpdateOpen();
- }
- // 번호설정 시작버튼 설정하기 강남=200까지
- function fExeNoUpdateOpen()
- {
- grp_keep.visible = true;
-
- // 끝번호 조회
- dsf_createDsRow("ds_temp_search", [{col : "noflag2", val : "G"}]);
-
- var oParam = {};
- oParam.id = "TRLBT10905";
- oParam.service = "transfusionmngtapp.KeepSpcMngt";
- oParam.method = "reqGetBGGCendNo";
- oParam.inds = "cond=ds_temp_search";
- oParam.outds = "ds_main_keependno=getBGGCendNo";
- oParam.async = false;
- //oParam.callback = "cf_TRLBT10905";
- tranf_submit(oParam);
- //grp_keep.refresh();
- }
- //조회
- function group2_input3_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetApntDonInfoList();
- }
- }
- //지정헌혈 끝번호 설정 닫기
- function grp_keep_button112_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_keep.visible = false;
- }
- //A형 저장
- function grp_keep_button117_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetBGGCendNo("A");
- }
- //B형 저장
- function grp_keep_ipt_endnoB_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetBGGCendNo("B");
- }
- //O형 저장
- function grp_keep_button118_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetBGGCendNo("O");
- }
- //AB 저장
- function grp_keep_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetBGGCendNo("AB");
- }
- //이형혈액형 저장
- function grp_keep_button113_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetBGGCendNo("E");
- }
- function fSetBGGCendNo(param)
- {
- var endno = "";
-
- if(param == "A")
- {
- ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoA"));
- }
- else if(param == "B")
- {
- ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoB"));
- }
- else if(param == "O")
- {
- ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoO"));
- }
- else if(param == "AB")
- {
- ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoAB"));
- }
- else if(param == "E")
- {
- ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoE"));
- }
-
- ds_send.setColumn(0, "endabo", param);
-
- if( utlf_isNull(ds_send.getColCount(0, "endno")))
- {
- sysf_messageBox("끝번호를 입력하십시오.", "I");
- return;
- }
-
- if(ds_send.getColumn(0, "endno") < 1)
- {
- sysf_messageBox("0보다 큰 수를 입력하십시오.", "I");
- return;
- }
-
- //submit("TXLBT10905");
- var oParam = {};
- oParam.id = "TXLBT10905";
- oParam.service = "transfusionmngtapp.KeepSpcMngt";
- oParam.method = "reqSetBGGCendNo";
- oParam.inds = "cond=ds_send";
- oParam.async = false;
- //oParam.callback = "cf_TXLBT10905";
- tranf_submit(oParam);
-
- }
- //저장
- function btn_Save_onclick(obj:Button, e:ClickEventInfo)
- {
- fApntSave();
- }
- //지정헌혈 맵핑 저장
- function fApntSave()
- {
- var row = ds_grd_apntdon.rowposition;
-
- var blodbarcd = "";
- var rows = ds_grd_apntdon.rowcount;
-
- if(ds_hidden_ref.getColumn(0, "cnfmyn") == "2")
- {
- var insTF = false;
-
- for(i = 0; i < rows; i++)
- {
- if(ds_grd_apntdon.getColumn(i, "chk") == 1)
- {
-
- if( utlf_isNull(ds_grd_apntdon.getColumn(0, "blodno")))
- {
- sysf_messageBox("혈액번호를 입력해주세요.","I");
- return;
- }
-
- ds_grd_apntdon.setColumn(i, "status", "u");
- insTF = true;
- }
- }
-
- if(insTF)
- {
- var oParam = {};
- oParam.id = "TXLBP00201";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqExeBlodnoMap";
- oParam.inds = "datalist=ds_grd_apntdon:u";
- oParam.outds = "ds_data_message=message";
- oParam.async = false;
- //oParam.callback = "cf_TXLBP00201";
- tranf_submit(oParam);
- fGetApntDonInfoList();
-
- }
- else
- {
- sysf_messageBox("저장할 리스트를 선택해주세요.","I");
- return;
- }
- }
- else
- {
- sysf_messageBox("미완료 일때만 입력가능합니다. ", "I");
- }
- }
- //삭제
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- fApntDelete();
- }
- //지정헌혈등록 삭제
- function fApntDelete()
- {
- var row = ds_grd_apntdon.rowposition;
-
- var pid = "";
- var inpttm = "";
- var blodkind = ""; //혈액종류
-
- var rows = ds_grd_apntdon.rowcount;
-
- var delTF = false;
- var blodstat = "";
- var returnValue = "";
-
- for(i = 0; i < rows; i++)
- {
- if(ds_grd_apntdon.getColumn(i, "chk") == 1)
- {
- blodstat = ds_grd_apntdon.getColumn(i, "blodstat");
-
- if(blodstat != '-')
- {
- sysf_messageBox( i + " 번째는 삭제 할 수 없습니다. 지정완료되지 않은 경우만 삭제 가능합니다.","I");
- return;
- }
-
- ds_grd_apntdon.setColumn(i, "status", "u");
- delTF = true;
- }
- }
-
- //Q001=삭제 하시겠습니까? retrun yes=6, no=7
- returnValue = sysf_messageBox("선택한 내역을 ","Q001");
-
- if(returnValue == "6")
- {
- if(delTF)
- {
- var oParam = {};
- oParam.id = "TXLBP00202";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqSetApntDonorDel";
- oParam.inds = "dellist=ds_grd_apntdon:u";
- oParam.outds = "ds_data_message=message";
- oParam.async = false;
- //oParam.callback = "cf_TXLBP00202";
- tranf_submit(oParam);
-
- fGetApntDonInfoList();
- }
- else
- {
- sysf_messageBox("삭제할 리스트를 선택해주세요.","I");
- return;
- }
- }
- }
- //초기화
- function btn_cle_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetInit();
- }
- ]]></Script>
- </Form>
- </FDL>
|