123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP01801" position="absolute 0 0 1005 655" titletext="약속처방 조회" oninit="SPMNP01801_oninit" onload="SPMNP01801_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 995 646" id="grp_stemain" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 1 990 292" id="group2">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 28 990 289" treeusecheckbox="false" id="trv_setcode" treeinitstatus="collapse,all" autofittype="col" selecttype="treecell" binddataset="ds_main_MmbhprmsLists_settreelist" oncellclick="grp_stemain_group2_trv_setcode_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="500"/>
- </Columns>
- <Rows>
- <Row size="18"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" style="line:0 none #808080ff ;" text="bind:codenm" treestartlevel="1" treelevel="bind:depth"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 23 990 29" linetype="horizontal" id="line16" class="line_10"/>
- <Static text="약속처방조회" position="absolute 0 7 103 23" id="caption8" class="tit_2"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 317 990 323" linetype="horizontal" id="line18" class="line_10"/>
- <Button position="absolute 945 296 987 315" id="bbt_append1" class="btn2" visible="true" text="추가" onclick="grp_stemain_bbt_append1_onclick"/>
- <Grid position="absolute 0 322 990 642" id="grd_setcode" binddataset="ds_main_MmbhppdsLists_mmbhppdslist" onheadclick="grp_stemain_grd_setcode_onheadclick" cellsizingtype="both" selecttype="multirow" extendsizetype="row" autosizingtype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="70"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="300"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="85"/>
- <Column size="50"/>
- <Column size="84"/>
- <Column size="53"/>
- <Column size="45"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="checkbox" edittype="checkbox" expr="0"/>
- <Cell col="1" text="처방코드"/>
- <Cell col="2" text="Size"/>
- <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" text="횟수"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:fcheck"/>
- <Cell col="1" style="align:left;padding:2 2 2 2;" text="bind:goodcd" wordwrap="word"/>
- <Cell col="2" text="bind:allsizespecid"/>
- <Cell col="3" text="bind:calculyn"/>
- <Cell col="4" style="align:left;padding:2 2 2 2;" text="bind:goodengnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="5" style="align:left;padding:2 2 2 2;" text="bind:goodspec" wordwrap="char"/>
- <Cell col="6" text="bind:goodmodel"/>
- <Cell col="7" text="bind:prodcmpynm"/>
- <Cell col="8" text="bind:prcpunit"/>
- <Cell col="9" text="bind:custnm"/>
- <Cell col="10" displaytype="combo" edittype="none" text="bind:useflag" combodataset="ds_grd_useflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="11" text="bind:drprcpetc8"/>
- <Cell col="12" text="bind:makernm"/>
- <Cell col="13" text="bind:instcd"/>
- <Cell col="14" text="bind:payflagcd"/>
- <Cell col="15" text="bind:prcpunit"/>
- <Cell col="16" text="bind:goodcls"/>
- <Cell col="17" text="bind:goodflag"/>
- <Cell col="18" text="bind:cureflag"/>
- <Cell col="19" text="bind:prcpclscd"/>
- <Cell col="20" text="bind:drugmthdspccd"/>
- <Cell col="21" text="bind:checkgoodcd"/>
- <Cell col="22" text="bind:stocqty"/>
- <Cell col="23" text="bind:acmlbaseqty"/>
- <Cell col="24" text="bind:reqmthd"/>
- <Cell col="25" text="bind:purcflag"/>
- <Cell col="26" text="bind:insuyn"/>
- <Cell col="27" text="bind:calcscorcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 900 296 942 315" id="button1" class="btn2" text="엑셀" onclick="grp_stemain_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드"/>
- <Column id="setno" type="INT" size="256" sumtext=" 처방 Set코드"/>
- <Column id="oproomcd" type="STRING" size="256" sumtext=" 수술방코드"/>
- <Column id="cartgubn" type="STRING" size="256" sumtext=" Cart 구분"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험여부"/>
- <Column id="payflagcd" type="STRING" size="256" sumtext="급비여부"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_MmbhprmsLists_settreelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depth" type="STRING" size="256" sumtext=" 01 Depth "/>
- <Column id="codecd" type="STRING" size="256" sumtext=" 02 코드 "/>
- <Column id="codenm" type="STRING" size="256" sumtext=" 03 명칭 "/>
- <Column id="settrgtcd" type="STRING" size="256" sumtext=" 04 진료과코드 "/>
- <Column id="setno" type="STRING" size="256" sumtext=" 05 약처방SET Code "/>
- <Column id="settypecd" type="STRING" size="256" sumtext=" 06 SET에대한형태(M0023참조) "/>
- <Column id="drugmthdspccd" type="STRING" size="256" sumtext=" 07 투여방법 및 검체코드 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_MmbhppdsLists_mmbhppdslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_MmbhppdsLists_mmbhppdslist_oncolumnchanged">
- <ColumnInfo>
- <Column id="goodengnm" type="STRING" size="256" sumtext=" 01 물품명"/>
- <Column id="makernm" type="STRING" size="256" sumtext=" 02 제조원"/>
- <Column id="goodqty" type="STRING" size="256" sumtext=" 03 수량"/>
- <Column id="instcd" type="STRING" size="256" sumtext=" 04 기관코드"/>
- <Column id="goodcd" type="STRING" size="256" sumtext=" 05 물품코드"/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext=" 06 Size 코드"/>
- <Column id="payflagcd" type="STRING" size="256" sumtext=" 07 급여구분"/>
- <Column id="goodspec" type="STRING" size="256" sumtext=" 08 Size내역"/>
- <Column id="goodmodel" type="STRING" size="256" sumtext=" 09 물품모델"/>
- <Column id="prcpunit" type="STRING" size="256" sumtext=" 10 처방단위"/>
- <Column id="goodcls" type="STRING" size="256" sumtext=" 11 물품(처치)구분"/>
- <Column id="custnm" type="STRING" size="256" sumtext=" 12 거래처"/>
- <Column id="useflag" type="STRING" size="256" sumtext=" 13 사용구분"/>
- <Column id="goodflag" type="STRING" size="256" sumtext=" 14 물품구분"/>
- <Column id="cureflag" type="STRING" size="256" sumtext=" 15 처치구분"/>
- <Column id="prcpclscd" type="STRING" size="256" sumtext=" 16 처방분류"/>
- <Column id="fcheck" type="STRING" size="256" sumtext=" 17 Check Flag"/>
- <Column id="drugmthdspccd" type="STRING" size="256" sumtext=" 18 투여방법 및 검체코드"/>
- <Column id="checkgoodcd" type="STRING" size="256" sumtext=" 19 CCR 물품코드"/>
- <Column id="stocqty" type="STRING" size="256" sumtext=" 20 현재 수술방 재고량"/>
- <Column id="acmlbaseqty" type="STRING" size="256" sumtext=" 21 기준 수량"/>
- <Column id="prcpclscd" type="STRING" size="256" sumtext=" 22 처방분류"/>
- <Column id="reqmthd" type="STRING" size="256" sumtext=" 23 청구방법"/>
- <Column id="purcflag" type="STRING" size="256" sumtext=" 24 구매구분"/>
- <Column id="calculyn" type="STRING" size="256" sumtext=" 25 산정여부"/>
- <Column id="insuyn" type="STRING" size="256" sumtext=" 26 보험여부"/>
- <Column id="calcscorcd" type="STRING" size="256" sumtext=" 27 수가코드"/>
- <!-- 20110111_KNUH_Start 일회용량,일회수량 추가. -->
- <Column id="drprcpetc7" type="STRING" size="256" sumtext=" 28 일회용량"/>
- <Column id="drprcpetc8" type="STRING" size="256" sumtext=" 29 일회수량"/>
- <Column id="grupcd" type="STRING" size="256" sumtext="기왕증유무"/>
- <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증유무"/>
- <Column id="subcretno" type="STRING" size="256" sumtext="부유형"/>
- <!-- 20110111_KNUH_End 일회용량,일회수량 추가. -->
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_useflag" 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">Y</Col>
- </Row>
- <Row>
- <Col id="label">분할사용</Col>
- <Col id="value">Z</Col>
- </Row>
- <Row>
- <Col id="label">1회사용</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SPMNP01801
- * Creator : yjh
- * Make Date : 2016-02-12
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-02-12 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_opanstxp::SPMNP01801.xjs"; //yjh : 커밋
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP01801
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNP01801_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP01801
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNP01801_onload(obj:Form, e:LoadEventInfo)
- {
- fInit1801();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : trv_setcode
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function grp_stemain_group2_trv_setcode_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fTreeClick(grp_stemain.group2.trv_setcode.currentrow);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : bbt_append1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 추가버튼 클릭시
- ****************************************************************************************/
- function grp_stemain_bbt_append1_onclick(obj:Button, e:ClickEventInfo)
- {
- fCopyGood();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼 클릭시
- ****************************************************************************************/
- function grp_stemain_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_MmbhppdsLists_mmbhppdslist.rowcount > 0 ){
- grdf_exportExcel(grp_stemain.grd_setcode, "수술마취약속처방", "약속처방", false, "", "user", false);
- } else {
- sysf_messageBox("자료가 존재하지 않습니다.", "E999", "");
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_setcode
- * Event : onheadclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 헤더 클릭시
- ****************************************************************************************/
- function grp_stemain_grd_setcode_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- switch( e.col ){
- case 0 :
- if( obj.getCellProperty("Head", e.col, "expr") == "0" ){
- obj.setCellProperty("Head", e.col, "expr", "1");
- }else{
- obj.setCellProperty("Head", e.col, "expr", "0");
- }
-
- grdf_setGridCheckAll(obj, e);
-
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_MmbhppdsLists_mmbhppdslist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_main_MmbhppdsLists_mmbhppdslist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "fcheck" :
- if( e.newvalue == "0" ){
- grp_stemain.grd_setcode.setCellProperty("Head", 0, "expr", "0");
- }
- break;
-
- default :
- break;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|