SPPMI03800_보호입원대상자조회.xfdl 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMI03800" position="absolute 0 0 770 600" titletext="보호입원대상자조회" onload="SPPMI03800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 59 761 592" id="grd_innplist" visible="true" binddataset="ds_main_innplist">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="70"/>
  12. <Column size="73"/>
  13. <Column size="65"/>
  14. <Column size="80"/>
  15. <Column size="72"/>
  16. <Column size="80"/>
  17. <Column size="80"/>
  18. <Column size="80"/>
  19. <Column size="66"/>
  20. <Column size="73"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell text="구분"/>
  28. <Cell col="1" text="차트번호"/>
  29. <Cell col="2" text="성명"/>
  30. <Cell col="3" text="입원일자"/>
  31. <Cell col="4" text="입원형태"/>
  32. <Cell col="5" text="시작일자"/>
  33. <Cell col="6" text="종료일자"/>
  34. <Cell col="7" text="재원일수"/>
  35. <Cell col="8" text="병실"/>
  36. <Cell col="9" text="전문의"/>
  37. </Band>
  38. <Band id="body">
  39. <Cell style="align:center middle;" text="bind:gubun"/>
  40. <Cell col="1" style="align:center middle;" text="bind:pid"/>
  41. <Cell col="2" style="align:center middle;" text="bind:hngnm"/>
  42. <Cell col="3" style="align:center middle;" text="bind:indd"/>
  43. <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:uncocd" combodataset="ds_init_PK225list" combocodecol="cdid" combodatacol="cdnm"/>
  44. <Cell col="5" displaytype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  45. <Cell col="6" displaytype="date" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  46. <Cell col="7" style="align:center middle;" text="bind:indays"/>
  47. <Cell col="8" text="bind:roomcd"/>
  48. <Cell col="9" text="bind:medispclidnm"/>
  49. </Band>
  50. </Format>
  51. </Formats>
  52. </Grid>
  53. <Static text="보호입원대상자" position="absolute 0 0 160 25" id="caption1" class="tit_1"/>
  54. <Div id="grp" taborder="4" position="absolute 0 25 477 55" class="div_SA">
  55. <Layouts>
  56. <Layout width="600" height="30">
  57. <Static id="caption2" text="차트번호" class="search_name" position="absolute 220 7 288 24" anchor="default"/>
  58. <Static id="caption3" text="기준일자" class="search_name" position="absolute 8 7 79 24" anchor="default" enable="true"/>
  59. <Edit id="input1" taborder="1" enable="true" position="absolute 289 6 359 25" anchor="default"/>
  60. <Calendar id="input2" taborder="2" enable="true" position="absolute 81 6 181 25" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="false"/>
  61. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 408 4 464 26" anchor="default" onclick="grp_btn_search_onclick" tooltiptext="기준일자에 재원중이거나, 입원예정인 환자 조회"/>
  62. </Layout>
  63. </Layouts>
  64. </Div>
  65. <Button id="Button00" taborder="5" text="엑셀저장" position="absolute 695 35 761 55" class="btn2" onclick="Button00_onclick"/>
  66. </Layout>
  67. </Layouts>
  68. <Objects>
  69. <Dataset id="ds_main_innplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
  72. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  73. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  74. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  75. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  76. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  77. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  78. <Column id="uncocd" type="STRING" size="256" sumtext="입원형태"/>
  79. <Column id="wardcdnm" type="STRING" size="256" sumtext="병동"/>
  80. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  81. <Column id="medispclidnm" type="STRING" size="256" sumtext="전문의"/>
  82. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  83. <Column id="indays" type="STRING" size="256" sumtext="재원일수"/>
  84. </ColumnInfo>
  85. </Dataset>
  86. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  87. <ColumnInfo>
  88. <Column id="basedd" type="STRING" size="256"/>
  89. <Column id="pid" type="STRING" size="256"/>
  90. </ColumnInfo>
  91. <Rows>
  92. <Row>
  93. <Col id="basedd"/>
  94. <Col id="pid"/>
  95. </Row>
  96. </Rows>
  97. </Dataset>
  98. <Dataset id="ds_init_PK225list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  99. <ColumnInfo>
  100. <Column id="cdid" type="STRING" size="256"/>
  101. <Column id="cdnm" type="STRING" size="256"/>
  102. </ColumnInfo>
  103. </Dataset>
  104. </Objects>
  105. <Bind>
  106. <BindItem id="item0" compid="grp.input1" propid="value" datasetid="ds_send" columnid="pid"/>
  107. <BindItem id="item2" compid="grp.input2" propid="value" datasetid="ds_send" columnid="basedd"/>
  108. </Bind>
  109. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  110. * System Name :
  111. * Job Name :
  112. * Creator :
  113. * Make Date : 2016-05-24
  114. * Description :
  115. *---------------------------------------------------------------------------------------
  116. * Modify Date Modifier Modify Description
  117. *---------------------------------------------------------------------------------------
  118. * 2016-05-24 Live Converter TF->XP
  119. *
  120. *---------------------------------------------------------------------------------------
  121. ****************************************************************************************/
  122. //=======================================================================================
  123. // Lib Include
  124. //---------------------------------------------------------------------------------------
  125. include 'com_commonxp::comm_main.xjs';
  126. include 'pam_pamcomnxp::PAM001.xjs';
  127. var arErrorCode = new HashArray();
  128. //=======================================================================================
  129. // Local methods
  130. //---------------------------------------------------------------------------------------
  131. /****************************************************************************************
  132. * Argument :
  133. * Description :
  134. ****************************************************************************************/
  135. //=======================================================================================
  136. // callback
  137. //---------------------------------------------------------------------------------------
  138. function callback(sSvcId, nErrorCode, sErrorMsg){
  139. arErrorCode.push(sSvcId, nErrorCode);
  140. }
  141. //=======================================================================================
  142. // Events
  143. //---------------------------------------------------------------------------------------
  144. /****************************************************************************************
  145. * Argument :
  146. * Description : onload
  147. ****************************************************************************************/
  148. function SPPMI03800_onload(obj:Form, e:LoadEventInfo){
  149. pamfGetCodeList([
  150. { dsNm: 'ds_init_PK225list', cdGrpId: 'PK225' }
  151. ]);
  152. frmf_initForm(obj);
  153. ds_send.setColumn(0, 'basedd', utlf_getCurrentDate());
  154. var pid = utlf_transNullToEmpty(opener.frmf_getParameter('SPPMI03800_PID'));
  155. if(pid != ''){
  156. ds_send.setColumn(0, 'pid', pid);
  157. grp.btn_search.click();
  158. } else {
  159. sysf_messageBox('환자가 선택되지 않았습니다.', 'C000');
  160. }
  161. }
  162. /****************************************************************************************
  163. * Argument :
  164. * Description : 조회 버튼 클릭 이벤트
  165. ****************************************************************************************/
  166. function grp_btn_search_onclick(obj:Button, e:ClickEventInfo){
  167. var oParam = {};
  168. oParam.id = "TRPMI03802";
  169. oParam.service = "ipatmngtapp.InRgst";
  170. oParam.method = "reqGetInNPList";
  171. oParam.inds = "req=ds_send";
  172. oParam.outds = "ds_main_innplist=innplist";
  173. oParam.async = false;
  174. //oParam.callback = "cf_TRPMI03700";
  175. tranf_submit(oParam);
  176. }
  177. function Button00_onclick(obj:Button, e:ClickEventInfo)
  178. {
  179. grdf_exportExcel(grd_innplist, "excel", "SheetName");
  180. }
  181. ]]></Script>
  182. </Form>
  183. </FDL>