SPMNP01803_수술마취 타수술방 처방.xfdl 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP01803" position="absolute 0 0 265 600" titletext="다른방으로 처방" oninit="SPMNP01803_oninit" onload="SPMNP01803_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 256 590" id="grp_data" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 0 32 256 497" id="grd_roomcd" binddataset="ds_main_MnprdrugLists_mnprdruglist" autoenter="select">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="64"/>
  15. <Column size="57"/>
  16. <Column size="57"/>
  17. <Column size="57"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="수술방"/>
  25. <Cell col="1" text="안전재고"/>
  26. <Cell col="2" text="실재고"/>
  27. <Cell col="3" text="사용수량"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell text="bind:oproomnm"/>
  31. <Cell col="1" text="bind:safestocqty" mask="expr:utlf_isNull(safestocqty) ? '' : '#,##0.9999'"/>
  32. <Cell col="2" text="bind:stocqty" mask="expr:utlf_isNull(stocqty) ? '' : '#,##0.9999'"/>
  33. <Cell col="3" displaytype="number" edittype="masknumber" style="align:center;" text="bind:currqty" mask="expr:utlf_isNull(currqty) ? '' : '#,##0.9999'" editautoselect="true"/>
  34. </Band>
  35. </Format>
  36. </Formats>
  37. </Grid>
  38. <Static text="다른방으로 처방&#13;&#10; // fSetLargeGrid(1, 3); // 3 처치처방 &#13;&#10; " position="absolute 0 9 134 25" id="caption14" class="tit_2"/>
  39. <Static text="* 다른방 물품을 사용한 경우 사용수량을 입력하시기 바랍니다.&#13;&#10;* 안전재고 등록 또는 실재고가 없는 경우는 사용수량을 입력하실 수 없습니다." position="absolute 5 500 252 584" id="caption1" style="linespace:5;background:#ffdbb7ff;color:#0000ffff;font:Dotum,9,bold;"/>
  40. <Button position="absolute 214 6 256 25" id="bbt_other" class="btn5" text="저장" onclick="grp_data_bbt_other_onclick"/>
  41. </Layout>
  42. </Layouts>
  43. </Div>
  44. </Layout>
  45. </Layouts>
  46. <Objects>
  47. <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">
  48. <ColumnInfo>
  49. <Column id="oproomnm" type="STRING"/>
  50. <Column id="safestocqty" type="STRING"/>
  51. <Column id="stocqty" type="STRING"/>
  52. <Column id="currqty" type="STRING"/>
  53. </ColumnInfo>
  54. </Dataset>
  55. </Objects>
  56. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  57. * System Name : 경대 의료정보시스템
  58. * Job Name : emr_opanstxp -> SPMNP01803
  59. * Creator : yjh
  60. * Make Date : 2016-06-23
  61. * Description :
  62. *---------------------------------------------------------------------------------------
  63. * Modify Date Modifier Modify Description
  64. *---------------------------------------------------------------------------------------
  65. * 2016-06-23 yjh TF->XP
  66. *
  67. *---------------------------------------------------------------------------------------
  68. ****************************************************************************************/
  69. //=======================================================================================
  70. // Lib Include
  71. //---------------------------------------------------------------------------------------
  72. include "com_commonxp::comm_main.xjs";
  73. //=======================================================================================
  74. // Global Form Variable
  75. //---------------------------------------------------------------------------------------
  76. //=======================================================================================
  77. // Function
  78. //---------------------------------------------------------------------------------------
  79. //=======================================================================================
  80. // Event
  81. //---------------------------------------------------------------------------------------
  82. /****************************************************************************************
  83. * Components : Form
  84. * Components ID : SPMNP01803
  85. * Event : oninit
  86. * Argument : 01.obj : Object Event has occurred
  87. * : 02.e : Event Object
  88. * Description : 화면 처음 초기화시
  89. ****************************************************************************************/
  90. function SPMNP01803_oninit(obj:Form, e:InitEventInfo)
  91. {
  92. frmf_initForm(obj); //폼 초기화
  93. }
  94. /****************************************************************************************
  95. * Components : Form
  96. * Components ID : SPMNP01803
  97. * Event : onload
  98. * Argument : 01.obj : Object Event has occurred
  99. * : 02.e : Event Object
  100. * Description : 화면 로딩 완료시
  101. ****************************************************************************************/
  102. function SPMNP01803_onload(obj:Form, e:LoadEventInfo)
  103. {
  104. try{
  105. ds_main_MnprdrugLists_mnprdruglist.copyData(arg_ds_main_MnprdrugLists_mnprdruglist);
  106. }catch(e){
  107. }
  108. }
  109. /****************************************************************************************
  110. * Components : Dataset
  111. * Components ID : ds_main_MnprdrugLists_mnprdruglist
  112. * Event : oncolumnchanged
  113. * Argument : 01.obj : Object Event has occurred
  114. * : 02.e : Event Object
  115. * Description : 데이터셋 값 변경시
  116. ****************************************************************************************/
  117. function ds_main_MnprdrugLists_mnprdruglist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  118. {
  119. var cPath = ds_main_MnprdrugLists_mnprdruglist;
  120. var StkQty = parseFloat(cPath.getColumn(cPath.rowposition, "stocqty"));
  121. var UseQty = parseFloat(cPath.getColumn(cPath.rowposition, "currqty"));
  122. var sSafestocqty = parseFloat(cPath.getColumn(cPath.rowposition, "safestocqty"));
  123. if( StkQty == 0 && UseQty != 0 && sSafestocqty == 0 ){
  124. alert(cPath.getColumn(cPath.rowposition, "oproomnm")+"번 방의 재고가 없습니다.");
  125. cPath.setColumn(cPath.rowposition, "currqty", "0");
  126. }
  127. }
  128. /****************************************************************************************
  129. * Components : Button
  130. * Components ID : bbt_other
  131. * Event : onclick
  132. * Argument : 01.obj : Object Event has occurred
  133. * : 02.e : Event Object
  134. * Description : 저장버튼 클릭시
  135. ****************************************************************************************/
  136. function grp_data_bbt_other_onclick(obj:Button, e:ClickEventInfo)
  137. {
  138. if( frmf_checkOpener() ){
  139. opener.ds_main_MnprdrugLists_mnprdruglist.clearData();
  140. opener.ds_main_MnprdrugLists_mnprdruglist.copyData(ds_main_MnprdrugLists_mnprdruglist);
  141. opener.fMnphcrusSave();
  142. close();
  143. } else {
  144. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  145. }
  146. }
  147. ]]></Script>
  148. </Form>
  149. </FDL>