123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT12002" classname="SMADT12000_통합마약조회" inheritanceid="" position="absolute 0 0 1133 845" titletext="New Form" oninit="SMADT12002_oninit">
- <Layouts>
- <Layout>
- <Static id="caption6" text=" 통합 마약 불출, 반환 관리" class="tit_1" position="absolute 3 1 216 26" onclick="caption6_onclick"/>
- <Static id="caption00" text="불출 현황" class="tit_2" position="absolute 7 72 89 93"/>
- <Grid id="grd_daypatlist" class="grd_daypatlist" taborder="25" binddataset="ds_patdaylist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 6 96 404 835" anchor="all" oncelldblclick="grd_daypatlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="64" band="left"/>
- <Column size="54" band="left"/>
- <Column size="57" band="left"/>
- <Column size="60" band="left"/>
- <Column size="70"/>
- <Column size="39"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="처방일자" wordwrap="char"/>
- <Cell col="2" text="투약번호" wordwrap="char"/>
- <Cell col="3" text="환자번호" wordwrap="char"/>
- <Cell col="4" text="환자명" wordwrap="char"/>
- <Cell col="5" text="약품코드" wordwrap="char"/>
- <Cell col="6" text="수량" wordwrap="char"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" style="align:left top;padding:4 2 3 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:drugdd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="2" displaytype="text" style="align:center top;padding:4 2 3 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:drugno" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="3" style="align:left top;padding:4 2 3 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:pid" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="4" style="align:left top;padding:4 2 3 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:pat_nm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="5" displaytype="text" style="align:left top;padding:4 2 3 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:drugcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="6" displaytype="text" style="align:left top;padding:4 2 1 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:sum_qy" wordwrap="char" autosizerow="limitmin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_srch" taborder="29" class="div_SA" position="absolute 8 32 1104 63">
- <Layouts>
- <Layout width="776" height="31">
- <Calendar id="Calendar00" taborder="1" position="absolute 300 5 400 25" anchor="default"/>
- <Calendar id="Calendar01" taborder="2" position="absolute 428 5 528 25" anchor="default"/>
- <Static id="Static00" text=". 조회구간 :" position="absolute 218 10 297 22" style="font:Dotum,9,bold;"/>
- <Static id="Static01" text="~" position="absolute 408 13 420 17"/>
- <Radio id="radio2" taborder="3" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 636 6 848 26" style="font:Dotum,9,bold;" onitemclick="grp_srch_radio2_onitemclick">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">불출</Col>
- </Row>
- <Row>
- <Col id="codecolumn">R</Col>
- <Col id="datacolumn">반환</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">잔량폐기</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="Static02" text=". 조회구분" position="absolute 562 10 641 22" style="font:Dotum,9,bold;"/>
- <Static id="Static03" text=". 저장소 :" position="absolute 10 10 89 22" style="font:Dotum,9,bold;"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_sea" taborder="30" text="조회" onclick="group2_btn_sea_onclick" class="btn1" position="absolute 1041 37 1097 59"/>
- <Grid id="grd_narclist00" class="grd_orderlist" taborder="31" binddataset="ds_adnmstoclist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" onkeyup="switch1_grd_onkeyup" onheadclick="switch1_case1_grd_narclist_onheadclick" oncelldblclick="switch1_case1_grd_narclist_oncelldblclick" position="absolute 407 96 1116 592">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="27" band="left"/>
- <Column size="60" band="left"/>
- <Column size="60" band="left"/>
- <Column size="50" band="left"/>
- <Column size="77" band="left"/>
- <Column size="95" band="left"/>
- <Column size="111" band="left"/>
- <Column size="75" band="left"/>
- <Column size="127"/>
- <Column size="94"/>
- <Column size="34"/>
- <Column size="22"/>
- <Column size="47"/>
- <Column size="89"/>
- <Column size="65"/>
- <Column size="66"/>
- <Column size="65"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="22"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="환자번호"/>
- <Cell col="2" text="환자명"/>
- <Cell col="3" text="투약번호"/>
- <Cell col="4" text="처방 코드" wordwrap="char"/>
- <Cell col="5" text="LabelNo"/>
- <Cell col="6" text="제품번호" wordwrap="char"/>
- <Cell col="7" text="유효기간" wordwrap="char"/>
- <Cell col="8" text="제조번호" wordwrap="char"/>
- <Cell col="9" text="일련번호" wordwrap="char"/>
- <Cell col="10" colspan="2" text="seq" taborder="undefined">
- <Cell text="seq" wordwrap="char" taborder="undefined"/>
- <Cell col="1"/>
- </Cell>
- <Cell col="12" text="불출유무"/>
- <Cell col="13" text="불출일자"/>
- <Cell col="14"/>
- <Cell col="15"/>
- <Cell col="16" text="불출유무"/>
- <Cell col="17"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:pid"/>
- <Cell col="2" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:pat_nm"/>
- <Cell col="3" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:drugno"/>
- <Cell col="4" style="align:center top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:drugcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="5" text="bind:labelno"/>
- <Cell col="6" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:gtin" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="7" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:prd_valid_de" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="8" displaytype="text" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:mnf_no" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="9" displaytype="text" style="align:left top;padding:4 2 1 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:mnf_seq" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="10" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:seq" taborder="undefined">
- <Cell style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:seq"/>
- </Cell>
- <Cell col="11" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:histno"/>
- <Cell col="12" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:fnshfg"/>
- <Cell col="13" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:outdd"/>
- <Cell col="14" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:instcd"/>
- <Cell col="15" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:infg"/>
- <Cell col="16" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:fnshfg"/>
- <Cell col="17" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- <Grid id="grd_daydrugtong" class="grd_daydrugtong" taborder="32" binddataset="ds_daydrugtong" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" oncelldblclick="grd_daypatlist_oncelldblclick" position="absolute 409 600 1116 833" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="80"/>
- <Column size="59"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="약품코드" wordwrap="char"/>
- <Cell col="2" text="수량" wordwrap="char"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="text" style="align:left top;padding:4 2 3 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:drugcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="2" displaytype="text" style="align:left top;padding:4 2 1 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:sum_qy" wordwrap="char" autosizerow="limitmin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Combo id="Combo00" taborder="33" position="absolute 108 38 208 58" onitemchanged="Combo00_onitemchanged" codecolumn="codecolumn" datacolumn="datacolumn" index="-1">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">3240300000</Col>
- <Col id="datacolumn">병동약국</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3240400000</Col>
- <Col id="datacolumn">외래약국</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3240807000</Col>
- <Col id="datacolumn">특수조제실</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item0" compid="grp_srch.Calendar00" propid="value" datasetid="ds_senddata" columnid="startdate"/>
- <BindItem id="item1" compid="grp_srch.Calendar01" propid="value" datasetid="ds_senddata" columnid="enddate"/>
- <BindItem id="item5" compid="grp_srch.radio2" propid="value" datasetid="ds_senddata" columnid="seltype"/>
- <BindItem id="item2" compid="grp_srch.radio2" propid="" datasetid="ds_senddata" columnid="seltype"/>
- <BindItem id="item3" compid="Combo00" propid="value" datasetid="ds_storgdata" columnid="storge_no"/>
- </Bind>
- <Objects>
- <Dataset id="ds_senddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="storge_no" type="STRING" size="256"/>
- <Column id="startdate" type="STRING" size="256"/>
- <Column id="enddate" type="STRING" size="256"/>
- <Column id="seltype" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_patdaylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="pat_id_no" type="STRING" size="256"/>
- <Column id="pat_nm" type="STRING" size="256"/>
- <Column id="sum_qy" type="STRING" size="256"/>
- <Column id="seltype" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_sendpatdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="seltype" type="STRING" size="256"/>
- <Column id="pat_id_no" type="STRING" size="256"/>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="rtype" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_adnmstoclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="instcd" type="STRING" size="256"/>
- <column id="drugcd" type="STRING" size="256"/>
- <column id="infg" type="STRING" size="256"/>
- <column id="histdt" type="STRING" size="256"/>
- <column id="gtin" type="STRING" size="256"/>
- <column id="prd_valid_de" type="STRING" size="256"/>
- <column id="mnf_no" type="STRING" size="256"/>
- <column id="mnf_seq" type="STRING" size="256"/>
- <column id="seq" type="STRING" size="256"/>
- <column id="prd_sgtin" type="STRING" size="256"/>
- <column id="storge_no" type="STRING" size="256"/>
- <column id="prtm_se_nm" type="STRING" size="256"/>
- <column id="prd_min_distb_qy" type="STRING" size="256"/>
- <column id="prd_min_distb_unit" type="STRING" size="256"/>
- <column id="prd_tot_pce_qy" type="STRING" size="256"/>
- <column id="prd_pce_unit" type="STRING" size="256"/>
- <column id="in_pce_qy" type="STRING" size="256"/>
- <column id="indd" type="STRING" size="256"/>
- <column id="opp_bssh_cd" type="STRING" size="256"/>
- <column id="opp_bssh_nm" type="STRING" size="256"/>
- <column id="opp_storge_no" type="STRING" size="256"/>
- <column id="in_dtl_cd" type="STRING" size="256"/>
- <column id="in_trnsfe_se_cd" type="STRING" size="256"/>
- <column id="out_fg" type="STRING" size="256"/>
- <column id="out_pce_qy" type="STRING" size="256"/>
- <column id="fnshfg" type="STRING" size="256"/>
- <column id="prcpno" type="STRING" size="256"/>
- <column id="drugdd" type="STRING" size="256"/>
- <column id="drugno" type="STRING" size="256"/>
- <column id="ioflag" type="STRING" size="256"/>
- <column id="drugseqno" type="STRING" size="256"/>
- <column id="pat_id_no_ty_cd" type="STRING" size="256"/>
- <column id="pat_id_no" type="STRING" size="256"/>
- <column id="pat_in" type="STRING" size="256"/>
- <column id="lcns_asort_cd" type="STRING" size="256"/>
- <column id="lcns_no" type="STRING" size="256"/>
- <column id="prsc_doc_nm" type="STRING" size="256"/>
- <column id="prsc_ord_no" type="STRING" size="256"/>
- <column id="diss_code" type="STRING" size="256"/>
- <column id="once_qy" type="STRING" size="256"/>
- <column id="ade_cnt" type="STRING" size="256"/>
- <column id="tot_dcnt" type="STRING" size="256"/>
- <column id="sum_qy" type="STRING" size="256"/>
- <column id="aft_dsuse_qy" type="STRING" size="256"/>
- <column id="dsuse_se_cd" type="STRING" size="256"/>
- <column id="dsuse_prv_cd" type="STRING" size="256"/>
- <column id="dsuse_mth_cd" type="STRING" size="256"/>
- <column id="dsuse_loc" type="STRING" size="256"/>
- <column id="dsuse_de" type="STRING" size="256"/>
- <column id="dsuse_instt_cd" type="STRING" size="256"/>
- <column id="dsuse_doc_de" type="STRING" size="256"/>
- <column id="outdd" type="STRING" size="256"/>
- <column id="out_bssh_cd" type="STRING" size="256"/>
- <column id="out_bssh_nm" type="STRING" size="256"/>
- <column id="out_storge_no" type="STRING" size="256"/>
- <column id="out_dtl_cd" type="STRING" size="256"/>
- <column id="out_trnsfr_se_cd" type="STRING" size="256"/>
- <column id="insendfg" type="STRING" size="256"/>
- <column id="outsendfg" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="labelno" type="STRING" size="256"/>
- <Column id="indt" type="STRING" size="256"/>
- <Column id="outdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_daydrugtong" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sum_qy" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_storgdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="storge_no" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2018-03-08
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_commonxp::AST.xjs"
- var Arstorge_no = "";
- function SMADT12002_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- // ds_senddata.clearData()
- ds_patdaylist.clearData()
- // ds_sendpatdata.clearData()
- ds_adnmstoclist.clearData()
- ds_daydrugtong.clearData()
- var Vdeptcd = ds_storgdata.getColumn(0, "storge_no") ;
- if ( Vdeptcd == '3240300000') {
- Arstorge_no = "S0002";
- } else if ( Vdeptcd == '3240400000') {
- Arstorge_no = "S0003";
- } else if ( Vdeptcd == '3240807000') {
- Arstorge_no = "S0004";
- } else {
- Arstorge_no = "S0001";
- }
-
- /*3240000000 약제부
- 3240300000 병동약국
- 3240400000 외래약국
- 3240807000 특수조제실
- 3241800000 조제팀
- 3242106000 외래조제
- 3242400000 약무과
- 3242406000 약무정보팀
- 3242500000 조제팀*/
- var sCurDate = utlf_getCurrentDate();
- var currentDate = new Date(sCurDate.substr(0,4), sCurDate.substr(4,2) -1, sCurDate.substr(6,2));
-
- //조회날짜 초기화
- ds_senddata.setColumn( 0, "startdate", currentDate.getAddDate(-7,"D").getDateFormat("YYYYMMDD"));
- ds_senddata.setColumn( 0, "enddate", utlf_getCurrentDate());
- ds_senddata.setColumn(0,"storge_no" , Arstorge_no );
- ds_senddata.setColumn(0,"seltype" , 'O' ); ///"R", "S"
-
- //alert(sysf_getUserInfo("dutplcecd") );
- }
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRADT12003";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetPatDayList";
- oParam.inds = "req=ds_senddata";
- oParam.outds = "ds_patdaylist=patdaylist";
- oParam.async = false;
- tranf_submit(oParam);
- var oParam = {};
- oParam.id = "TRADT12006";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetDayDrugTong";
- oParam.inds = "req=ds_senddata";
- oParam.outds = "ds_daydrugtong=daydrugtong";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function grd_daypatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var cRow = e.row;
- if( cRow > -1 ){
- ds_sendpatdata.setColumn(0, "pid", ds_patdaylist.getColumn(cRow, "pid"));
- ds_sendpatdata.setColumn(0, "pat_id_no", ds_patdaylist.getColumn(cRow, "pat_id_no"));
- ds_sendpatdata.setColumn(0, "drugdd", ds_patdaylist.getColumn(cRow, "drugdd"));
- ds_sendpatdata.setColumn(0, "drugno", ds_patdaylist.getColumn(cRow, "drugno"));
- ds_sendpatdata.setColumn(0, "prcpno", ds_patdaylist.getColumn(cRow, "prcpno"));
- ds_sendpatdata.setColumn(0, "seltype", ds_patdaylist.getColumn(cRow, "seltype"));
- ds_sendpatdata.setColumn(0, "rtype", ds_senddata.getColumn(0, "seltype"));
- // ds_senddata.setColumn(0,"seltype" , 'O' ); ///"R", "S"
-
-
- var oParam = {};
- oParam.id = "TRADT12004";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetPatOrdList";
- oParam.inds = "req=ds_sendpatdata";
- oParam.outds = "ds_adnmstoclist=stocdata";
- oParam.async = false;
- tranf_submit(oParam);
-
- }
-
- }
- function Combo00_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|