123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT10800" position="absolute 0 0 1200 790" titletext="약국 집계 조회/출력" oninit="SMADT10800_oninit" onload="SMADT10800_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1194 25" id="group1">
- <Layouts>
- <Layout>
- <Static text="약국 집계 조회/출력" position="absolute 0 0 168 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 40 1195 784" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Grid position="absolute 380 72 1194 740" id="grd_prcplist" binddataset="ds_grd_prcplist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="38"/>
- <Column size="48"/>
- <Column size="36"/>
- <Column size="73"/>
- <Column size="45"/>
- <Column size="60"/>
- <Column size="41"/>
- <Column size="82"/>
- <Column size="90"/>
- <Column size="201"/>
- <Column size="49"/>
- <Column size="36"/>
- <Column size="33"/>
- <Column size="59"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="구분"/>
- <Cell col="2" text="구분"/>
- <Cell col="3" text="구분"/>
- <Cell col="4" text="등록번호"/>
- <Cell col="5" text="환자명"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="병동"/>
- <Cell col="8" text="Group코드"/>
- <Cell col="9" text="처방코드"/>
- <Cell col="10" text="처방명"/>
- <Cell col="11" text="1일수량"/>
- <Cell col="12" text="횟수"/>
- <Cell col="13" text="일수"/>
- <Cell col="14" text="불출수량"/>
- <Cell col="15" text="처방적용일자"/>
- <Cell col="16" text="처방등록일시"/>
- <Cell col="17" text="반환일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" text="bind:flag1"/>
- <Cell col="2" text="bind:flag2"/>
- <Cell col="3" text="bind:flag3"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" style="align:left top;padding:5 2 0 2;" text="bind:orddeptnm" wordwrap="char"/>
- <Cell col="7" text="bind:roomcd"/>
- <Cell col="8" style="align:left;" text="bind:groupcd"/>
- <Cell col="9" style="align:left top;padding:5 2 0 2;" text="bind:prcpcd" wordwrap="word"/>
- <Cell col="10" style="align:left top;padding:5 2 0 2;" text="bind:prcpnm" wordwrap="word"/>
- <Cell col="11" style="align:right;" text="bind:prcpqty"/>
- <Cell col="12" style="align:left;" text="bind:prcptims"/>
- <Cell col="13" style="align:right;" text="bind:prcpdayno"/>
- <Cell col="14" style="align:right;" text="bind:totqty"/>
- <Cell col="15" displaytype="date" text="bind:prcpdd" calendardisplaynulltype="none"/>
- <Cell col="16" displaytype="normal" mask="####-##-##" maskchar=" " calendardisplaynulltype="default"/>
- <Cell col="17" displaytype="date" text="bind:rtndd" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="none"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 64 1194 70" linetype="horizontal" id="line1" class="line_1"/>
- <Grid position="absolute 455 230 830 475" id="grd_deptlist" visible="false" binddataset="ds_grd_deptlist" oncellclick="group3_grd_deptlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="93"/>
- <Column size="234"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="checkbox" edittype="checkbox"/>
- <Cell col="1" text="코드"/>
- <Cell col="2" text="부서"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="1" text="bind:deptcd"/>
- <Cell col="2" text="bind:depthngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 2 72 377 740" id="grd_sumlist" class="datagrid" binddataset="ds_grd_sumlist" oncellclick="group3_grd_sumlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="Group코드"/>
- <Cell col="1" text="처방코드"/>
- <Cell col="2" text="처방명"/>
- <Cell col="3" text="총불출수량"/>
- </Band>
- <Band id="body">
- <Cell text="bind:groupcd"/>
- <Cell col="1" style="align:left top;padding:6 2 0 2;" text="bind:prcpcd" wordwrap="word"/>
- <Cell col="2" style="align:left top;padding:6 2 0 2;" text="bind:prcpnm" wordwrap="word"/>
- <Cell col="3" style="align:right;" text="bind:sumqty"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 24 1195 51" id="group4" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 230 5 322 27" id="button1" class="btn6" visible="true" text="집계표출력" anchor="default" onclick="group4_button1_onclick"/>
- <Button position="absolute 575 0 679 22" id="button3" class="btn6" visible="false" text="Fill List출력" anchor="default"/>
- <Button position="absolute 0 5 104 27" id="button4" class="btn3" text="수액집계조회" anchor="default" onclick="group4_button4_onclick"/>
- <Button position="absolute 1115 5 1195 27" id="button5" class="btn4" visible="false" text="집계취소" anchor="default" onclick="group4_button5_onclick"/>
- <Button position="absolute 110 5 226 27" id="button2" class="btn3" text="집계시간별조회" anchor="default" onclick="group4_button2_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 53 1194 105" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="조회구간 :" position="absolute 5 11 95 28" id="caption1" class="search_name" anchor="default"/>
- <Static text="구분1 :" position="absolute 315 10 385 27" id="caption4" class="search_name" anchor="default"/>
- <Static text="구분2 :" position="absolute 662 8 732 25" id="caption5" class="search_name" anchor="default"/>
- <Button position="absolute 1125 10 1181 32" id="btn_sea" class="btn1" text="조회" anchor="default" onclick="group2_btn_sea_onclick"/>
- <Calendar position="absolute 98 11 196 30" id="ipt_sumdt1" class="input_default" anchor="default" autoselect="true" autoskip="true"/>
- <Calendar position="absolute 210 11 308 30" id="ipt_sumdt2" class="input_default" anchor="default" autoselect="true"/>
- <Static text="~" position="absolute 199 10 214 30" align="align:center middle;" id="caption32" anchor="default"/>
- <Radio position="absolute 385 5 435 51" id="radio1" columncount="1" rowcount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">일반</Col>
- </Row>
- <Row>
- <Col id="codecolumn">U</Col>
- <Col id="datacolumn">UDS</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="구분3 :" position="absolute 662 32 732 49" id="caption3" class="search_name" anchor="default"/>
- <Static text="부 서 :" position="absolute 5 34 95 51" id="caption2" class="search_name" anchor="default"/>
- <Edit readonly="true" position="absolute 95 33 375 52" id="otp_userdeptnm" anchor="default" class="output"/>
- <cp_checkboxList id="cp_checkbox1" titletext="CheckBox List" taborder="1" text="cp_checkboxList00" scrollbars="none" position="absolute 435 6 535 26" style="background:transparent; " col="2" row="1" cellspacing="2" vcellspacing="0" itemWidth="50" itemHeight="20" overflow="visible"/>
- <cp_checkboxList id="cp_checkbox4" titletext="CheckBox List" taborder="2" text="cp_checkboxList00" scrollbars="none" position="absolute 435 29 535 49" style="background:transparent; " col="3" row="1" cellspacing="2" vcellspacing="0" itemWidth="-1" itemHeight="20" overflow="visible"/>
- <cp_checkboxList id="rdo_prcp" titletext="CheckBox List" taborder="3" text="cp_checkboxList00" scrollbars="none" position="absolute 723 6 823 26" style="background:transparent; " col="4" row="1" cellspacing="2" vcellspacing="0" itemWidth="50" itemHeight="20" overflow="visible"/>
- <cp_checkboxList id="cp_checkbox3" titletext="CheckBox List" taborder="4" text="cp_checkboxList00" scrollbars="none" position="absolute 723 29 823 49" style="background:transparent; " col="3" row="1" cellspacing="2" vcellspacing="0" itemWidth="65" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag1" type="STRING"/>
- <Column id="flag2" type="STRING"/>
- <Column id="flag3" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="groupcd" type="STRING"/>
- <Column id="prcpcd" type="STRING"/>
- <Column id="prcpnm" type="STRING"/>
- <Column id="prcpqty" type="STRING"/>
- <Column id="prcptims" type="STRING"/>
- <Column id="prcpdayno" type="STRING"/>
- <Column id="totqty" type="STRING"/>
- <Column id="prcpdd" type="STRING"/>
- <Column id="rtndd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- <Column id="depthngnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="groupcd" type="STRING"/>
- <Column id="prcpcd" type="STRING"/>
- <Column id="prcpnm" type="STRING"/>
- <Column id="sumqty" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="drugflag" type="STRING" size="256"/>
- <Column id="prcpflag" type="STRING" size="256"/>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="srchorddeptcd" type="STRING" size="256"/>
- <Column id="srchprcpcd" type="STRING" size="256"/>
- <Column id="udsflag" type="STRING" size="256"/>
- <Column id="prcpkindcd" type="STRING" size="256"/>
- <Column id="sumdt" type="STRING" size="256"/>
- <Column id="srchorddeptflag" type="STRING" size="256"/>
- <Column id="sumdeptcd" type="STRING" size="256"/>
- <Column id="dutplcecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptflag"/>
- <Col id="drugflag">1 2</Col>
- <Col id="prcpflag">1 2 3</Col>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- <Col id="srchorddeptcd"/>
- <Col id="srchprcpcd"/>
- <Col id="udsflag">N</Col>
- <Col id="prcpkindcd"/>
- <Col id="sumdt"/>
- <Col id="srchorddeptflag"/>
- <Col id="sumdeptcd"/>
- <Col id="dutplcecd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="userdeptcd" type="STRING" size="256"/>
- <Column id="userdeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="userid"/>
- <Col id="usernm"/>
- <Col id="userdeptcd"/>
- <Col id="userdeptnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_sumdeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_checkbox1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">약</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">주사</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rdo_prcp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">정규</Col>
- <Col id="value">R</Col>
- </Row>
- <Row>
- <Col id="label">추가</Col>
- <Col id="value">A</Col>
- </Row>
- <Row>
- <Col id="label">응급</Col>
- <Col id="value">E</Col>
- </Row>
- <Row>
- <Col id="label">Admission</Col>
- <Col id="value">M</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_checkbox4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">PTP</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">주사</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">외용,수제</Col>
- <Col id="value">5</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_checkbox3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">일반</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">선처치</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">Set처방</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_ret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_sumterm_suminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_sumdt1" propid="value" datasetid="ds_send_srchdata" columnid="srchfromdd"/>
- <BindItem id="item1" compid="group2.ipt_sumdt2" propid="value" datasetid="ds_send_srchdata" columnid="srchtodd"/>
- <BindItem id="item2" compid="group2.otp_userdeptnm" propid="value" datasetid="ds_temp_userinfo" columnid="userdeptnm"/>
- <BindItem id="item3" compid="group2.radio1" propid="value" datasetid="ds_send_srchdata" columnid="udsflag"/>
- </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";
- include "com_departmentcodexp::ZSD001.xjs";
- include "emr_prcpmngtxp::MMOCommon.xjs";
- function cf_TRADT10321(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function SMADT10800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMADT10800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setAllCheck(group3.grd_deptlist);
- grdf_initGrid(group3.grd_sumlist);
-
- group3.grd_deptlist.setCellProperty("Head",0,"text","1");
-
- group2.cp_checkbox1.setBindDataset(ds_checkbox1,"value","label");
- group2.rdo_prcp.setBindDataset(ds_rdo_prcp,"value","label");
- group2.cp_checkbox4.setBindDataset(ds_checkbox4,"value","label");
- group2.cp_checkbox3.setBindDataset(ds_checkbox3,"value","label");
-
- group2.cp_checkbox1.setData([1,2],null,false);
- group2.cp_checkbox3.setData([1,2,3],null,false);
- ds_send_srchdata.setColumn(0,"srchfromdd", utlf_getCurrentDate());
- ds_send_srchdata.setColumn(0,"srchtodd", utlf_getCurrentDate());
-
- /* 사용자부서 가져오기 */
- ds_temp_userinfo.setColumn(0,"userdeptcd", sysf_getUserInfo("dutplcecd"));
- ds_temp_userinfo.setColumn(0,"userdeptnm", sysf_getUserInfo("dutplcenm"));
-
- ds_send_srchdata.setColumn(0,"dutplcecd", sysf_getUserInfo("dutplcecd"));
-
- dsf_createDsRow("ds_send_req", [{col: "srchfromdd", val:ds_send_srchdata.getColumn(0,"srchfromdd") }
- ,{col: "deptflag", val:"" }
- ,{col: "srchdeptnm", val:"" }
- ,{col: "sumdeptcd", val:ds_send_srchdata.getColumn(0,"dutplcecd") }
- ,{col: "srchtodd", val:ds_send_srchdata.getColumn(0,"srchtodd") }
- ,{col: "srchfromtm", val:"000000" }
- ,{col: "srchtotm", val:"240000" }
- ,{col: "sumflag1", val:"" }
- ,{col: "sumflag2", val:"" }
- ,{col: "sumflag3", val:"" }
- ,{col: "drugflag", val:"" }
- ,{col: "prcpkindcd", val:"" }
- ,{col: "pid", val:"" }
- ,{col: "drugcd", val:"" }
- ]);
-
- dsf_setDefaultVal(ds_send_req, "srchfromtm:000000,srchtotm:240000");
- var oParam = {};
- oParam.id = "TRADT10321";
- oParam.service = "pharmacyprescriptionapp.BeforeCure";
- oParam.method = "reqGetBeforeCureDeptList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_grd_deptlist=dept";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- ds_send_srchdata.setColumn(0,"sumdeptcd", ds_temp_sumdeptcd.getColumn(0,"deptcd"));
- //submit("TRADT10324");
-
- ds_grd_prcplist.clearData();
- ds_send_srchdata.setColumn(0,"srchorddeptcd", ds_grd_deptlist.getColumn(0,"deptcd"));
- ds_send_srchdata.setColumn(0,"srchorddeptflag", ds_grd_deptlist.getColumn(0,"orddeptflag"));
-
- dsf_createDsRow("ds_send_req", [{col: "srchfromdd", val:ds_send_srchdata.getColumn(0,"srchfromdd") }
- ,{col: "deptflag", val:"" }
- ,{col: "srchdeptnm", val:"" }
- ,{col: "sumdeptcd", val:ds_send_srchdata.getColumn(0,"dutplcecd") }
- ,{col: "srchtodd", val:ds_send_srchdata.getColumn(0,"srchtodd") }
- ,{col: "srchfromtm", val:"000000" }
- ,{col: "srchtotm", val:"240000" }
- ,{col: "srchorddeptcd", val:ds_send_srchdata.getColumn(0,"srchorddeptcd") }
- ,{col: "srchorddeptflag", val:ds_send_srchdata.getColumn(0,"srchorddeptflag") }
- ,{col: "sumkind", val:ds_send_srchdata.getColumn(0,"udsflag") }
- ,{col: "sumflag1", val:ds_send_srchdata.getColumn(0,"drugflag") }
- ,{col: "sumflag2", val:"" }
- ,{col: "sumflag3", val:ds_send_srchdata.getColumn(0,"prcpflag") }
- ,{col: "drugflag", val:ds_send_srchdata.getColumn(0,"drugflag") }
- ,{col: "prcpkindcd", val:"" }
- ,{col: "pid", val:"" }
- ,{col: "drugcd", val:"" }
- ]);
-
- dsf_setDefaultVal(ds_send_req, "srchfromtm:000000,srchtotm:240000");
-
- var oParam = {};
- oParam.id = "TRADT10322";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetSumPrcpList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_grd_sumlist=suminfo";
- oParam.async = false;
-
- tranf_submit(oParam);
- if(ds_grd_deptlist.getColumn(0,"orddeptflag") == "W") {
- group2.caption5.visible = true;
- group2.rdo_prcp.visible = true;
- } else {
- group2.caption5.visible = false;
- group2.rdo_prcp.visible = false;
- }
- }
- function group3_grd_deptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_send_srchdata.setColumn(0,"srchorddeptcd", ds_grd_deptlist.getColumn(ds_grd_deptlist.rowposition,"deptcd"));
- ds_send_srchdata.setColumn(0,"srchorddeptflag", ds_grd_deptlist.getColumn(ds_grd_deptlist.rowposition,"orddeptflag"));
-
- var oParam = {};
- oParam.id = "TRADT10325";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetDrugSumPrcp";
- oParam.inds = "req=ds_send_srchdata";
- oParam.outds = "ds_grd_sumlist=suminfo";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_send_srchdata.setColumn(0,"srchprcpcd", ds_grd_sumlist.getColumn(0,"prcpcd"));
- var oParam = {};
- oParam.id = "TRADT10327";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetDrugSumPrcpList";
- oParam.inds = "req=ds_send_srchdata";
- oParam.outds = "ds_grd_prcplist=prcpinfo";
- oParam.async = false;
-
- tranf_submit(oParam);
- }
- function group3_grd_sumlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_send_srchdata.setColumn(0,"srchprcpcd", ds_grd_sumlist.getColumn(e.row,"prcpcd"));
- var drugflag = utlf_transNullToEmpty(group2.cp_checkbox1.getData()) + "," + utlf_transNullToEmpty(group2.cp_checkbox4.getData());
- drugflag = drugflag.replace(",", " ");
- ds_send_srchdata.setColumn(0,"drugflag", drugflag);
- ds_send_srchdata.setColumn(0,"prcpkindcd", String(utlf_transNullToEmpty(group2.rdo_prcp.getData())).replace("," , " "));
- //ds_send_srchdata.setColumn(0,"prcpkindcd", String(utlf_transNullToEmpty(group2.rdo_prcp.getData())));
-
-
- dsf_createDsRow("ds_send_req", [{col: "srchfromdd", val:ds_send_srchdata.getColumn(0,"srchfromdd") }
- ,{col: "srchtodd", val:ds_send_srchdata.getColumn(0,"srchtodd") }
- ,{col: "srchfromtm", val:"000000" }
- ,{col: "srchtotm", val:"240000" }
- ,{col: "srchprcpcd", val:ds_send_srchdata.getColumn(0,"srchprcpcd") }
- ,{col: "srchorddeptcd", val:ds_send_srchdata.getColumn(0,"srchorddeptcd") }
- ,{col: "srchorddeptflag", val:ds_send_srchdata.getColumn(0,"srchorddeptflag") }
- ,{col: "sumkind", val:ds_send_srchdata.getColumn(0,"udsflag") }
- ,{col: "sumflag1", val:ds_send_srchdata.getColumn(0,"drugflag") }
- ,{col: "sumflag2", val:ds_send_srchdata.getColumn(0,"prcpkindcd") }
- ,{col: "sumflag3", val:ds_send_srchdata.getColumn(0,"prcpflag") }
- ,{col: "drugflag", val:ds_send_srchdata.getColumn(0,"drugflag") }
- ,{col: "prcpkindcd", val:ds_send_srchdata.getColumn(0,"prcpkindcd") }
- ,{col: "pid", val:"" }
- ,{col: "drugcd", val:"" }
- ,{col: "sumver", val:"" }
- ,{col: "spclflag1", val:"" }
- ,{col: "spclflag2", val:"" }
- ,{col: "spclflag3", val:"" }
- ]);
-
- var oParam = {};
- oParam.id = "TRADT10323";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetPrcpList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_grd_prcplist=prcpinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT10303";
- tranf_submit(oParam);
-
- }
- function group4_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_createDs("ds_temp_prntprcpinfo");
- dsf_createDs("ds_temp_prntprcpinfo_prntinfo");
- dsf_copyDs(ds_temp_prntprcpinfo, ds_grd_sumlist,"replace");
- ds_temp_prntprcpinfo.addColumn("wardnm","string");
- ds_temp_prntprcpinfo_prntinfo.addColumn("sumfromdd","string");
- ds_temp_prntprcpinfo_prntinfo.addColumn("sumtodd","string");
- ds_temp_prntprcpinfo_prntinfo.addColumn("sumflagnm","string");
- ds_temp_prntprcpinfo_prntinfo.addColumn("wardnm","string");
- ds_temp_prntprcpinfo_prntinfo.addRow();
- ds_temp_prntprcpinfo_prntinfo.setColumn(0,"sumfromdd", ds_send_srchdata.getColumn(0,"srchfromdd"));
- ds_temp_prntprcpinfo_prntinfo.setColumn(0,"sumtodd", ds_send_srchdata.getColumn(0,"srchtodd"));
- ds_temp_prntprcpinfo_prntinfo.setColumn(0,"sumflagnm", "주사");
- ds_temp_prntprcpinfo_prntinfo.setColumn(0,"wardnm", "외래주사실");
- ds_temp_prntprcpinfo.addColumn("wardnm","string");
- for(var i = 0 ; i < ds_temp_prntprcpinfo.rowcount ; i++) {
-
- ds_temp_prntprcpinfo.setColumn(i,"wardnm",ds_grd_deptlist.getColumn(0,"depthngnm"));
- }
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/temp/prntprcpinfo/suminfo", ds_temp_prntprcpinfo); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/temp/prntinfo", ds_temp_prntprcpinfo_prntinfo); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
-
- rptf_exeReportPreview30(["RPADT10301"],[objParam], option);
-
-
- //exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
- }
- function group4_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("SMADT11000_openerauth", "R");
- //open("SMADT11000",0,20,150,"SMADT11000","/root/send/srchdata/srchorddeptcd","/root/send/srchorddeptcd");
-
- var objArg = new Object();
- objArg.arg_ds_send_srchdata = ds_send_srchdata;
-
- frmf_open("SMADT11000", "SMADT11000", objArg, null, 0,20,150, null, null, null, null, null, "M");
- }
- function group4_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("집계취소를 ","Q004")==6 ) {
- var oParam = {};
- oParam.id = "TXADT10322";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqExeDrugSumCancel";
- oParam.inds = "req=ds_send_srchdata";
- oParam.outds = "ds_temp_ret=result";
- oParam.async = false;
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRADT10324";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetDrugSum";
- oParam.inds = "req=ds_send_srchdata";
- oParam.outds = "ds_sumterm_suminfo=suminfo";
- oParam.async = false;
-
- tranf_submit(oParam);
- }
- }
- function group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMADT10900", "SMADT10900", "", null, 0,20,150, null, null, null, null, null, "M");
- }
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grd_prcplist.clearData();
- ds_send_srchdata.setColumn(0,"srchorddeptcd", ds_grd_deptlist.getColumn(0,"deptcd"));
- ds_send_srchdata.setColumn(0,"srchorddeptflag", ds_grd_deptlist.getColumn(0,"orddeptflag"));
- var drugflag = utlf_transNullToEmpty(group2.cp_checkbox1.getData()) + "," + utlf_transNullToEmpty(group2.cp_checkbox4.getData());
- drugflag = drugflag.replace(",", " ");
- ds_send_srchdata.setColumn(0,"drugflag", drugflag);
- var prcp = utlf_transNullToEmpty(group2.rdo_prcp.getData());
- prcp = prcp.replace(",", " ");
- ds_send_srchdata.setColumn(0,"prcpkindcd",prcp );
- var prcptemp = group2.cp_checkbox3.getData();
-
- prcptemp = String(prcptemp).replace(",", " ");
-
- ds_send_srchdata.setColumn(0,"prcpflag",prcptemp );
-
- dsf_createDsRow("ds_send_req", [{col: "srchfromdd", val:ds_send_srchdata.getColumn(0,"srchfromdd") }
- ,{col: "srchtodd", val:ds_send_srchdata.getColumn(0,"srchtodd") }
- ,{col: "srchfromtm", val:"000000" }
- ,{col: "srchtotm", val:"240000" }
- ,{col: "srchorddeptcd", val:ds_send_srchdata.getColumn(0,"srchorddeptcd") }
- ,{col: "srchorddeptflag", val:ds_send_srchdata.getColumn(0,"srchorddeptflag") }
- ,{col: "sumkind", val:ds_send_srchdata.getColumn(0,"udsflag") }
- ,{col: "sumflag1", val:ds_send_srchdata.getColumn(0,"drugflag") }
- ,{col: "sumflag2", val:ds_send_srchdata.getColumn(0,"prcpkindcd") }
- ,{col: "sumflag3", val:ds_send_srchdata.getColumn(0,"prcpflag") }
- ,{col: "drugflag", val:ds_send_srchdata.getColumn(0,"drugflag") }
- ,{col: "prcpkindcd", val:ds_send_srchdata.getColumn(0,"prcpkindcd") }
- ,{col: "pid", val:"" }
- ,{col: "drugcd", val:"" }
- ]);
-
- var oParam = {};
- oParam.id = "TRADT10322";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetSumPrcpList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_grd_sumlist=suminfo";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- if(ds_grd_deptlist.getColumn(0,"orddeptflag") == "W") {
- group2.caption5.visible = true;
- group2.rdo_prcp.visible = true;
- } else {
- group2.caption5.visible = false;
- group2.rdo_prcp.visible = false;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|