SMPMI05410_병동보고서퇴원환자보고서퇴원환자대장.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI05410" position="absolute 0 0 1173 661" titletext="퇴원환자보고서" onload="SMPMI05410_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="퇴원환자 보고서" class="tit_1" position="absolute 0 0 180 25" anchor="left top"/>
  8. <Div id="grp" taborder="2" position="absolute 0 25 1172 60" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout width="1172" height="35">
  11. <Static id="caption8" text="~" position="absolute 199 8 210 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 217 8 307 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" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  17. <Static id="caption4" text="업무자 ID" class="search_name" visible="false" position="absolute 898 9 971 26" anchor="top right"/>
  18. <Combo id="combo1" taborder="4" innerdataset="@ds_init_orddrid" 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 84 1170 90" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  23. <Static id="caption3" text="퇴원환자대장" class="tit_2" position="absolute 3 67 113 83" anchor="left top"/>
  24. <Grid id="grd_disinpat" taborder="3" binddataset="ds_list_disinpat" useinputpanel="false" position="absolute 0 88 1170 658" anchor="all" cellsizingtype="col">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="40"/>
  29. <Column size="100"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="70"/>
  33. <Column size="100"/>
  34. <Column size="120"/>
  35. <Column size="100"/>
  36. <Column size="100"/>
  37. <Column size="100"/>
  38. <Column size="60"/>
  39. <Column size="70"/>
  40. <Column size="100"/>
  41. <Column size="100"/>
  42. <Column size="70"/>
  43. <Column size="100"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell colspan="2" text="보험유형" taborder="undefined"/>
  51. <Cell col="2" text="보조유형"/>
  52. <Cell col="3" text="등록번호"/>
  53. <Cell col="4" text="성명"/>
  54. <Cell col="5" text="주민번호"/>
  55. <Cell col="6" text="진료과"/>
  56. <Cell col="7" text="병실"/>
  57. <Cell col="8" text="입원일"/>
  58. <Cell col="9" text="퇴원일"/>
  59. <Cell col="10" text="진료일수"/>
  60. <Cell col="11" text="주치의"/>
  61. <Cell col="12" text="조합기호"/>
  62. <Cell col="13" text="증번호"/>
  63. <Cell col="14" text="피보험자"/>
  64. <Cell col="15" text="피보험자"/>
  65. </Band>
  66. <Band id="body">
  67. <Cell text="bind:insukind"/>
  68. <Cell col="1" text="bind:insukindnm"/>
  69. <Cell col="2" text="bind:suppkindnm"/>
  70. <Cell col="3" text="bind:pid"/>
  71. <Cell col="4" text="bind:hngnm"/>
  72. <Cell col="5" text="bind:rrgstno"/>
  73. <Cell col="6" text="bind:orddeptnm"/>
  74. <Cell col="7" text="bind:roomcd"/>
  75. <Cell col="8" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  76. <Cell col="9" displaytype="date" text="bind:dschdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  77. <Cell col="10" text="bind:indaycnt"/>
  78. <Cell col="11" text="bind:medispclnm"/>
  79. <Cell col="12" text="bind:insucd"/>
  80. <Cell col="13" text="bind:insuno"/>
  81. <Cell col="14" text="bind:insdnm"/>
  82. <Cell col="15" text="bind:remark"/>
  83. </Band>
  84. </Format>
  85. </Formats>
  86. </Grid>
  87. <Button id="button1" taborder="4" text="엑셀저장" class="btn7" position="absolute 1098 63 1170 82" onclick="button1_onclick" anchor="top right"/>
  88. <Button id="button2" taborder="5" text="출력" class="btn6" position="absolute 1042 63 1092 82" onclick="button2_onclick" anchor="top right"/>
  89. </Layout>
  90. </Layouts>
  91. <Objects>
  92. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  93. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  94. <ColumnInfo>
  95. <Column id="fromdd" type="STRING" size="256"/>
  96. <Column id="todd" type="STRING" size="256"/>
  97. <Column id="acceptnm" type="STRING" size="256"/>
  98. <Column id="sess_posinstcd" type="STRING" size="256"/>
  99. <Column id="ioflag" type="STRING" size="256"/>
  100. <Column id="sendflag" type="STRING" size="256"/>
  101. </ColumnInfo>
  102. <Rows>
  103. <Row>
  104. <Col id="fromdd"/>
  105. <Col id="todd"/>
  106. <Col id="acceptnm"/>
  107. <Col id="sess_posinstcd"/>
  108. <Col id="ioflag"/>
  109. <Col id="sendflag"/>
  110. </Row>
  111. </Rows>
  112. </Dataset>
  113. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="cd" type="STRING" size="256"/>
  116. <Column id="nm" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. </Dataset>
  119. <Dataset id="ds_list_disinpat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  120. <ColumnInfo>
  121. <Column id="insukind" type="STRING" size="256" sumtext="유형"/>
  122. <Column id="insukindnm" type="STRING" size="256" sumtext="유형명"/>
  123. <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형"/>
  124. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  125. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  126. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  127. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  128. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  129. <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
  130. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일"/>
  131. <Column id="indaycnt" type="STRING" size="256" sumtext="진료일수"/>
  132. <Column id="medispclid" type="STRING" size="256" sumtext="주치의"/>
  133. <Column id="medispclnm" type="STRING" size="256" sumtext="주치의"/>
  134. <Column id="insucd" type="STRING" size="256" sumtext="조합기호"/>
  135. <Column id="insuno" type="STRING" size="256" sumtext="증번호"/>
  136. <Column id="insdnm" type="STRING" size="256" sumtext="피보험자"/>
  137. <Column id="remark" type="STRING" size="256" sumtext="가퇴원정산"/>
  138. </ColumnInfo>
  139. </Dataset>
  140. </Objects>
  141. <Bind>
  142. <BindItem id="item0" compid="grp.fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  143. <BindItem id="item1" compid="grp.todd" propid="value" datasetid="ds_send" columnid="todd"/>
  144. <BindItem id="item2" compid="grp.combo1" propid="value" datasetid="ds_send" columnid="acceptnm"/>
  145. </Bind>
  146. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  147. * System Name :
  148. * Job Name :
  149. * Creator :
  150. * Make Date : 2016-05-24
  151. * Description :
  152. *---------------------------------------------------------------------------------------
  153. * Modify Date Modifier Modify Description
  154. *---------------------------------------------------------------------------------------
  155. * 2016-05-24 Live Converter TF->XP
  156. *
  157. *---------------------------------------------------------------------------------------
  158. ****************************************************************************************/
  159. //=======================================================================================
  160. // Lib Include
  161. //---------------------------------------------------------------------------------------
  162. include 'com_commonxp::comm_main.xjs';
  163. include 'pam_opatmngtxp::PMOCOM.xjs';
  164. var arErrorCode = new HashArray();
  165. //=======================================================================================
  166. // Local methods
  167. //---------------------------------------------------------------------------------------
  168. /**
  169. * submit 후 호출 될 공통 콜백
  170. * @param {[type]} sSvcId [description]
  171. * @param {[type]} nErrorCode [description]
  172. * @param {[type]} sErrorMsg [description]
  173. * @return {Function} [description]
  174. */
  175. function callback(sSvcId, nErrorCode, sErrorMsg){
  176. arErrorCode.push(sSvcId, nErrorCode);
  177. }
  178. //=======================================================================================
  179. // Events
  180. //---------------------------------------------------------------------------------------
  181. /**
  182. * onload 이벤트 발생 시 호출
  183. * @param {[type]} obj:Form [description]
  184. * @param {[type]} e:LoadEventInfo [description]
  185. */
  186. function SMPMI05410_onload(obj: Form, e: LoadEventInfo) {
  187. frmf_initForm(obj);
  188. fGetUserInfosSampling(); //세션정보
  189. ds_send.setColumn(0, "sess_posinstcd", ds_hidden_session.getColumn(0, "sess_dutplceinstcd"));
  190. ds_send.setColumn(0, "ioflag", "I");
  191. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  192. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  193. dsf_createDsRow('ds_TRPMI00106', [
  194. { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
  195. { col: 'ioflag', type: 'string', size: 256, val: '' },
  196. { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  197. ], false);
  198. ds_TRPMI00106.copyRow(0, ds_send, 0);
  199. var oParam = {};
  200. oParam.id = "TRPMI00106";
  201. oParam.service = "pamcomnapp.PamComn";
  202. oParam.method = "reqGetComCD";
  203. oParam.inds = "req=ds_TRPMI00106";
  204. oParam.outds = "ds_init_orddrid=orddrid";
  205. oParam.async = false;
  206. tranf_submit(oParam);
  207. // appf_getCodeList([
  208. // { dsNm: 'ds_init1_P0101', cdGrpId: 'P0101' },
  209. // { dsNm: 'ds_init1_P0028', cdGrpId: 'P0028' },
  210. // { dsNm: 'ds_init1_P0038', cdGrpId: 'P0038' }
  211. // ]);
  212. }
  213. /**
  214. * 퇴원일자조회 todd 키보드 입력 이벤트
  215. * @param {[type]} obj: Calendar [description]
  216. * @param {[type]} e: KeyEventInfo [description]
  217. * @return {[type]} [description]
  218. */
  219. function grp_todd_onkeydown(obj: Calendar, e: KeyEventInfo) {
  220. if (e.keycode == 13) {
  221. obj.updateToDataset();
  222. grp.btn_search.click();
  223. }
  224. }
  225. /**
  226. * 조회 버튼 클릭 이벤트
  227. * @param {[type]} obj: Button [description]
  228. * @param {[type]} e: ClickEventInfo [description]
  229. * @return {[type]} [description]
  230. */
  231. function grp_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
  232. ds_send.setColumn(0, "sendflag", "disinpat");
  233. ds_list_disinpat.clearData();
  234. dsf_createDsRow('ds_TRPMI05410', [
  235. { col: 'fromdd', type: 'string', size: 256, val: '' },
  236. { col: 'todd', type: 'string', size: 256, val: '' },
  237. { col: 'acceptnm', type: 'string', size: 256, val: '' },
  238. { col: 'sendflag', type: 'string', size: 256, val: '' }
  239. ], false);
  240. ds_TRPMI05410.copyRow(0, ds_send, 0);
  241. var oParam = {};
  242. oParam.id = "TRPMI05410";
  243. oParam.service = "ipatmngtapp.WardReport";
  244. oParam.method = "reqChanType";
  245. oParam.inds = "req=ds_TRPMI05410";
  246. oParam.outds = "ds_list_disinpat=disinpat";
  247. oParam.async = false;
  248. tranf_submit(oParam);
  249. }
  250. /**
  251. * 출력 버튼 클릭 이벤트
  252. * @param {[type]} obj: Button [description]
  253. * @param {[type]} e: ClickEventInfo [description]
  254. * @return {[type]} [description]
  255. */
  256. function button2_onclick(obj: Button, e: ClickEventInfo) {
  257. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  258. var objDOM = rptf_createDOM(); // DOM 객체 설정
  259. rptf_setNodeListToDOM(objDOM, "root/list/disinpat" , ds_list_disinpat);
  260. rptf_exeReportPreview30(["RPPMI05410"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
  261. }
  262. /**
  263. * 엑셀저장 버튼 클릭 이벤트
  264. * @param {[type]} obj: Button [description]
  265. * @param {[type]} e: ClickEventInfo [description]
  266. * @return {[type]} [description]
  267. */
  268. function button1_onclick(obj: Button, e: ClickEventInfo) {
  269. grdf_exportExcel(grd_disinpat, "excel", "SheetName", true, "", "user", false);
  270. }
  271. ]]></Script>
  272. </Form>
  273. </FDL>