123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHS01200" position="absolute 0 0 1204 784" titletext="건진일평균인원현황" oninit="SMAHS01200_oninit" onload="SMAHS01200_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1195 65" id="group2" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 1120 9 1126 31" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
- <Button position="absolute 1130 9 1186 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
- <Button position="absolute 967 9 1047 31" id="btn_excelsave" class="btn7" visible="true" text="엑셀저장" anchor="top right" onclick="group2_btn_excelsave_onclick"/>
- <Button position="absolute 1061 9 1117 31" id="btn_prt" class="btn6" text="출력" anchor="top right" onclick="group2_btn_prt_onclick"/>
- <Shape position="absolute 1051 9 1057 31" linetype="vertical" id="line3" class="line_4" visible="false" anchor="top right"/>
- <Static text="연도 :" position="absolute 15 12 88 29" id="caption2" class="search_name" anchor="default"/>
- <Static text="월 :" position="absolute 205 12 278 29" id="caption1" class="search_name" anchor="default"/>
- <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"/>
- <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"/>
- </Layout>
- </Layouts>
- </Div>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="200"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="100"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="182"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <Row size="24" band="summ"/>
- </Rows>
- <Band id="head">
- <Cell text="사업장명"/>
- <Cell col="1" text="전월미수금"/>
- <Cell col="2" text="당월미수금"/>
- <Cell col="3" text="총입금액"/>
- <Cell col="4" text="총미수금"/>
- <Cell col="5" text="삭감액"/>
- <Cell col="6" text="최종입금일"/>
- <Cell col="7" text="최종청구일"/>
- <Cell col="8" text="비고"/>
- <Cell col="9"/>
- </Band>
- <Band id="body">
- <Cell style="font:arial,9,bold;" text="bind:cmpynm"/>
- <Cell col="1" displaytype="number" style="align:center middle;" text="bind:exclamamt"/>
- <Cell col="2" displaytype="number" style="align:center middle;" text="bind:nowclamamt"/>
- <Cell col="3" displaytype="number" style="align:center middle;" text="bind:incmamt"/>
- <Cell col="4" displaytype="number" style="align:center middle;" text="bind:uncoamt"/>
- <Cell col="5" displaytype="number" style="align:center middle;" text="bind:discamt"/>
- <Cell col="6" displaytype="date" text="bind:lastincmdd" calendardisplaynulltype="nulltext"/>
- <Cell col="7" displaytype="date" text="bind:lastclamdd" calendardisplaynulltype="nulltext"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:remfact"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:clamtrgtcd"/>
- </Band>
- <Band id="summary">
- <Cell style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="총계"/>
- <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')"/>
- <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')"/>
- <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')"/>
- <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')"/>
- <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')"/>
- <Cell col="6" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
- <Cell col="7" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
- <Cell col="8" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
- <Cell col="9"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption60" text="미수금현황" class="tit_1" position="absolute 0 0 183 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- <Column id="srchyear" type="STRING" size="256"/>
- <Column id="srchmonth" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- <Col id="srchinstcd"/>
- <Col id="srchyear"/>
- <Col id="srchmonth"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_uncolst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="clamtrgtcd" type="STRING" size="256" sumtext="청구처코드"/>
- <Column id="cmpynm" type="STRING" size="256" sumtext="청구처명"/>
- <Column id="exclamamt" type="INT" size="256" sumtext="전월미수금액"/>
- <Column id="nowclamamt" type="INT" size="256" sumtext="당월미수발생금액"/>
- <Column id="incmamt" type="INT" size="256" sumtext="수금액"/>
- <Column id="discamt" type="INT" size="256" sumtext="수금액"/>
- <Column id="uncoamt" type="INT" size="256" sumtext="미수액"/>
- <Column id="lastincmdd" type="STRING" size="256" sumtext="최종입금일"/>
- <Column id="lastclamdd" type="STRING" size="256" sumtext="최종청구일"/>
- <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_baseinfo_yearlst_P0167" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_monthlst_R0009" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_year" propid="value" datasetid="ds_send" columnid="srchyear"/>
- <BindItem id="item1" compid="group2.cmb_month" propid="value" datasetid="ds_send" columnid="srchmonth"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMAHS01200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAHS01200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_uncolst);
-
- ds_send.setColumn(0, "srchinstcd" , sysf_getUserInfo("posinstcd"));
- var arrParam = [{dsNm: "ds_init_baseinfo_yearlst_P0167", cdGrpId: "P0167"}
- ,{dsNm: "ds_init_baseinfo_monthlst_R0009", cdGrpId: "R0009"}]
- appf_getCodeList(arrParam);
-
- ds_send.setColumn(0, "srchyear" , String(utlf_getCurrentDate()).substr(0,4));
- ds_send.setColumn(0, "srchmonth" , String(utlf_getCurrentDate()).substr(4,2));
- frmf_inputEnterKey("group2.cmb_year", "onitemchanged", new ItemChangeEventInfo );
- }
- function group2_cmb_year_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fDate(obj.value , group2.cmb_month.value);
- }
- function fDate(vYear , vMon)
- {
- var dd = new Date(vYear, vMon ,0);
- ds_send.setColumn(0, "srchfromdd" , vYear + vMon + "01");
- ds_send.setColumn(0, "srchtodd" , vYear + vMon + dd.getDate());
- }
- function group2_cmb_month_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fDate(group2.cmb_year.value , obj.value);
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRAHS01201";
- oParam.service = "healexamstatapp.StatRef";
- oParam.method = "reqGetUncoCondList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_uncolst_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHS01201";
- tranf_submit(oParam);
- }
- function group2_btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/main/uncolst/item", ds_main_uncolst_item);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- objParam.srchfromdd = String(ds_send.getColumn(0, "srchfromdd")).toDate().getDateFormat("YYYY/MM/DD");
- objParam.srchtodd = String(ds_send.getColumn(0, "srchtodd")).toDate().getDateFormat("YYYY/MM/DD");
- objParam.ssrchyear = ds_send.getColumn(0, "srchyear");
- objParam.srchmonth = String(ds_send.getColumn(0, "srchmonth"));
-
- var option = "";
- rptf_exeReportPreview30(["RPAHS01201"],[objParam], option);
- }
- function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_uncolst, "excel", "SheetName", "true", "", "");
- }
- ]]></Script>
- </Form>
- </FDL>
|