SMANS00500_임상영양통계.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANS00500" position="absolute 0 0 1195 733" titletext="임상영양통계" oninit="SMANS00500_oninit" onload="SMANS00500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1180 60" align="align:center top;" id="group1" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static text="기간 :" position="absolute 25 9 90 26" id="caption3" class="search_name" anchor="default"/>
  11. <Shape position="absolute 1092 7 1098 29" linetype="vertical" id="line14" class="line_4" anchor="default"/>
  12. <Calendar position="absolute 90 9 189 28" align="align:center middle;" id="ipt_fromdd" class="input_default" taborder="0" anchor="default" autoselect="true" autoskip="true"/>
  13. <Calendar position="absolute 205 9 304 28" align="align:center middle;" id="ipt_todd" class="input_default" taborder="1" anchor="default" autoskip="false" autoselect="true"/>
  14. <Static text="~" position="absolute 193 9 205 26" id="caption11" class="search_n_b" anchor="default"/>
  15. <Button position="absolute 1110 7 1166 29" id="btn_search" class="btn1" taborder="2" text="조회" anchor="default" onclick="group1_btn_search_onclick"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Shape position="absolute 5 60 1185 66" linetype="horizontal" id="line2" class="line_1"/>
  20. <Grid position="absolute 5 89 1188 724" align="align:center middle;" id="grd_data" visible="false" binddataset="ds_grd_data">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="90"/>
  25. <Column size="80"/>
  26. <Column size="90"/>
  27. <Column size="80"/>
  28. <Column size="80"/>
  29. <Column size="55"/>
  30. <Column size="50"/>
  31. <Column size="55"/>
  32. <Column size="55"/>
  33. <Column size="58"/>
  34. <Column size="55"/>
  35. <Column size="50"/>
  36. <Column size="55"/>
  37. <Column size="55"/>
  38. <Column size="55"/>
  39. <Column size="50"/>
  40. <Column size="60"/>
  41. <Column size="70"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="24" band="head"/>
  45. <Row size="24" band="head"/>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell text="구분"/>
  51. <Cell col="1" text="일반상담"/>
  52. <Cell col="2" text="일반상담"/>
  53. <Cell col="3" text="일반상담"/>
  54. <Cell col="4" text="일반상담"/>
  55. <Cell col="5" text="일반상담"/>
  56. <Cell col="6" text="일반상담"/>
  57. <Cell col="7" text="협진"/>
  58. <Cell col="8" text="협진"/>
  59. <Cell col="9" text="협진"/>
  60. <Cell col="10" text="협진"/>
  61. <Cell col="11" text="협진"/>
  62. <Cell col="12" text="영양집중지원"/>
  63. <Cell col="13" text="영양집중지원"/>
  64. <Cell col="14" text="영양집중지원"/>
  65. <Cell col="15" text="영양집중지원"/>
  66. <Cell col="16" text="집단교육"/>
  67. <Cell col="17" text="총계"/>
  68. <Cell row="1" text="구분"/>
  69. <Cell row="1" col="1" text="초기영양검색"/>
  70. <Cell row="1" col="2" text="치료식환자관리"/>
  71. <Cell row="1" col="3" text="식사회진관리"/>
  72. <Cell row="1" col="4" text="전화영양상담"/>
  73. <Cell row="1" col="5" text="추구관리"/>
  74. <Cell row="1" col="6" text="소계"/>
  75. <Cell row="1" col="7" text="입원"/>
  76. <Cell row="1" col="8" text="입원"/>
  77. <Cell row="1" col="9" text="외래"/>
  78. <Cell row="1" col="10" text="추구관리"/>
  79. <Cell row="1" col="11" text="소계"/>
  80. <Cell row="1" col="12" text="영양집중지원"/>
  81. <Cell row="1" col="13" text="영양집중지원"/>
  82. <Cell row="1" col="14" text="영양집중지원"/>
  83. <Cell row="1" col="15" text="영양집중지원"/>
  84. <Cell row="1" col="16" text="집단교육"/>
  85. <Cell row="1" col="17" text="총계"/>
  86. <Cell row="2" text="구분"/>
  87. <Cell row="2" col="1" text="초기영양검색"/>
  88. <Cell row="2" col="2" text="치료식환자관리"/>
  89. <Cell row="2" col="3" text="식사회진관리"/>
  90. <Cell row="2" col="4" text="전화영양상담"/>
  91. <Cell row="2" col="5" text="추구관리"/>
  92. <Cell row="2" col="6" text="소계"/>
  93. <Cell row="2" col="7" text="영양평가"/>
  94. <Cell row="2" col="8" text="영양교육"/>
  95. <Cell row="2" col="9" text=" 영양교육 "/>
  96. <Cell row="2" col="10" text="추구관리"/>
  97. <Cell row="2" col="11" text="소계"/>
  98. <Cell row="2" col="12" text="영양평가"/>
  99. <Cell row="2" col="13" text="영양교육"/>
  100. <Cell row="2" col="14" text="추구관리"/>
  101. <Cell row="2" col="15" text="소계"/>
  102. <Cell row="2" col="16" text="집단교육"/>
  103. <Cell row="2" col="17" text="총계"/>
  104. </Band>
  105. <Band id="body">
  106. <Cell text="bind:cdnm"/>
  107. <Cell col="1" text="bind:kind1"/>
  108. <Cell col="2" text="bind:kind2"/>
  109. <Cell col="3" text="bind:kind3"/>
  110. <Cell col="4" text="bind:kind4"/>
  111. <Cell col="5" text="bind:kind5"/>
  112. <Cell col="6" text="bind:sum1"/>
  113. <Cell col="7" text="bind:kind6"/>
  114. <Cell col="8" text="bind:kind7"/>
  115. <Cell col="9" text="bind:kind8"/>
  116. <Cell col="10" text="bind:kind9"/>
  117. <Cell col="11" text="bind:sum2"/>
  118. <Cell col="12" text="bind:kind10"/>
  119. <Cell col="13" text="bind:kind11"/>
  120. <Cell col="14" text="bind:kind12"/>
  121. <Cell col="15" text="bind:sum3"/>
  122. <Cell col="16" text="bind:kind13"/>
  123. <Cell col="17" text="bind:totalsum"/>
  124. </Band>
  125. </Format>
  126. </Formats>
  127. </Grid>
  128. <Static id="caption6" text="임상영양통계" class="tit_1" position="absolute 0 0 200 25"/>
  129. <Div id="grp_biz" taborder="1" scrollbars="none" position="absolute 5 65 1182 727"/>
  130. </Layout>
  131. </Layouts>
  132. <Objects>
  133. <Dataset id="ds_main_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="cdnm" type="STRING" size="256"/>
  136. <Column id="kind1" type="STRING" size="256"/>
  137. <Column id="kind2" type="STRING" size="256"/>
  138. <Column id="kind3" type="STRING" size="256"/>
  139. <Column id="kind4" type="STRING" size="256"/>
  140. <Column id="kind5" type="STRING" size="256"/>
  141. <Column id="sum1" type="STRING" size="256"/>
  142. <Column id="kind6" type="STRING" size="256"/>
  143. <Column id="kind7" type="STRING" size="256"/>
  144. <Column id="kind8" type="STRING" size="256"/>
  145. <Column id="kind9" type="STRING" size="256"/>
  146. <Column id="sum2" type="STRING" size="256"/>
  147. <Column id="kind10" type="STRING" size="256"/>
  148. <Column id="kind11" type="STRING" size="256"/>
  149. <Column id="kind12" type="STRING" size="256"/>
  150. <Column id="sum3" type="STRING" size="256"/>
  151. <Column id="kind13" type="STRING" size="256"/>
  152. <Column id="totalsum" type="STRING" size="256"/>
  153. </ColumnInfo>
  154. <Rows>
  155. <Row>
  156. <Col id="cdnm"/>
  157. <Col id="kind1"/>
  158. <Col id="kind2"/>
  159. <Col id="kind3"/>
  160. <Col id="kind4"/>
  161. <Col id="kind5"/>
  162. <Col id="sum1"/>
  163. <Col id="kind6"/>
  164. <Col id="kind7"/>
  165. <Col id="kind8"/>
  166. <Col id="kind9"/>
  167. <Col id="sum2"/>
  168. <Col id="kind10"/>
  169. <Col id="kind11"/>
  170. <Col id="kind12"/>
  171. <Col id="sum3"/>
  172. <Col id="kind13"/>
  173. <Col id="totalsum"/>
  174. </Row>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="fromdd" type="STRING" size="256"/>
  180. <Column id="todd" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row>
  184. <Col id="fromdd"/>
  185. <Col id="todd"/>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. </Objects>
  190. <Bind>
  191. <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send_data" columnid="fromdd"/>
  192. <BindItem id="item1" compid="group1.ipt_todd" propid="value" datasetid="ds_send_data" columnid="todd"/>
  193. </Bind>
  194. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  195. * System Name :
  196. * Job Name :
  197. * Creator :
  198. * Make Date : 2015-11-13
  199. * Description :
  200. *---------------------------------------------------------------------------------------
  201. * Modify Date Modifier Modify Description
  202. *---------------------------------------------------------------------------------------
  203. * 2015-11-13 Live Converter TF->XP
  204. *
  205. *---------------------------------------------------------------------------------------
  206. ****************************************************************************************/
  207. include "com_commonxp::comm_main.xjs";
  208. var arErrorCode = new HashArray();
  209. function SMANS00500_oninit(obj:Form, e:InitEventInfo)
  210. {
  211. frmf_initForm(obj); //폼 초기화
  212. }
  213. function SMANS00500_onload(obj:Form, e:LoadEventInfo)
  214. {
  215. group1.ipt_fromdd.value = utlf_getCurrentDate();
  216. group1.ipt_todd.value = utlf_getCurrentDate();
  217. }
  218. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  219. {
  220. if (utlf_isNull(ds_send_data.getColumn(0, "fromdd"))){
  221. sysf_messageBox("조회시작일자는", "I003");
  222. group1.ipt_fromdd.setFocus();
  223. return;
  224. }
  225. if (utlf_isNull(ds_send_data.getColumn(0, "todd"))){
  226. sysf_messageBox("조회종료일자는", "I003");
  227. group1.ipt_todd.setFocus();
  228. return;
  229. }
  230. if (utlf_isValidDateTime(ds_send_data.getColumn(0, "fromdd"), "YYYYMMDD") == false){
  231. sysf_messageBox("조회 시작년월의 형식이", "E016");
  232. group1.ipt_fromdd.setFocus();
  233. return;
  234. }
  235. if (utlf_isValidDateTime(ds_send_data.getColumn(0, "todd"), "YYYYMMDD") == false){
  236. sysf_messageBox("조회 종료년월의 형식이", "E016");
  237. group1.ipt_todd.setFocus();
  238. return;
  239. }
  240. if (ds_send_data.getColumn(0, "fromdd") > ds_send_data.getColumn(0, "todd")){
  241. sysf_messageBox("조회 시작년월은 종료년월 보다 클 수", "I004");
  242. group1.ipt_fromdd.setFocus();
  243. return;
  244. }
  245. var oParam = {};
  246. oParam.id = "TRANS00501";
  247. oParam.service = "dietstatsapp.DietStats";
  248. oParam.method = "reqGetClincNutrStats";
  249. oParam.inds = "req=ds_send_data";
  250. oParam.outds = "ds_main_data=ret";
  251. oParam.async = false;
  252. tranf_submit(oParam);
  253. //exeReportPreview("RPANS00501", "XMLSTR", "", "", "false","","","","","false", "", "");
  254. var objDOM = rptf_createDOM();
  255. rptf_setNodeListToDOM(objDOM, "root/main/data", ds_main_data);
  256. rptf_setNodeListToDOM(objDOM, "root/send/data", ds_send_data);
  257. var objParam = new Object();
  258. objParam.xml_data_XML1 = objDOM.documentElement.source;
  259. var option = "open=1;save=1;directprint=0;print=0;zoom=0;";
  260. rptf_exeReportPreview30(["RPANS00501"],[objParam], option, "", "grp_biz");
  261. }
  262. ]]></Script>
  263. </Form>
  264. </FDL>