You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

225 lines
7.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms">
<head>
<w2:type>DEFAULT</w2:type>
<w2:buildDate/>
<xf:model>
<xf:instance>
<data xmlns=""/>
</xf:instance>
<w2:dataCollection baseNode="map">
<w2:dataMap baseNode="map" id="searchParam">
<w2:keyInfo>
<w2:key id="keyword" name="키워드" dataType="text"></w2:key>
</w2:keyInfo>
</w2:dataMap>
<w2:dataList baseNode="list" repeatNode="map" id="searchResultList" saveRemovedData="true">
<w2:columnInfo>
<w2:column id="updateDate" name="갱신일" dataType="text"></w2:column>
<w2:column id="statCd" name="상태코드" dataType="text"></w2:column>
<w2:column id="statNm" name="상태" dataType="text"></w2:column>
</w2:columnInfo>
</w2:dataList>
</w2:dataCollection>
<w2:workflowCollection>
</w2:workflowCollection>
<xf:submission id="sub_search"
ref='data:json,{"id":"searchParam","key":"param"}'
target='data:json,{"id":"searchResultList","key":"result"}'
action="/cfs/trsmrcv/findBuildJusoHist.do"
method="post" mediatype="application/json" encoding="UTF-8" instance="" replace=""
errorHandler="" customHandler="" mode="asynchronous" processMsg="조회중입니다."
ev:submit=""
ev:submitdone=""
ev:submiterror="" abortTrigger="">
</xf:submission>
</xf:model>
<script type="text/javascript" lazy="false"><![CDATA[
scwin.onpageload = function() {
var ymd = com.getToday();
var setYm = scwin.getBeforeMonth(ymd);
ica_ymForLink.setValue(setYm);
};
scwin.onpageunload = function() {
};
scwin.getBeforeMonth = function(ymd){
var curY = ymd.substr(0,4);
var curM = ymd.substr(4,2);
var setYm = "";
if(curM == "01"){
setYm = ""+(Number(curY)-1)+"12";
} else {
var setM = ""+(Number(curM)-1)+"";
if(setM.length == 1){
setM = "0"+setM;
}
setYm = curY + setM;
}
return setYm;
}
scwin.btn_makeLink_onclick = function(e) {
var td = document.getElementById(tdForLink.id);
while (td.firstChild) {
td.removeChild(td.firstChild);
}
var in_ym = ica_ymForLink.getValue();
if(in_ym == null || in_ym == "" || (in_ym+"").length != 6){
return;
}
var in_y = in_ym.substr(0,4);
if(in_y < "2000"){
return;
}
var in_m = in_ym.substr(4,2);
if(in_m > "12" || in_m == "00"){
return;
}
var curYmd = com.getToday();
var curYm = curYmd.substr(0,6);
if(in_ym >= curYm){
alert("월변동자료 미생성");
return;
}
if(in_ym == scwin.getBeforeMonth(curYmd) && curYmd.substr(6,2) <= "05"){
alert("월변동자료 미생성");
return;
}
var linkString = "https://business.juso.go.kr/addrlink/download.do?reqType=ALLRDNM&regYmd="+in_y+"&ctprvnCd=01&stdde="+in_ym+"&fileName="+in_ym+"_%EA%B1%B4%EB%AC%BCDB_%EB%B3%80%EB%8F%99%EB%B6%84.zip&intNum=undefined&intFileNo=undefined&realFileName="+in_ym+"ALLRDNM01.zip";
var newA = document.createElement('a');
newA.setAttribute("href", linkString);
newA.setAttribute("download", "");
newA.setAttribute("target", "_blank");
newA.textContent = 'zip다운';
td.appendChild(newA);
};
scwin.btn_search_onclick = function(e) {
document.getElementById(ifi_buildJusoFile.id).value = null;
com.executeSubmission(sub_search);
};
]]></script>
</head>
<body ev:onpageload="scwin.onpageload" ev:onpageunload="scwin.onpageunload">
<xf:group class="contentWrap" id="" style="">
<w2:wframe id="" initScript="scwin.wfTitleFavInit();" src="/cm/common/wf_titleFav.xml" style=""></w2:wframe>
<xf:group class="tbl_search" id="grp_search" style="">
<xf:group adaptive="layout" adaptiveThreshold="700" class="w2tb tbl_sc" id="" style="" tagname="table">
<w2:attributes>
<w2:summary></w2:summary>
</w2:attributes>
<xf:group tagname="colgroup">
<xf:group style="width:70px;" tagname="col"></xf:group>
<xf:group style="width:*;" tagname="col"></xf:group>
<xf:group style="width:120px;" tagname="col"></xf:group>
<xf:group style="width:120px;" tagname="col"></xf:group>
<xf:group style="width:70px;" tagname="col"></xf:group>
<xf:group style="width:70px;" tagname="col"></xf:group>
<xf:group style="width:300px;" tagname="col"></xf:group>
<xf:group style="width:150px;" tagname="col"></xf:group>
</xf:group>
<xf:group adaptive="" adaptiveThreshold="" style="" tagname="tr">
<xf:group class="w2tb_td" style="" tagname="td">
<xf:group class="fr" id="">
<xf:trigger class="btn_sh" id="btn_search" style="" type="button"
ev:onclick="scwin.btn_search_onclick">
<xf:label><![CDATA[조회]]></xf:label>
</xf:trigger>
</xf:group>
</xf:group>
<xf:group class="w2tb_th" style="" tagname="td">
</xf:group>
<xf:group class="w2tb_td" style="" tagname="td">
<w2:inputCalendar calendarValueType="yearMonth" class=""
dateValidCheck="" focusOnDateSelect="false"
footerDiv="false"
id="ica_ymForLink"
renderDiv="true" renderType="component" style="width: 100px;" weekStartsOn="0">
</w2:inputCalendar>
</xf:group>
<xf:group class="w2tb_th" style="" tagname="td">
<xf:trigger class="btn_act send" id="btn_makeLink" style="1px black solid" type="button"
ev:onclick="scwin.btn_makeLink_onclick">
<xf:label><![CDATA[다운로드링크생성]]></xf:label>
</xf:trigger>
</xf:group>
<xf:group class="w2tb_th" style="" tagname="td" id="tdForLink">
</xf:group>
<xf:group class="w2tb_th" style="" tagname="th">변동자료</xf:group>
<xf:group class="w2tb_td" style="" tagname="td">
<xf:input type="file" name="buildJusoFile"
id="ifi_buildJusoFile" style="width:100%"></xf:input>
</xf:group>
<xf:group class="w2tb_td" style="" tagname="td">
<xf:group class="fr" id="">
<xf:trigger class="btn_act send" id="btn_upload" style="1px black solid" type="button"
ev:onclick="scwin.btn_upload_onclick">
<xf:label><![CDATA[변동자료업로드]]></xf:label>
</xf:trigger>
</xf:group>
</xf:group>
</xf:group>
</xf:group>
</xf:group>
<xf:group class="defaultbox" id="" style="">
<w2:textbox class="df_tt" id="" label="주소 처리 상태" style="" tagname="h2"></w2:textbox>
<xf:group class="fr" id="" style=""></xf:group>
</xf:group>
<w2:gridView autoFit="allColumn" autoFitMinWidth="600" class="cm_grid" dataList="data:searchResultList"
fixedColumnWithHidden="true" focusMode="row" id="" ignoreCellClick="false" ignoreToggleOnDisabled="false" scrollByColumn="false"
scrollByColumnAdaptive="false" style="height: 54px;" summaryAuto="false" useShiftKey="true" visibleRowNum="all">
<w2:caption style="" id="caption1" value="this is a grid caption."></w2:caption>
<w2:header style="" id="header1">
<w2:row style="" id="row1">
<w2:column removeBorderStyle="false" width="70" inputType="text" style=""
id="columnhStatNm" value="상태"
blockSelect="false" displayMode="label">
</w2:column>
<w2:column removeBorderStyle="false" width="70" inputType="text" style=""
id="columnhUpdateDate" value="갱신처리일시"
blockSelect="false" displayMode="label">
</w2:column>
</w2:row>
</w2:header>
<w2:gBody style="" id="gBody1">
<w2:row style="" id="row2">
<w2:column removeBorderStyle="false" width="70" inputType="text" style=""
id="statNm" value="" blockSelect="false"
displayMode="label">
</w2:column>
<w2:column removeBorderStyle="false" width="70" inputType="text" style=""
id="updateDate" value="" blockSelect="false"
displayMode="label">
</w2:column>
</w2:row>
</w2:gBody>
</w2:gridView>
</xf:group>
</body>
</html>