123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAED00100" position="absolute 0 0 801 376" titletext="처방조회" onload="SPAED00100_onload">
- <Layouts>
- <Layout>
- <Div id="grp_srch" taborder="1" class="div_SA2" position="absolute 0 24 800 64"/>
- <Static text="처방조회" position="absolute 0 7 175 27" align="align:center middle;" id="caption2" class="tit_2"/>
- <Static text="등록번호 :" position="absolute 320 36 406 53" id="caption3" class="search_name"/>
- <Shape position="absolute 716 34 722 56" linetype="vertical" id="line1"/>
- <Shape position="absolute 0 64 800 70" id="line3" class="line_10"/>
- <Button position="absolute 731 34 787 56" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick"/>
- <Button position="absolute 684 350 740 372" id="btn_cfm" class="btn4" text="확인" onclick="btn_cfm_onclick"/>
- <Button position="absolute 743 350 799 372" id="btn_can" class="btn4" text="취소" onclick="btn_can_onclick"/>
- <Static text="기 간 :" position="absolute 20 36 106 53" id="caption1" class="search_name"/>
- <Edit position="absolute 409 35 515 54" id="ipt_srchpid" class="input_search" onkeydown="ipt_srchpid_onkeydown" autoselect="true"/>
- <Calendar position="absolute 90 35 190 54" id="ipt_srchfromdd" class="input_essential" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Static text="~" position="absolute 193 36 205 53" id="lbl_~" class="search_no_b"/>
- <Calendar position="absolute 207 35 307 54" id="ipt_srchtodd" class="input_essential" dateformat="yyyy-MM-dd" autoselect="true"/>
- <Edit position="absolute 517 35 623 54" id="input1" class="input_search" autoselect="true"/>
- <Grid position="absolute 0 69 800 344" id="grd_ordlist1" binddataset="ds_main_ordlist1_mainordlist" oncelldblclick="grd_ordlist1_oncelldblclick" onlbuttonup="grd_ordlist1_onlbuttonup" onrbuttonup="grd_ordlist1_onrbuttonup" cellsizingtype="col" cellsizebandtype="allband">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0" band="left"/>
- <Column size="72" band="left"/>
- <Column size="70" band="left"/>
- <Column size="45" band="left"/>
- <Column size="73" band="left"/>
- <Column size="58"/>
- <Column size="80"/>
- <Column size="115"/>
- <Column size="70"/>
- <Column size="61"/>
- <Column size="115"/>
- <Column size="165"/>
- <Column size="240"/>
- <Column size="59"/>
- <Column size="121"/>
- <Column size="62"/>
- <Column size="54"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="성명"/>
- <Cell col="4" text="S/A"/>
- <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="예약시간"/>
- <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="취소코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:hngnm"/>
- <Cell col="4" text="bind:sna"/>
- <Cell col="5" text="bind:orddepthngnm"/>
- <Cell col="6" text="bind:orddrnm"/>
- <Cell col="7" text="bind:calcscorcd"/>
- <Cell col="8" text="bind:prcpdt" mask="expr:utlf_isNull(prcpdt) || prcpdt == '-' ? '' : '####-##-## ##:##'"/>
- <Cell col="9" text="bind:statcd"/>
- <Cell col="10" text="bind:roomcd"/>
- <Cell col="11" text="bind:srchrsrvdt" mask="expr:utlf_isNull(srchrsrvdt) || srchrsrvdt == '-' ? '' : '####-##-## ##:##'"/>
- <Cell col="12" displaytype="text" text="bind:prcpnm"/>
- <Cell col="13" displaytype="text" text="bind:prcpdelivefact"/>
- <Cell col="14" displaytype="none" edittype="none" text="bind:rsrvrnm"/>
- <Cell col="15" text="bind:execdt"/>
- <Cell col="16" displaytype="none" edittype="none" text="bind:execrnm"/>
- <Cell col="17" text="bind:rcptyn"/>
- <Cell col="18" text="bind:basecd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 490 115 710 305" id="grd_temproom" visible="false" binddataset="ds_init_cmb_info_initexcuroomcd">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="127"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption3"/>
- </Band>
- <Band id="body">
- <Cell text="bind:excuroomcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <CheckBox position="absolute 630 35 650 55" id="bool1" truevalue="Y" falsevalue="N"/>
- <Static text="처방포함" position="absolute 650 35 700 55" id="caption4"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_info_initexcuroomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="excuroomcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="excuroomcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_cdidlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchpid" type="STRING" size="256"/>
- <Column id="srchdate1" type="STRING" size="256"/>
- <Column id="srchdate2" type="STRING" size="256"/>
- <Column id="acptlistflag" type="STRING" size="256"/>
- <Column id="selectexcuroom" type="STRING" size="256"/>
- <Column id="excuroomcd" type="STRING" size="256"/>
- <Column id="prcpgenrflag" type="STRING" size="256"/>
- <Column id="prcpexecdeptcd" type="STRING" size="256"/>
- <Column id="centyn" type="STRING" size="256"/>
- <Column id="centflag" type="STRING" size="256"/>
- <Column id="sgubn" type="STRING" size="256"/>
- <Column id="term" type="STRING" size="256"/>
- <Column id="largeclass" type="STRING" size="256"/>
- <Column id="centflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchpid"/>
- <Col id="srchdate1"/>
- <Col id="srchdate2"/>
- <Col id="acptlistflag"/>
- <Col id="selectexcuroom"/>
- <Col id="excuroomcd"/>
- <Col id="prcpgenrflag"/>
- <Col id="prcpexecdeptcd"/>
- <Col id="centyn"/>
- <Col id="centflag"/>
- <Col id="sgubn"/>
- <Col id="term"/>
- <Col id="largeclass"/>
- <Col id="centflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="receiveref" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="receiveref"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_initexecrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="execrid1cdnm" type="STRING" size="256"/>
- <Column id="execrid1cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="execrid1cdnm"/>
- <Col id="execrid1cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instance1"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="srchhngnm" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="srchprcpflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- <Col id="srchhngnm"/>
- <Col id="suppdeptcd"/>
- <Col id="srchprcpflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_prcpexecdeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="prcpexecdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prcpexecdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="excuroomcdid" type="STRING" size="256"/>
- <Column id="excuroomcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="excuroomcdid"/>
- <Col id="excuroomcdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ordlist1_mainordlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sna" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- <Column id="orddepthngnm" type="STRING" size="256"/>
- <Column id="orddrnm" type="STRING" size="256"/>
- <Column id="portprcpflag" type="STRING" size="256"/>
- <Column id="calcscorcd" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="execprcpstatcd" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="srchrsrvdt" type="STRING" size="256"/>
- <Column id="prcpnm" type="STRING" size="256"/>
- <Column id="rsrvrid" type="STRING" size="256"/>
- <Column id="execdt" type="STRING" size="256"/>
- <Column id="execrid1" type="STRING" size="256"/>
- <Column id="execrnm" type="STRING" size="256"/>
- <Column id="rcptyn" type="STRING" size="256"/>
- <Column id="hight" type="STRING" size="256"/>
- <Column id="weight" type="STRING" size="256"/>
- <Column id="prcpexecdeptnm" type="STRING" size="256"/>
- <Column id="execdeptnm" type="STRING" size="256"/>
- <Column id="hometel" type="STRING" size="256"/>
- <Column id="mpphontel" type="STRING" size="256"/>
- <Column id="statcd" type="STRING" size="256"/>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="execprcpuniqno" type="STRING" size="256"/>
- <Column id="prcpexecdeptcd" type="STRING" size="256"/>
- <Column id="excuroomcd" type="STRING" size="256"/>
- <Column id="inflag" type="STRING" size="256"/>
- <Column id="rcptacptyn" type="STRING" size="256"/>
- <Column id="execbaseflag" type="STRING" size="256"/>
- <Column id="excupartcd" type="STRING" size="256"/>
- <Column id="modality" type="STRING" size="256"/>
- <Column id="execrem" type="STRING" size="256"/>
- <Column id="prcpdelivefact" type="STRING" size="256"/>
- <Column id="carecnfmdd" type="STRING" size="256"/>
- <Column id="prcpkindcd" type="STRING" size="256"/>
- <Column id="rcptno" type="STRING" size="256"/>
- <Column id="acptseqno" type="STRING" size="256"/>
- <Column id="prcpgenrflag" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="rcptdd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="eqmtifyn" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="rsrvdt" type="STRING" size="256"/>
- <Column id="rgstdeptcd" type="STRING" size="256"/>
- <Column id="rgstrid" type="STRING" size="256"/>
- <Column id="inclprcpcd" type="STRING" size="256"/>
- <Column id="lrgcd" type="STRING" size="256"/>
- <Column id="mdlcd" type="STRING" size="256"/>
- <Column id="actorddd" type="STRING" size="256"/>
- <Column id="actcretno" type="STRING" size="256"/>
- <Column id="examroomnm" type="STRING" size="256"/>
- <Column id="prcphistno" type="STRING" size="256"/>
- <Column id="pacsnocretyn" type="STRING" size="256"/>
- <Column id="tmpldata" type="STRING" size="256"/>
- <Column id="prcpdt" type="STRING" size="256"/>
- <Column id="rsrvrnm" type="STRING" size="256"/>
- <Column id="deptengabbr" type="STRING" size="256"/>
- <Column id="cnclresncdnm" type="STRING" size="256"/>
- <Column id="rsrvexmptmplcd" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="tretflagcd" type="STRING" size="256"/>
- <Column id="rsrvexcuroomposscd" type="STRING" size="256"/>
- <Column id="prcphopedd" type="STRING" size="256"/>
- <Column id="precureprcpflag" type="STRING" size="256"/>
- <Column id="clincstdycd" type="STRING" size="256"/>
- <Column id="aftrcptinfo" type="STRING" size="256"/>
- <Column id="centcd" type="STRING" size="256"/>
- <Column id="prcpclscd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="bf_srchrsrvtm" type="STRING" size="256"/>
- <Column id="emryn" type="STRING" size="256"/>
- <Column id="prcpqty" type="STRING" size="256"/>
- <Column id="unrsrvexecyn" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- <Column id="ordrsrvdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="check"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sna"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="orddepthngnm"/>
- <Col id="orddrnm"/>
- <Col id="portprcpflag"/>
- <Col id="calcscorcd"/>
- <Col id="prcpdd"/>
- <Col id="execprcpstatcd"/>
- <Col id="roomcd"/>
- <Col id="srchrsrvdt"/>
- <Col id="prcpnm"/>
- <Col id="rsrvrid"/>
- <Col id="execdt"/>
- <Col id="execrid1"/>
- <Col id="execrnm"/>
- <Col id="rcptyn"/>
- <Col id="hight"/>
- <Col id="weight"/>
- <Col id="prcpexecdeptnm"/>
- <Col id="execdeptnm"/>
- <Col id="hometel"/>
- <Col id="mpphontel"/>
- <Col id="statcd"/>
- <Col id="basecd"/>
- <Col id="execprcpuniqno"/>
- <Col id="prcpexecdeptcd"/>
- <Col id="excuroomcd"/>
- <Col id="inflag"/>
- <Col id="rcptacptyn"/>
- <Col id="execbaseflag"/>
- <Col id="excupartcd"/>
- <Col id="modality"/>
- <Col id="execrem"/>
- <Col id="prcpdelivefact"/>
- <Col id="carecnfmdd"/>
- <Col id="prcpkindcd"/>
- <Col id="rcptno"/>
- <Col id="acptseqno"/>
- <Col id="prcpgenrflag"/>
- <Col id="orddd"/>
- <Col id="orddeptcd"/>
- <Col id="rcptdd"/>
- <Col id="orddrid"/>
- <Col id="prcpno"/>
- <Col id="eqmtifyn"/>
- <Col id="basesuppdeptcd"/>
- <Col id="cretno"/>
- <Col id="wardcd"/>
- <Col id="rsrvdt"/>
- <Col id="rgstdeptcd"/>
- <Col id="rgstrid"/>
- <Col id="inclprcpcd"/>
- <Col id="lrgcd"/>
- <Col id="mdlcd"/>
- <Col id="actorddd"/>
- <Col id="actcretno"/>
- <Col id="examroomnm"/>
- <Col id="prcphistno"/>
- <Col id="pacsnocretyn"/>
- <Col id="tmpldata"/>
- <Col id="prcpdt"/>
- <Col id="rsrvrnm"/>
- <Col id="deptengabbr"/>
- <Col id="cnclresncdnm"/>
- <Col id="rsrvexmptmplcd"/>
- <Col id="age"/>
- <Col id="tretflagcd"/>
- <Col id="rsrvexcuroomposscd"/>
- <Col id="prcphopedd"/>
- <Col id="precureprcpflag"/>
- <Col id="clincstdycd"/>
- <Col id="aftrcptinfo"/>
- <Col id="centcd"/>
- <Col id="prcpclscd"/>
- <Col id="ioflag"/>
- <Col id="bf_srchrsrvtm"/>
- <Col id="emryn"/>
- <Col id="prcpqty"/>
- <Col id="unrsrvexecyn"/>
- <Col id="insukind"/>
- <Col id="ordrsrvdt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_nursingtype2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cmb_info_initexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_srchpid" propid="value" datasetid="ds_send_data" columnid="srchpid"/>
- <BindItem id="item1" compid="ipt_srchfromdd" propid="value" datasetid="ds_send_data" columnid="srchdate1"/>
- <BindItem id="item2" compid="ipt_srchtodd" propid="value" datasetid="ds_send_data" columnid="srchdate2"/>
- <BindItem id="item3" compid="input1" propid="value" datasetid="ds_send_srch" columnid="srchhngnm"/>
- <BindItem id="item4" compid="bool1" propid="value" datasetid="ds_send_srch" columnid="srchprcpflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-09-30
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-09-30 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 모화면 데이터 전달
- ****************************************************************************************/
- function fSetOpener(){
- var cRow = ds_main_ordlist1_mainordlist.rowposition;
- var statcd = ds_main_ordlist1_mainordlist.getColumn(cRow, "statcd");
- var roomcd = ds_main_ordlist1_mainordlist.getColumn(cRow, "roomcd");
- if ( statcd == "수납" || !utlf_isNull(roomcd) ){
- if( frmf_checkOpener() ){
- dsf_makeValue( opener.ds_temp, "okflag", "string", "ok" );
- opener.ds_send_ordlist1_mainordlist.copyRow(0,ds_main_ordlist1_mainordlist,cRow);
- this.close();
- }
- }else{
- sysf_messageBox("처방상태가 수납일 경우에만 접수", "I006");
- return;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAED00100_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_ordlist1);
- grdf_setGridSort(grd_ordlist1);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
-
- // 검색조건 설정
- var vpid = opener.frmf_getParameter("SPAVT00110_PID");
- ds_send_data.setColumn( 0, "srchpid", vpid);
- // 자동조회
- ds_send_data.setColumn( 0, "excuroomcd", frmf_getPrestDeptCd());
- ds_send_data.setColumn( 0, "acptlistflag", "Y");
- ds_send_data.setColumn( 0, "prcpexecdeptcd", frmf_getPrestDeptCd());
- lf_aezfSetSuppDeptcd();
- ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
-
- ds_send_srch.setColumn( 0, "suppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
- ds_send_data.setColumn( 0, "acptlistflag", "N");
- //검사실 갖고오기
- dsf_createDsRow("ds_reqparam", [
- {col:"basesuppdeptcd", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
- , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
- , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
- , {col:"largeclass", type:"STRING", size:256, val:"M4"}
- , {col:"cdgrupid", type:"STRING", size:256, val:"A0486"}
- , {col:"centflag", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAEA01115";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetInitFuncExamCureRoomList";
- oParam.inds = "reqparam=ds_reqparam";
- oParam.outds = "ds_init_cmb_info_initexecroom=initexcuroom ds_init_cmb_info_initexcuroomcd=initexcuroomcd ds_init_cmb_info_initexecrid1=initexecrid "
- +"ds_init_cmb_info_prcpexecdeptcdlist=prcpexecdeptcdlist ds_init_cmb_info_cdidlist=cdidlist ds_init_cmb_info_nursingtype2=nursingtype ds_init_cmb_info_initexcuroomgrp=initexcuroomgrp";
- oParam.async = false;
- oParam.callback = "cf_TRAEA01115";
- tranf_submit(oParam);
- var loop = ds_init_cmb_info_initexcuroomcd.rowcount;
- var excuroomcd = "";
- for(var i = 0; i < loop; i++){
- excuroomcd = ds_init_cmb_info_initexcuroomcd.getColumn(i, "excuroomcd") + " " + excuroomcd;
- }
-
- ds_send_data.setColumn( 0, "selectexcuroom", excuroomcd );
- //20160708 kya 수정
- // 일자 setting
- var curDD = utlf_getCurrentDate();
- if ( vpid != "") {
- var idate = new Date();
- //var curDD_from = curDD.substring (0, 6) + "01";
- var curDD_from = idate.getAddDate(-7, "D").getDateFormat();
- ds_send_data.setColumn( 0, "srchdate1" , curDD_from ); // 조회시작일자
- ds_send_data.setColumn( 0, "srchdate2" , curDD ); // 조회종료일자
- btn_search.click();
- } else {
- ds_send_data.setColumn( 0, "srchdate1" , curDD ); // 조회시작일자
- ds_send_data.setColumn( 0, "srchdate2" , curDD ); // 조회종료일자
- }
-
- // frmf_createPopupMenuDs("pmn_menu", "pmn_menu_onmenuclick", ds_menu);
- }
- function cf_TRAEA01115(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_init_cmb_info_initexecroom.updateColID("basecd","excuroomcdid");
- ds_init_cmb_info_initexecroom.updateColID("basecdflagdesc","excuroomcdnm");
- ds_init_cmb_info_initexecrid1.updateColID("basecd","execrid1cdid");
- ds_init_cmb_info_initexecrid1.updateColID("basecdflagdesc","execrid1cdnm");
- ds_init_cmb_info_initexcuroomgrp.updateColID("basecdcnts","excuroomgrpcdid");
- ds_init_cmb_info_initexcuroomgrp.updateColID("basecdcnts2","excuroomgrpcdnm");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function btn_search_onclick(obj:Button, e:ClickEventInfo) {
- dsf_createDsRow("ds_reqparam", [
- {col:"acptlistflag", type:"STRING", size:256, val:ds_send_data.getColumn(0,"acptlistflag")}
- , {col:"basesuppdeptcd", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
- , {col:"initexcuroom", type:"STRING", size:256, val:ds_send_data.getColumn(0,"selectexcuroom")}
- , {col:"prcpexecdeptcd", type:"STRING", size:256, val:ds_send_data.getColumn(0,"prcpexecdeptcd")}
- , {col:"srchdate1", type:"STRING", size:256, val:ds_send_data.getColumn(0,"srchdate1")}
- , {col:"srchdate2", type:"STRING", size:256, val:ds_send_data.getColumn(0,"srchdate2")}
- , {col:"srchpid", type:"STRING", size:256, val:ds_send_data.getColumn(0,"srchpid")}
- , {col:"excuroomflag", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
- , {col:"term", type:"STRING", size:256, val:ds_send_data.getColumn(0,"term")}
- , {col:"prcpgenrflag", type:"STRING", size:256, val:ds_send_data.getColumn(0,"prcpgenrflag")}
- , {col:"sgubn", type:"STRING", size:256, val:ds_send_data.getColumn(0,"sgubn")}
- , {col:"largeclass", type:"STRING", size:256, val:"M4"}
- , {col:"centyn", type:"STRING", size:256, val:ds_send_data.getColumn(0,"centyn")}
- , {col:"centflag", type:"STRING", size:256, val:ds_send_data.getColumn(0,"centflag")}
- , {col:"hcflag", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAEA01101";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetExamCureExecPrcpList";
- oParam.inds = "reqparam=ds_reqparam";
- oParam.outds = "ds_main_ordlist1_mainordlist=examcureexecprcplist";
- oParam.async = false;
- oParam.callback = "cf_TRAEA01101";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRAEA01101") > -1 ){
- if( ds_send_srch.getColumn(0, "srchprcpflag") != "Y" ){
- var cnt = ds_main_ordlist1_mainordlist.rowcount;
- for(var i = cnt-1 ; i >= 0 ; i-- ){
- if( ds_main_ordlist1_mainordlist.getColumn(i, "statcd") != "수납" ){
- ds_main_ordlist1_mainordlist.deleteRow(i);
- }
- }
- }
- }
- }
- function cf_TRAEA01101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo) {
- // 조회됐는지 확인
- var cRow = ds_main_ordlist1_mainordlist.rowposition;
- if( cRow > -1 ){
- fSetOpener();
- } else {
- sysf_messageBox("조회된 처방 정보가", "I004" , "다시 조회해주세요.");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 취소
- ****************************************************************************************/
- function btn_can_onclick(obj:Button, e:ClickEventInfo) {
- if( frmf_checkOpener() ) {
- dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
- }
- this.close();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 등록번호 입력하고 조회
- ****************************************************************************************/
- function ipt_srchpid_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 성명 입력하고 조회
- ****************************************************************************************/
- function input1_onkeydown(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 모화면 데이터 전달
- ****************************************************************************************/
- function grd_ordlist1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- // 조회됐는지 확인
- if(e.row > -1) {
- fSetOpener();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description :
- ****************************************************************************************/
- function grd_ordlist1_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- // setPopupMenu("grd_ordlist1", false, "/root/hidden/popupmenu/menu/item", "label", "func");
- }
- ]]></Script>
- </Form>
- </FDL>
|