SMAES06300_재활의학팀실인원환자수.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES06300" position="absolute 0 0 1197 759" titletext="재활의학팀치료건수" onload="SMAES06300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 13 1195 757" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Static text="재활의학팀실인원환자수" position="absolute 0 61 200 82" id="caption1" class="tit_2" anchor="default"/>
  11. <Div position="absolute 0 12 1195 52" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  12. <Layouts>
  13. <Layout>
  14. <Static text="조회기간 :" position="absolute 15 13 101 30" id="caption2" class="search_name" anchor="default"/>
  15. <Shape position="absolute 1107 7 1113 34" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  16. <Button position="absolute 1125 10 1181 32" id="btn_sea" class="btn1" taborder="4" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_sea_onclick"/>
  17. <Calendar position="absolute 227 11 327 30" align="align:center middle;" id="ipt_todd" class="input_default" taborder="2" anchor="default" dateformat="yyyy-MM-dd" onchanged="grp_biz_grp_sea_ipt_todd_onchanged"/>
  18. <Static text="~" position="absolute 212 12 224 29" id="caption5" class="search_no_b" anchor="default"/>
  19. <Calendar position="absolute 109 11 209 30" align="align:center middle;" id="ipt_fromdd" class="input_default" taborder="1" anchor="default" dateformat="yyyy-MM-dd" value="null" onchanged="grp_biz_grp_sea_ipt_fromdd_onchanged"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Shape position="absolute 0 77 1195 83" id="line1" class="line_10" anchor="left top right"/>
  24. <Grid position="absolute 0 82 1195 744" id="datagrid1" binddataset="ds_main_list_item" anchor="all" selecttype="multirow">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="166"/>
  29. <Column size="84"/>
  30. <Column size="84"/>
  31. <Column size="84"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell rowspan="2" text="치료실" taborder="undefined"/>
  40. <Cell col="1" colspan="3" text="실인원" taborder="undefined"/>
  41. <Cell row="1" col="1" text="입원"/>
  42. <Cell row="1" col="2" text="외래"/>
  43. <Cell row="1" col="3" text="합계"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell displaytype="text" text="bind:curerm"/>
  47. <Cell col="1" displaytype="number" text="bind:intestexeccnt"/>
  48. <Cell col="2" displaytype="number" text="bind:outtestexeccnt"/>
  49. <Cell col="3" displaytype="number" text="bind:sumcnt"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Button position="absolute 1115 55 1195 77" id="button1" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_button1_onclick"/>
  55. </Layout>
  56. </Layouts>
  57. </Div>
  58. <Static id="caption6" text="재활의학팀실인원환자건수" class="tit_1" position="absolute 0 0 200 25"/>
  59. </Layout>
  60. </Layouts>
  61. <Objects>
  62. <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  63. <ColumnInfo>
  64. <Column id="curerm" type="STRING" size="256"/>
  65. <Column id="intestexeccnt" type="STRING" size="256"/>
  66. <Column id="outtestexeccnt" type="STRING" size="256"/>
  67. <Column id="sumcnt" type="STRING" size="256"/>
  68. </ColumnInfo>
  69. <Rows>
  70. <Row>
  71. <Col id="curerm"/>
  72. <Col id="intestexeccnt"/>
  73. <Col id="outtestexeccnt"/>
  74. <Col id="sumcnt"/>
  75. </Row>
  76. </Rows>
  77. </Dataset>
  78. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  79. <ColumnInfo>
  80. <Column id="srchdate" type="STRING" size="256"/>
  81. <Column id="suppdeptcd" type="STRING" size="256"/>
  82. <Column id="execfromdd" type="STRING" size="256"/>
  83. <Column id="exectodd" type="STRING" size="256"/>
  84. <Column id="comparefromdd" type="STRING" size="256"/>
  85. <Column id="comparetodd" type="STRING" size="256"/>
  86. <Column id="orddeptcd" type="STRING" size="256"/>
  87. <Column id="fstpatyn" type="STRING" size="256"/>
  88. <Column id="curerm" type="STRING" size="256"/>
  89. <Column id="curedr" type="STRING" size="256"/>
  90. <Column id="prcpcd" type="STRING" size="256"/>
  91. <Column id="execdrid" type="STRING" size="256"/>
  92. <Column id="srchflag" type="STRING" size="256"/>
  93. <Column id="srchtab" type="STRING" size="256"/>
  94. </ColumnInfo>
  95. <Rows>
  96. <Row>
  97. <Col id="srchdate"/>
  98. <Col id="suppdeptcd"/>
  99. <Col id="execfromdd"/>
  100. <Col id="exectodd"/>
  101. <Col id="comparefromdd"/>
  102. <Col id="comparetodd"/>
  103. <Col id="orddeptcd"/>
  104. <Col id="fstpatyn"/>
  105. <Col id="curerm"/>
  106. <Col id="curedr"/>
  107. <Col id="prcpcd"/>
  108. <Col id="execdrid"/>
  109. <Col id="srchflag">T</Col>
  110. <Col id="srchtab"/>
  111. </Row>
  112. </Rows>
  113. </Dataset>
  114. </Objects>
  115. <Bind>
  116. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="exectodd"/>
  117. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="execfromdd"/>
  118. </Bind>
  119. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  120. * System Name :
  121. * Job Name :
  122. * Creator :
  123. * Make Date : 2016-09-30
  124. * Description :
  125. *---------------------------------------------------------------------------------------
  126. * Modify Date Modifier Modify Description
  127. *---------------------------------------------------------------------------------------
  128. * 2016-09-30 Live Converter TF->XP
  129. *
  130. *---------------------------------------------------------------------------------------
  131. ****************************************************************************************/
  132. //=======================================================================================
  133. // Lib Include
  134. //---------------------------------------------------------------------------------------
  135. include "com_commonxp::comm_main.xjs";
  136. include "ast_examcurexp::AEZ0001.xjs";
  137. //=======================================================================================
  138. // Global Form Variable
  139. //---------------------------------------------------------------------------------------
  140. var arErrorCode = new HashArray();
  141. var gSuppdeptcd = "";
  142. //=======================================================================================
  143. // Function
  144. //---------------------------------------------------------------------------------------
  145. /****************************************************************************************
  146. * Argument : colNm - 대상컬럼
  147. * Description : expr사용 합계 함수
  148. ****************************************************************************************/
  149. //=======================================================================================
  150. // Event
  151. //---------------------------------------------------------------------------------------
  152. /****************************************************************************************
  153. * Components : Form
  154. * Description : 화면 처음 초기화시 폼초기화
  155. ****************************************************************************************/
  156. function SMAES06300_onload(obj:Form, e:LoadEventInfo)
  157. {
  158. frmf_initForm(obj); // 폼 초기화
  159. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  160. gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
  161. // dsf_createDsRow("ds_req", [
  162. // {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  163. // , {col:"rbasecdflag", type:"STRING", size:256, val:"0"}
  164. // ]);
  165. // var oParam = {};
  166. // oParam.id = "TRAES09000";
  167. // oParam.service = "examcurestatsapp.RehbMediSc";
  168. // oParam.method = "reqGetCode";
  169. // oParam.inds = "req=ds_req";
  170. // oParam.outds = "ds_inti_execdrid=execdrid ds_inti_curerm=curerm ds_inti_prcpcd=prcpcd ds_inti_orddeptcd=orddeptcd";
  171. // oParam.async = false;
  172. // oParam.callback = "cf_TRAES09000";
  173. //
  174. // tranf_submit(oParam);
  175. ds_send.setColumn( 0, "suppdeptcd", gSuppdeptcd);
  176. var fromdd = utlf_getCurrentDate().substr(0,4) + "0101"
  177. var todd = utlf_getLastDate(utlf_getCurrentDate());
  178. // var comparefromdd = utlf_getCurrentDate().substr(0,6).toDate().getAddDate(0,"Y").getDateFormat("YYYY") + "0101";
  179. // var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,4);
  180. ds_main_list_item.clearData();
  181. ds_send.setColumn( 0, "fstpatyn","");
  182. ds_send.setColumn( 0, "srchflag","P");
  183. ds_send.setColumn( 0, "execfromdd", fromdd);
  184. ds_send.setColumn( 0, "exectodd", todd);
  185. }
  186. function grp_biz_grp_sea_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  187. {
  188. var execfromdd = ds_send.getColumn(0, "execfromdd");
  189. var exectodd = ds_send.getColumn(0, "exectodd");
  190. if (execfromdd > exectodd) {
  191. sysf_messageBox("조회기간 시작일자가 조회기간 종료일자 이후 일자입니다.", "I");
  192. ds_send.setColumn( 0, "execfromdd",exectodd);
  193. // execfromdd = exectodd;
  194. }
  195. }
  196. function grp_biz_grp_sea_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  197. {
  198. var exectodd = ds_send.getColumn(0, "exectodd");
  199. var execfromdd = ds_send.getColumn(0, "execfromdd");
  200. if (execfromdd > exectodd) {
  201. sysf_messageBox("조회기간 종료일자가 조회기간 시작일자 이전 일자입니다.", "I");
  202. ds_send.setColumn( 0, "exectodd",execfromdd);
  203. // exectodd = execfromdd;
  204. }
  205. }
  206. function grp_biz_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  207. {
  208. ds_main_list_item.clearData();
  209. //R:치료실,C:치료코드,D:처방과,E:치료사
  210. // ds_send.setColumn( 0, "srchtab","R");
  211. var oParam = {};
  212. oParam.id = "TRAES06301";
  213. oParam.service = "examcurestatsapp.RehbMediSc";
  214. oParam.method = "reqGetRehbTrueCnt";
  215. oParam.inds = "req=ds_send";
  216. oParam.outds = "ds_main_list_item=item";
  217. oParam.async = true;
  218. //oParam.callback = "cf_TRAES06301";
  219. tranf_submit(oParam);
  220. }
  221. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  222. {
  223. if( ds_main_list_item.rowcount > 0 ){
  224. grdf_exportExcel(grp_biz.datagrid1, "SheetName", "SheetName", false, "", "user", false);
  225. } else {
  226. sysf_messageBox("조회된 데이터가 ", "I004");
  227. }
  228. }
  229. ]]></Script>
  230. </Form>
  231. </FDL>