123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNR07600" position="absolute 0 0 1187 770" titletext="혈액미불출리스트조회" oninit="SMMNR07600_oninit" onload="SMMNR07600_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="0" class="div_SA" position="absolute 0 25 1184 80" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="button3" taborder="1" text="조회" class="btn1" position="absolute 1030 15 1086 37" anchor="top right" onclick="grp_sea_button3_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1017 15 1023 37" anchor="top right"/>
- <Combo id="combo1" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 96 5 199 26" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">prcpddselect</Col>
- <Col id="datacolumn">처방일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">deliveselect</Col>
- <Col id="datacolumn">불출일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">abnselect</Col>
- <Col id="datacolumn">폐기예정일</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption1" text="~" position="absolute 303 6 318 26" anchor="default"/>
- <Radio id="radio1" taborder="3" columncount="0" rowcount="2" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 430 6 490 51" anchor="default" onitemchanged="grp_sea_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">ward</Col>
- <Col id="datacolumn">병동별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">patient</Col>
- <Col id="datacolumn">환자별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption4" text="병실 :" class="search_name" position="absolute 715 7 760 24" anchor="default"/>
- <Static id="caption3" text="성명 :" class="search_name" position="absolute 715 33 760 50" anchor="default"/>
- <Static id="caption5" text="S/A :" class="search_name" position="absolute 885 33 929 50" anchor="default"/>
- <Radio id="radio2" taborder="4" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 22 33 207 50" anchor="default" onitemchanged="grp_sea_radio2_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>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">미불출</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Calendar id="input2" taborder="5" class="input_default" position="absolute 203 5 298 26" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="input11" taborder="6" class="input_default" position="absolute 319 5 414 26" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <Combo id="combo7" taborder="7" innerdataset="@ds_main_cond_wardcdgrup" codecolumn="wardcd" datacolumn="wardnm" class="combo_s_essential" position="absolute 594 5 684 26" anchor="default" onitemchanged="grp_sea_combo7_onitemchanged"/>
- <Combo id="combo2" taborder="8" innerdataset="@ds_main_cond_roomcdgrup" codecolumn="roomcd" datacolumn="roomnm" class="combo_search" position="absolute 764 5 849 26" anchor="default" onitemchanged="grp_sea_combo2_onitemchanged"/>
- <Combo id="combo8" taborder="9" innerdataset="@ds_main_cond_patientgrup" codecolumn="pid" datacolumn="patientnm" class="combo_search" position="absolute 780 30 865 51" anchor="default" onitemchanged="grp_sea_combo8_onitemchanged"/>
- <Edit id="output3" taborder="10" readonly="true" class="output_search" position="absolute 932 31 982 52" anchor="default"/>
- <Edit id="input3" taborder="11" class="input_search" position="absolute 594 31 684 52" anchor="default" onkeyup="grp_sea_input3_onkeyup"/>
- <Edit id="output2" taborder="12" readonly="true" class="output_search" visible="false" position="absolute 764 30 849 51" anchor="default"/>
- <Static id="caption9" text="조회기준 :" class="search_name" position="absolute 22 7 93 24" anchor="default"/>
- <Button id="button1" taborder="13" text="엑셀저장" class="btn7" position="absolute 1092 15 1172 37" anchor="top right" onclick="grp_sea_button1_onclick"/>
- <Static id="caption2" text="병동 :" class="search_name" position="absolute 521 7 591 24"/>
- <Static id="caption7" text="등록번호 :" class="search_name" position="absolute 520 33 591 50"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="datagrid5" taborder="1" binddataset="ds_main_execdetlgrup" useinputpanel="false" position="absolute 0 114 1184 748" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="50" band="left"/>
- <Column size="80" band="left"/>
- <Column size="60" band="left"/>
- <Column size="45" band="left"/>
- <Column size="53" band="left"/>
- <Column size="65" band="left"/>
- <Column size="60" band="left"/>
- <Column size="70" band="left"/>
- <Column size="230" band="left"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="80"/>
- <Column size="105"/>
- <Column size="105"/>
- <Column size="105"/>
- <Column size="70"/>
- <Column size="105"/>
- <Column size="70"/>
- <Column size="105"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="90"/>
- <Column size="105"/>
- <Column size="90"/>
- <Column size="105"/>
- <Column size="90"/>
- <Column size="105"/>
- <Column size="90"/>
- <Column size="105"/>
- <Column size="90"/>
- <Column size="105"/>
- <Column size="90"/>
- <Column size="105"/>
- </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="S/A"/>
- <Cell col="5" text="ABO RH"/>
- <Cell col="6" text="상태"/>
- <Cell col="7" text="처방구분"/>
- <Cell col="8" text="처방코드"/>
- <Cell col="9" text="처방명"/>
- <Cell col="10" text="Irr"/>
- <Cell col="11" text="Fil"/>
- <Cell col="12" text="혈액번호"/>
- <Cell col="13" text="폐기예정일"/>
- <Cell col="14" text="예약일시"/>
- <Cell col="15" text="처방일시"/>
- <Cell col="16" text="처방의"/>
- <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="간호사 remark"/>
- <Cell col="24" text="ALT"/>
- <Cell col="25" text="ALT 검사시간"/>
- <Cell col="26" text="Anti-HCV"/>
- <Cell col="27" text="Anti-HCV 검사시간"/>
- <Cell col="28" text="HIV"/>
- <Cell col="29" text="HIV 검사시간"/>
- <Cell col="30" text="VDRL"/>
- <Cell col="31" text="VDRL 검사시간"/>
- <Cell col="32" text="HbsAg"/>
- <Cell col="33" text="HbsAg 검사시간"/>
- <Cell col="34" text="NAT(사후)"/>
- <Cell col="35" text="NAT(사후) 검사시간"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:roomcd"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:patnm"/>
- <Cell col="4" text="bind:grdrage"/>
- <Cell col="5" text="bind:aborh"/>
- <Cell col="6" text="bind:prcpstat"/>
- <Cell col="7" text="bind:prcppreptfflag"/>
- <Cell col="8" text="bind:prcpcd"/>
- <Cell col="9" style="align:left middle;" text="bind:prcpnm"/>
- <Cell col="10" displaytype="checkbox" edittype="none" style="controlbackground:silver;controlborder:1 solid lightblue ;" text="bind:irr" expr="expr:irr == "true" || irr == "1" ? "1" : """ enable="false"/>
- <Cell col="11" displaytype="checkbox" edittype="none" style="controlbackground:silver;controlborder:1 solid lightblue;" text="bind:fil" expr="expr:fil == "true" || fil == "1" ? "1" : """ enable="false"/>
- <Cell col="12" text="bind:blodno"/>
- <Cell col="13" text="bind:validt" mask="expr:utlf_isNull(validt) ? "" : "####-##-## ##:##""/>
- <Cell col="14" text="bind:prcphopedd" mask="expr:utlf_isNull(prcphopedd) ? "" : "####-##-## ##:##""/>
- <Cell col="15" text="bind:rgstdt" mask="expr:utlf_isNull(rgstdt) ? "" : "####-##-## ##:##""/>
- <Cell col="16" text="bind:orddridnm"/>
- <Cell col="17" text="bind:execdt" mask="expr:utlf_isNull(execdt) ? "" : "####-##-## ##:##""/>
- <Cell col="18" text="bind:fstrgstrnm"/>
- <Cell col="19" text="bind:deliveexecdt" mask="expr:utlf_isNull(deliveexecdt) ? "" : "####-##-## ##:##""/>
- <Cell col="20" text="bind:deliveexecnm"/>
- <Cell col="21" text="bind:testexecnm"/>
- <Cell col="22" text="bind:prcpdelivefact"/>
- <Cell col="23" text="bind:nurseremark"/>
- <Cell col="24" text="bind:alttest"/>
- <Cell col="25" text="bind:alttestdt" mask="expr:utlf_isNull(alttestdt) ? "" : "####-##-## ##:##""/>
- <Cell col="26" text="bind:antihcvtest"/>
- <Cell col="27" text="bind:antihcvtestdt" mask="expr:utlf_isNull(antihcvtestdt) ? "" : "####-##-## ##:##""/>
- <Cell col="28" text="bind:hivtest"/>
- <Cell col="29" text="bind:hivtestdt" mask="expr:utlf_isNull(hivtestdt) ? "" : "####-##-## ##:##""/>
- <Cell col="30" text="bind:vdrltest"/>
- <Cell col="31" text="bind:vdrltestdt" mask="expr:utlf_isNull(vdrltestdt) ? "" : "####-##-## ##:##""/>
- <Cell col="32" text="bind:hbsagtest"/>
- <Cell col="33" text="bind:hbsagtestdt" mask="expr:utlf_isNull(hbsagtestdt) ? "" : "####-##-## ##:##""/>
- <Cell col="34" text="bind:nattest"/>
- <Cell col="35" text="bind:nattestdt" mask="expr:utlf_isNull(nattestdt) ? "" : "####-##-## ##:##""/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line16" linetype="horizontal" class="line_10" position="absolute 0 111 1184 117" anchor="left top right"/>
- <Static id="caption26" text="수행처방내역" class="tit_2" position="absolute 0 93 109 110"/>
- <Static id="caption8" text="[표]" position="absolute 1155 755 1180 767"/>
- <Static id="caption6" text="혈액미불출리스트조회" class="tit_1" position="absolute 0 0 174 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_execdetlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="grdrage" type="STRING"/>
- <Column id="aborh" type="STRING"/>
- <Column id="prcpstat" type="STRING"/>
- <Column id="prcppreptfflag" type="STRING"/>
- <Column id="prcpcd" type="STRING"/>
- <Column id="prcpnm" type="STRING"/>
- <Column id="irr" type="STRING"/>
- <Column id="fil" type="STRING"/>
- <Column id="blodno" type="STRING"/>
- <Column id="validt" type="STRING"/>
- <Column id="prcphopedd" type="STRING"/>
- <Column id="rgstdt" type="STRING"/>
- <Column id="orddridnm" type="STRING"/>
- <Column id="execdt" type="STRING"/>
- <Column id="fstrgstrnm" type="STRING"/>
- <Column id="deliveexecdt" type="STRING"/>
- <Column id="deliveexecnm" type="STRING"/>
- <Column id="testexecnm" type="STRING"/>
- <Column id="prcpdelivefact" type="STRING"/>
- <Column id="nurseremark" type="STRING"/>
- <Column id="alttest" type="STRING"/>
- <Column id="alttestdt" type="STRING"/>
- <Column id="antihcvtest" type="STRING"/>
- <Column id="antihcvtestdt" type="STRING"/>
- <Column id="hivtest" type="STRING"/>
- <Column id="hivtestdt" type="STRING"/>
- <Column id="vdrltest" type="STRING"/>
- <Column id="vdrltestdt" type="STRING"/>
- <Column id="hbsagtest" type="STRING"/>
- <Column id="hbsagtestdt" type="STRING"/>
- <Column id="nattest" type="STRING"/>
- <Column id="nattestdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond_wardcdgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond_roomcdgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="roomnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond_patientgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="patientnm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond_patientgrupInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="patientnm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="abo" type="STRING" size="256"/>
- <Column id="rhname" type="STRING" size="256"/>
- <Column id="rh" type="STRING" size="256"/>
- <Column id="btype" type="STRING" size="256"/>
- <Column id="reptrslt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="patientnm"/>
- <Col id="pid"/>
- <Col id="sexage"/>
- <Col id="abo"/>
- <Col id="rhname"/>
- <Col id="rh"/>
- <Col id="btype"/>
- <Col id="reptrslt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpddfrom" type="STRING" size="256"/>
- <Column id="prcdddto" type="STRING" size="256"/>
- <Column id="dateflag" type="STRING" size="256"/>
- <Column id="wardpatientflag" type="STRING" size="256"/>
- <Column id="deliveflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prcpddfrom"/>
- <Col id="prcdddto"/>
- <Col id="dateflag">prcpddselect</Col>
- <Col id="wardpatientflag">patient</Col>
- <Col id="deliveflag">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.combo1" propid="value" datasetid="ds_main_cond" columnid="dateflag"/>
- <BindItem id="item1" compid="grp_sea.input2" propid="value" datasetid="ds_main_cond" columnid="prcpddfrom"/>
- <BindItem id="item2" compid="grp_sea.input11" propid="value" datasetid="ds_main_cond" columnid="prcdddto"/>
- <BindItem id="item3" compid="grp_sea.radio2" propid="value" datasetid="ds_main_cond" columnid="deliveflag"/>
- <BindItem id="item4" compid="grp_sea.radio1" propid="value" datasetid="ds_main_cond" columnid="wardpatientflag"/>
- <BindItem id="item5" compid="grp_sea.input3" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="pid"/>
- <BindItem id="item6" compid="grp_sea.output2" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="patientnm"/>
- <BindItem id="item7" compid="grp_sea.output3" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="sexage"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMMNR07600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNR07600_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_execdetlgrup.clearData();
-
- var addDy = utlf_getCurrentDate(); // 기준일에 현재날짜(디폴트)
- addDy = addDy.toDate().getAddDate(-3,"D");
- addDy = addDy.getDateFormat();
-
- ds_main_cond.setColumn(0, "prcpddfrom", addDy);
- ds_main_cond.setColumn(0, "prcdddto", utlf_getCurrentDate());
-
- fGetWardList();// 병동코드 리스트
- grp_sea.input3.setFocus();
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 병동 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetWardList(){
- ds_send.clear();
- ds_send.addColumn("wardcd", "string", 256);
- ds_send.addColumn("deptsearchyn", "string", 256);
- var iRow = ds_send.addRow();
-
- ds_send.setColumn(iRow, "wardcd", ds_main_cond_wardcdgrup.getColumn(0, "wardcd"));
- ds_send.setColumn(iRow, "deptsearchyn", "Y");
- var oParam = {};
- oParam.id = "TRMNR07602";
- oParam.service = "carerecapp.TnsCareRec";
- oParam.method = "reqGetWardList";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_main_cond_wardcdgrup=wardcdgruplist";
- oParam.async = false;
- oParam.callback = "cf_TRMNR07602";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRMNR07602") > -1 ){
- if( ds_main_cond.getColumn(0, "wardpatientflag") == "ward" ){
- grp_sea.combo7.setFocus();
- }else{
- grp_sea.input3.setFocus();
- }
- }
- }
- function cf_TRMNR07602(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /******************************************************************
- * Argument :
- * Description : 전체/불출/미불출 radio event
- ******************************************************************/
- function grp_sea_radio2_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fGetBlodNoDeliveList();//혈액미불출 리스트 조회버튼
- }
- /******************************************************************
- * Argument :
- * Description : 병동별/환자별 radio event
- ******************************************************************/
- function grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
- if( wardpatientflag == 'ward') {
- grp_sea.combo2.enable = false ;
- grp_sea.combo8.enable = false ;
- grp_sea.input3.enable = false ;
- grp_sea.combo2.value = "" ;
- grp_sea.combo8.value = "" ;
- grp_sea.input3.value = "" ;
- grp_sea.output3.value = "" ;
- grp_sea.output2.value = "" ;
-
- grp_sea.combo7.index = 0 ;
- grp_sea.combo7.setFocus();
- } else {
- grp_sea.combo2.enable = true ;
- grp_sea.combo8.enable = true ;
- grp_sea.input3.enable = true ;
- grp_sea.output2.enable = true;
-
- grp_sea.combo2.value = "" ;
- grp_sea.combo8.value = "" ;
- grp_sea.input3.value = "" ;
- grp_sea.output3.value = "" ;
- grp_sea.output2.value = "" ;
-
- grp_sea.combo7.index = 0 ;
- grp_sea.combo7.setFocus();
- }
- ds_main_execdetlgrup.clearData();
- }
- /******************************************************************
- * Argument :
- * Description : 병동 combo event
- ******************************************************************/
- function grp_sea_combo7_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
- if( wardpatientflag == 'ward') {
- fGetBlodNoDeliveList();//혈액미불출 리스트 조회버튼
- } else {
- grp_sea.input3.value = "" ;
- grp_sea.output2.value = "" ;
- grp_sea.output3.value = "" ;
- grp_sea.output2.visible = false;
- grp_sea.combo8.value = "";
- fGetRoomList();// 병실정보를 가져온다.
- }
- }
- /******************************************************************
- * Argument :
- * Description : 등록번호 input event
- ******************************************************************/
- function grp_sea_input3_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- fGetPatientInfo("entr");
- grp_sea.output2.visible = true;
- ds_main_cond_roomcdgrup.clearData();
- frmf_inputEnterKey("grp_sea.button3", "onclick", new ClickEventInfo);
- }
- }
- /******************************************************************
- * Argument :
- * Description : 병동 combo event
- ******************************************************************/
- function grp_sea_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- grp_sea.input3.value = "" ;
- grp_sea.output2.value = "" ;
- grp_sea.output3.value = "" ;
- fGetPatientList();// 환자리스트 정보를 가져온다.
- }
- /******************************************************************
- * Argument :
- * Description : 성명 combo event
- ******************************************************************/
- function grp_sea_combo8_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var cRow = ds_main_cond_patientgrup.rowposition;
- grp_sea.input3.value = ds_main_cond_patientgrup.getColumn(cRow, "pid");
- grp_sea.output2.value = "" ;
- grp_sea.output3.value = "" ;
- fGetPatientInfo();// 환자 개인정보를 가져온다.
- fGetBlodNoDeliveList();//혈액미불출 리스트 조회버튼
- }
- /******************************************************************
- * Argument :
- * Description : 조회 button event
- ******************************************************************/
- function grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetBlodNoDeliveList();//혈액미불출 리스트 조회버튼
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액미불출 리스트 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetBlodNoDeliveList(){
- var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
- if( wardpatientflag == "patient" ) {
- if( utlf_isNull(grp_sea.input3.value) ){
- sysf_messageBox("등록번호를 ","C001");
- grp_sea.input3.setFocus();
- return;
- }
- }
- ds_send.clear();
- ds_send.addColumn("prcpddfrom", "string", 256);
- ds_send.addColumn("prcpddto", "string", 256);
- ds_send.addColumn("wardcd", "string", 256);
- ds_send.addColumn("roomcd", "string", 256);
- ds_send.addColumn("hngnm", "string", 256);
- ds_send.addColumn("pid", "string", 256);
-
- ds_send.addColumn("dateflag", "string", 256);
- ds_send.addColumn("wardpatientflag", "string", 256);
- ds_send.addColumn("deliveflag", "string", 256);
- var iRow = ds_send.addRow();
-
- ds_send.setColumn(iRow, "prcpddfrom", grp_sea.input2.value);
- ds_send.setColumn(iRow, "prcpddto", grp_sea.input11.value);
- ds_send.setColumn(iRow, "wardcd", grp_sea.combo7.value);
- ds_send.setColumn(iRow, "roomcd", grp_sea.combo2.value);
- ds_send.setColumn(iRow, "hngnm", grp_sea.combo8.value);
- ds_send.setColumn(iRow, "pid", grp_sea.input3.value);
- ds_send.setColumn(iRow, "dateflag", grp_sea.combo1.value);
- ds_send.setColumn(iRow, "wardpatientflag", grp_sea.radio1.value);
- ds_send.setColumn(iRow, "deliveflag", grp_sea.radio2.value);
- var oParam = {};
- oParam.id = "TRMNR07606";
- oParam.service = "carerecapp.TnsCareRec";
- oParam.method = "reqGetBlodNoDeliveList";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_main_execdetlgrup=execdetlgruplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR07606";
- tranf_submit(oParam);
-
- // if( arErrorCode.pop("TRMNR07606") > -1 ){
- //
- // }
- }
- // function cf_TRMNR07606(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 정보 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatientList(){
- ds_send.clear();
- ds_send.addColumn("wardcd", "string", 256);
- ds_send.addColumn("roomcd", "string", 256);
- var iRow = ds_send.addRow();
- ds_send.setColumn(iRow, "wardcd", grp_sea.combo7.value);
- ds_send.setColumn(iRow, "roomcd", grp_sea.combo2.value);
- var oParam = {};
- oParam.id = "TRMNR07604";
- oParam.service = "carerecapp.TnsCareRec";
- oParam.method = "reqGetPatientList";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_main_cond_patientgrup=patientgruplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR07604";
- tranf_submit(oParam);
- grp_sea.combo8.setFocus();
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 병실 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetRoomList(){
- ds_send.clear();
- ds_send.addColumn("wardcd", "string", 256);
- var iRow = ds_send.addRow();
-
- ds_send.setColumn(iRow, "wardcd", grp_sea.combo7.value);
- var oParam = {};
- oParam.id = "TRMNR07603";
- oParam.service = "carerecapp.TnsCareRec";
- oParam.method = "reqGetRoomList";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_main_cond_roomcdgrup=roomcdgruplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR07603";
- tranf_submit(oParam);
- grp_sea.combo2.setFocus();
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 상세정보 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatientInfo(pFlag){
- ds_send.clear();
- if( pFlag == "entr" ){
- grp_sea.combo7.value = "";
- grp_sea.combo2.value = "";
- grp_sea.combo8.value = "";
-
- ds_send.addColumn("pid", "string", 256);
- var iRow = ds_send.addRow();
- ds_send.setColumn(iRow, "pid", grp_sea.input3.value);
- }else{
- ds_send.addColumn("pid", "string", 256);
- ds_send.addColumn("pid", "string", 256);
- var nRow = ds_send.addRow();
-
- ds_send.setColumn(nRow, "wardcd", grp_sea.combo7.value);
- ds_send.setColumn(nRow, "roomcd", grp_sea.combo2.value);
- if( !utlf_isNull(grp_sea.combo8.value) ){
- ds_send.setColumn(nRow, "pid", grp_sea.combo8.value);
- }
- }
- var oParam = {};
- oParam.id = "TRMNR07605";
- oParam.service = "carerecapp.TnsCareRec";
- oParam.method = "reqGetPatientInto";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_main_cond_patientgrupInfo=patientgrupInfo";
- oParam.async = false;
- oParam.callback = "cf_TRMNR07605";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRMNR07605") > -1 ){
- if( pFlag == "entr" ){
- ds_main_cond_patientgrup.copyData(ds_main_cond_patientgrupInfo);
- }
- }
- frmf_inputEnterKey("grp_sea.button3", "onclick", new ClickEventInfo);
- }
- function cf_TRMNR07605(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /******************************************************************
- * Argument :
- * Description : Excel button event
- ******************************************************************/
- function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_cond_execdetlgrup.rowcount > 1 ){
- grdf_exportExcel(grd_execdetlgruplist, "혈액미불출리스트", "혈액미불출리스트", false, "", "", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|