SMPMI05300_재원중인직원감면현황.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI05300" position="absolute 0 0 1174 673" titletext="재원중인 직원 감면현황" onload="SMPMI05300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="감면현황" class="tit_1" position="absolute 0 0 120 25" anchor="left top"/>
  8. <Tab id="swt_aipmmngt" taborder="1" tabindex="0" position="absolute 0 60 1170 669" style="buttonbackground:stretch 10,10;background:stretch 0,0;" anchor="all">
  9. <Tabpages>
  10. <Tabpage id="case_instafreduct" class="sw_box">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 21 1170 27" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  14. <Static id="caption2" text="재원환자 감면 현황" class="tit_2" position="absolute 5 3 142 19" anchor="left top"/>
  15. <Button id="btn_print1" taborder="1" text="출력" class="btn6" position="absolute 1032 2 1084 21" onclick="swt_aipmmngt_case_instafreduct_btn_print1_onclick" anchor="top right"/>
  16. <Button id="btn_saveexcel1" taborder="2" text="엑셀저장" class="btn7" position="absolute 1092 2 1167 21" onclick="swt_aipmmngt_case_instafreduct_btn_saveexcel1_onclick" anchor="top right"/>
  17. <Grid id="grd_instafreduct" taborder="3" binddataset="ds_list_instafreduct" useinputpanel="false" position="absolute 0 26 1170 596" anchor="all">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="100"/>
  22. <Column size="80"/>
  23. <Column size="120"/>
  24. <Column size="40"/>
  25. <Column size="100"/>
  26. <Column size="100"/>
  27. <Column size="120"/>
  28. <Column size="80"/>
  29. <Column size="120"/>
  30. <Column size="100"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell text="등록번호"/>
  38. <Cell col="1" text="환자명"/>
  39. <Cell col="2" text="입원일자"/>
  40. <Cell col="3" colspan="2" text="보험유형" taborder="undefined"/>
  41. <Cell col="5" text="보조유형"/>
  42. <Cell col="6" text="진료과명"/>
  43. <Cell col="7" text="관련직원명"/>
  44. <Cell col="8" text="근무처"/>
  45. <Cell col="9" text="관계"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell text="bind:pid"/>
  49. <Cell col="1" text="bind:hngnm"/>
  50. <Cell col="2" text="bind:indd"/>
  51. <Cell col="3" displaytype="normal" edittype="none" text="bind:insukind" enable="false"/>
  52. <Cell col="4" displaytype="normal" edittype="none" text="bind:insukindnm"/>
  53. <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:suppkind" combodataset="ds_init_suppkind" combocodecol="cd" combodatacol="nm" enable="false"/>
  54. <Cell col="6" text="bind:orddeptnm"/>
  55. <Cell col="7" text="bind:emplnm"/>
  56. <Cell col="8" text="bind:deptnm"/>
  57. <Cell col="9" text="bind:famyrelcd"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. </Layout>
  63. </Layouts>
  64. </Tabpage>
  65. </Tabpages>
  66. </Tab>
  67. <Div id="grp" taborder="2" position="absolute 0 25 1172 60" class="div_SA" anchor="left top right">
  68. <Layouts>
  69. <Layout width="1172" height="35">
  70. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1097 7 1103 29" anchor="top right"/>
  71. <Static id="caption39" text="조회일자 :" class="search_name" visible="false" position="absolute 3 10 100 26" anchor="left top"/>
  72. <Button id="btn_search2" taborder="1" text="조회" class="btn1" position="absolute 1111 7 1167 29" anchor="top right" onclick="grp_btn_search2_onclick"/>
  73. <Calendar id="fromdd" taborder="2" class="input_search" visible="false" position="absolute 80 8 170 27" anchor="left top" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  74. </Layout>
  75. </Layouts>
  76. </Div>
  77. </Layout>
  78. </Layouts>
  79. <Objects>
  80. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  81. <ColumnInfo>
  82. <Column id="sess_posinstcd" type="STRING" size="256"/>
  83. <Column id="ioflag" type="STRING" size="256"/>
  84. <Column id="fromdd" type="STRING" size="256"/>
  85. </ColumnInfo>
  86. <Rows>
  87. <Row>
  88. <Col id="sess_posinstcd"/>
  89. <Col id="ioflag"/>
  90. <Col id="fromdd"/>
  91. </Row>
  92. </Rows>
  93. </Dataset>
  94. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  95. <Dataset id="ds_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  96. <Dataset id="ds_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  97. <Dataset id="ds_init1_P0101list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  98. <Dataset id="ds_init1_P0028list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  99. <Dataset id="ds_init1_P0038list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  100. <Dataset id="ds_list_instafreduct" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  103. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  104. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  105. <Column id="insukind" type="STRING" size="256" sumtext="유형코드"/>
  106. <Column id="insukindnm" type="STRING" size="256" sumtext="유형명"/>
  107. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형코드"/>
  108. <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형명"/>
  109. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  110. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  111. <Column id="emplnm" type="STRING" size="256" sumtext="관련직원명"/>
  112. <Column id="deptnm" type="STRING" size="256" sumtext="근무처"/>
  113. <Column id="famyrelcd" type="STRING" size="256" sumtext="관계"/>
  114. </ColumnInfo>
  115. </Dataset>
  116. </Objects>
  117. <Bind>
  118. <BindItem id="item0" compid="grp.fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  119. </Bind>
  120. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  121. * System Name :
  122. * Job Name :
  123. * Creator :
  124. * Make Date : 2016-05-24
  125. * Description :
  126. *---------------------------------------------------------------------------------------
  127. * Modify Date Modifier Modify Description
  128. *---------------------------------------------------------------------------------------
  129. * 2016-05-24 Live Converter TF->XP
  130. *
  131. *---------------------------------------------------------------------------------------
  132. ****************************************************************************************/
  133. //=======================================================================================
  134. // Lib Include
  135. //---------------------------------------------------------------------------------------
  136. include 'com_commonxp::comm_main.xjs';
  137. include 'pam_opatmngtxp::PMOCOM.xjs';
  138. var arErrorCode = new HashArray();
  139. //=======================================================================================
  140. // Local methods
  141. //---------------------------------------------------------------------------------------
  142. /**
  143. * submit 후 호출 될 공통 콜백
  144. * @param {[type]} sSvcId [description]
  145. * @param {[type]} nErrorCode [description]
  146. * @param {[type]} sErrorMsg [description]
  147. * @return {Function} [description]
  148. */
  149. function callback(sSvcId, nErrorCode, sErrorMsg){
  150. arErrorCode.push(sSvcId, nErrorCode);
  151. }
  152. //=======================================================================================
  153. // Events
  154. //---------------------------------------------------------------------------------------
  155. /**
  156. * onload 이벤트 발생 시 호출
  157. * @param {[type]} obj:Form [description]
  158. * @param {[type]} e:LoadEventInfo [description]
  159. */
  160. function SMPMI05300_onload(obj: Form, e: LoadEventInfo) {
  161. frmf_initForm(obj);
  162. fGetUserInfosSampling(); //세션정보
  163. ds_send.setColumn(0, "sess_posinstcd", ds_hidden_session.getColumn(0, "sess_dutplceinstcd"));
  164. ds_send.setColumn(0, "ioflag", "I");
  165. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  166. dsf_createDsRow('ds_TRPMI00106', [
  167. { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
  168. { col: 'ioflag', type: 'string', size: 256, val: '' },
  169. { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  170. ], false);
  171. ds_TRPMI00106.copyRow(0, ds_send, 0);
  172. var oParam = {};
  173. oParam.id = "TRPMI00106";
  174. oParam.service = "pamcomnapp.PamComn";
  175. oParam.method = "reqGetComCD";
  176. oParam.inds = "req=ds_TRPMI00106";
  177. oParam.outds = "ds_init_insukind=insukind ds_init_suppkind=suppkind";
  178. oParam.async = false;
  179. tranf_submit(oParam);
  180. appf_getCodeList([
  181. { dsNm: 'ds_init1_P0101list', cdGrpId: 'P0101' },
  182. { dsNm: 'ds_init1_P0028list', cdGrpId: 'P0028' },
  183. { dsNm: 'ds_init1_P0038list', cdGrpId: 'P0038' }
  184. ]);
  185. }
  186. /**
  187. * 조회 버튼 클릭 이벤트
  188. * @param {[type]} obj: Button [description]
  189. * @param {[type]} e: ClickEventInfo [description]
  190. * @return {[type]} [description]
  191. */
  192. function grp_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
  193. dsf_createDsRow('ds_TRPMI05300', [{ col: 'fromdd', type: 'string', size: 256, val: ds_send.getColumn(0, 'fromdd') }]);
  194. ds_list_instafreduct.clearData();
  195. var oParam = {};
  196. oParam.id = "TRPMI05300";
  197. oParam.service = "ipatmngtapp.OutHosAcc";
  198. oParam.method = "reqInStafReduct";
  199. oParam.inds = "req=ds_TRPMI05300";
  200. oParam.outds = "ds_list_instafreduct=instafreduct";
  201. oParam.async = false;
  202. tranf_submit(oParam);
  203. }
  204. /**
  205. * 출력 버튼 클릭 이벤트
  206. * @param {[type]} obj: Button [description]
  207. * @param {[type]} e: ClickEventInfo [description]
  208. * @return {[type]} [description]
  209. */
  210. function swt_aipmmngt_case_instafreduct_btn_print1_onclick(obj: Button, e: ClickEventInfo) {
  211. // DOM 객체 설정
  212. var objDOM = rptf_createDOM();
  213. // 데이터셋 1
  214. rptf_setValueToDOM(objDOM, "root/send/fromdd", ds_send.getColumn(0, 'fromdd'));
  215. rptf_setNodeListToDOM(objDOM, "root/list/instafreduct", ds_list_instafreduct);
  216. var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;show=1";
  217. rptf_exeReportPreview30(["RPPMI05300"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
  218. }
  219. /**
  220. * 엑셀저장 버튼 클릭 이벤트
  221. * @param {[type]} obj: Button [description]
  222. * @param {[type]} e: ClickEventInfo [description]
  223. * @return {[type]} [description]
  224. */
  225. function swt_aipmmngt_case_instafreduct_btn_saveexcel1_onclick(obj: Button, e: ClickEventInfo) {
  226. grdf_exportExcel(swt_aipmmngt.case_instafreduct.grd_instafreduct, "excel", "SheetName", true, "", "user", false);
  227. }
  228. ]]></Script>
  229. </Form>
  230. </FDL>