123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP01803" position="absolute 0 0 265 600" titletext="다른방으로 처방" oninit="SPMNP01803_oninit" onload="SPMNP01803_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 256 590" id="grp_data" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 32 256 497" id="grd_roomcd" binddataset="ds_main_MnprdrugLists_mnprdruglist" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="64"/>
- <Column size="57"/>
- <Column size="57"/>
- <Column size="57"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="수술방"/>
- <Cell col="1" text="안전재고"/>
- <Cell col="2" text="실재고"/>
- <Cell col="3" text="사용수량"/>
- </Band>
- <Band id="body">
- <Cell text="bind:oproomnm"/>
- <Cell col="1" text="bind:safestocqty" mask="expr:utlf_isNull(safestocqty) ? '' : '#,##0.9999'"/>
- <Cell col="2" text="bind:stocqty" mask="expr:utlf_isNull(stocqty) ? '' : '#,##0.9999'"/>
- <Cell col="3" displaytype="number" edittype="masknumber" style="align:center;" text="bind:currqty" mask="expr:utlf_isNull(currqty) ? '' : '#,##0.9999'" editautoselect="true"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="다른방으로 처방 // fSetLargeGrid(1, 3); // 3 처치처방 " position="absolute 0 9 134 25" id="caption14" class="tit_2"/>
- <Static text="* 다른방 물품을 사용한 경우 사용수량을 입력하시기 바랍니다. * 안전재고 등록 또는 실재고가 없는 경우는 사용수량을 입력하실 수 없습니다." position="absolute 5 500 252 584" id="caption1" style="linespace:5;background:#ffdbb7ff;color:#0000ffff;font:Dotum,9,bold;"/>
- <Button position="absolute 214 6 256 25" id="bbt_other" class="btn5" text="저장" onclick="grp_data_bbt_other_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_MnprdrugLists_mnprdruglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_MnprdrugLists_mnprdruglist_oncolumnchanged">
- <ColumnInfo>
- <Column id="oproomnm" type="STRING"/>
- <Column id="safestocqty" type="STRING"/>
- <Column id="stocqty" type="STRING"/>
- <Column id="currqty" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SPMNP01803
- * Creator : yjh
- * Make Date : 2016-06-23
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-06-23 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP01803
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNP01803_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP01803
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNP01803_onload(obj:Form, e:LoadEventInfo)
- {
- try{
- ds_main_MnprdrugLists_mnprdruglist.copyData(arg_ds_main_MnprdrugLists_mnprdruglist);
- }catch(e){
-
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_MnprdrugLists_mnprdruglist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_main_MnprdrugLists_mnprdruglist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- var cPath = ds_main_MnprdrugLists_mnprdruglist;
- var StkQty = parseFloat(cPath.getColumn(cPath.rowposition, "stocqty"));
- var UseQty = parseFloat(cPath.getColumn(cPath.rowposition, "currqty"));
- var sSafestocqty = parseFloat(cPath.getColumn(cPath.rowposition, "safestocqty"));
-
- if( StkQty == 0 && UseQty != 0 && sSafestocqty == 0 ){
- alert(cPath.getColumn(cPath.rowposition, "oproomnm")+"번 방의 재고가 없습니다.");
- cPath.setColumn(cPath.rowposition, "currqty", "0");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : bbt_other
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function grp_data_bbt_other_onclick(obj:Button, e:ClickEventInfo)
- {
- if( frmf_checkOpener() ){
- opener.ds_main_MnprdrugLists_mnprdruglist.clearData();
- opener.ds_main_MnprdrugLists_mnprdruglist.copyData(ds_main_MnprdrugLists_mnprdruglist);
- opener.fMnphcrusSave();
- close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|