SMAHS01200_미수금현황.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS01200" position="absolute 0 0 1204 784" titletext="건진일평균인원현황" oninit="SMAHS01200_oninit" onload="SMAHS01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 65" id="group2" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 1120 9 1126 31" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  11. <Button position="absolute 1130 9 1186 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
  12. <Button position="absolute 967 9 1047 31" id="btn_excelsave" class="btn7" visible="true" text="엑셀저장" anchor="top right" onclick="group2_btn_excelsave_onclick"/>
  13. <Button position="absolute 1061 9 1117 31" id="btn_prt" class="btn6" text="출력" anchor="top right" onclick="group2_btn_prt_onclick"/>
  14. <Shape position="absolute 1051 9 1057 31" linetype="vertical" id="line3" class="line_4" visible="false" anchor="top right"/>
  15. <Static text="연도 :" position="absolute 15 12 88 29" id="caption2" class="search_name" anchor="default"/>
  16. <Static text="월 :" position="absolute 205 12 278 29" id="caption1" class="search_name" anchor="default"/>
  17. <Combo position="absolute 80 11 180 30" id="cmb_year" innerdataset="@ds_init_baseinfo_yearlst_P0167" datacolumn="cdnm" codecolumn="cdid" anchor="default" onitemchanged="group2_cmb_year_onitemchanged"/>
  18. <Combo position="absolute 255 11 355 30" id="cmb_month" innerdataset="@ds_init_baseinfo_monthlst_R0009" datacolumn="cdnm" codecolumn="cdid" anchor="default" onitemchanged="group2_cmb_month_onitemchanged"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Grid position="absolute 0 71 1195 778" align="align:center middle;" id="grd_uncolst" binddataset="ds_main_uncolst_item" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="200"/>
  27. <Column size="130"/>
  28. <Column size="130"/>
  29. <Column size="100"/>
  30. <Column size="110"/>
  31. <Column size="110"/>
  32. <Column size="110"/>
  33. <Column size="110"/>
  34. <Column size="182"/>
  35. <Column size="0"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="24" band="head"/>
  39. <Row size="24"/>
  40. <Row size="24" band="summ"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell text="사업장명"/>
  44. <Cell col="1" text="전월미수금"/>
  45. <Cell col="2" text="당월미수금"/>
  46. <Cell col="3" text="총입금액"/>
  47. <Cell col="4" text="총미수금"/>
  48. <Cell col="5" text="삭감액"/>
  49. <Cell col="6" text="최종입금일"/>
  50. <Cell col="7" text="최종청구일"/>
  51. <Cell col="8" text="비고"/>
  52. <Cell col="9"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell style="font:arial,9,bold;" text="bind:cmpynm"/>
  56. <Cell col="1" displaytype="number" style="align:center middle;" text="bind:exclamamt"/>
  57. <Cell col="2" displaytype="number" style="align:center middle;" text="bind:nowclamamt"/>
  58. <Cell col="3" displaytype="number" style="align:center middle;" text="bind:incmamt"/>
  59. <Cell col="4" displaytype="number" style="align:center middle;" text="bind:uncoamt"/>
  60. <Cell col="5" displaytype="number" style="align:center middle;" text="bind:discamt"/>
  61. <Cell col="6" displaytype="date" text="bind:lastincmdd" calendardisplaynulltype="nulltext"/>
  62. <Cell col="7" displaytype="date" text="bind:lastclamdd" calendardisplaynulltype="nulltext"/>
  63. <Cell col="8" displaytype="text" edittype="text" text="bind:remfact"/>
  64. <Cell col="9" displaytype="text" edittype="text" text="bind:clamtrgtcd"/>
  65. </Band>
  66. <Band id="summary">
  67. <Cell style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="총계"/>
  68. <Cell col="1" displaytype="number" style="align:center middle;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('exclamamt')"/>
  69. <Cell col="2" displaytype="number" style="align:center middle;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('nowclamamt')"/>
  70. <Cell col="3" displaytype="number" style="align:center middle;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('incmamt')"/>
  71. <Cell col="4" displaytype="number" style="align:center middle;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('uncoamt')"/>
  72. <Cell col="5" displaytype="number" style="align:center middle;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('discamt')"/>
  73. <Cell col="6" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  74. <Cell col="7" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  75. <Cell col="8" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  76. <Cell col="9"/>
  77. </Band>
  78. </Format>
  79. </Formats>
  80. </Grid>
  81. <Static id="caption60" text="미수금현황" class="tit_1" position="absolute 0 0 183 25"/>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="srchfromdd" type="STRING" size="256"/>
  88. <Column id="srchtodd" type="STRING" size="256"/>
  89. <Column id="srchinstcd" type="STRING" size="256"/>
  90. <Column id="srchyear" type="STRING" size="256"/>
  91. <Column id="srchmonth" type="STRING" size="256"/>
  92. </ColumnInfo>
  93. <Rows>
  94. <Row>
  95. <Col id="srchfromdd"/>
  96. <Col id="srchtodd"/>
  97. <Col id="srchinstcd"/>
  98. <Col id="srchyear"/>
  99. <Col id="srchmonth"/>
  100. </Row>
  101. </Rows>
  102. </Dataset>
  103. <Dataset id="ds_main_uncolst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  104. <ColumnInfo>
  105. <Column id="clamtrgtcd" type="STRING" size="256" sumtext="청구처코드"/>
  106. <Column id="cmpynm" type="STRING" size="256" sumtext="청구처명"/>
  107. <Column id="exclamamt" type="INT" size="256" sumtext="전월미수금액"/>
  108. <Column id="nowclamamt" type="INT" size="256" sumtext="당월미수발생금액"/>
  109. <Column id="incmamt" type="INT" size="256" sumtext="수금액"/>
  110. <Column id="discamt" type="INT" size="256" sumtext="수금액"/>
  111. <Column id="uncoamt" type="INT" size="256" sumtext="미수액"/>
  112. <Column id="lastincmdd" type="STRING" size="256" sumtext="최종입금일"/>
  113. <Column id="lastclamdd" type="STRING" size="256" sumtext="최종청구일"/>
  114. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_init_baseinfo_yearlst_P0167" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  118. <Dataset id="ds_init_baseinfo_monthlst_R0009" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  119. </Objects>
  120. <Bind>
  121. <BindItem id="item0" compid="group2.cmb_year" propid="value" datasetid="ds_send" columnid="srchyear"/>
  122. <BindItem id="item1" compid="group2.cmb_month" propid="value" datasetid="ds_send" columnid="srchmonth"/>
  123. </Bind>
  124. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  125. * System Name :
  126. * Job Name :
  127. * Creator :
  128. * Make Date : 2015-11-13
  129. * Description :
  130. *---------------------------------------------------------------------------------------
  131. * Modify Date Modifier Modify Description
  132. *---------------------------------------------------------------------------------------
  133. * 2015-11-13 Live Converter TF->XP
  134. *
  135. *---------------------------------------------------------------------------------------
  136. ****************************************************************************************/
  137. include "com_commonxp::comm_main.xjs";
  138. function SMAHS01200_oninit(obj:Form, e:InitEventInfo)
  139. {
  140. frmf_initForm(obj);
  141. }
  142. function SMAHS01200_onload(obj:Form, e:LoadEventInfo)
  143. {
  144. grdf_initGrid(grd_uncolst);
  145. ds_send.setColumn(0, "srchinstcd" , sysf_getUserInfo("posinstcd"));
  146. var arrParam = [{dsNm: "ds_init_baseinfo_yearlst_P0167", cdGrpId: "P0167"}
  147. ,{dsNm: "ds_init_baseinfo_monthlst_R0009", cdGrpId: "R0009"}]
  148. appf_getCodeList(arrParam);
  149. ds_send.setColumn(0, "srchyear" , String(utlf_getCurrentDate()).substr(0,4));
  150. ds_send.setColumn(0, "srchmonth" , String(utlf_getCurrentDate()).substr(4,2));
  151. frmf_inputEnterKey("group2.cmb_year", "onitemchanged", new ItemChangeEventInfo );
  152. }
  153. function group2_cmb_year_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  154. {
  155. fDate(obj.value , group2.cmb_month.value);
  156. }
  157. function fDate(vYear , vMon)
  158. {
  159. var dd = new Date(vYear, vMon ,0);
  160. ds_send.setColumn(0, "srchfromdd" , vYear + vMon + "01");
  161. ds_send.setColumn(0, "srchtodd" , vYear + vMon + dd.getDate());
  162. }
  163. function group2_cmb_month_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  164. {
  165. fDate(group2.cmb_year.value , obj.value);
  166. }
  167. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  168. {
  169. var oParam = {};
  170. oParam.id = "TRAHS01201";
  171. oParam.service = "healexamstatapp.StatRef";
  172. oParam.method = "reqGetUncoCondList";
  173. oParam.inds = "req=ds_send";
  174. oParam.outds = "ds_main_uncolst_item=item";
  175. oParam.async = false;
  176. //oParam.callback = "cf_TRAHS01201";
  177. tranf_submit(oParam);
  178. }
  179. function group2_btn_prt_onclick(obj:Button, e:ClickEventInfo)
  180. {
  181. var objDOM = rptf_createDOM();
  182. rptf_setNodeListToDOM(objDOM, "/root/main/uncolst/item", ds_main_uncolst_item);
  183. var objParam = new Object();
  184. objParam.xml_data_XML1 = objDOM.documentElement.source;
  185. objParam.srchfromdd = String(ds_send.getColumn(0, "srchfromdd")).toDate().getDateFormat("YYYY/MM/DD");
  186. objParam.srchtodd = String(ds_send.getColumn(0, "srchtodd")).toDate().getDateFormat("YYYY/MM/DD");
  187. objParam.ssrchyear = ds_send.getColumn(0, "srchyear");
  188. objParam.srchmonth = String(ds_send.getColumn(0, "srchmonth"));
  189. var option = "";
  190. rptf_exeReportPreview30(["RPAHS01201"],[objParam], option);
  191. }
  192. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  193. {
  194. grdf_exportExcel(grd_uncolst, "excel", "SheetName", "true", "", "");
  195. }
  196. ]]></Script>
  197. </Form>
  198. </FDL>