123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT12260" classname="SMADT12260_마약류연계보고결상세내역조회" inheritanceid="" position="absolute 0 0 1104 650" titletext="연계보고 결과 상세내역 조회" onload="SMADT12260_onload" oninit="SMADT12260_oninit">
- <Layouts>
- <Layout>
- <Static id="caption01" text="연계보고 상세내역 조회" class="tit_2" position="absolute -1 48 159 69"/>
- <Grid id="grd_pmmrlist" taborder="17" binddataset="ds_pmmrlist" autoenter="select" useinputpanel="false" selecttype="row" cellsizingtype="both" position="absolute 0 69 1100 608" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="49"/>
- <Column size="60"/>
- <Column size="57"/>
- <Column size="61"/>
- <Column size="255"/>
- <Column size="67"/>
- <Column size="110"/>
- <Column size="72"/>
- <Column size="108"/>
- <Column size="67"/>
- <Column size="42"/>
- <Column size="37"/>
- <Column size="40"/>
- </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="제조번호"/>
- <Cell col="9" text="일련번호"/>
- <Cell col="10" text="유효기간"/>
- <Cell col="11" colspan="2" text="조제수량" taborder="undefined"/>
- <Cell col="13" text="폐기량"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="combo" style="align:center;background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:flag" combodataset="ds_flag" combocodecol="cd" combodatacol="nm"/>
- <Cell col="2" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:pid"/>
- <Cell col="3" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:mdc_pat_nm"/>
- <Cell col="4" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:drugno"/>
- <Cell col="5" style="align:left;padding:0 0 0 5;background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:prduct_nm"/>
- <Cell col="6" displaytype="combo" style="align:center;background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:storge_no" combodataset="ds_storge" combocodecol="cd" combodatacol="nm"/>
- <Cell col="7" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:prduct_cd"/>
- <Cell col="8" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:mnf_no"/>
- <Cell col="9" style="align:left;padding:0 0 0 5;background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:mnf_seq"/>
- <Cell col="10" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:prd_valid_de"/>
- <Cell col="11" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:pce_qy"/>
- <Cell col="12" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:prd_pce_unit"/>
- <Cell col="13" style="background:EXPR(flag=='2'?'#ffe79d':'');background2:EXPR(flag=='2'?'#ffe79d':'');" text="bind:mdc_aft_dsuse_qy"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line7" class="line_10" position="absolute 0 64 1100 70" anchor="left top right"/>
- <Div id="grp_search" anchor="left top right" taborder="19" class="div_SA2" position="absolute 0 0 1100 35">
- <Layouts>
- <Layout>
- <Static id="caption1" text="연계파일명 :" class="search_name" position="absolute 325 10 409 27" anchor="default"/>
- <Edit id="ipt_file_name" taborder="1" imemode="alpha" inputmode="upper" autoselect="true" class="output" position="absolute 414 8 660 27" anchor="default" readonly="true"/>
- <Static id="caption00" text="사용자보고식별번호 :" class="search_name" position="absolute 13 10 149 27" anchor="default"/>
- <Edit id="ipt_usr_prt_id_no" taborder="2" imemode="alpha" inputmode="upper" autoselect="true" class="output" position="absolute 154 8 305 27" anchor="default" readonly="true"/>
- <Static id="caption02" text="결과파일명 :" class="search_name" position="absolute 669 10 753 27"/>
- <Edit id="ipt_result_file_name" taborder="3" imemode="alpha" inputmode="upper" readonly="true" autoselect="true" class="output" position="absolute 758 8 1023 27"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cls" taborder="20" text="닫기" onclick="btn_cls_onclick" class="btn3" position="absolute 1035 617 1091 639"/>
- <Button id="btn_download" taborder="21" text="엑셀 Download" class="btn2" visible="false" position="absolute 992 45 1100 64" anchor="top right" onclick="btn_download_onclick"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item12" compid="SMADT12160" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
- <BindItem id="item3" compid="grp_search.ipt_file_name" propid="value" datasetid="ds_send_search" columnid="file_name"/>
- <BindItem id="item0" compid="grp_search.ipt_usr_prt_id_no" propid="value" datasetid="ds_send_search" columnid="usr_rpt_id_no"/>
- <BindItem id="item1" compid="grp_search.ipt_result_file_name" propid="value" datasetid="ds_send_search" columnid="result_file_name"/>
- </Bind>
- <Objects>
- <Dataset id="ds_pmmrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usr_rpt_id_no" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="mdc_pat_nm" type="STRING" size="256"/>
- <Column id="prduct_nm" type="STRING" size="256"/>
- <Column id="storge_no" type="STRING" size="256"/>
- <Column id="prduct_cd" type="STRING" size="256"/>
- <Column id="mnf_no" type="STRING" size="256"/>
- <Column id="mnf_seq" type="STRING" size="256"/>
- <Column id="prd_valid_de" type="STRING" size="256"/>
- <Column id="pce_qy" type="STRING" size="256"/>
- <Column id="prd_pce_unit" type="STRING" size="256"/>
- <Column id="mdc_aft_dsuse_qy" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="result_file_name" type="STRING" size="256"/>
- <Column id="usr_rpt_id_no" type="STRING" size="256"/>
- <Column id="file_name" type="STRING" size="256"/>
- <Column id="ref_usr_rpt_id_no" type="STRING" size="256"/>
- <Column id="rpt_ty_cd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_storge" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">S0001</Col>
- <Col id="nm">기본저장소</Col>
- </Row>
- <Row>
- <Col id="cd">S0002</Col>
- <Col id="nm">병동약국</Col>
- </Row>
- <Row>
- <Col id="cd">S0003</Col>
- <Col id="nm">외래약국</Col>
- </Row>
- <Row>
- <Col id="cd">S0004</Col>
- <Col id="nm">마취회복실</Col>
- </Row>
- <Row>
- <Col id="cd">S0005</Col>
- <Col id="nm">내시경실</Col>
- </Row>
- <Row>
- <Col id="cd">S0006</Col>
- <Col id="nm">45병동(주사실)</Col>
- </Row>
- <Row>
- <Col id="cd">S0007</Col>
- <Col id="nm">PICU</Col>
- </Row>
- <Row>
- <Col id="cd">S0008</Col>
- <Col id="nm">ICU</Col>
- </Row>
- <Row>
- <Col id="cd">S0009</Col>
- <Col id="nm">응급실</Col>
- </Row>
- <Row>
- <Col id="cd">S0010</Col>
- <Col id="nm">비치약품관리소</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">변경전</Col>
- </Row>
- <Row>
- <Col id="cd">2</Col>
- <Col id="nm">변경후</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : ast_pharmacydrugsumxp-> SMADT12160
- * Creator : pjb
- * Make Date : 2018-05-08
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2018-05-08 pjb XP개발
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //include "mis_miscommonxp::MIS.xjs";
- //include "mis_humtrafactmngtxp::RPB001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADT12160
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMADT12260_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- function SMADT12260_oninit(obj:Form, e:InitEventInfo)
- {
- fInit();
-
-
-
- //if (arErrorCode.pop("TRADT12161") > -1){
- //}
-
- }
- function fInit() {
- //grdf_setRowTypeIcon(grd_errorlist, 0);
- grdf_setGridSort(grd_pmmrlist);
- // 오프너에서 전달받은 정보
- try{
- dsf_copyDs(ds_send_search, arg_ds_resultinfo, "replace");
- }catch(e){}
-
-
- var rpt_ty_cd =ds_send_search.getColumn(0, "rpt_ty_cd");
-
- if(rpt_ty_cd == "2") {
- grd_pmmrlist.setFormatColProperty(1,"size",45);
- } else {
- grd_pmmrlist.setFormatColProperty(1,"size",0);
- }
-
-
- //연계보고결과조회
- var oParam = {};
- oParam.id = "TRADT12261";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetSendDetailInfo";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_pmmrlist=info";
- oParam.async = false;
- //oParam.callback = "cf_TRADT12161";
- tranf_submit(oParam);
- }
- function cf_TRADT12261(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btn_download_onclick(obj:Button, e:ClickEventInfo)
- {
- //조회된 자료가 없으면 먼저 조회하라고 message
- if(ds_pmmrlist.rowcount < 1) {
- sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
- return;
- }
-
- grdf_exportExcel(ds_pmmrlist, "excel", "savetype", false, "", "user", false);
-
- }
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|