123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT01103" position="absolute 0 0 885 563" titletext="원외처방전 일괄 출력" onload="SMADT01103_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 64 869 91" id="group4" scrollbars="autoboth" anchor="left top right">
- <Layouts>
- <Layout>
- <Calendar id="input6" taborder="0" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 332 -29 432 -10" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption19" text="원외처방 일괄출력" class="tit_1" position="absolute 0 0 140 25"/>
- <Div id="group3" anchor="all" taborder="1" position="absolute 6 25 879 552">
- <Layouts>
- <Layout>
- <Static id="caption71" text="처방현황" class="tit_2" position="absolute 0 50 144 71" anchor="default"/>
- <Shape id="line00" class="line_1" position="absolute 0 66 868 72" anchor="left top right"/>
- <Div id="group2" anchor="left top right" taborder="3" class="div_SA" position="absolute 0 0 870 40">
- <Layouts>
- <Layout>
- <Button id="but_tri" taborder="6" text="조회" class="btn1" position="absolute 657 10 713 32" anchor="top right" onclick="group3_group2_but_tri_onclick"/>
- <Shape id="line13" linetype="vertical" position="absolute 636 10 642 32" anchor="top right"/>
- <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 386 13 476 30" anchor="default"/>
- <Static id="caption2" text="조회일자 :" class="search_name" position="absolute 20 13 115 30" anchor="default"/>
- <Edit id="input1" taborder="7" onkeydown="group3_group2_input1_onkeydown" class="input_search" position="absolute 481 11 586 30" anchor="default"/>
- <Calendar id="input6" taborder="8" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 108 11 208 30" anchor="default"/>
- <Calendar id="input00" taborder="10" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 233 11 333 30" anchor="default"/>
- <Static id="Static00" text="~" position="absolute 215 12 232 32" anchor="default"/>
- <Button id="but_prt" taborder="11" text="출력" class="btn1" position="absolute 729 10 785 32" anchor="top right" onclick="group3_group2_but_prt_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_prntlist" taborder="4" binddataset="ds_outdrugview" useinputpanel="false" extendsizetype="row" cellsizingtype="both" oncellclick="group3_grd_prntlist_oncellclick" oncelldblclick="group3_grd_prntlist_oncelldblclick" position="absolute 0 71 864 524" anchor="left top right">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="26"/>
- <Column size="75"/>
- <Column size="96"/>
- <Column size="70"/>
- <Column size="87"/>
- <Column size="127"/>
- <Column size="63"/>
- <Column size="78"/>
- <Column size="83"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="130"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox"/>
- <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="pid"/>
- <Cell col="11" text="orddd"/>
- <Cell col="12" text="cretno"/>
- <Cell col="13" text="orddeptcd"/>
- <Cell col="14" text="prcpgenrflag"/>
- <Cell col="15" text="drugdd"/>
- <Cell col="16" text="출력시간"/>
- <Cell col="17" text="싸인"/>
- <Cell col="18" text="싸인"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:orddd"/>
- <Cell col="4" displaytype="text" style="align:center middle;" text="bind:drugno"/>
- <Cell col="5" text="bind:drugdd"/>
- <Cell col="6" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:prntstat"/>
- <Cell col="8" text="bind:rcptyn"/>
- <Cell col="9" edittype="none" text="bind:prntplce"/>
- <Cell col="10" text="bind:pid"/>
- <Cell col="11" text="bind:orddd"/>
- <Cell col="12" text="bind:cretno"/>
- <Cell col="13" text="bind:orddeptcd"/>
- <Cell col="14" text="bind:prcpgenrflag"/>
- <Cell col="15" text="bind:drugdd"/>
- <Cell col="16" text="bind:prntdt"/>
- <Cell col="17" text="bind:elctsignkey"/>
- <Cell col="18" text="bind:elctsigncnts"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- <Shape id="line01" class="line_1" position="absolute 0 65 868 71" anchor="left top right"/>
- <CheckBox id="ChkB_All" taborder="5" position="absolute 30 75 48 92" truevalue="Y" falsevalue="N" onclick="group3_ChkB_All_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_tridata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="drugdds" type="STRING" size="256"/>
- <Column id="drugdde" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_outdrugview" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkflag" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="prcpgenrflag" type="STRING" size="256"/>
- <Column id="prntdt" type="STRING" size="256"/>
- <Column id="rcptyn" type="STRING" size="256"/>
- <Column id="prntstat" type="STRING" size="256"/>
- <Column id="prntplce" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.input6" propid="value" datasetid="ds_tridata" columnid="drugdds"/>
- <BindItem id="item1" compid="group3.group2.input00" propid="value" datasetid="ds_tridata" columnid="drugdde"/>
- <BindItem id="item2" compid="group3.group2.input1" propid="value" datasetid="ds_tridata" columnid="pid"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "emr_prcpmngtxp::MMOCommon.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- function SMADT01103_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- grdf_setGridSort(group3.grd_prntlist); // 그리드 소트만
-
- //grdf_setRowTypeIcon(group3.grd_prntlist, 0); // 그리드 상태 표시
-
- ds_tridata.setColumn( 0, "drugdds", utlf_getCurrentDate());
- ds_tridata.setColumn( 0, "drugdde", utlf_getCurrentDate());
-
-
- }
- function group3_group2_but_tri_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRADT01109";
- oParam.service = "pharmacyprescriptionapp.DrugPrint";
- oParam.method = "reqGetOutDrugPrt";
- oParam.inds = "req=ds_tridata";
- oParam.outds = "ds_outdrugview=prntlist";
- oParam.async = false;
- //oParam.callback = "cf_TRADT00301";
- tranf_submit(oParam);
-
- }
- function group3_group2_but_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- for( var i = 0; i < ds_outdrugview.rowcount; i++ ){
- var Vchkflag = ds_outdrugview.getColumn(i, "chkflag");
- var pid = ds_outdrugview.getColumn(i, "pid");
- var orddd = ds_outdrugview.getColumn(i, "orddd");
- var drugdd = ds_outdrugview.getColumn(i, "drugdd");
- var cretno = ds_outdrugview.getColumn(i, "cretno");
- var orddeptcd = ds_outdrugview.getColumn(i, "orddeptcd");
- var drugno = ds_outdrugview.getColumn(i, "drugno");
- var prcpgenrflag = ds_outdrugview.getColumn(i, "prcpgenrflag");
- var mdrugflag = "Y";
- var hosoutmpsflag = "";
- var reprintyn = "Y" ;
- var eprntype = "";
- var stocdeptcd = "3240300000";
-
- if(Vchkflag == "1"){
- // 20101124_laboru_경북대병원_마약/향정 외래 환자 원외 처방전 출력 여부 조회(R002)
- sParam = "drugdd▦drugno▦pid▦orddd▦cretno▦orddeptcd▦prcpgenrflag▦hosoutmpsflag▦reprintyn▦Y▦eprntype▦stocdeptcd▦mdrugflag▩";
- sParam += utlf_transNullToEmpty(drugdd) + "▦" +
- utlf_transNullToEmpty(drugno) + "▦" +
- utlf_transNullToEmpty(pid) + "▦" +
- utlf_transNullToEmpty(orddd) + "▦" +
- utlf_transNullToEmpty(cretno) + "▦" +
- utlf_transNullToEmpty(orddeptcd) + "▦" +
- utlf_transNullToEmpty(prcpgenrflag) + "▦" +
- utlf_transNullToEmpty(hosoutmpsflag) + "▦" +
- utlf_transNullToEmpty(reprintyn) + "▦" +
- "Y" + "▦" +
- utlf_transNullToEmpty(eprntype) + "▦" +
- utlf_transNullToEmpty(stocdeptcd) + "▦" +
- utlf_transNullToEmpty(mdrugflag) + "▩";
- frmf_setParameter("params", sParam);
- frmf_modal("SPADT61101", "SPADT61101", null, 0, 200, 200, null, null, null, null, null, null, "M");
- frmf_setParameter("params", "");
- }
- }
- }
- function group3_ChkB_All_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "Y") {
- for ( var i = 0 ; i < ds_outdrugview.rowcount ; i++ ){
- ds_outdrugview.setColumn(i,"chkflag","1");
- }
- } else {
- for ( var i = 0 ; i < ds_outdrugview.rowcount ; i++ ){
- ds_outdrugview.setColumn(i,"chkflag","0");
- }
- }
-
- }
- ]]></Script>
- </Form>
- </FDL>
|