123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLBP01000" position="absolute 0 0 1260 805" titletext="혈액이력조회" oninit="model1_oninit">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 0 1195 13" anchor="default" positiontype="position"/>
- <Static id="caption6" text="혈액이력조회" class="tit_1" position="absolute 0 0 189 25"/>
- <Div id="group2" taborder="2" style="align:center top;" position="absolute 0 26 1255 68" anchor="left top right" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption2" text="혈액번호 :" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
- <Button id="button1" taborder="1" text="조회" onclick="button1_onclick" class="btn1" position="absolute 1116 10 1172 30" anchor="top right"/>
- <Edit id="ipt_blodno" taborder="2" class="input_s_button" position="absolute 82 10 202 30" onkeydown="group2_ipt_blodno_onkeydown" anchor="default" autoselect="true"/>
- <CheckBox id="checkbox1" taborder="3" text="관공서" truevalue="Y" position="absolute 205 10 266 30" onchanged="group2_checkbox1_onchanged" anchor="default"/>
- <Button id="button5" taborder="4" text="초기화" onclick="button5_onclick" class="btn4" position="absolute 1177 10 1246 30" anchor="right bottom"/>
- <Button id="btn_search" taborder="5" position="absolute 184 12 200 28" style="background:skyblue;" onclick="group2_btn_search_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption26" text="성분제제 리스트" class="tit_2" position="absolute 0 76 131 96"/>
- <Grid id="grd_blodcomlist" taborder="3" useinputpanel="false" position="absolute 0 97 1256 250" style="align:center middle;" onclick="datagrid3_onclick" anchor="left top right" autofittype="col" binddataset="ds_grid_grd_blodcomlist" oncellclick="grd_blodcomlist_oncellclick" oncelldblclick="grd_blodcomlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="90"/>
- <Column size="80"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="22" 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="유효일시"/>
- <Cell col="8" text="헌혈일시"/>
- <Cell col="9" text="성분제제코드"/>
- <Cell col="10" text="혈액바코드"/>
- <Cell col="11" text="입고기관"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" text="bind:blodkind"/>
- <Cell col="2" text="bind:blodno"/>
- <Cell col="3" text="bind:blodbasevol"/>
- <Cell col="4" style="align:left middle;" text="bind:blodcomnm"/>
- <Cell col="5" text="bind:aborh"/>
- <Cell col="6" style="align:center middle;" text="bind:windt" mask="expr:windt==null?'':'####-##-## ##:##'"/>
- <Cell col="7" style="align:center middle;" text="bind:validt" mask="expr:validt==null?'':'####-##-## ##:##'"/>
- <Cell col="8" style="align:center middle;" text="bind:dondt" mask="expr:dondt==null?'':'####-##-## ##:##'"/>
- <Cell col="9" text="bind:blodcomcd"/>
- <Cell col="10" text="bind:blodbarcd"/>
- <Cell col="11" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:wininstcd" combodataset="ds_init_lb0121" combocodecol="cd" combodatacol="nm" combodisplayrowcount="26"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption5" text="헌혈자 정보" class="tit_2" position="absolute 0 260 131 280"/>
- <Edit id="output4" taborder="4" readonly="true" position="absolute 204 283 509 303" anchor="left top"/>
- <Edit id="output1" taborder="5" readonly="true" position="absolute 204 308 509 328" anchor="left top"/>
- <Edit id="output2" taborder="6" readonly="true" position="absolute 204 333 509 353" anchor="left top"/>
- <Edit id="output19" taborder="7" readonly="true" position="absolute 687 283 886 303" anchor="top right"/>
- <Static id="caption27" text="수혈자 정보" class="tit_2" position="absolute 523 260 654 280" anchor="left top right"/>
- <Edit id="output20" taborder="8" readonly="true" position="absolute 687 308 886 328" anchor="top right"/>
- <Edit id="output21" taborder="9" readonly="true" position="absolute 687 333 886 353" anchor="top right"/>
- <Edit id="output3" taborder="10" readonly="true" position="absolute 1053 308 1252 328" anchor="top right"/>
- <Edit id="output5" taborder="11" readonly="true" position="absolute 1053 333 1252 353" mask="yyyy-mm-dd hh:nn:ss" anchor="top right"/>
- <Edit id="output6" taborder="12" readonly="true" position="absolute 1053 283 1252 303" anchor="top right"/>
- <Static id="caption30" text="성명" class="cell_1" position="absolute 524 281 684 305" style="align:left middle;" anchor="left top right"/>
- <Static id="caption10" text="병동병실" class="cell_1" position="absolute 890 306 1050 330" style="align:left middle;" anchor="top right"/>
- <Static id="caption11" text="수혈희망일시" class="cell_1" position="absolute 890 331 1050 355" style="align:left middle;" anchor="top right"/>
- <Static id="caption28" text="Sex/Age" class="cell_1" position="absolute 524 306 684 330" style="align:left middle;" anchor="left top right"/>
- <Static id="caption9" text="의뢰의사" class="cell_1" position="absolute 890 281 1050 305" style="align:left middle;" anchor="top right"/>
- <Static id="caption29" text="진료과" class="cell_1" position="absolute 524 331 684 355" style="align:left middle;" anchor="left top right"/>
- <Static id="caption7" text="성명" class="cell_1" position="absolute 1 306 201 330" style="align:left middle;" anchor="left top"/>
- <Static id="caption8" text="Sex/Age" class="cell_1" position="absolute 1 331 201 355" style="align:left middle;" anchor="left top"/>
- <Static id="caption18" text="주민등록번호" class="cell_1" position="absolute 1 281 201 305" style="align:left middle;" anchor="left top"/>
- <Static id="caption4" text="혈액 이력 리스트" class="tit_2" position="absolute 0 365 131 385"/>
- <Button id="btn_excel" taborder="13" text="엑셀" class="btn7" position="absolute 1197 361 1254 381" anchor="top right" onclick="btn_excel_onclick"/>
- <Grid id="grd_blodhistlist2" taborder="16" useinputpanel="false" position="absolute 1 386 1256 804" anchor="all" autofittype="none" binddataset="ds_grid_grd_blodhistlist2" onrbuttondown="grd_blodhistlist2_onrbuttondown" cellsizingtype="both">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="65"/>
- <Column size="100"/>
- <Column size="170"/>
- <Column size="170"/>
- <Column size="90"/>
- <Column size="85"/>
- </Columns>
- <Rows>
- <Row size="22" 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="주민등록번호"/>
- <Cell col="8" text="주소"/>
- <Cell col="9" text="진단명"/>
- <Cell col="10" text="핸드폰번호"/>
- <Cell col="11" text="집전화"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" text="bind:blodno"/>
- <Cell col="2" text="bind:blodcomstat"/>
- <Cell col="3" text="bind:blodcomnm"/>
- <Cell col="4" text="bind:windt" mask="expr:windt==null?'':'####-##-## ##:##'"/>
- <Cell col="5" text="bind:tnsstrddtm" mask="expr:tnsstrddtm==null?'':'####-##-## ##:##'"/>
- <Cell col="6" text="bind:patnm"/>
- <Cell col="7" text="bind:rrgstno"/>
- <Cell col="8" style="align:left;" text="bind:addr"/>
- <Cell col="9" style="align:left;" text="bind:termhngnm"/>
- <Cell col="10" style="align:left middle;" text="bind:mpphontel"/>
- <Cell col="11" text="bind:hometel"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_blodhistlist" taborder="18" useinputpanel="false" autofittype="col" position="absolute 1 386 1256 803" anchor="all" binddataset="ds_grid_grd_blodhistlist" onrbuttondown="grd_blodhistlist_onrbuttondown" selecttype="row" autosizingtype="none" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="117"/>
- <Column size="110"/>
- <Column size="62"/>
- <Column size="74"/>
- <Column size="62"/>
- <Column size="40"/>
- <Column size="74"/>
- <Column size="62"/>
- <Column size="110"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="120"/>
- <Column size="80"/>
- </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="수령자ID"/>
- <Cell col="7" text="수령자"/>
- <Cell col="8" text="구분"/>
- <Cell col="9" text="등록번호"/>
- <Cell col="10" text="성명"/>
- <Cell col="11" text="수혈희망일시"/>
- <Cell col="12" text="ABO"/>
- <Cell col="13" text="Rh"/>
- <Cell col="14" text="반납/폐기사유"/>
- <Cell col="15" text="출고구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" displaytype="text" text="bind:blodno"/>
- <Cell col="2" style="align:left middle;" text="bind:blodcomnm"/>
- <Cell col="3" style="align:left middle;" text="bind:state"/>
- <Cell col="4" style="align:left middle;" text="bind:execdt" mask="expr:execdt==null?'':'####-##-## ##:##'"/>
- <Cell col="5" text="bind:execnm"/>
- <Cell col="6" text="bind:acptid"/>
- <Cell col="7" text="bind:acptnm"/>
- <Cell col="8" text="bind:gbn"/>
- <Cell col="9" displaytype="text" text="bind:pid"/>
- <Cell col="10" text="bind:patnm"/>
- <Cell col="11" text="bind:prcphopedt" mask="expr:prcphopedt==null?'':'####-##-## ##:##'"/>
- <Cell col="12" style="align:right middle;" text="bind:abo"/>
- <Cell col="13" style="align:left middle;" text="bind:rh"/>
- <Cell col="14" style="align:left;" text="bind:rtnabnresn"/>
- <Cell col="15" text="bind:iokind"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <PopupMenu id="pMenu" innerdataset="ds_popupmenu" idcolumn="idx" captioncolumn="name" levelcolumn="idx" enablecolumn="enable" hotkeycolumn="hotkey" userdatacolumn="func" class="pmenu_TF_members" position="absolute 235 588 357 616" onmenuclick="pMenu_onmenuclick"/>
- <Shape id="line12" class="line_1" position="absolute -1 92 1255 98" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Shape id="line00" class="line_1" position="absolute 0 276 511 282" style="strokepen:3 solid #33bbbbff;" anchor="left top"/>
- <Shape id="line01" class="line_1" position="absolute 0 381 1255 387" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Shape id="line02" class="line_1" position="absolute 523 276 1250 282" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_blodcomlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <column id="blodkind" type="STRING" size="256"/>
- <column id="blodno" type="STRING" size="256"/>
- <column id="blodbasevol" type="STRING" size="256"/>
- <column id="blodcomnm" type="STRING" size="256"/>
- <column id="aborh" type="STRING" size="256"/>
- <column id="windt" type="STRING" size="256"/>
- <column id="validt" type="STRING" size="256"/>
- <column id="dondt" type="STRING" size="256"/>
- <column id="blodcomcd" type="STRING" size="256"/>
- <column id="blodbarcd" type="STRING" size="256"/>
- <column id="wininstcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_blodhistlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <column id="blodno" type="STRING" size="256"/>
- <column id="blodcomnm" type="STRING" size="256"/>
- <column id="state" type="STRING" size="256"/>
- <column id="execdt" type="STRING" size="256"/>
- <column id="execnm" type="STRING" size="256"/>
- <column id="acptid" type="STRING" size="256"/>
- <column id="acptnm" type="STRING" size="256"/>
- <column id="gbn" type="STRING" size="256"/>
- <column id="pid" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="prcphopedt" type="STRING" size="256"/>
- <column id="abo" type="STRING" size="256"/>
- <column id="rh" type="STRING" size="256"/>
- <column id="rtnabnresn" type="STRING" size="256"/>
- <column id="iokind" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0121" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="etc01" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_blodhistlist2" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <column id="blodno" type="STRING" size="256"/>
- <column id="blodcomnm" type="STRING" size="256"/>
- <column id="windt" type="STRING" size="256"/>
- <column id="tnsstrddtm" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="rrgstno" type="STRING" size="256"/>
- <column id="addr" type="STRING" size="256"/>
- <column id="termhngnm" type="STRING" size="256"/>
- <column id="mpphontel" type="STRING" size="256"/>
- <column id="hometel" type="STRING" size="256"/>
- <column id="blodcomstat" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_doninfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <column id="rrgstno" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="sexage" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_tnsinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <column id="patnm" type="STRING" size="256"/>
- <column id="sexage" type="STRING" size="256"/>
- <column id="orddeptnm" type="STRING" size="256"/>
- <column id="orddrnm" type="STRING" size="256"/>
- <column id="wardroom" type="STRING" size="256"/>
- <column id="prcphopedt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_popupmenu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="idx" type="STRING" size="256"/>
- <Column id="name" type="STRING" size="256"/>
- <Column id="func" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="name">삭제</Col>
- <Col id="func">lf_mouseDown</Col>
- <Col id="idx">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_copy_grd_blodhistlist2" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <column id="blodno" type="STRING" size="256"/>
- <column id="blodcomnm" type="STRING" size="256"/>
- <column id="windt" type="STRING" size="256"/>
- <column id="tnsstrddtm" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="rrgstno" type="STRING" size="256"/>
- <column id="addr" type="STRING" size="256"/>
- <column id="termhngnm" type="STRING" size="256"/>
- <column id="mpphontel" type="STRING" size="256"/>
- <column id="hometel" type="STRING" size="256"/>
- <column id="blodcomstat" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="output19" propid="value" datasetid="ds_data_tnsinfo" columnid="patnm"/>
- <BindItem id="item1" compid="output6" propid="value" datasetid="ds_data_tnsinfo" columnid="orddrnm"/>
- <BindItem id="item2" compid="output20" propid="value" datasetid="ds_data_tnsinfo" columnid="sexage"/>
- <BindItem id="item3" compid="output3" propid="value" datasetid="ds_data_tnsinfo" columnid="wardroom"/>
- <BindItem id="item4" compid="output21" propid="value" datasetid="ds_data_tnsinfo" columnid="orddeptnm"/>
- <BindItem id="item5" compid="output5" propid="value" datasetid="ds_data_tnsinfo" columnid="prcphopedt"/>
- </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";
- include "lis_commonxp::LZZ001.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function model1_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- grdf_setToolTipBind(grd_blodcomlist);
- grdf_setToolTipBind(grd_blodhistlist);
- grdf_setToolTipBind(grd_blodhistlist2);
- lf_setInit();
- }
- function lf_setInit() {
-
- //0121 혈액원기관코드
- lf_getDbDeptcd("0000|0121|","cbf_SMLBP01000");
- }
- function lf_bloodHistRef() {
- ds_grid_grd_blodhistlist.clearData();
-
- var blodno = group2.ipt_blodno.value;
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "blodno", val:blodno }
- ]);
- var oParam = {};
- oParam.id = "TRLBP01001";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetBlodInfoRefGGS";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_blodcomlist=blodcomlist";
- oParam.async = false;
- oParam.callback = "cbf_SMLBP01000";
- tranf_submit(oParam);
- }
- function lf_blodHistList(gbn) {
-
- var row = 0;
- if(group2.checkbox1.value <> "Y") {
- if(gbn == "1") {
- row = 0;
- }else {
- row = ds_grid_grd_blodcomlist.rowposition;
- }
-
- var blodno = ds_grid_grd_blodcomlist.getColumn(ds_grid_grd_blodcomlist.rowposition, "blodno");
- var blodcomcd = ds_grid_grd_blodcomlist.getColumn(ds_grid_grd_blodcomlist.rowposition, "blodcomcd");
- var blodbarcd = ds_grid_grd_blodcomlist.getColumn(ds_grid_grd_blodcomlist.rowposition, "blodbarcd");
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "blodcomcd", val:blodcomcd }
- , {col: "blodno" , val:blodno }
- , {col: "blodbarcd", val:blodbarcd }
- ]);
- var oParam = {};
- oParam.id = "TRLBP01002";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetBlodHistInfoRefGGS";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_blodhistlist=blodhistlist ds_data_tnsinfo=tnsinfo ds_data_doninfo=doninfo";
- oParam.async = false;
- oParam.callback = "cbf_SMLBP01000";
- tranf_submit(oParam);
- }
- }
- // 관공서용 조회
- function lf_blodHistList2(gbn)
- {
- // 관공서 체크된것만 갑니다.
- var blodno = ds_grid_grd_blodcomlist.getColumn(ds_grid_grd_blodcomlist.rowposition, "blodno");
- var blodcomcd = ds_grid_grd_blodcomlist.getColumn(ds_grid_grd_blodcomlist.rowposition, "blodcomcd");
- var blodbarcd = ds_grid_grd_blodcomlist.getColumn(ds_grid_grd_blodcomlist.rowposition, "blodbarcd");
- var GGSgbn = group2.checkbox1.truevalue;
-
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "blodcomcd", val:blodcomcd }
- , {col: "blodno", val:blodno }
- , {col: "blodbarcd", val:blodbarcd }
- , {col: "GGSgbn", val:GGSgbn }]);
-
- var oParam = {};
- oParam.id = "TRLBP01003";
- oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
- oParam.method = "reqGetBlodHistInfoRefGGS";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_copy_grd_blodhistlist2=blodhistlist ds_data_tnsinfo=tnsinfo ds_data_doninfo=doninfo";
- oParam.async = false;
- oParam.callback = "cbf_SMLBP01000";
- tranf_submit(oParam);
- }
- //혈액이력리스트 그리드
- function lf_gridViewblodlist() {
- if(group2.checkbox1.value == "Y") {
- grd_blodhistlist.visible = false; // 일반혈액이력리스트
- grd_blodhistlist2.visible = true; // 관공서용 이력리스트
- }else{
- grd_blodhistlist.visible = true;
- grd_blodhistlist2.visible = false;
- }
- }
- // 혈액번호 enter key 입력 처리
- function lf_keyEvent()
- {
- var blodno = group2.ipt_blodno.value;
- group2.ipt_blodno.value = utlf_transNullToEmpty(blodno).substr(0,10);
-
- lf_bloodHistRef();
- group2.ipt_blodno.setSelect();
- }
- // 관공서 클릭하면 노드 초기화
- function lf_sethistnodeclear(){
-
- lf_gridViewblodlist();
- ds_grid_grd_blodcomlist.clearData();
- ds_grid_grd_blodhistlist.clearData();
- ds_grid_grd_blodhistlist2.clearData();
- ds_data_doninfo.clearData();
- ds_data_tnsinfo.clearData();
- }
- // 엑셀 저장
- function lf_saveExcel(pGridId) {
- grdf_exportExcel(pGridId, lf_lisGetTitle(this), "sheet1", false);
- }
- // 혈액이력리스트에서 삭제
- function lf_delblodhistory(num) {
-
- if(num==1) {
- ds_grid_grd_blodhistlist.deleteRow(ds_grid_grd_blodhistlist.rowposition);
- }else{
- ds_grid_grd_blodhistlist2.deleteRow(ds_grid_grd_blodhistlist2.rowposition);
- }
- }
- // callback 함수
- function cbf_SMLBP01000(strSvcID, nErrorCode, strErrorMag) {
-
- if(nErrorCode != 0) {
- sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
- }else{
- switch(strSvcID) {
- case "TRLZZ00101":
- lf_gridViewblodlist(); // 혈액이력리스트 그리드 보여주기 *** 이력리스트그리드 2개입니다
- ds_grid_grd_blodcomlist.clearData();
- ds_grid_grd_blodhistlist.clearData();
- ds_grid_grd_blodhistlist2.clearData();
- ds_data_doninfo.clearData();
- ds_data_tnsinfo.clearData();
- group2.ipt_blodno.setFocus();
- group2.checkbox1.value = "";
- break;
- case "TRLBP01001":
- // 성분제제리스트 있으면 첫번째성분으로 혈액이력조회
- if(ds_grid_grd_blodcomlist.rowcount > 0)
- {
- // 관공서 체크돼있으면 이력조회 안되게
- if(group2.checkbox1.value == "Y")
- {
- // 성분제제리스트가 하나면 혈액이력리스트에 보여주기
- if(ds_grid_grd_blodcomlist.rowcount == 1)
- {
- lf_blodHistList2("1");
- }
- }
- else
- {
- lf_blodHistList("1");
- }
- ds_grid_grd_blodcomlist.rowposition = 0;
- }
- break;
- case "TRLBP01002":
-
- break;
- case "TRLBP01003":
- ds_grid_grd_blodhistlist2.appendData(ds_copy_grd_blodhistlist2, true)
- break;
- default:
- break;
- }
- }
- }
- function grd_blodhistlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- pMenu.trackPopup(e.screenX, e.screenY);
- }
- function datagrid1_onmouseleave(obj:Grid, e:MouseEventInfo)
- {
- }
- function grd_blodhistlist2_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- pMenu.trackPopup(e.screenX, e.screenY);
- }
- function datagrid2_onmouseleave(obj:Grid, e:MouseEventInfo)
- {
- }
- function pMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- if(e.userdata == "lf_mouseDown"){
-
- if(grd_blodhistlist.visible) {
- lf_delblodhistory(1);
- }else {
- lf_delblodhistory(2);
- }
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_bloodHistRef();
- }
- function group2_ipt_blodno_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode==13) {
- lf_keyEvent();
- }
- }
- function group2_checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- // 관공서 선택하면 노드 초기화
- lf_sethistnodeclear();
- }
- function grd_blodcomlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- // 혈액번호 입력했을때 , 관공서 아니고
- lf_blodHistList();
- }
- function grd_blodcomlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- // 관공서용 더블클릭
- lf_blodHistList2();
- }
- // 엑셀 저장
- function lf_exeExcel(pGridId,pGridNm)
- {
- grdf_exportExcel(pGridId, lf_lisGetTitle(this), false);
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_setInit();
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_keyEvent();
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if(group2.checkbox1.value == "Y")
- {
- lf_exeExcel(grd_blodhistlist2, "혈액이력조회");
- }
- else
- {
- lf_exeExcel(grd_blodhistlist, "혈액이력조회");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|