SPLLC90300_채취일시등록.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLC90300" position="absolute 0 0 758 490" titletext="채취일시등록" oninit="model1_oninit" onload="SPLLC90300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 758 490" anchor="all" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" class="tit_2" position="absolute 0 67 73 87" anchor="default" text="환자정보" positiontype="position"/>
  11. <Shape id="line1" class="line_1" position="absolute 0 70 700 70" anchor="default" linetype="horizontal" positiontype="position"/>
  12. <Grid id="grd_extrdtreg" position="absolute 0 89 758 468" anchor="all" autofittype="col" binddataset="ds_grid_grd_extrdtreg" cellmovingtype="none" autosizingtype="none" cellsizingtype="col" class="CSS::lis.css" positiontype="position">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="30"/>
  17. <Column size="84"/>
  18. <Column size="123"/>
  19. <Column size="62"/>
  20. <Column size="68"/>
  21. <Column size="50"/>
  22. <Column size="105"/>
  23. <Column size="200"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell/>
  31. <Cell col="1" text="바코드번호"/>
  32. <Cell col="2" text="채취일시"/>
  33. <Cell col="3" text="등록번호"/>
  34. <Cell col="4" text="환자명"/>
  35. <Cell col="5" text="진료과"/>
  36. <Cell col="6" text="병동/병실"/>
  37. <Cell col="7" text="상태"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell celltype="head" expr="expr:currow+1"/>
  41. <Cell col="1" text="bind:bcno"/>
  42. <Cell col="2" displaytype="date" edittype="date" text="bind:bcolldt" mask="yyyy-MM-dd HH:mm:ss"/>
  43. <Cell col="3" text="bind:pid"/>
  44. <Cell col="4" text="bind:patnm"/>
  45. <Cell col="5" style="align:left;" text="bind:orddeptnm"/>
  46. <Cell col="6" text="bind:wardroom"/>
  47. <Cell col="7" style="align:left;" text="bind:chmsg"/>
  48. </Band>
  49. </Format>
  50. </Formats>
  51. </Grid>
  52. <Div id="group00" taborder="1" class="div_SA" position="absolute 0 25 758 61" anchor="left top right">
  53. <Layouts>
  54. <Layout>
  55. <MaskEdit id="input1" taborder="1" class="input_essential" position="absolute 520 8 585 28" anchor="default" imemode="" transparenthittest="false" limitbymask="none" mask="@@:@@" type="string" style="align:center middle;" positiontype="position"/>
  56. <Calendar id="input6" taborder="2" class="input_essential" position="absolute 417 8 517 28" dateformat="yyyy-MM-dd " value="null" anchor="default" oneditclick="group1_group00_input6_oneditclick" style="viewyearspin:true;" positiontype="position"/>
  57. <Static id="caption8" text="채취일시" class="search_name" position="absolute 344 8 434 28" anchor="default" positiontype="position"/>
  58. <CheckBox id="checkbox2" taborder="3" text="자동등록" truevalue="1" class="checkbox_search" position="absolute 248 8 320 28" anchor="default" visible="true" value="1" positiontype="position"/>
  59. <Edit id="iptSearch" taborder="4" class="input_s_button" position="absolute 101 8 245 28" anchor="default" imemode="alpha" inputmode="upper" onkeydown="group1_group00_iptSearch_onkeydown" useime="none" autoselect="true" positiontype="position"/>
  60. <Static id="caption10" text="바코드번호" class="search_name" position="absolute 20 8 97 28" anchor="default" positiontype="position"/>
  61. </Layout>
  62. </Layouts>
  63. <InitValue/>
  64. </Div>
  65. <Shape id="line00" class="line_10" position="absolute 0 84 758 90" anchor="left top right"/>
  66. </Layout>
  67. </Layouts>
  68. </Div>
  69. <Static id="stt_titleText1" text="채취일시등록" class="tit_1" position="absolute 0 0 110 25"/>
  70. <Button id="button9" taborder="2" text="닫기" class="btn5" visible="true" position="absolute 714 470 758 490" onclick="button9_onclick" anchor="right bottom"/>
  71. </Layout>
  72. </Layouts>
  73. <Objects>
  74. <Dataset id="ds_grid_grd_extrdtreg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  75. <ColumnInfo>
  76. <Column id="bcno" type="STRING"/>
  77. <Column id="bcolldt" type="STRING"/>
  78. <Column id="pid" type="STRING"/>
  79. <Column id="patnm" type="STRING"/>
  80. <Column id="orddeptnm" type="STRING"/>
  81. <Column id="wardroom" type="STRING"/>
  82. <Column id="spcstat" type="STRING"/>
  83. <Column id="chmsg" type="STRING" size="256"/>
  84. </ColumnInfo>
  85. </Dataset>
  86. <Dataset id="ds_grid_grd_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  87. <ColumnInfo>
  88. <Column id="bcno" type="STRING"/>
  89. <Column id="bcolldt" type="STRING"/>
  90. <Column id="pid" type="STRING"/>
  91. <Column id="patnm" type="STRING"/>
  92. <Column id="orddeptnm" type="STRING"/>
  93. <Column id="wardroom" type="STRING"/>
  94. <Column id="spcstat" type="STRING"/>
  95. <Column id="chmsg" type="STRING" size="256"/>
  96. </ColumnInfo>
  97. </Dataset>
  98. </Objects>
  99. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  100. * System Name : KU2.0
  101. * Job Name :
  102. * File Name : SPLLC90300_채취일시등록.xfdl
  103. * Creator :
  104. * Make Date :
  105. *
  106. * Description :
  107. *---------------------------------------------------------------------------------------
  108. * Modify Date Modifier Modify Description
  109. *---------------------------------------------------------------------------------------
  110. *
  111. *---------------------------------------------------------------------------------------
  112. ****************************************************************************************/
  113. //=======================================================================================
  114. // xjs Include
  115. //---------------------------------------------------------------------------------------
  116. include "com_commonxp::comm_main.xjs";
  117. include "lis_commonxp::LLZ001.xjs";
  118. //=======================================================================================
  119. // Function
  120. //---------------------------------------------------------------------------------------
  121. //저장
  122. function lf_getpatinfo(){
  123. var sInDsName = dsf_createDsRow("in_ds_search"
  124. , [{col: "bcno", val: group1.group00.iptSearch.value}
  125. , {col: "extrdd", val: group1.group00.input6.value}
  126. , {col: "extrtm", val: group1.group00.input1.value}
  127. , {col: "autoreg", val: group1.group00.checkbox2.value}]);
  128. var extrtm = group1.group00.input1.value;
  129. var ctime = utlf_getCurrentTime();
  130. var ctimess = ctime.substr(4,2);
  131. if ((extrtm.length) < 5 ){
  132. in_ds_search.setColumn(0,"extrtm",extrtm+ctimess);
  133. }
  134. // 서브밋호출
  135. var oParam = {};
  136. oParam.id = "TXLLC90301";
  137. oParam.service = "bcollmngtapp.BCollMngt";
  138. oParam.method = "reqGetExtraction";
  139. oParam.inds = "ExtrData="+sInDsName
  140. oParam.outds = "ds_grid_grd_hidden=getextrdtreg";
  141. oParam.async = false;
  142. oParam.callback = "cf_TXLLC90301";
  143. tranf_submit(oParam);
  144. if(ds_grid_grd_hidden.getColumn(0,"bcno") != ""){
  145. var nRow=ds_grid_grd_extrdtreg.addRow();
  146. ds_grid_grd_extrdtreg.setColumn(nRow,"bcno",ds_grid_grd_hidden.getColumn(0,"bcno")); //바코드번호
  147. ds_grid_grd_extrdtreg.setColumn(nRow,"bcolldt",ds_grid_grd_hidden.getColumn(0,"bcolldt")); //채취일시
  148. ds_grid_grd_extrdtreg.setColumn(nRow,"pid",ds_grid_grd_hidden.getColumn(0,"pid")); // 등록번호
  149. ds_grid_grd_extrdtreg.setColumn(nRow,"patnm",ds_grid_grd_hidden.getColumn(0,"patnm")); // 환자명
  150. ds_grid_grd_extrdtreg.setColumn(nRow,"orddeptnm",ds_grid_grd_hidden.getColumn(0,"orddeptnm")); // 진료과
  151. ds_grid_grd_extrdtreg.setColumn(nRow,"wardroom",ds_grid_grd_hidden.getColumn(0,"wardroom")); // 병동/병실
  152. ds_grid_grd_extrdtreg.setColumn(nRow,"chmsg",ds_grid_grd_hidden.getColumn(0,"chmsg")); // 상태
  153. }
  154. group1.group00.input6.setFocus();
  155. group1.group00.iptSearch.setFocus();
  156. //group1.group00.iptSearch.value='';
  157. }
  158. function cf_TXLLC90301(sSvcId, nErrorCode, sErrorMsg) {
  159. if(nErrorCode < 0) return;
  160. }
  161. //=======================================================================================
  162. // Event
  163. //---------------------------------------------------------------------------------------
  164. /****************************************************************************************
  165. * Components :
  166. * Components ID : SPLLC90300
  167. * Event : onload
  168. * Argument : 01.obj : Object Event has occurred
  169. * : 02.e : Event Object
  170. * Description :
  171. ****************************************************************************************/
  172. function SPLLC90300_onload(obj:Form, e:LoadEventInfo)
  173. {
  174. frmf_initForm(obj); // 화면공통
  175. group1.group00.input6.value= utlf_getCurrentDate(); //채취 일
  176. group1.group00.input1.value= utlf_getCurrentTime(); // 채취 시
  177. group1.group00.iptSearch.setFocus();
  178. }
  179. /****************************************************************************************
  180. * Components :
  181. * Components ID : group1_group00_iptSearch
  182. * Event : onkeydown
  183. * Argument : 01.obj : Object Event has occurred
  184. * : 02.e : Event Object
  185. * Description :
  186. ****************************************************************************************/
  187. //바코드번호 입력 후 엔터
  188. function group1_group00_iptSearch_onkeydown(obj:Edit, e:KeyEventInfo)
  189. {
  190. if(e.keycode =="13"){
  191. lf_getpatinfo();
  192. }
  193. }
  194. function button9_onclick(obj:Button, e:ClickEventInfo)
  195. {
  196. this.close();
  197. }
  198. ]]></Script>
  199. </Form>
  200. </FDL>