SMANS01100_병동별식수현황.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANS01100" position="absolute 0 0 1204 781" titletext="영양팀 중분류별 통계" oninit="SMANS01100_oninit" onload="SMANS01100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="병동별 식수 현황" position="absolute 0 0 143 25" id="caption6" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 13 1195 757" id="grp_biz" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Static text="병동별 식수 통계" position="absolute 0 50 159 66" id="caption1" class="tit_2" anchor="default"/>
  18. <Shape position="absolute 0 67 1183 73" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  19. <Div position="absolute 0 10 1195 42" align="align:center top;" id="grp_sea" anchor="default">
  20. <Layouts>
  21. <Layout>
  22. <Shape position="absolute 0 2 1193 32" id="roundrect1" type="roundrectangle" anchor="default"/>
  23. <Static text="조회기간 :" position="absolute 15 9 101 26" id="caption2" class="search_name" anchor="default"/>
  24. <Shape position="absolute 1107 6 1113 28" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  25. <Button position="absolute 1120 6 1176 28" id="btn_sea" class="btn1" taborder="4" text="조회" anchor="default" onclick="grp_biz_grp_sea_btn_sea_onclick"/>
  26. <Calendar position="absolute 207 8 292 27" id="ipt_todd" class="input_default" taborder="2" visible="false" anchor="default" autoselect="true"/>
  27. <Calendar position="absolute 106 8 191 27" id="ipt_fromdd" class="input_default" taborder="1" anchor="default" autoselect="true"/>
  28. </Layout>
  29. </Layouts>
  30. </Div>
  31. <Button position="absolute 1107 46 1183 65" id="btn_excsave" class="btn7" text="엑셀저장" anchor="default" onclick="grp_biz_btn_excsave_onclick"/>
  32. <Grid position="absolute 0 71 1183 735" id="grd_mealprcpcd" class="datagrid2" binddataset="ds_main_list_item" anchor="default" selecttype="multiarea" cellsizingtype="both" extendsizetype="row">
  33. <Formats>
  34. <Format id="default">
  35. <Columns>
  36. <Column size="25" band="left"/>
  37. <Column size="263"/>
  38. <Column size="100"/>
  39. <Column size="100"/>
  40. <Column size="100"/>
  41. <Column size="100"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="35" band="head"/>
  45. <Row size="24"/>
  46. <Row size="24" band="summ"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell/>
  50. <Cell col="1" text="구분"/>
  51. <Cell col="2" text="조식"/>
  52. <Cell col="3" text="중식"/>
  53. <Cell col="4" text="석식"/>
  54. <Cell col="5" text="합계"/>
  55. </Band>
  56. <Band id="body">
  57. <Cell celltype="head" text="expr:currow + 1"/>
  58. <Cell col="1" style="align:center middle;" text="bind:wardnm" enable="false"/>
  59. <Cell col="2" style="align:center middle;" text="bind:breakmeal" enable="false"/>
  60. <Cell col="3" style="align:center middle;" text="bind:lunchmeal" enable="false"/>
  61. <Cell col="4" style="align:center middle;" text="bind:dinnermeal" enable="false"/>
  62. <Cell col="5" displaytype="number" style="align:center middle;" text="bind:mdlsum" enable="false"/>
  63. </Band>
  64. <Band id="summary">
  65. <Cell style="background:#99ff99ff;background2:#99ff99ff;"/>
  66. <Cell col="1" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="총계"/>
  67. <Cell col="2" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('breakmeal')"/>
  68. <Cell col="3" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('lunchmeal')"/>
  69. <Cell col="4" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('dinnermeal')"/>
  70. <Cell col="5" displaytype="number" style="align:center middle;background:#99ff99ff;background2:#99ff99ff;font:arial,9,bold;" text="expr:getSum('mdlsum')"/>
  71. </Band>
  72. </Format>
  73. </Formats>
  74. </Grid>
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. <Button position="absolute 10 755 66 777" id="btn_print" class="btn6" text="출력" onclick="btn_print_onclick"/>
  79. </Layout>
  80. </Layouts>
  81. <Objects>
  82. <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="wardnm" type="STRING" size="256"/>
  85. <Column id="breakmeal" type="STRING" size="256"/>
  86. <Column id="lunchmeal" type="STRING" size="256"/>
  87. <Column id="dinnermeal" type="STRING" size="256"/>
  88. <Column id="mdlsum" type="STRING" size="256"/>
  89. </ColumnInfo>
  90. <Rows>
  91. <Row>
  92. <Col id="wardnm"/>
  93. <Col id="breakmeal"/>
  94. <Col id="lunchmeal"/>
  95. <Col id="dinnermeal"/>
  96. <Col id="mdlsum"/>
  97. </Row>
  98. </Rows>
  99. </Dataset>
  100. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="fromdd" type="STRING" size="256"/>
  103. <Column id="todd" type="STRING" size="256"/>
  104. </ColumnInfo>
  105. <Rows>
  106. <Row/>
  107. </Rows>
  108. </Dataset>
  109. <Dataset id="ds_send_globalinstance_instance1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  110. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  111. </Objects>
  112. <Bind>
  113. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  114. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  115. </Bind>
  116. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  117. * System Name :
  118. * Job Name :
  119. * Creator :
  120. * Make Date : 2015-11-13
  121. * Description :
  122. *---------------------------------------------------------------------------------------
  123. * Modify Date Modifier Modify Description
  124. *---------------------------------------------------------------------------------------
  125. * 2015-11-13 Live Converter TF->XP
  126. *
  127. *---------------------------------------------------------------------------------------
  128. ****************************************************************************************/
  129. include "com_commonxp::comm_main.xjs";
  130. include "ast_examcurexp::AEZ0001.xjs";
  131. function SMANS01100_oninit(obj:Form, e:InitEventInfo)
  132. {
  133. frmf_initForm(obj);
  134. }
  135. function SMANS01100_onload(obj:Form, e:LoadEventInfo)
  136. {
  137. lf_aezfSetSuppDeptcd(); // globalinstance 셋팅하기
  138. var fromdd = utlf_getCurrentDate(); // 적용일자 현재일자 셋팅
  139. var todd = utlf_getCurrentDate(); // 적용일자 현재일자 셋팅
  140. ds_main_list_item.clearData();
  141. ds_send.setColumn(0, "fromdd", fromdd);
  142. ds_send.setColumn(0, "todd", todd);
  143. }
  144. function grp_biz_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  145. {
  146. if ( utlf_isNull(ds_send.getColumn(0, "fromdd")) ){
  147. sysf_messageBox("조회시작일자는", "I003");
  148. grp_biz.grp_sea.ipt_fromdd.setFocus();
  149. return;
  150. }
  151. if ( utlf_isNull(ds_send.getColumn(0, "todd")) ){
  152. sysf_messageBox("조회종료일자는", "I003");
  153. grp_biz.grp_sea.ipt_todd.setFocus();
  154. return;
  155. }
  156. if (utlf_isValidDateTime(ds_send.getColumn(0, "fromdd"), "YYYYMMDD") == false){
  157. sysf_messageBox("조회 시작일자의 형식이", "E016");
  158. grp_biz.grp_sea.ipt_fromdd.setFocus();
  159. return;
  160. }
  161. if (utlf_isValidDateTime(ds_send.getColumn(0, "todd"), "YYYYMMDD") == false){
  162. sysf_messageBox("조회 종료일자의 형식이", "E016");
  163. grp_biz.grp_sea.ipt_todd.setFocus();
  164. return;
  165. }
  166. if (ds_send.getColumn(0, "fromdd") > ds_send.getColumn(0, "todd")){
  167. sysf_messageBox("조회 시작일자는 종료일자 보다 클 수", "I004");
  168. grp_biz.grp_sea.ipt_fromdd.setFocus();
  169. return;
  170. }
  171. var oParam = {};
  172. oParam.id = "TRANS01101";
  173. oParam.service = "dietstatsapp.DietStats";
  174. oParam.method = "reqGetWardDiet";
  175. oParam.inds = "req=ds_send";
  176. oParam.outds = "ds_main_list_item=ret";
  177. oParam.async = false;
  178. tranf_submit(oParam);
  179. //grd_mealprcpcd.subtotalPosition = "below";
  180. // grd_mealprcpcd.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:center", 1, "총계" );
  181. // for(var i=0; i < grd_mealprcpcd.cols; i++){
  182. // if(i >= grd_mealprcpcd.colRef("breakmeal")){
  183. // grd_mealprcpcd.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:center", 1, "총계" );
  184. // }
  185. // }
  186. }
  187. function grp_biz_btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  188. {
  189. grdf_exportExcel(grp_biz.grd_mealprcpcd, "", "sheetname1" , true, "" , "" , true);
  190. }
  191. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  192. {
  193. //미리보기출력
  194. var objDOM = rptf_createDOM();
  195. rptf_setNodeListToDOM(objDOM, "root/main/list/item", ds_main_list_item); // 데이터셋 1
  196. rptf_setNodeListToDOM(objDOM, "root/send", ds_send); // 데이터셋 2
  197. var objParam = new Object();
  198. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  199. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  200. rptf_exeReportPreview30(["RPANS01101"],[objParam], option);
  201. }
  202. ]]></Script>
  203. </Form>
  204. </FDL>