SMRSG06600_식수단가 집계(영양).xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSG06600" position="absolute 0 0 1211 767" titletext="식수단가 집계" onload="SMRSG06600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 1195 29" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 189 22" style="" text="식수단가 집계" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group5" scrollbars="autoboth" position="absolute 0 46 1195 757" style="">
  15. <Layouts>
  16. <Layout>
  17. <Div id="group6" position="absolute 0 10 1195 45" style="align: top;" anchor="default">
  18. <Layouts>
  19. <Layout>
  20. <Shape id="roundrect3" anchor="default" type="roundrectangle" position="absolute 0 0 1195 35" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;"/>
  21. <Static id="caption4" class="search_name" position="absolute 226 9 312 26" style="" text="조회년월 :" anchor="default"/>
  22. <Static id="caption2" class="search_name" position="absolute 15 9 101 26" style="" text="기관코드 :" anchor="default"/>
  23. <Button id="btn_search" class="btn1" position="absolute 1125 7 1181 29" style="" text="조회" onclick="group5_group6_btn_search_onclick" anchor="default"/>
  24. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1110 7 1113 29" style="border:1 solid #ffe4bb #ffe4bb;" anchor="default"/>
  25. <Combo innerdataset="" datacolumn="" codecolumn="" columncount="-1" rowcount="-1" id="cmb_instcd" class="combo_search" position="absolute 100 8 200 27" style="" anchor="default"/>
  26. <Calendar id="ipt_stocym" class="input_essential" mask="yyyy-mm" position="absolute 312 8 412 27" style="align:center ;" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" autoselect="true"/>
  27. <Edit id="ipt_goodflag" visible="false" position="absolute 632 9 683 28" style="" anchor="default"/>
  28. <Edit id="ipt_stocdeptcd" visible="false" position="absolute 688 8 732 27" style="" anchor="default"/>
  29. </Layout>
  30. </Layouts>
  31. </Div>
  32. <Tab id="sw_flag" position="absolute 0 51 1195 706" style="" anchor="default">
  33. <Tabpages>
  34. <Tabpage id="case_grdmonthpr" selected="true" anchor="default" text="월별 식수 단가 집계">
  35. <Layouts>
  36. <Layout>
  37. <Shape id="line15" class="line_1" linetype="horizontal" position="absolute 0 30 1192 33" style="" anchor="default"/>
  38. <Button id="button14" class="btn7" position="absolute 1140 9 1190 28" style="" text="엑셀" onclick="group5_sw_flag_case_grdmonthpr_button14_onclick" anchor="default"/>
  39. <Grid id="grd_monthcostlist" binddataset="ds_main_list_monthcostlist" position="absolute 0 32 1194 624" style="" anchor="default">
  40. <Formats>
  41. <Format id="default">
  42. <Columns>
  43. <Column size="24"/>
  44. <Column size="65"/>
  45. <Column size="120"/>
  46. <Column size="88"/>
  47. <Column size="88"/>
  48. <Column size="95"/>
  49. <Column size="88"/>
  50. <Column size="88"/>
  51. <Column size="95"/>
  52. <Column size="88"/>
  53. <Column size="88"/>
  54. <Column size="95"/>
  55. <Column size="78"/>
  56. <Column size="65"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. </Columns>
  64. <Rows>
  65. <Row size="25" band="head"/>
  66. <Row size="25" band="head"/>
  67. <Row size="25"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell/>
  71. <Cell col="1" colspan="2" style="font:bold,9;" text="코드분류" taborder="undefined"/>
  72. <Cell col="3" colspan="3" style="font:bold,9;" text="전년동월" taborder="undefined"/>
  73. <Cell col="6" colspan="3" style="font:bold,9;" text="전월" taborder="undefined"/>
  74. <Cell col="9" colspan="3" style="font:bold,9;" text="당월" taborder="undefined"/>
  75. <Cell col="12" colspan="2" style="font:bold,9;" text="증감율" taborder="undefined"/>
  76. <Cell col="14"/>
  77. <Cell col="15" text="코드"/>
  78. <Cell col="16" text="품명"/>
  79. <Cell col="17" text="환자식"/>
  80. <Cell col="18" text="직원식"/>
  81. <Cell col="19" text="계"/>
  82. <Cell col="20" text="환자식"/>
  83. <Cell col="21" text="직원식"/>
  84. <Cell col="22" text="계"/>
  85. <Cell col="23" text="환자식"/>
  86. <Cell col="24" text="직원식"/>
  87. <Cell col="25" text="계"/>
  88. <Cell col="26" text="전년동월대비"/>
  89. <Cell col="27" text="전월대비"/>
  90. <Cell col="28"/>
  91. <Cell row="1"/>
  92. <Cell row="1" col="1" style="font:bold,9;" text="코드"/>
  93. <Cell row="1" col="2" style="font:bold,9;" text="품명"/>
  94. <Cell row="1" col="3" style="font:bold,9;" text="환자식"/>
  95. <Cell row="1" col="4" style="font:bold,9;" text="직원식"/>
  96. <Cell row="1" col="5" style="font:bold,9;" text="계"/>
  97. <Cell row="1" col="6" style="font:bold,9;" text="환자식"/>
  98. <Cell row="1" col="7" style="font:bold,9;" text="직원식"/>
  99. <Cell row="1" col="8" style="font:bold,9;" text="계"/>
  100. <Cell row="1" col="9" style="font:bold,9;" text="환자식"/>
  101. <Cell row="1" col="10" style="font:bold,9;" text="직원식"/>
  102. <Cell row="1" col="11" style="font:bold,9;" text="계"/>
  103. <Cell row="1" col="12" style="font:bold,9;" text="전년동월대비"/>
  104. <Cell row="1" col="13" style="font:bold,9;" text="전월대비"/>
  105. <Cell row="1" col="14"/>
  106. </Band>
  107. <Band id="body">
  108. <Cell celltype="head"/>
  109. <Cell col="1" style="align:left middle;" text="bind:lrgcd"/>
  110. <Cell col="2" style="align:right middle;" text="bind:lrgnm"/>
  111. <Cell col="3" displaytype="number" text="bind:befyearpat"/>
  112. <Cell col="4" displaytype="number" text="bind:befyearemp"/>
  113. <Cell col="5" displaytype="number" text="bind:befyeartot"/>
  114. <Cell col="6" displaytype="number" text="bind:befmonpat"/>
  115. <Cell col="7" displaytype="number" text="bind:befmonemp"/>
  116. <Cell col="8" displaytype="number" text="bind:befmontot"/>
  117. <Cell col="9" displaytype="number" text="bind:realmonpat"/>
  118. <Cell col="10" displaytype="number" text="bind:realmonemp"/>
  119. <Cell col="11" displaytype="number" text="bind:realmontot"/>
  120. <Cell col="12" displaytype="number" text="bind:befyearodds"/>
  121. <Cell col="13" displaytype="number" text="bind:befmonodds"/>
  122. <Cell col="14" text="bind:instcd"/>
  123. </Band>
  124. </Format>
  125. </Formats>
  126. </Grid>
  127. </Layout>
  128. </Layouts>
  129. </Tabpage>
  130. <Tabpage id="case_grdcostpr" anchor="default" text="기간별 식수단가 집계">
  131. <Layouts>
  132. <Layout>
  133. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 30 1194 33" style="" anchor="default"/>
  134. <Button id="button1" class="btn7" position="absolute 1142 10 1195 29" style="" text="엑셀" onclick="group5_sw_flag_case_grdcostpr_button1_onclick" anchor="default"/>
  135. <Grid id="grd_costlist" binddataset="ds_main_list_costlist" position="absolute 0 32 1195 626" style="" anchor="default">
  136. <Formats>
  137. <Format id="default">
  138. <Columns>
  139. <Column size="24"/>
  140. <Column size="80"/>
  141. <Column size="145"/>
  142. <Column size="97"/>
  143. <Column size="97"/>
  144. <Column size="95"/>
  145. <Column size="97"/>
  146. <Column size="97"/>
  147. <Column size="95"/>
  148. <Column size="110"/>
  149. <Column size="110"/>
  150. <Column size="120"/>
  151. <Column size="0"/>
  152. <Column size="0"/>
  153. <Column size="0"/>
  154. <Column size="0"/>
  155. <Column size="0"/>
  156. <Column size="0"/>
  157. <Column size="0"/>
  158. <Column size="0"/>
  159. </Columns>
  160. <Rows>
  161. <Row size="25" band="head"/>
  162. <Row size="25" band="head"/>
  163. <Row size="25"/>
  164. </Rows>
  165. <Band id="head">
  166. <Cell rowspan="2" taborder="undefined"/>
  167. <Cell col="1" colspan="2" style="font:bold,9;" text="코드분류" taborder="undefined"/>
  168. <Cell col="3" colspan="3" style="font:bold,9;" text="전월" taborder="undefined"/>
  169. <Cell col="6" colspan="3" style="font:bold,9;" text="당월" taborder="undefined"/>
  170. <Cell col="9" colspan="3" style="font:bold,9;" text="기간별합계" taborder="undefined"/>
  171. <Cell col="12"/>
  172. <Cell col="13" text="코드"/>
  173. <Cell col="14" text="품명"/>
  174. <Cell col="15" text="환자식"/>
  175. <Cell col="16" text="직원식"/>
  176. <Cell col="17" text="계"/>
  177. <Cell col="18" text="환자식"/>
  178. <Cell col="19" text="직원식"/>
  179. <Cell col="20" text="계"/>
  180. <Cell col="21" text="환자식"/>
  181. <Cell col="22" text="직원식"/>
  182. <Cell col="23" text="계"/>
  183. <Cell col="24"/>
  184. <Cell row="1" col="1" style="font:bold,9;" text="코드"/>
  185. <Cell row="1" col="2" style="font:bold,9;" text="품명"/>
  186. <Cell row="1" col="3" style="font:bold,9;" text="환자식"/>
  187. <Cell row="1" col="4" style="font:bold,9;" text="직원식"/>
  188. <Cell row="1" col="5" style="font:bold,9;" text="계"/>
  189. <Cell row="1" col="6" style="font:bold,9;" text="환자식"/>
  190. <Cell row="1" col="7" style="font:bold,9;" text="직원식"/>
  191. <Cell row="1" col="8" style="font:bold,9;" text="계"/>
  192. <Cell row="1" col="9" style="font:bold,9;" text="환자식"/>
  193. <Cell row="1" col="10" style="font:bold,9;" text="직원식"/>
  194. <Cell row="1" col="11" style="font:bold,9;" text="계"/>
  195. <Cell row="1" col="12"/>
  196. </Band>
  197. <Band id="body">
  198. <Cell celltype="head"/>
  199. <Cell col="1" style="align:left middle;" text="bind:lrgcd"/>
  200. <Cell col="2" style="align:right middle;" text="bind:lrgnm"/>
  201. <Cell col="3" displaytype="number" text="bind:befmonpat"/>
  202. <Cell col="4" displaytype="number" text="bind:befmonemp"/>
  203. <Cell col="5" displaytype="number" text="bind:befmontot"/>
  204. <Cell col="6" displaytype="number" text="bind:realmonpat"/>
  205. <Cell col="7" displaytype="number" text="bind:realmonemp"/>
  206. <Cell col="8" displaytype="number" text="bind:realmontot"/>
  207. <Cell col="9" displaytype="number" text="bind:totcostpat"/>
  208. <Cell col="10" displaytype="number" text="bind:totcostemp"/>
  209. <Cell col="11" displaytype="number" text="bind:totcosttot"/>
  210. <Cell col="12" text="bind:instcd"/>
  211. </Band>
  212. </Format>
  213. </Formats>
  214. </Grid>
  215. </Layout>
  216. </Layouts>
  217. </Tabpage>
  218. </Tabpages>
  219. </Tab>
  220. </Layout>
  221. </Layouts>
  222. </Div>
  223. <Div id="group4" scrollbars="none" position="absolute 0 20 1195 47" style="">
  224. <Layouts>
  225. <Layout>
  226. <Button id="button34" class="btn6" visible="false" position="absolute 0 3 56 25" style="" text="출력" anchor="default"/>
  227. <Shape id="line17" class="line_6" linetype="horizontal" position="absolute 0 25 1195 28" style="" anchor="default"/>
  228. </Layout>
  229. </Layouts>
  230. </Div>
  231. </Layout>
  232. </Layouts>
  233. <Objects>
  234. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  235. <ColumnInfo>
  236. <Column id="instcd" type="STRING" size="256"/>
  237. <Column id="stocym" type="STRING" size="256"/>
  238. <Column id="goodflag" type="STRING" size="256"/>
  239. <Column id="stocdeptcd" type="STRING" size="256"/>
  240. <Column id="avgwinamtlist" type="STRING" size="256"/>
  241. </ColumnInfo>
  242. <Rows>
  243. <Row>
  244. <Col id="instcd"/>
  245. <Col id="stocym"/>
  246. <Col id="goodflag"/>
  247. <Col id="stocdeptcd"/>
  248. <Col id="avgwinamtlist"/>
  249. </Row>
  250. </Rows>
  251. </Dataset>
  252. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  253. <ColumnInfo>
  254. <Column id="temp" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. <Rows>
  257. <Row>
  258. <Col id="temp"/>
  259. </Row>
  260. </Rows>
  261. </Dataset>
  262. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  263. <ColumnInfo>
  264. <Column id="hidden" type="STRING" size="256"/>
  265. </ColumnInfo>
  266. </Dataset>
  267. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  268. <ColumnInfo>
  269. <Column id="monthcostlist" type="STRING" size="256"/>
  270. <Column id="costlist" type="STRING" size="256"/>
  271. </ColumnInfo>
  272. <Rows>
  273. <Row>
  274. <Col id="monthcostlist"/>
  275. <Col id="costlist"/>
  276. </Row>
  277. </Rows>
  278. </Dataset>
  279. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  280. <ColumnInfo/>
  281. </Dataset>
  282. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  283. <ColumnInfo>
  284. <Column id="init" type="STRING" size="256"/>
  285. </ColumnInfo>
  286. <Rows>
  287. <Row>
  288. <Col id="init"/>
  289. </Row>
  290. </Rows>
  291. </Dataset>
  292. <Dataset id="ds_main_list_monthcostlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  293. <Dataset id="ds_main_list_costlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  294. </Objects>
  295. <Bind>
  296. <BindItem id="item0" compid="group5.group6.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  297. <BindItem id="item1" compid="group5.group6.ipt_stocym" propid="value" datasetid="ds_send" columnid="stocym"/>
  298. <BindItem id="item2" compid="group5.group6.ipt_goodflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
  299. <BindItem id="item3" compid="group5.group6.ipt_stocdeptcd" propid="value" datasetid="ds_send" columnid="stocdeptcd"/>
  300. </Bind>
  301. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  302. * System Name :
  303. * Job Name :
  304. * Creator :
  305. * Make Date : 2017-06-19
  306. * Description :
  307. *---------------------------------------------------------------------------------------
  308. * Modify Date Modifier Modify Description
  309. *---------------------------------------------------------------------------------------
  310. * 2017-06-19 Live Converter TF->XP
  311. *
  312. *---------------------------------------------------------------------------------------
  313. ****************************************************************************************/
  314. include "com_commonxp::comm_main.xjs";
  315. include "mis_miscommonxp::MIS.xjs";
  316. include "mis_miscommonxp::RSZ001.xjs";
  317. var RetrYn = "Y";
  318. function SMRSG06600_onload(obj:Form, e:LoadEventInfo) {
  319. frmf_initForm(obj);
  320. grdf_setRowTypeIcon(group5.sw_flag.case_grdmonthpr.grd_monthcostlist, 0);
  321. grdf_setRowTypeIcon(group5.sw_flag.case_grdcostpr.grd_costlist, 0);
  322. //grdf_initGrid(grd_XXX);
  323. //grdf_setGridSort(grd_XXX);
  324. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  325. //화면 Control을 초기화한다
  326. fInitialize();
  327. }
  328. function fInitialize() {
  329. grdf_initGrid(group5.sw_flag.case_grdmonthpr.grd_monthcostlist);
  330. grdf_initGrid(group5.sw_flag.case_grdcostpr.grd_costlist);
  331. // group5.sw_flag.case_grdmonthpr.grd_monthcostlist.rowHeight(0) = "20";
  332. // group5.sw_flag.case_grdmonthpr.grd_monthcostlist.rowHeight(1) = "20";
  333. // group5.sw_flag.case_grdcostpr.grd_costlist.rowHeight(0) = "20";
  334. // group5.sw_flag.case_grdcostpr.grd_costlist.rowHeight(1) = "20";
  335. rszfUserInstList(group5.group6.cmb_instcd,sysf_getUserInfo("userid"));
  336. //misfMsterDetailSet(group5.sw_flag.case_grdmonthpr.grd_monthcostlist,null, "TRRSG06601" ,"N");
  337. var curdate = utlf_getCurrentDate();
  338. ds_send.setColumn(0,"stocym" ,curdate.substr(0,6));
  339. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  340. ds_send.setColumn(0,"goodflag","PH");
  341. // hidden column
  342. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  343. ds_send.setColumn(0,"goodflag","SF");
  344. //model.setValue(group5.group6.ipt_stocdeptcd.attribute("ref") ,"3251000000"); // sysf_getUserInfo("dutplcecd"));
  345. ds_send.setColumn(0,"stocdeptcd", sysf_getUserInfo("dutplcecd"));
  346. ds_send.setColumn(0,"instcd" , sysf_getUserInfo("dutplceinstcd"));
  347. group5.sw_flag.tabindex = 0;
  348. }
  349. function fCheckRetrieveData(pmsg)
  350. {
  351. if(model.getValue(group5.group6.cmb_instcd.attribute("ref")).length== 0 )
  352. {
  353. if(pmsg == true)
  354. {
  355. sysf_messageBox("기관코드를 " ,"C002");
  356. group5.group6.cmb_instcd.setFocus();
  357. }
  358. return false;
  359. }
  360. if(model.getValue(group5.group6.ipt_stocym.attribute("ref")).length== 0 )
  361. {
  362. if(pmsg == true)
  363. {
  364. sysf_messageBox("조회시작년월 " ,"C002");
  365. ipt_stocfrym.setFocus();
  366. }
  367. return false;
  368. }
  369. return true;
  370. }
  371. function group5_group6_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  372. ds_send.setColumn(0,"stocym",ds_send.getColumn(0,"stocym").substring(0,6));
  373. if (group5.sw_flag.tabindex == 0)
  374. {
  375. var oParam = {};
  376. oParam.id = "TRRSG06601";
  377. oParam.service = "stocsumapp.StocSumMngt";
  378. oParam.method = "reqGetMonthCostList";
  379. oParam.inds = "req=ds_send";
  380. oParam.outds = "ds_main_list_monthcostlist=monthcostlist";
  381. oParam.async = false;
  382. //oParam.callback = "cf_TRRSG06601";
  383. tranf_submit(oParam);
  384. } else {
  385. var oParam = {};
  386. oParam.id = "TRRSG06602";
  387. oParam.service = "stocsumapp.StocSumMngt";
  388. oParam.method = "reqGetCostList";
  389. oParam.inds = "req=ds_send";
  390. oParam.outds = "ds_main_list_costlist=costlist";
  391. oParam.async = false;
  392. //oParam.callback = "cf_TRRSG06602";
  393. tranf_submit(oParam);
  394. }
  395. }
  396. function group5_sw_flag_case_grdmonthpr_button14_onclick(obj:Button, e:ClickEventInfo) {
  397. grdf_exportExcel(group5.sw_flag.case_grdmonthpr.grd_monthcostlist, "월별 식수단가 집계_"+ds_send.getColumn(0, "stocym"), "sheet", "true", "", "");
  398. }
  399. function group5_sw_flag_case_grdcostpr_button1_onclick(obj:Button, e:ClickEventInfo) {
  400. grdf_exportExcel(group5.sw_flag.case_grdcostpr.grd_costlist, "기간별 식수단가 집계_"+ds_send.getColumn(0, "stocym"), "sheet", "true", "", "");
  401. }
  402. ]]></Script>
  403. </Form>
  404. </FDL>