SMPMI05420_병동보고서퇴원환자보고서외래예약금현황.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI05420" position="absolute 0 0 1173 661" titletext="퇴원환자 보고서" onload="SMPMI05420_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="퇴원환자 보고서" class="tit_1" position="absolute 0 0 160 25" anchor="left top"/>
  8. <Div id="grp" taborder="2" position="absolute 0 25 1170 60" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout width="1170" height="35">
  11. <Static id="caption8" text="~" position="absolute 196 8 207 28" anchor="left top"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1093 7 1099 29" anchor="top right"/>
  13. <Static id="caption39" text="퇴원일자조회" class="search_name" position="absolute 3 9 91 26" anchor="left top"/>
  14. <Calendar id="todd" taborder="1" class="input_search" position="absolute 211 8 301 27" anchor="left top" autoselect="true" dateformat="yyyy-MM-dd" onkeydown="grp_todd_onkeydown"/>
  15. <Button id="btn_search2" taborder="2" text="조회" class="btn1" position="absolute 1110 7 1166 29" anchor="top right" onclick="grp_btn_search2_onclick"/>
  16. <Calendar id="fromdd" taborder="3" class="input_search" position="absolute 102 8 192 27" anchor="left top" autoselect="true" dateformat="yyyy-MM-dd" value="null" autoskip="true"/>
  17. <Static id="caption4" text="업무자 ID" class="search_name" visible="false" position="absolute 898 9 964 26" anchor="top right"/>
  18. <Combo id="combo1" taborder="4" innerdataset="ds_init_combo1" codecolumn="cd" datacolumn="nm" class="combo_default" visible="false" position="absolute 977 8 1082 27" anchor="top right"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Shape id="line20" linetype="horizontal" class="line_1" position="absolute 0 83 1170 89" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  23. <Static id="caption3" text="퇴원환자 외래예약금 현황" class="tit_2" position="absolute 3 65 183 81" anchor="left top"/>
  24. <Button id="button1" taborder="3" text="엑셀저장" class="btn7" position="absolute 1095 63 1169 82" onclick="button1_onclick" anchor="top right"/>
  25. <Button id="button2" taborder="4" text="출력" class="btn6" position="absolute 1042 63 1092 82" onclick="button2_onclick" anchor="top right"/>
  26. <Grid id="grd_odeposit" taborder="5" binddataset="ds_list_disodeposit" useinputpanel="false" position="absolute 0 87 1170 657" anchor="all">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="25"/>
  31. <Column size="100"/>
  32. <Column size="80"/>
  33. <Column size="100"/>
  34. <Column size="120"/>
  35. <Column size="100"/>
  36. <Column size="100"/>
  37. <Column size="100"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" text="환자번호"/>
  46. <Cell col="2" text="환자이름"/>
  47. <Cell col="3" text="수납일자"/>
  48. <Cell col="4" text="진료과"/>
  49. <Cell col="5" text="병실"/>
  50. <Cell col="6" text="입원일자"/>
  51. <Cell col="7" text="외래예약금"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell celltype="head" expr="expr:currow + 1"/>
  55. <Cell col="1" text="bind:pid"/>
  56. <Cell col="2" text="bind:hngnm"/>
  57. <Cell col="3" displaytype="date" text="bind:rcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  58. <Cell col="4" text="bind:orddeptnm"/>
  59. <Cell col="5" text="bind:roomcd"/>
  60. <Cell col="6" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  61. <Cell col="7" displaytype="number" text="bind:outamt" mask="9,999"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. </Layout>
  67. </Layouts>
  68. <Objects>
  69. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="fromdd" type="STRING" size="256"/>
  72. <Column id="todd" type="STRING" size="256"/>
  73. <Column id="sess_posinstcd" type="STRING" size="256"/>
  74. <Column id="ioflag" type="STRING" size="256"/>
  75. <Column id="acceptnm" type="STRING" size="256"/>
  76. <Column id="sendflag" type="STRING" size="256"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row>
  80. <Col id="fromdd"/>
  81. <Col id="todd"/>
  82. <Col id="sess_posinstcd"/>
  83. <Col id="ioflag"/>
  84. <Col id="acceptnm"/>
  85. <Col id="sendflag"/>
  86. </Row>
  87. </Rows>
  88. </Dataset>
  89. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  90. <Dataset id="ds_list_disodeposit" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  91. <ColumnInfo>
  92. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  93. <Column id="hngnm" type="STRING" size="256" sumtext="환자이름"/>
  94. <Column id="rcptdd" type="STRING" size="256" sumtext="수납일자"/>
  95. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  96. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  97. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  98. <Column id="outamt" type="STRING" size="256" sumtext="외래예약금"/>
  99. </ColumnInfo>
  100. </Dataset>
  101. </Objects>
  102. <Bind>
  103. <BindItem id="item0" compid="grp.combo1" propid="value" datasetid="ds_send" columnid="acceptnm"/>
  104. <BindItem id="item1" compid="grp.todd" propid="value" datasetid="ds_send" columnid="todd"/>
  105. <BindItem id="item2" compid="grp.fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  106. </Bind>
  107. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  108. * System Name :
  109. * Job Name :
  110. * Creator :
  111. * Make Date : 2016-05-24
  112. * Description :
  113. *---------------------------------------------------------------------------------------
  114. * Modify Date Modifier Modify Description
  115. *---------------------------------------------------------------------------------------
  116. * 2016-05-24 Live Converter TF->XP
  117. *
  118. *---------------------------------------------------------------------------------------
  119. ****************************************************************************************/
  120. //=======================================================================================
  121. // Lib Include
  122. //---------------------------------------------------------------------------------------
  123. include 'com_commonxp::comm_main.xjs';
  124. include 'pam_opatmngtxp::PMOCOM.xjs';
  125. var arErrorCode = new HashArray();
  126. //=======================================================================================
  127. // Local methods
  128. //---------------------------------------------------------------------------------------
  129. /**
  130. * submit 후 호출 될 공통 콜백
  131. * @param {[type]} sSvcId [description]
  132. * @param {[type]} nErrorCode [description]
  133. * @param {[type]} sErrorMsg [description]
  134. * @return {Function} [description]
  135. */
  136. function callback(sSvcId, nErrorCode, sErrorMsg){
  137. arErrorCode.push(sSvcId, nErrorCode);
  138. }
  139. //=======================================================================================
  140. // Events
  141. //---------------------------------------------------------------------------------------
  142. /**
  143. * onload 이벤트 발생 시 호출
  144. * @param {[type]} obj:Form [description]
  145. * @param {[type]} e:LoadEventInfo [description]
  146. */
  147. function SMPMI05420_onload(obj: Form, e: LoadEventInfo) {
  148. frmf_initForm(obj);
  149. fGetUserInfosSampling(); //세션정보
  150. ds_send.setColumn(0, "sess_posinstcd", ds_hidden_session.getColumn(0, "sess_dutplceinstcd"));
  151. ds_send.setColumn(0, "ioflag", "I");
  152. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  153. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  154. // appf_getCodeList([
  155. // { dsNm: 'ds_init1_P0101', cdGrpId: 'P0101' },
  156. // { dsNm: 'ds_init1_P0028', cdGrpId: 'P0028' },
  157. // { dsNm: 'ds_init1_P0038', cdGrpId: 'P0038' }
  158. // ]);
  159. }
  160. /**
  161. * 퇴원일자조회 todd 키보드 입력 이벤트
  162. * @param {[type]} obj: Calendar [description]
  163. * @param {[type]} e: KeyEventInfo [description]
  164. * @return {[type]} [description]
  165. */
  166. function grp_todd_onkeydown(obj: Calendar, e: KeyEventInfo) {
  167. if (e.keycode == 13) {
  168. obj.updateToDataset();
  169. grp.btn_search2.click();
  170. }
  171. }
  172. /**
  173. * 조회 버튼 클릭 이벤트
  174. * @param {[type]} obj: Button [description]
  175. * @param {[type]} e: ClickEventInfo [description]
  176. * @return {[type]} [description]
  177. */
  178. function grp_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
  179. ds_send.setColumn(0, "sendflag", "disodeposit");
  180. dsf_createDsRow('ds_TRPMI05420', [
  181. { col: 'fromdd', type: 'string', size: 256, val: '' },
  182. { col: 'todd', type: 'string', size: 256, val: '' },
  183. { col: 'acceptnm', type: 'string', size: 256, val: '' },
  184. { col: 'sendflag', type: 'string', size: 256, val: '' }
  185. ], false);
  186. ds_list_disodeposit.clearData();
  187. var oParam = {};
  188. oParam.id = "TRPMI05420";
  189. oParam.service = "ipatmngtapp.WardReport";
  190. oParam.method = "reqChanType";
  191. oParam.inds = "req=ds_TRPMI05420";
  192. oParam.outds = "ds_list_disodeposit=disodeposit";
  193. oParam.async = false;
  194. tranf_submit(oParam);
  195. }
  196. /**
  197. * 출력 버튼 클릭 이벤트
  198. * @param {[type]} obj:Button [description]
  199. * @param {[type]} e:ClickEventInfo [description]
  200. * @return {[type]} [description]
  201. */
  202. function button2_onclick(obj:Button, e:ClickEventInfo)
  203. {
  204. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  205. var objDOM = rptf_createDOM(); // DOM 객체 설정
  206. rptf_setValueToDOM(objDOM, 'root/send/fromdd', ds_send.getColumn(0, 'fromdd'));
  207. rptf_setNodeListToDOM(objDOM, "root/list/disodeposit" , ds_list_disodeposit);
  208. rptf_exeReportPreview30(["RPPMI05420"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
  209. }
  210. /**
  211. * 엑셀저장 버튼 클릭 이벤트
  212. * @param {[type]} obj: Button [description]
  213. * @param {[type]} e: ClickEventInfo [description]
  214. * @return {[type]} [description]
  215. */
  216. function button1_onclick(obj: Button, e: ClickEventInfo) {
  217. grdf_exportExcel(grd_odeposit, "excel", "SheetName", true, "", "user", false);
  218. }
  219. ]]></Script>
  220. </Form>
  221. </FDL>