SMANS02000_중야식통합식수.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANS02000" position="absolute 0 0 1199 763" titletext="통합식수" oninit="SMANS02000_oninit" onload="SMANS02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="월별 통합식수 리스트" position="absolute 2 65 202 82" id="caption1" class="tit_2"/>
  8. <Shape position="absolute 0 81 1183 87" linetype="horizontal" id="line1" class="line_10"/>
  9. <Div position="absolute 0 25 1195 55" align="align:center top;" id="grp_sea" class="div_SA">
  10. <Layouts>
  11. <Layout>
  12. <Static text="조회기간 :" position="absolute 15 7 101 24" id="caption2" class="search_name"/>
  13. <Shape position="absolute 1107 4 1113 26" linetype="vertical" id="line13" class="line_4"/>
  14. <Button position="absolute 1120 4 1176 26" id="btn_sea" class="btn1" taborder="4" text="조회" onclick="grp_sea_btn_sea_onclick"/>
  15. <Calendar position="absolute 402 6 487 25" id="ipt_todd" class="input_default" taborder="2" visible="false" mask="yyyy-mm"/>
  16. <MaskEdit position="absolute 106 6 191 25" align="align:center middle;" id="ipt_fromdd" mask="####-##" style="align:center middle;" maskchar=" " type="string" onkeydown="grp_sea_ipt_fromdd_onkeydown" onkillfocus="grp_sea_ipt_fromdd_onkillfocus"/>
  17. <Button position="absolute 208 8 221 23" id="btn_next" class="icon_next" text="" onclick="grp_sea_btn_next_onclick"/>
  18. <Button position="absolute 193 8 206 23" id="btn_before" class="icon_pre" text="" onclick="grp_sea_btn_before_onclick"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Button position="absolute 1108 60 1182 79" id="btn_excsave" class="btn7" text="엑셀저장" onclick="btn_excsave_onclick"/>
  23. <Grid position="absolute 0 86 1183 755" id="grd_sicksulist" class="datagrid2" binddataset="ds_main_list_item">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="24"/>
  28. <Column size="70"/>
  29. <Column size="100"/>
  30. <Column size="300"/>
  31. <Column size="300"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. <Column size="100"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. <Row size="24" band="summ"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell/>
  43. <Cell col="1" text="사번"/>
  44. <Cell col="2" text="성명"/>
  45. <Cell col="3" text="본원부서"/>
  46. <Cell col="4" text="칠곡부서"/>
  47. <Cell col="5" text="소속"/>
  48. <Cell col="6" text="사용수"/>
  49. <Cell col="7" text="총금액"/>
  50. </Band>
  51. <Band id="body">
  52. <Cell celltype="head" expr="currow + 1"/>
  53. <Cell col="1" displaytype="text" style="align:center;" text="bind:emplno" enable="false"/>
  54. <Cell col="2" text="bind:name" enable="false"/>
  55. <Cell col="3" style="align:left middle;padding:5 2 1 2;" text="bind:dutplcedeptnm" wordwrap="word" enable="false"/>
  56. <Cell col="4" style="align:left middle;padding:5 2 1 2;" text="bind:deptnm" wordwrap="word" enable="false"/>
  57. <Cell col="5" style="align:left middle;padding:5 2 1 2;" text="bind:instnm" wordwrap="word" enable="false"/>
  58. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:count" enable="false"/>
  59. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:amount" enable="false"/>
  60. </Band>
  61. <Band id="summary">
  62. <Cell/>
  63. <Cell col="1"/>
  64. <Cell col="2" style="font:arial,9,bold;" text="총계"/>
  65. <Cell col="3"/>
  66. <Cell col="4"/>
  67. <Cell col="5"/>
  68. <Cell col="6" displaytype="number" style="font:arial,9,bold;" text="expr:getSum(&quot;count&quot;)"/>
  69. <Cell col="7" displaytype="number" style="font:arial,9,bold;" text="expr:getSum(&quot;amount&quot;)"/>
  70. </Band>
  71. </Format>
  72. </Formats>
  73. </Grid>
  74. <Static id="caption6" text="중.야식 통합식수현황" class="tit_1" position="absolute 0 0 209 25"/>
  75. </Layout>
  76. </Layouts>
  77. <Objects>
  78. <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  79. <ColumnInfo>
  80. <Column id="emplno" type="STRING" size="256"/>
  81. <Column id="name" type="STRING" size="256"/>
  82. <Column id="dutplcedeptnm" type="STRING" size="256"/>
  83. <Column id="deptnm" type="STRING" size="256"/>
  84. <Column id="instnm" type="STRING" size="256"/>
  85. <Column id="count" type="STRING" size="256"/>
  86. <Column id="amount" type="STRING" size="256"/>
  87. </ColumnInfo>
  88. <Rows>
  89. <Row>
  90. <Col id="emplno"/>
  91. <Col id="name"/>
  92. <Col id="dutplcedeptnm"/>
  93. <Col id="deptnm"/>
  94. <Col id="instnm"/>
  95. <Col id="count"/>
  96. <Col id="amount"/>
  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. <Column id="fromdd2" type="STRING" size="256"/>
  105. <Column id="todd2" type="STRING" size="256"/>
  106. </ColumnInfo>
  107. <Rows>
  108. <Row>
  109. <Col id="fromdd"/>
  110. <Col id="todd"/>
  111. <Col id="fromdd2"/>
  112. <Col id="todd2"/>
  113. </Row>
  114. </Rows>
  115. </Dataset>
  116. </Objects>
  117. <Bind>
  118. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  119. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  120. </Bind>
  121. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  122. * System Name :
  123. * Job Name :
  124. * Creator :
  125. * Make Date : 2015-11-13
  126. * Description :
  127. *---------------------------------------------------------------------------------------
  128. * Modify Date Modifier Modify Description
  129. *---------------------------------------------------------------------------------------
  130. * 2015-11-13 Live Converter TF->XP
  131. *
  132. *---------------------------------------------------------------------------------------
  133. ****************************************************************************************/
  134. include "com_commonxp::comm_main.xjs";
  135. var arErrorCode = new HashArray();
  136. function SMANS02000_oninit(obj:Form, e:InitEventInfo)
  137. {
  138. frmf_initForm(obj); //폼 초기화
  139. grdf_initGrid(grd_sicksulist);
  140. }
  141. function SMANS02000_onload(obj:Form, e:LoadEventInfo)
  142. {
  143. var fromdd = utlf_getCurrentDate().substring(0, 6) + '0100'; // 적용일자 현재일자 셋팅
  144. var todd = utlf_getCurrentDate().substring(0, 6) + '3199'; // 적용일자 현재일자 셋팅
  145. ds_main_list_item.clearData();
  146. ds_send.setColumn(0, "fromdd", fromdd);
  147. ds_send.setColumn(0, "todd", todd);
  148. }
  149. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  150. {
  151. if (utlf_isNull(ds_send.getColumn(0, "fromdd"))) {
  152. sysf_messageBox("조회시작일자는", "I003");
  153. grp_sea.ipt_fromdd.setFocus();
  154. return;
  155. }
  156. if (utlf_isNull(ds_send.getColumn(0, "todd"))) {
  157. sysf_messageBox("조회종료일자는", "I003");
  158. grp_sea.ipt_todd.setFocus();
  159. return;
  160. }
  161. if (ds_send.getColumn(0, "fromdd") > ds_send.getColumn(0, "todd")) {
  162. sysf_messageBox("조회 시작일자는 종료일자 보다 클 수", "I004");
  163. grp_sea.ipt_fromdd.setFocus();
  164. return;
  165. }
  166. var fromdd = ds_send.getColumn(0, "fromdd"); // 적용일자 현재일자 셋팅
  167. var todd = ds_send.getColumn(0, "fromdd"); // 적용일자 현재일자 셋팅
  168. var fromdd2 = fromdd.substring(0, 6) + '010000';
  169. var todd2 = fromdd.substring(0, 6) + '010000';
  170. ds_send.setColumn(0, "fromdd2", fromdd2);
  171. ds_send.setColumn(0, "todd2", todd2);
  172. var oParam = {};
  173. oParam.id = "TRANS02001";
  174. oParam.service = "dietstatsapp.DietStats";
  175. oParam.method = "reqGetTotalSicsuList";
  176. oParam.inds = "req=ds_send";
  177. oParam.outds = "ds_main_list_item=ret";
  178. oParam.async = false;
  179. tranf_submit(oParam);
  180. }
  181. function grp_sea_btn_before_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. var dd = ds_send.getColumn(0, "fromdd") + "01";
  184. dd = dd.toDate().getAddDate(-1, "M");
  185. var dd1 = dd.getDateFormat("YYYYMM")+ '0100';
  186. var dd2 = dd.getDateFormat("YYYYMM") + '3199';
  187. ds_send.setColumn(0, "fromdd", dd1);
  188. ds_send.setColumn(0, "todd" , dd2);
  189. }
  190. function grp_sea_btn_next_onclick(obj:Button, e:ClickEventInfo)
  191. {
  192. var dd = ds_send.getColumn(0, "fromdd") + "01";
  193. dd = dd.toDate().getAddDate(1, "M");
  194. var dd1 = dd.getDateFormat("YYYYMM") + '0100';
  195. var dd2 = dd.getDateFormat("YYYYMM") + '3199';
  196. ds_send.setColumn(0, "fromdd", dd1);
  197. ds_send.setColumn(0, "todd" , dd2);
  198. }
  199. function grp_sea_ipt_fromdd_onkeydown(obj:MaskEdit, e:KeyEventInfo)
  200. {
  201. if(e.keycode == 13){
  202. grp_sea.ipt_fromdd.updateToDataset();
  203. var fromdd = ds_send.getColumn(0, "fromdd");
  204. var temp1 = fromdd + '0100';
  205. var temp2 = fromdd + '3199';
  206. ds_send.setColumn(0, "fromdd", temp1);
  207. ds_send.setColumn(0, "todd" , temp2);
  208. }
  209. }
  210. function grp_sea_ipt_fromdd_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo)
  211. {
  212. grp_sea.ipt_fromdd.updateToDataset();
  213. var fromdd = ds_send.getColumn(0, "fromdd");
  214. var temp1 = fromdd + '0100';
  215. var temp2 = fromdd + '3199';
  216. ds_send.setColumn(0, "fromdd", temp1);
  217. ds_send.setColumn(0, "todd" , temp2);
  218. }
  219. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  220. {
  221. grdf_exportExcel(grd_sicksulist, "중.야식 통합식수현황" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  222. }
  223. ]]></Script>
  224. </Form>
  225. </FDL>