123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNR02200" position="absolute 0 0 1256 805" titletext="약물계산식관리" onload="SMMNR02200_onload" oninit="SMMNR02200_oninit">
- <Layouts>
- <Layout>
- <Div id="grp_btn" position="absolute 0 757 1195 784" anchor="default" positiontype="position" scrollbars="autoboth">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Static id="caption6" text="약물계산식관리" class="tit_1" position="absolute 0 3 160 32" positiontype="position"/>
- <Static id="caption42" text="계산항목 리스트" class="tit_2" position="absolute 0 33 160 53" positiontype="position"/>
- <Grid id="grd_itemlist" class="datagrid2" taborder="1" useinputpanel="false" position="absolute 0 53 616 805" onlbuttonDown="grd_itemlist_onlbuttonDown" autofittype="col" anchor="left top bottom" binddataset="ds_grid_grd_itemlist" positiontype="position" onbuttondown="grd_itemlist_onbuttondown" onclick="grd_itemlist_onclick" onrbuttondown="grd_itemlist_onrbuttondown" oncellclick="grd_itemlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="239"/>
- <Column size="299"/>
- <Column size="54"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="항목명"/>
- <Cell col="2" text="항목설명"/>
- <Cell col="3" text="조회순서"/>
- <Cell col="4" text="itemcd"/>
- <Cell col="5" text="calform"/>
- <Cell col="6" text="supcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="image" expr="expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:itemnm"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:desccnts"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:refseq"/>
- <Cell col="4" text="bind:itemcd"/>
- <Cell col="5" text="bind:calform"/>
- <Cell col="6" text="bind:supcd"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_srch" taborder="2" text="조회" onlbuttonup="btn_srch_onlbuttonup" class="btn2" position="absolute 500 30 544 50" positiontype="position" onclick="btn_srch_onclick"/>
- <Button id="btn_saveitem" taborder="3" text="항목저장" onlbuttonup="btn_saveitem_onlbuttonup" class="btn2" position="absolute 549 30 617 50" positiontype="position" onclick="btn_saveitem_onclick"/>
- <Static id="caption1" text="약물계산식 관리" class="tit_2" position="absolute 626 33 755 53" anchor="left top" positiontype="position"/>
- <Grid id="grd_elmtlist" class="datagrid2" taborder="4" useinputpanel="false" position="absolute 626 53 1256 436" onlbuttonDown="grd_elmtlist_onlbuttonDown" autofittype="col" anchor="left top right" binddataset="ds_grid_grd_elmtlist" positiontype="position" onbuttondown="grd_elmtlist_onbuttondown" onrbuttondown="grd_elmtlist_onrbuttondown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="224"/>
- <Column size="320"/>
- <Column size="52"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="요소명칭"/>
- <Cell col="2" text="요소설명"/>
- <Cell col="3" text="조회순서"/>
- <Cell col="4" text="itemcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="image" expr="expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:itemnm"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:desccnts"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:refseq"/>
- <Cell col="4" text="bind:itemcd"/>
- <Cell col="5" text="bind:supcd"/>
- <Cell col="6"/>
- <Cell col="7"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="항목별 계산식" class="tit_2" position="absolute 626 446 755 466" anchor="left top" positiontype="position"/>
- <TextArea id="tar_calform" taborder="5" position="absolute 626 466 1256 805" anchor="all" imemode="hangul" positiontype="position" oneditclick="tar_calform_oneditclick" style="font:Dotum,16,bold;"/>
- <Button id="btn_saveelmt" taborder="6" text="요소저장" onlbuttonup="btn_saveelmt_onlbuttonup" class="btn2" position="absolute 1188 30 1256 50" anchor="top right" positiontype="position" onclick="btn_saveelmt_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_itemlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="itemnm" type="STRING"/>
- <Column id="desccnts" type="STRING"/>
- <Column id="refseq" type="STRING"/>
- <Column id="itemcd" type="STRING"/>
- <Column id="calform" type="STRING"/>
- <Column id="supcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_elmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="itemnm" type="STRING"/>
- <Column id="desccnts" type="STRING"/>
- <Column id="refseq" type="STRING"/>
- <Column id="itemcd" type="STRING"/>
- <Column id="supcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_itemlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="m"/>
- <Column id="itemnm"/>
- <Column id="desccnts"/>
- <Column id="refseq"/>
- <Column id="itemcd"/>
- <Column id="calform"/>
- <Column id="supcd"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="supcd" type="STRING" size="256"/>
- <Column id="itemlist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="itemcalform" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="tar_calform" propid="value" datasetid="ds_init" columnid="itemcalform"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * File Name : SMMNR02200_약물계산식관리.xfdl
- * Creator :
- * Make Date :
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "emr_carerecxp::SMMNR022.xjs";
- include "com_commonxp::comm_main.xjs";
- var lfv_itemnm = ""; //검색할 항목코드 또는 명
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SMMNR02200
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMMNR02200_onload(obj:Form, e:LoadEventInfo)
- {
-
- fInitialize();
- frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick", [{id: "add", level: "1", title: "항목추가"},{id: "delete", level: "1", title: "항목삭제"}]);
- frmf_createPopupMenu("pn_popupMenu", "pn_popupMenu_onmenuclick", [{id: "addd", level: "1", title: "요소추가"},{id: "deletee", level: "1", title: "요소삭제"}]);
- ds_grid_grd_itemlist.rowposition = '-1';
-
- }
- function SMMNR02200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_srch
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- fSrchItemList("item");
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_saveitem
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_saveitem_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveItemList("item");
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_saveelmt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_saveelmt_onclick(obj:Button, e:ClickEventInfo)
- {
-
- fSaveItemList("elmt");
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_itemlist
- * Event : onbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_itemlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- pmn_popupMenu.trackPopup(e.screenX,e.screenY);
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_itemlist
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_itemlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSrchItemList("elmt");
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_itemlist
- * Event : onmouseleave
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_itemlist_onmouseleave(obj:Grid, e:MouseEventInfo)
- {
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_elmtlist
- * Event : onbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_elmtlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- pn_popupMenu.trackPopup(e.screenX,e.screenY);
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_elmtlist
- * Event : onmouseleave
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_elmtlist_onmouseleave(obj:Grid, e:MouseEventInfo)
- {
- //window.setPopupMenu(false);
-
- }
- function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo){
- if(e.id == "add"){
- fAddItem()
- }else if(e.id == "delete"){
- fDelItem()
- }
- }
- function pn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo){
- if(e.id == "addd"){
- fAddElmt()
- }else if(e.id == "deletee"){
- fDelElmt()
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|