SMANS00600_임상영양관리현황.xfdl 13 KB

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