123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLBT11000" position="absolute 0 0 1198 778" titletext="혈액반환폐기관리" oninit="SMLBT11000_oninit" onload="SMLBT11000_onload">
- <Layouts>
- <Layout>
- <Static id="caption5" text="혈액반환폐기관리" class="tit_1" position="absolute 0 0 145 25"/>
- <Shape id="line1" linetype="horizontal" class="line_6" position="absolute 0 49 1195 55" style="strokepen:3 solid #9ebed4ff;"/>
- <Static id="caption11" text="반환(폐기) 목록" class="tit_2" position="absolute 2 117 117 139"/>
- <Shape id="line7" linetype="horizontal" class="line_1" position="absolute 0 134 1194 140" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_rtnabnlist" taborder="5" binddataset="ds_grd_rtnabnlist" useinputpanel="false" position="absolute 0 138 1194 776" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="80"/>
- <Column size="75"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="47"/>
- <Column size="90"/>
- <Column size="110"/>
- <Column size="66"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="30"/>
- <Column size="81"/>
- <Column size="66"/>
- <Column size="66"/>
- <Column size="168"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="병실"/>
- <Cell col="5" text="seq"/>
- <Cell col="6" text="혈액번호"/>
- <Cell col="7" text="혈액성분"/>
- <Cell col="8" text="확인자"/>
- <Cell col="9" text="출고일자"/>
- <Cell col="10" text="반환/폐기일자"/>
- <Cell col="11" text="확인"/>
- <Cell col="12" text="사용량(ml)"/>
- <Cell col="13" text="의뢰의사"/>
- <Cell col="14" text="간호사"/>
- <Cell col="15" text="사유"/>
- <Cell col="16" text="caption1"/>
- <Cell col="17" text="수혈의뢰접수번호"/>
- <Cell col="18" text="성분제제코드"/>
- <Cell col="19" text="혈액용량"/>
- <Cell col="20" text="수혈의뢰일련번호"/>
- <Cell col="21" text="기관코드"/>
- <Cell col="22" text="준비연도"/>
- <Cell col="23" text="준비혈액일련번호"/>
- <Cell col="24" text="처방발생구분"/>
- <Cell col="25" text="사유코드"/>
- <Cell col="26" text="처방코드"/>
- <Cell col="27" text="수가코드"/>
- <Cell col="28" text="검체코드"/>
- <Cell col="29" text="chk"/>
- <Cell col="30" text="blodbarcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="normal" edittype="none"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:rtnabn" combodataset="ds_cmb_rtnabn" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:patnm"/>
- <Cell col="4" text="bind:roomcd"/>
- <Cell col="5" text="bind:prepblodseqno"/>
- <Cell col="6" text="bind:blodno"/>
- <Cell col="7" style="align:left middle;" text="bind:blodcomnm"/>
- <Cell col="8" text="bind:usernm"/>
- <Cell col="9" displaytype="date" edittype="date" text="bind:execdt" mask="yyyy-MM-dd HH:mm"/>
- <Cell col="10" displaytype="date" edittype="date" text="bind:cnfmdt" mask="yyyy-MM-dd HH:mm"/>
- <Cell col="11" text="bind:cnfm" enable="false"/>
- <Cell col="12" text="bind:drugqty"/>
- <Cell col="13" text="bind:orddrnm"/>
- <Cell col="14" text="bind:tnsstrnursenm"/>
- <Cell col="15" text="bind:resndesc"/>
- <Cell col="16" text="bind:iryn"/>
- <Cell col="17" text="bind:tnsreqacptno"/>
- <Cell col="18" text="bind:blodcomcd"/>
- <Cell col="19" text="bind:blodvol"/>
- <Cell col="20" text="bind:tnsreqseq"/>
- <Cell col="21" text="bind:instcd"/>
- <Cell col="22" text="bind:prepyy"/>
- <Cell col="23" text="bind:prepblodseqno"/>
- <Cell col="24" text="bind:prcpgenrflag"/>
- <Cell col="25" text="bind:rsncd"/>
- <Cell col="26" text="bind:prcpcd"/>
- <Cell col="27" text="bind:calcscorcd"/>
- <Cell col="28" text="bind:drugmthdspccd"/>
- <Cell col="29" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="30" text="bind:blodbarcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group2" taborder="6" class="div_SA2" position="absolute 0 53 1195 113">
- <Layouts>
- <Layout>
- <Radio id="rdo_flag" taborder="1" columncount="5" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 800 5 1177 32" style="textpadding:0 0 0 2;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">반환_보관</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">반환_취소</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">폐기</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">잔여혈액폐기</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="rdo_cnfmflag" taborder="2" columncount="4" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 799 31 1054 52">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <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>
- <Calendar id="ipt_appsdt" taborder="3" class="input_search" position="absolute 114 33 218 52"/>
- <Calendar id="ipt_appedt" taborder="4" class="input_search" position="absolute 232 33 336 52" onkeyup="group2_ipt_appedt_onkeyup"/>
- <Static id="cap_bkind" text="혈액종류 :" class="search_name" position="absolute 348 34 447 51"/>
- <Combo id="cbo_bkind" taborder="5" innerdataset="@ds_init_0606" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 430 33 646 52"/>
- <Button id="btn_ref" taborder="6" text="조회" class="btn1" position="absolute 1119 34 1175 56" onclick="group2_btn_ref_onclick"/>
- <Static id="caption2" text="반환(폐기)자 :" class="search_name" position="absolute 15 9 126 26"/>
- <Static id="caption3" text="준비일시 :" class="search_name" position="absolute 15 34 106 51"/>
- <Static id="caption6" text="등록번호 :" class="search_name" position="absolute 349 9 427 26"/>
- <Static id="caption7" text="구분 :" class="search_name" position="absolute 737 9 786 26"/>
- <Static id="caption77" text="구분 :" class="search_name" position="absolute 737 34 786 51"/>
- <Edit id="ipt_rtnpsn" taborder="7" class="input_button" position="absolute 114 8 214 27"/>
- <Edit id="opt_rtnpsnnm" taborder="8" readonly="true" class="output_search" position="absolute 216 8 316 27"/>
- <Edit id="ipt_pid" taborder="9" class="input_button" position="absolute 429 8 529 27" onkeyup="group2_ipt_pid_onkeyup"/>
- <Static id="caption8" text="혈액번호 :" class="search_name" position="absolute 543 11 614 28"/>
- <Edit id="ipt_blodno" taborder="10" class="input_button" position="absolute 621 8 721 27" onkeydown="group2_ipt_blodno_onkeydown"/>
- <Static id="caption4" text="~" class="search_no_b" position="absolute 218 34 228 51"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_excel" taborder="7" text="엑셀" class="btn7" position="absolute 1135 117 1193 136" onclick="btn_excel_onclick"/>
- <Button id="btn_cancel" taborder="8" text="선택취소" class="btn2" position="absolute 1065 117 1129 136" onclick="btn_cancel_onclick"/>
- <Div position="absolute 476 253 757 410" id="Group_idChk" style="background:#ff99ccff;">
- <Layouts>
- <Layout>
- <Static text="반환자를 입력하세요" position="absolute 19 19 268 89" id="caption1" anchor="default" style="background:transparent;font:Dotum,18,bold;"/>
- <TextArea position="absolute 34 89 229 144" id="ID_txt" anchor="default" onkeydown="Group_idChk_ID_txt_onkeydown" inputmode="upper" style="font:Dotum,28;"/>
- <Button position="absolute 232 119 274 144" align="align:center middle;" id="button44" text="닫기" anchor="default" class="btn2" onclick="Group_idChk_button44_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group3" taborder="9" position="absolute 1 24 1197 50">
- <Layouts>
- <Layout>
- <Button id="button1" taborder="0" text="폐기취소" class="btn4" position="absolute 985 4 1065 26" anchor="default" onclick="group3_button1_onclick"/>
- <Button id="btn_init" taborder="1" text="초기화" class="btn4" position="absolute 1126 4 1194 26" anchor="default" onclick="group3_btn_init_onclick"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1067 4 1123 26" anchor="default" onclick="group3_btn_save_onclick"/>
- <Button id="btn_print" taborder="3" text="출력" class="btn6" visible="false" position="absolute 1 3 57 25" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_rtnabnlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="blodno" type="STRING" size="256" sumtext="혈액번호"/>
- <Column id="blodcomnm" type="STRING" size="256" sumtext="혈액성분"/>
- <Column id="btype" type="STRING" size="256" sumtext="혈액형"/>
- <Column id="usernm" type="STRING" size="256" sumtext="검사자"/>
- <Column id="execdt" type="STRING" size="256" sumtext="수령자"/>
- <Column id="rtnabn" type="STRING" size="256" sumtext="반환폐기"/>
- <Column id="cnfmdt" type="STRING" size="256" sumtext="확인일시"/>
- <Column id="cnfm" type="STRING" size="256" sumtext="확인"/>
- <Column id="resndesc" type="STRING" size="256" sumtext="사유"/>
- <Column id="tnsreqacptno" type="STRING" size="256" sumtext="수혈의회접수번호"/>
- <Column id="blodcomcd" type="STRING" size="256" sumtext="성분제제코드"/>
- <Column id="blodvol" type="STRING" size="256" sumtext="혈액용량"/>
- <Column id="tnsreqseq" type="STRING" size="256" sumtext="수혈의회일련번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="prepyy" type="STRING" size="256" sumtext="준비연도"/>
- <Column id="prepblodseqno" type="STRING" size="256" sumtext="준비혈액일련번호"/>
- <Column id="prcpgenrflag" type="STRING" size="256" sumtext="처방발생구분"/>
- <Column id="rsncd" type="STRING" size="256" sumtext="사유코드"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="calcscorcd" type="STRING" size="256" sumtext="검사코드"/>
- <Column id="drugmthdspccd" type="STRING" size="256" sumtext="검체코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번혹"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="drugqty" type="STRING" size="256" sumtext="사용량"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="의뢰의사"/>
- <Column id="tnsstrnursenm" type="STRING" size="256" sumtext="간호사"/>
- <Column id="iryn" type="STRING" size="256" sumtext="irr여부"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
- <Column id="chk" type="STRING" size="256" sumtext="선택여부"/>
- <Column id="blodbarcd" type="STRING" size="256" sumtext="혈액바코드"/>
- <Column id="color" type="STRING" size="256"/>
- <Column id="rsn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cbo_bkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING"/>
- <Column id="cd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rtnpsn" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="blodno" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="appsdt" type="STRING" size="256"/>
- <Column id="appedt" type="STRING" size="256"/>
- <Column id="bldkind" type="STRING" size="256"/>
- <Column id="cnfmflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cnfmflag">0</Col>
- <Col id="bldkind">00</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_0606" 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_getrtnpsnnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usernm" type="STRING" size="256" sumtext="반환폐기자명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_rtnabn" 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"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">반납</Col>
- </Row>
- <Row>
- <Col id="cd">2</Col>
- <Col id="nm">폐기</Col>
- </Row>
- <Row>
- <Col id="cd">3</Col>
- <Col id="nm">잔여혈액폐기</Col>
- </Row>
- <Row>
- <Col id="cd">4</Col>
- <Col id="nm">잔여혈액폐기</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_rtnpsn" propid="value" datasetid="ds_hidden" columnid="rtnpsn"/>
- <BindItem id="item1" compid="group2.opt_rtnpsnnm" propid="value" datasetid="ds_getrtnpsnnm" columnid="usernm"/>
- <BindItem id="item2" compid="group2.ipt_pid" propid="value" datasetid="ds_hidden" columnid="pid"/>
- <BindItem id="item3" compid="group2.ipt_blodno" propid="value" datasetid="ds_hidden" columnid="blodno"/>
- <BindItem id="item4" compid="group2.rdo_flag" propid="value" datasetid="ds_hidden" columnid="flag"/>
- <BindItem id="item5" compid="group2.ipt_appsdt" propid="value" datasetid="ds_hidden" columnid="appsdt"/>
- <BindItem id="item6" compid="group2.ipt_appedt" propid="value" datasetid="ds_hidden" columnid="appedt"/>
- <BindItem id="item7" compid="group2.cbo_bkind" propid="value" datasetid="ds_hidden" columnid="bldkind"/>
- <BindItem id="item8" compid="group2.rdo_cnfmflag" propid="value" datasetid="ds_hidden" columnid="cnfmflag"/>
- </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::LLZ001.xjs";
- function SMLBT11000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_rtnabnlist);
- grdf_setRowTypeIcon(grd_rtnabnlist, 0);
- }
- function SMLBT11000_onload(obj:Form, e:LoadEventInfo)
- {
- fSetInit();
- group3.enable = false;
- Group_idChk.ID_txt.setFocus();
- }
- //초기화
- function fSetInit()
- {
- ds_grd_rtnabnlist.clearData();
- var toDay = utlf_getCurrentDate();
-
- ds_hidden.setColumn(0, "rtnpsn", "");
- ds_hidden.setColumn(0, "pid", "");
- ds_hidden.setColumn(0, "blodno", "");
- ds_hidden.setColumn(0, "flag", "0");
- ds_hidden.setColumn(0, "appsdt", toDay);
- ds_hidden.setColumn(0, "appedt", toDay);
-
- //grd_rtnabnlist.fixedcellcheckbox(0,1)=true;
- dsf_createDsRow("ds_send", [{col : "codeflag", val : "0606|"}]); //성분제제 blodbarcd
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_init_0606=0606";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
- }
- function Group_idChk_ID_txt_onkeydown(obj:TextArea, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- var I_txt = Group_idChk.ID_txt.text;
-
-
- ds_hidden.setColumn(0, "rtnpsn", (I_txt).toUpperCase());
- fGetRtnPsnNm();
- //if(model.getValue("/root/main/getrtnpsnnm/rtnpsnnm") == "")
- if(utlf_isNull(ds_getrtnpsnnm.getColumn(0, "usernm")))
- {
- alert("반환(폐기)자를 입력하십시오.");
- ds_hidden.setColumn(0, "rtnpsn", "");
- group2.ipt_pid.setFocus();
- Group_idChk.ID_txt.value = "";
- Group_idChk.ID_txt.setFocus();
- return;
- }
- else
- {
- //model.setFocus("ipt_pid");
- ds_hidden.setColumn(0, "rtnpsn", I_txt);
- group2.ipt_pid.setFocus();
- Group_idChk.visible = false;
- group3.enable = true;
-
- }
- }
- }
- //반환(폐기)자 조회
- function fGetRtnPsnNm()
- {
- //if(model.getValue("/root/hidden/rtnpsn")=="")
- if(utlf_isNull(ds_hidden.getColumn(0, "rtnpsn")))
- {
- alert("반환(폐기)자를 입력하십시오.");
- return;
- }
- //model.setValue("/root/send/rtnpsn", model.getValue("/root/hidden/rtnpsn"));
- dsf_createDsRow("ds_send", [{col : "rtnpsn", val : ds_hidden.getColumn(0, "rtnpsn")}]);
-
- var oParam = {};
- oParam.id = "TRLBT10701";
- oParam.service = "transfusionmngtapp.BloodRtnAbnRgst";
- oParam.method = "reqGetRtnPsnNm";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_getrtnpsnnm=getRtnPsnNm";
- oParam.async = false;
- //oParam.callback = "cf_TRLBT10701";
- tranf_submit(oParam);
- }
- //조회
- function group2_btn_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetRtnAbnList();
- }
- //조회
- function fGetRtnAbnList()
- {
- dsf_createDsRow("ds_cond_rtnpsn", [{col : "rtnpsn", val : ds_hidden.getColumn(0, "rtnpsn")}
- ,{col : "pid", val : group2.ipt_pid.value}
- ,{col : "flag", val : ds_hidden.getColumn(0, "flag")}
- ,{col : "appsdt", val : ds_hidden.getColumn(0, "appsdt")}
- ,{col : "appedt", val : ds_hidden.getColumn(0, "appedt")}
- ,{col : "blodkind", val : ds_hidden.getColumn(0, "bldkind")}
- ,{col : "cnfmflag", val : ds_hidden.getColumn(0, "cnfmflag")}]);
- var oParam = {};
- oParam.id = "TRLBT10702";
- oParam.service = "transfusionmngtapp.BloodRtnAbnRgst";
- oParam.method = "reqGetAbnRtnList";
- oParam.inds = "cond=ds_cond_rtnpsn";
- oParam.outds = "ds_grd_rtnabnlist=getAbnRtnList";
- oParam.async = false;
- //oParam.callback = "cf_TRLBT10702";
- tranf_submit(oParam);
- var count_yn = 'N' ;
-
- //for(iRow = 1; iRow < grd_rtnabnlist.rows;iRow++)
- for(iRow = 0; iRow < ds_grd_rtnabnlist.rowcount; iRow++)
- {
- //if(model.getvalue("/root/main/rtnabnlist["+iRow+"]/rsncd") == "07299" || model.getvalue("/root/main/rtnabnlist["+iRow+"]/rsncd") == "07201" )
- if(ds_grd_rtnabnlist.getColumn(iRow, "rsncd") == "07299" || ds_grd_rtnabnlist.getColumn(iRow, "rsncd") == "07201")
- {
- count_yn = 'Y';
- break;
- }
- }
- if(count_yn == "Y")
- {
- sysf_messageBox("주의! 병원사유로 폐기신청된 혈액입니다. " + ds_grd_rtnabnlist.getColumn(iRow, "resndesc") + " : 주의를 요합니다 " , "I007"); //model.getvalue("/root/main/rtnabnlist["+iRow+"]/rsn") + " : 주의를 요합니다 " , "I007");
- }
- }
- // function group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- // {
- // if(e.keycode == 13)
- // {
- // fGetRtnAbnList();
- // }
- // }
- function group2_ipt_blodno_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- ds_hidden.setColumn(0, "blodno", (group2.ipt_blodno.text).substr(0, 10));
-
- if(utlf_isNull(ds_hidden.getColumn(0, "blodno")))
- {
- sysf_messageBox("혈액번호를 입력하십시오.", "I");
- return;
- }
-
- if(ds_grd_rtnabnlist.rowcount >= 0)
- {
- fSetChekConfrim();
- }
- else
- {
- sysf_messageBox("반납,폐기 할 내역이 없습니다.", "I");
- return;
- }
- group2.ipt_blodno.setFocus();
- }
- }
- function group2_ipt_appedt_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetRtnAbnList();
- }
- }
- function group2_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetRtnAbnList();
- }
- }
-
- //조회
- function fSetChekConfrim()
- {
- var sblodno = group2.ipt_blodno.value;
- var findrow = ds_grd_rtnabnlist.findRow("blodno", sblodno);
-
- group2.ipt_blodno.value = "";
-
- if(findrow < 0)
- {
- sysf_messageBox("해당 혈액번호가 없습니다.","I","");
- group2.ipt_blodno.setFocus();
- }
- else
- {
- if(ds_grd_rtnabnlist.getColumn(findrow, "cnfm") == "Y")
- {
- sysf_messageBox("이미 반납/폐기 확인 된 혈액입니다.","I","");
- }
-
- ds_grd_rtnabnlist.setColumn(findrow, "color", "red");
- var sExpr = "EXPR(color)";
- for(var i=0; i< grd_rtnabnlist.getCellCount("body"); i++)
- {
- grd_rtnabnlist.setCellProperty("body", i, "color", sExpr);
- grd_rtnabnlist.setCellProperty("body", i, "color2", sExpr);
- grd_rtnabnlist.setCellProperty("body", i, "selectcolor", sExpr);
- }
-
- ds_grd_rtnabnlist.updatecontrol = false;
- ds_grd_rtnabnlist.setRowType(findrow, Dataset.ROWTYPE_INSERT);
- ds_grd_rtnabnlist.updatecontrol = true;
-
- ds_grd_rtnabnlist.addColumn("chk","string");
- ds_grd_rtnabnlist.setColumn(findrow, "chk", "Y");
- }
- }
- //폐기취소
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeRtnAbnListCancel();
- }
- // 저장취소 ??진료에서 IF 못만들어준다고 해서 개발 중단 ??
- function fExeRtnAbnListCancel()
- {
- if(utlf_isNull(ds_hidden.getColumn(0, "rtnpsn")) || utlf_isNull(ds_getrtnpsnnm.getColumn(0, "usernm")))
- {
- sysf_messageBox("반환(폐기)자는", "I003");
- group2.ipt_rtnpsn.setFocus();
- return;
- }
-
- var cnfmchk ="";
-
- for(i = 0; i < ds_grd_rtnabnlist.rowcount; i++)
- {
- if(ds_grd_rtnabnlist.getColumn(i, "chk") == "Y" && ds_grd_rtnabnlist.getColumn(i, "cnfm") == "Y")
- {
- }
- else
- {
- cnfmchk = cnfmchk + i;
- }
- }
- if(!utlf_isNull(cnfmchk))
- {
- alert("확인 된 혈액만 확정취소 할 수 있습니다.");
- return;
- }
- var rtnabndata = grdf_getGridUpdateData(grd_rtnabnlist, "all");
-
- if(utlf_isNull(rtnabndata))
- {
- alert("확정취소할 내용이 없습니다. ");
- return;
- }
- dsf_createDsRow("ds_send_rtn", [{col : "rtnabndata", val : rtnabndata}
- ,{col : "rtnpsn", val : ds_hidden.getColumn(0, "rtnpsn")}]);
-
- //submit("TXLBT10702");
- var oParam = {};
- oParam.id = "TXLBT10702";
- oParam.service = "transfusionmngtapp.BloodRtnAbnRgst";
- oParam.method = "reqExeAbnRtnListBack";
- oParam.inds = "cond=ds_grd_rtnabnlist:U rtn=ds_send_rtn";
- oParam.async = false;
- //oParam.callback = "cf_TXLBT10702";
- tranf_submit(oParam);
-
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- fCheckCancel();
- }
- //선택취소(사용안함)
- function fCheckCancel()
- {
- if(ds_grd_rtnabnlist.rowcount > 0)
- {
- var row = ds_grd_rtnabnlist.rowposition;
- creatColumn(ds_grd_rtnabnlist, "color");
- creatColumn(ds_grd_rtnabnlist, "chk");
- ds_grd_rtnabnlist.setColumn(row, "color", "balck");
- ds_grd_rtnabnlist.setColumn(row, "chk", "N");
- var sExpr = "EXPR(color)";
-
- for(var i=0; i < ds_grd_rtnabnlist.getColCount(); i++)
- {
- grd_rtnabnlist.setCellProperty("body", i, "color", sExpr);
- grd_rtnabnlist.setCellProperty("body", i, "color2", sExpr);
- }
- ds_grd_rtnabnlist.updatecontrol = false;
- ds_grd_rtnabnlist.setRowType(row, Dataset.ROWTYPE_DELETE);
- ds_grd_rtnabnlist.updatecontrol = true;
- }
- else
- {
- sysf_messageBox("취소할 목록을","C002","");
- }
- }
- function creatColumn(objDs, strColID)
- {
- var isExist = false;
- if(!isExistCol(objDs, strColID))
- {
- objDs.addColumn(strColID,"string");
- }
- }
- //저장
- function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeRtnAbnList();
- }
- //저장
- function fExeRtnAbnList()
- {
- var rtnabndata = grdf_getGridUpdateData(grd_rtnabnlist, "insert");
-
- if(utlf_isNull(ds_hidden.getColumn(0, "rtnpsn")) || utlf_isNull(ds_getrtnpsnnm.getColumn(0, "usernm")))
- {
- sysf_messageBox("반환(폐기)자는", "I003");
- group2.ipt_rtnpsn.setFocus();
- }
- else
- {
- //model.setValue("/root/send/rtnabndata", rtnabndata);
- //model.setValue("/root/send/rtnpsn", model.getValue("/root/hidden/rtnpsn"));
- dsf_createDsRow("ds_rtnabndata", [{col : "rtnabndata", val : rtnabndata}
- ,{col : "rtnpsn", val : ds_hidden.getColumn(0, "rtnpsn")}]);
- var oParam = {};
- oParam.id = "TXLBT10701";
- oParam.service = "transfusionmngtapp.BloodRtnAbnRgst";
- oParam.method = "reqExeAbnRtnList";
- oParam.inds = "cond=ds_grd_rtnabnlist:U rtn=ds_rtnabndata";
- oParam.async = false;
- //oParam.callback = "cf_TXLBT10701";
- tranf_submit(oParam);
-
- fGetRtnAbnList();
-
- var rowStatus;
-
- ds_grd_rtnabnlist.updatecontrol = false;
-
- for(var i=0; i < ds_grd_rtnabnlist.rowcount; i++)
- {
- rowStatus = ds_grd_rtnabnlist.getRowType(i);
- if(ds_grd_rtnabnlist.getColumn(i, "color") != "")
- {
- ds_grd_rtnabnlist.setColumn(i, "color", "");
- }
- ds_grd_rtnabnlist.setRowType(i, rowStatus);
- }
- ds_grd_rtnabnlist.updatecontrol = true;;
- var sExpr = "EXPR(color)";
- for(var i=0; i < grd_rtnabnlist.getCellCount("Head"); i++)
- {
- grd_rtnabnlist.setCellProperty("body", i, "color", sExpr);
- grd_rtnabnlist.setCellProperty("body", i, "color2", sExpr);
- }
- }
- }
- //초기화
- function group3_btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetInit();
- }
- //엑셀
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_rtnabnlist, lf_lisGetTitle(), "sheet1", false);
- }
- function Group_idChk_button44_onclick(obj:Button, e:ClickEventInfo)
- {
- Group_idChk.visible = false;
- }
- function Group_idChk_ID_txt_oneditclick(obj:TextArea, e:EditClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|