SPLLJ90200_UrineVolume.xfdl 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLJ90200" position="absolute 0 0 344 157" titletext="Urine Volume" onload="SPLLJ90200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="div" position="absolute 0 0 343 147" anchor="default" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption2" class="cell_1" position="absolute 13 97 113 121" anchor="default" text="Urine Volume" positiontype="position"/>
  11. <Shape id="line1" class="line_1" position="absolute 0 26 310 26" anchor="default" linetype="horizontal" positiontype="position"/>
  12. <Shape id="line2" class="line_2" position="absolute 0 77 310 77" anchor="default" linetype="horizontal" positiontype="position"/>
  13. <Shape id="line6" class="line_2" position="absolute 0 53 310 53" anchor="default" linetype="horizontal" positiontype="position"/>
  14. <Shape id="line8" class="line_3" position="absolute 0 101 310 101" anchor="default" linetype="horizontal" positiontype="position"/>
  15. <Static id="caption3" class="cell_1" position="absolute 13 47 113 71" anchor="default" text="검체번호" positiontype="position"/>
  16. <Static id="caption4" class="cell_1" position="absolute 13 72 113 96" anchor="default" text="Urine 수거시간" positiontype="position"/>
  17. <Button id="btn_cnfm" class="btn5" position="absolute 271 125 315 145" anchor="default" text="확인" onclick="div_btn_cnfm_onclick" positiontype="position"/>
  18. <Edit readonly="true" id="edt_bcno" position="absolute 116 49 311 69" anchor="default" maxlength="9" positiontype="position"/>
  19. <Radio id="rdo_urine" columncount="4" position="absolute 118 74 339 94" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" value="24" index="0" positiontype="position">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn" size="256"/>
  23. <Column id="datacolumn" size="256"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">24</Col>
  28. <Col id="datacolumn">24Hr</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">16</Col>
  32. <Col id="datacolumn">16Hr</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">12</Col>
  36. <Col id="datacolumn">12Hr</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">8</Col>
  40. <Col id="datacolumn">8Hr</Col>
  41. </Row>
  42. </Rows>
  43. </Dataset>
  44. </Radio>
  45. <MaskEdit id="edt_volume" class="input_essential" mask="#####" position="absolute 116 99 311 119" anchor="default" onkeydown="div_edt_volume_onkeydown" autoselect="true" style="align:left middle;" positiontype="position"/>
  46. </Layout>
  47. </Layouts>
  48. </Div>
  49. </Layout>
  50. </Layouts>
  51. <Objects>
  52. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  53. </Objects>
  54. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  55. * System Name : KU2.0
  56. * Job Name :
  57. * File Name : SPLLJ90200_UrineVolume.xfdl
  58. * Creator :
  59. *
  60. * Description :
  61. *---------------------------------------------------------------------------------------
  62. * Modify Date Modifier Modify Description
  63. *---------------------------------------------------------------------------------------
  64. *
  65. *---------------------------------------------------------------------------------------
  66. ****************************************************************************************/
  67. //=======================================================================================
  68. // Lib Include
  69. //---------------------------------------------------------------------------------------
  70. include "com_commonxp::comm_main.xjs";
  71. //=======================================================================================
  72. // Function
  73. //---------------------------------------------------------------------------------------
  74. //콜백함수
  75. function cbf_SPLLJ90200(strSvcID, nErrorCode, strErrorMag){
  76. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  77. if(strSvcID == "TXLLJ90201" && nErrorCode==0){
  78. close("return value");
  79. }
  80. }
  81. function lf_setUrineVolume(){
  82. var vVol = div.edt_volume.value;
  83. if(utlf_isNull(vVol)){
  84. sysf_messageBox("Urine Volume 값을", "C001", "");
  85. return;
  86. }
  87. if(vVol.isFloat){
  88. sysf_messageBox("Urine Volume 값은 수치만입력 가능합니다.", "C");
  89. div.edt_volume.value = "";
  90. return;
  91. }
  92. div.edt_bcno.value = ds_parm.getColumn(0, "bcno");
  93. div.rdo_urine.value = ds_parm.getColumn(0, "urinedt");
  94. trace("bcno:"+ds_parm.getColumn(0, "bcno"));
  95. var sInDsName = dsf_createDsRow("ds_temp_search"
  96. , [{col: "bcno", val: ds_parm.getColumn(0, "bcno")}
  97. , {col: "urinetm", val: ds_parm.getColumn(0, "urinedt")}
  98. , {col: "urinevol", val: div.edt_volume.value}]);
  99. trace( ds_temp_search.saveXML());
  100. // 서브밋호출
  101. tranf_submit({ id: "TXLLJ90201"
  102. , service: "acptmngtapp.AcptMngt"
  103. , method: "reqSetUrineVolume"
  104. , inds : "cond="+sInDsName
  105. , callback: "cbf_SPLLJ90200"
  106. , async: false
  107. });
  108. }
  109. //=======================================================================================
  110. // Event
  111. //---------------------------------------------------------------------------------------
  112. /****************************************************************************************
  113. * Components :
  114. * Components ID : SPLLJ90200
  115. * Event : onload
  116. * Argument : 01.obj : Object Event has occurred
  117. * : 02.e : Event Object
  118. * Description :
  119. ****************************************************************************************/
  120. function SPLLJ90200_onload(obj:Form, e:LoadEventInfo){
  121. //폼 초기화 함수
  122. frmf_initForm(obj);
  123. ds_hidden.copyData(arg_ds_hidden);
  124. div.edt_bcno.value = ds_hidden.getColumn(0,"bcno");
  125. dsf_createDs("ds_parm"
  126. , [{col: "bcno"}
  127. , {col: "urinedt"}]);
  128. var nRow = ds_parm.addRow();
  129. ds_parm.setColumn(nRow, "bcno", ds_hidden.getColumn(0,"bcno"));
  130. ds_parm.setColumn(nRow, "urinedt", "24");
  131. div.edt_volume.setFocus();
  132. }
  133. /****************************************************************************************
  134. * Components :
  135. * Components ID : edt_volume
  136. * Event : onkeydown
  137. * Argument : 01.obj : Object Event has occurred
  138. * : 02.e : Event Object
  139. * Description :
  140. ****************************************************************************************/
  141. function div_edt_volume_onkeydown(obj:MaskEdit, e:KeyEventInfo){
  142. if(e.keycode == 13){
  143. lf_setUrineVolume();
  144. }
  145. }
  146. /****************************************************************************************
  147. * Components :
  148. * Components ID : btn_cnfm
  149. * Event : onclick
  150. * Argument : 01.obj : Object Event has occurred
  151. * : 02.e : Event Object
  152. * Description :
  153. ****************************************************************************************/
  154. function div_btn_cnfm_onclick(obj:Button, e:ClickEventInfo){
  155. lf_setUrineVolume();
  156. }
  157. /****************************************************************************************
  158. * Components :
  159. * Components ID : btn_exit
  160. * Event : onclick
  161. * Argument : 01.obj : Object Event has occurred
  162. * : 02.e : Event Object
  163. * Description :
  164. ****************************************************************************************/
  165. function btn_exit_onclick(obj:Button, e:ClickEventInfo){
  166. close("return value");
  167. }
  168. ]]></Script>
  169. </Form>
  170. </FDL>