SMANS00200_환자급식관리현황.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANS00200" position="absolute 0 0 1216 805" titletext="환자 급식 관리 현황" oninit="SMANS00200_oninit" onload="SMANS00200_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="환자급식관리현황" position="absolute 5 0 154 25" id="caption6" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 13 1195 813" id="grp_biz" scrollbars="none">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 5 10 1185 47" align="align:center top;" id="group1">
  18. <Layouts>
  19. <Layout>
  20. <Shape position="absolute 0 2 1178 37" id="roundrect1" type="roundrectangle" anchor="default"/>
  21. <Static text="조회년월 :" position="absolute 15 11 101 28" id="caption2" class="search_name" anchor="default"/>
  22. <Shape position="absolute 1092 9 1098 31" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  23. <Button position="absolute 1110 9 1166 31" id="btn_search" class="btn1" taborder="4" text="조회" anchor="default" onclick="grp_biz_group1_btn_search_onclick"/>
  24. <MaskEdit position="absolute 110 10 185 29" align="align:center middle;" id="ipt_fromdd" mask="####-##" anchor="default" style="align:center middle;" maskchar=" " trimtype="both" type="string" displaynulltext=" " autoselect="true" autoskip="true"/>
  25. <MaskEdit position="absolute 205 9 280 28" align="align:center middle;" id="ipt_todd" mask="####-##" anchor="default" style="align:center middle;" maskchar=" " trimtype="both" type="string" displaynulltext=" " autoselect="true"/>
  26. <Static text="~" position="absolute 190 9 202 26" id="caption11" class="search_n_b" anchor="default" style="font:Dotum,9,bold;"/>
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Shape position="absolute 5 51 1185 57" linetype="horizontal" id="line1" class="line_10"/>
  31. <Grid position="absolute 5 55 1185 780" align="align:center middle;" id="grd_patmeal" visible="false" taborder="5" binddataset="ds_main_patmeal_patmeallist">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="25"/>
  36. <Column size="130"/>
  37. <Column size="60"/>
  38. <Column size="60"/>
  39. <Column size="60"/>
  40. <Column size="60"/>
  41. <Column size="60"/>
  42. <Column size="60"/>
  43. <Column size="60"/>
  44. <Column size="60"/>
  45. <Column size="60"/>
  46. <Column size="60"/>
  47. <Column size="60"/>
  48. <Column size="60"/>
  49. <Column size="100"/>
  50. <Column size="104"/>
  51. <Column size="104"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="24" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell rowspan="2"/>
  60. <Cell col="1" rowspan="2" text="구분"/>
  61. <Cell col="2" rowspan="2" text="caption1"/>
  62. <Cell col="3" rowspan="2" text="caption2"/>
  63. <Cell col="4" rowspan="2" text="caption3"/>
  64. <Cell col="5" rowspan="2" text="caption4"/>
  65. <Cell col="6" rowspan="2" text="caption5"/>
  66. <Cell col="7" rowspan="2" text="caption6"/>
  67. <Cell col="8" rowspan="2" text="caption7"/>
  68. <Cell col="9" rowspan="2" text="caption8"/>
  69. <Cell col="10" rowspan="2" text="caption9"/>
  70. <Cell col="11" rowspan="2" text="caption10"/>
  71. <Cell col="12" rowspan="2" text="caption11"/>
  72. <Cell col="13" rowspan="2" text="caption12"/>
  73. <Cell col="14" rowspan="2" text="합계"/>
  74. <Cell col="15" colspan="2" text="비고"/>
  75. <Cell row="1" col="15" text="caption"/>
  76. <Cell row="1" col="16" text="증감비(%)"/>
  77. </Band>
  78. <Band id="body">
  79. <Cell celltype="head" text="expr:currow + 1"/>
  80. <Cell col="1" text="bind:dietcd"/>
  81. <Cell col="2" text="bind:mm01"/>
  82. <Cell col="3" text="bind:mm02"/>
  83. <Cell col="4" text="bind:mm03"/>
  84. <Cell col="5" text="bind:mm04"/>
  85. <Cell col="6" text="bind:mm05"/>
  86. <Cell col="7" text="bind:mm06"/>
  87. <Cell col="8" text="bind:mm07"/>
  88. <Cell col="9" text="bind:mm08"/>
  89. <Cell col="10" text="bind:mm09"/>
  90. <Cell col="11" text="bind:mm10"/>
  91. <Cell col="12" text="bind:mm11"/>
  92. <Cell col="13" text="bind:mm12"/>
  93. <Cell col="14" text="bind:mdlsum"/>
  94. <Cell col="15" text="bind:lastsum"/>
  95. <Cell col="16" text="bind:difrate"/>
  96. </Band>
  97. </Format>
  98. </Formats>
  99. </Grid>
  100. <Div id="grp_biz2" taborder="6" position="absolute 5 55 1185 780" scrollbars="none"/>
  101. </Layout>
  102. </Layouts>
  103. </Div>
  104. </Layout>
  105. </Layouts>
  106. <Objects>
  107. <Dataset id="ds_main_patmeal_patmeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="fromdd" type="STRING" size="256"/>
  110. <Column id="todd" type="STRING" size="256"/>
  111. <Column id="dietcd" type="STRING" size="256"/>
  112. <Column id="mm01" type="STRING" size="256"/>
  113. <Column id="mm02" type="STRING" size="256"/>
  114. <Column id="mm03" type="STRING" size="256"/>
  115. <Column id="mm04" type="STRING" size="256"/>
  116. <Column id="mm05" type="STRING" size="256"/>
  117. <Column id="mm06" type="STRING" size="256"/>
  118. <Column id="mm07" type="STRING" size="256"/>
  119. <Column id="mm08" type="STRING" size="256"/>
  120. <Column id="mm09" type="STRING" size="256"/>
  121. <Column id="mm10" type="STRING" size="256"/>
  122. <Column id="mm11" type="STRING" size="256"/>
  123. <Column id="mm12" type="STRING" size="256"/>
  124. <Column id="mdlsum" type="STRING" size="256"/>
  125. <Column id="lastsum" type="STRING" size="256"/>
  126. <Column id="difrate" type="STRING" size="256"/>
  127. </ColumnInfo>
  128. <Rows>
  129. <Row>
  130. <Col id="fromdd"/>
  131. <Col id="todd"/>
  132. <Col id="dietcd"/>
  133. <Col id="mm01"/>
  134. <Col id="mm02"/>
  135. <Col id="mm03"/>
  136. <Col id="mm04"/>
  137. <Col id="mm05"/>
  138. <Col id="mm06"/>
  139. <Col id="mm07"/>
  140. <Col id="mm08"/>
  141. <Col id="mm09"/>
  142. <Col id="mm10"/>
  143. <Col id="mm11"/>
  144. <Col id="mm12"/>
  145. <Col id="mdlsum"/>
  146. <Col id="lastsum"/>
  147. <Col id="difrate"/>
  148. </Row>
  149. </Rows>
  150. </Dataset>
  151. <Dataset id="ds_main_gridcaption" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="mm1" type="STRING" size="256"/>
  154. <Column id="mm2" type="STRING" size="256"/>
  155. <Column id="mm3" type="STRING" size="256"/>
  156. <Column id="mm4" type="STRING" size="256"/>
  157. <Column id="mm5" type="STRING" size="256"/>
  158. <Column id="mm6" type="STRING" size="256"/>
  159. <Column id="mm7" type="STRING" size="256"/>
  160. <Column id="mm8" type="STRING" size="256"/>
  161. <Column id="mm9" type="STRING" size="256"/>
  162. <Column id="mm10" type="STRING" size="256"/>
  163. <Column id="mm11" type="STRING" size="256"/>
  164. <Column id="mm12" type="STRING" size="256"/>
  165. <Column id="lastyy" type="STRING" size="256"/>
  166. </ColumnInfo>
  167. <Rows>
  168. <Row>
  169. <Col id="mm1"/>
  170. <Col id="mm2"/>
  171. <Col id="mm3"/>
  172. <Col id="mm4"/>
  173. <Col id="mm5"/>
  174. <Col id="mm6"/>
  175. <Col id="mm7"/>
  176. <Col id="mm8"/>
  177. <Col id="mm9"/>
  178. <Col id="mm10"/>
  179. <Col id="mm11"/>
  180. <Col id="mm12"/>
  181. <Col id="lastyy"/>
  182. </Row>
  183. </Rows>
  184. </Dataset>
  185. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  186. <ColumnInfo>
  187. <Column id="fromdd" type="STRING" size="256"/>
  188. <Column id="todd" type="STRING" size="256"/>
  189. <Column id="lastfromdd" type="STRING" size="256"/>
  190. </ColumnInfo>
  191. <Rows>
  192. <Row/>
  193. </Rows>
  194. </Dataset>
  195. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  196. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  197. </Objects>
  198. <Bind>
  199. <BindItem id="item0" compid="grp_biz.group1.ipt_fromdd" propid="value" datasetid="ds_send_data" columnid="fromdd"/>
  200. <BindItem id="item1" compid="grp_biz.group1.ipt_todd" propid="value" datasetid="ds_send_data" columnid="todd"/>
  201. </Bind>
  202. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  203. * System Name :
  204. * Job Name :
  205. * Creator :
  206. * Make Date : 2015-11-13
  207. * Description :
  208. *---------------------------------------------------------------------------------------
  209. * Modify Date Modifier Modify Description
  210. *---------------------------------------------------------------------------------------
  211. * 2015-11-13 Live Converter TF->XP
  212. *
  213. *---------------------------------------------------------------------------------------
  214. ****************************************************************************************/
  215. include "com_commonxp::comm_main.xjs";
  216. function SMANS00200_oninit(obj:Form, e:InitEventInfo)
  217. {
  218. frmf_initForm(obj);
  219. }
  220. function SMANS00200_onload(obj:Form, e:LoadEventInfo)
  221. {
  222. grp_biz.group1.ipt_fromdd.value = utlf_getCurrentDate().substr(0, 6);
  223. grp_biz.group1.ipt_todd.value = utlf_getCurrentDate().substr(0, 6);
  224. //makeReportPreview(5,55,1170,700);
  225. }
  226. function grp_biz_group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  227. {
  228. if ( utlf_isNull(ds_send_data.getColumn(0, "fromdd"))){
  229. sysf_messageBox("조회시작년월은", "I003");
  230. grp_biz.group1.ipt_fromdd.setFocus();
  231. return;
  232. }
  233. if ( utlf_isNull(ds_send_data.getColumn(0, "todd"))){
  234. sysf_messageBox("조회종료년월은", "I003");
  235. grp_biz.group1.ipt_todd.setFocus();
  236. return;
  237. }
  238. if (utlf_isValidDateTime(ds_send_data.getColumn(0, "fromdd"), "YYYYMM") == false){
  239. sysf_messageBox("조회 시작년월의 형식이", "E016");
  240. grp_biz.group1.ipt_fromdd.setFocus();
  241. return;
  242. }
  243. if (utlf_isValidDateTime(ds_send_data.getColumn(0, "todd"), "YYYYMM") == false){
  244. sysf_messageBox("조회 종료년월의 형식이", "E016");
  245. grp_biz.group1.ipt_todd.setFocus();
  246. return;
  247. }
  248. if (ds_send_data.getColumn(0, "fromdd") > ds_send_data.getColumn(0, "todd")){
  249. sysf_messageBox("조회 시작년월은 종료년월 보다 클 수", "I004");
  250. grp_biz.group1.ipt_fromdd.setFocus();
  251. return;
  252. }
  253. var fromdd = ds_send_data.getColumn(0, "fromdd");
  254. var fromdd2 = fromdd + "01";
  255. fromdd2 = fromdd2.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMM");
  256. ds_send_data.setColumn(0, "lastfromdd", fromdd2);
  257. var oParam = {};
  258. oParam.id = "TRANS00201";
  259. oParam.service = "dietstatsapp.DietStats";
  260. oParam.method = "reqGetPatDietYMStats";
  261. oParam.inds = "req=ds_send_data";
  262. oParam.outds = "ds_main_patmeal_patmeallist=ret";
  263. oParam.async = false;
  264. tranf_submit(oParam);
  265. //그리드의 caption을 조회년월에 따라 가변적으로 바꿔주기
  266. ds_main_gridcaption.clearData();
  267. ds_main_gridcaption.addRow();
  268. var sdate = ds_send_data.getColumn(0, "fromdd");
  269. var sdate1 = parseInt(sdate.substr(0, 4))-1;
  270. var sdate2 = sdate + "01";
  271. //출력물의 caption setting
  272. var todd = ds_send_data.getColumn(0, "todd");
  273. for (var i = 1; i <= 12; i++) {
  274. if (sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYYMM") <= todd) {
  275. ds_main_gridcaption.setColumn(0, "mm" + i, sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYY/MM"));
  276. }
  277. }
  278. ds_main_gridcaption.setColumn(0, "lastyy", sdate1);
  279. //미리보기출력
  280. var objDOM = rptf_createDOM();
  281. rptf_setNodeListToDOM(objDOM, "root/main/patmeal/patmeallist" , ds_main_patmeal_patmeallist); // 데이터셋 1
  282. rptf_setNodeListToDOM(objDOM, "root/send/data" , ds_send_data); // 데이터셋 2
  283. rptf_setNodeListToDOM(objDOM, "root/main/gridcaption" , ds_main_gridcaption); // 데이터셋 3
  284. var objParam = new Object();
  285. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  286. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  287. rptf_exeReportPreview30(["RPANS00201"],[objParam], option, "", "grp_biz.grp_biz2");
  288. }
  289. ]]></Script>
  290. </Form>
  291. </FDL>