no message

main
이범준 8 months ago
parent 33179e5af1
commit 20956decd2

@ -125,6 +125,7 @@ public class OutsourcingFileWriter {
int byteCnt = printStngItem.number("ARTCL_SZ").intValue();
String artclValue = "";
//조회한 데이터와 관련없는 항목(출력일시 등)
if(artclNm.equals("OTPT_YMD") || artclNm.equals("OTPT_YEAR")
|| artclNm.equals("OTPT_MONTH") || artclNm.equals("OTPT_DAY")) {
switch(artclNm) {
@ -146,7 +147,19 @@ public class OutsourcingFileWriter {
artclValue = dataObject.string(artclNm);
}
line += hangul.rpadByte(artclValue, byteCnt, " ");
//포매팅
if(!printStngItem.string("FORMATTING").equals("")) {
//TODO : 등기번호,우편번호,금액,날짜
}
//공백 패딩 방향
if(printStngItem.string("PADDING_DIRECTION").equals("left")) {
line += hangul.lpadByte(artclValue, byteCnt, " ");
} else {
line += hangul.rpadByte(artclValue, byteCnt, " ");
}
}
writer.write(line);
}

@ -37,6 +37,26 @@ public class Hangul {
return byteLen;
}
/**
*
*
* @param str
* @param byteLen
* @param ch
* @return
*/
public String lpadByte(String str, int byteLen, String ch) {
String result = str;
int strLen = this.getByteLength(str);
for(int i=0; i < byteLen - strLen ; i++) {
result = ch + result;
}
return result;
}
/**
*
*

@ -45,6 +45,7 @@ public class OutsourcingStngBean extends AbstractComponent {
predefinedSetList.add(new PredefinedSet("RTPYR_DTL_ADDR", "납부자상세주소"));
predefinedSetList.add(new PredefinedSet("RTPYR_ZIP", "납부자우편번호"));
predefinedSetList.add(new PredefinedSet("RTPYR_NM", "납부자명"));
predefinedSetList.add(new PredefinedSet("OPNN_RANGE", "의견진술기간"));
predefinedSetList.add(new PredefinedSet("CRDN_SE_NM", "단속구분명"));
predefinedSetList.add(new PredefinedSet("ATCH_FILE_CNT", "첨부파일갯수"));
predefinedSetList.add(new PredefinedSet("FFNLG_CRDN_AMT", "과태료단속금액"));

@ -1773,6 +1773,15 @@ public class Sndb01Controller extends ApplicationController {
SprtQuery sprtQuery = new SprtQuery();
sprtQuery.setCrdnIds(crdnIds);
List<DataObject> dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery);
for(int i=0; i < dataObjectList.size(); i++) {
DataObject sndngDtl = integrationSearchMapper.selectLatestSndngDtlInfo(dataObjectList.get(i).string("CRDN_ID"));
dataObjectList.get(i).set("SNDNG_DTL_ID",sndngDtl.string("SNDNG_DTL_ID"));
dataObjectList.get(i).set("SNDNG_YMD",sndngDtl.string("SNDNG_YMD"));
dataObjectList.get(i).set("OPNN_RANGE",
dataObjectList.get(i).string("SNDNG_YMD")+"~"+dataObjectList.get(i).string("DUDT_YMD"));
dataObjectList.get(i).set("RG_NO",sndngDtl.string("RG_NO"));
}
for(int i=0; i < dataObjectList.size(); i++) {
DataObject dataObject = dataObjectList.get(i);

@ -833,6 +833,10 @@ public class Sprt01Controller extends ApplicationController {
String taskSeCd = "";
for(int i=0; i < dataObjectList.size(); i++) {
DataObject sndngDtl = integrationSearchMapper.selectLatestSndngDtlInfo(dataObjectList.get(i).string("CRDN_ID"));
dataObjectList.get(i).set("SNDNG_DTL_ID",sndngDtl.string("SNDNG_DTL_ID"));
dataObjectList.get(i).set("SNDNG_YMD",sndngDtl.string("SNDNG_YMD"));
dataObjectList.get(i).set("OPNN_RANGE",
dataObjectList.get(i).string("SNDNG_YMD")+"~"+dataObjectList.get(i).string("DUDT_YMD"));
dataObjectList.get(i).set("RG_NO",sndngDtl.string("RG_NO"));
}
@ -1064,6 +1068,10 @@ public class Sprt01Controller extends ApplicationController {
String taskSeCd = "";
for(int i=0; i < dataObjectList.size(); i++) {
DataObject sndngDtl = integrationSearchMapper.selectLatestSndngDtlInfo(dataObjectList.get(i).string("CRDN_ID"));
dataObjectList.get(i).set("SNDNG_DTL_ID",sndngDtl.string("SNDNG_DTL_ID"));
dataObjectList.get(i).set("SNDNG_YMD",sndngDtl.string("SNDNG_YMD"));
dataObjectList.get(i).set("OPNN_RANGE",
dataObjectList.get(i).string("SNDNG_YMD")+"~"+dataObjectList.get(i).string("DUDT_YMD"));
dataObjectList.get(i).set("RG_NO",sndngDtl.string("RG_NO"));
}

@ -365,6 +365,8 @@ SELECT *
FROM
(
SELECT ROW_NUMBER() OVER (ORDER BY SD.SNDNG_DTL_ID) AS ROWNUM
, SD.SNDNG_DTL_ID
, SD.SNDNG_YMD
, SD.RG_NO
, SD.CRDN_ID
FROM TB_SNDNG_DTL SD

@ -82,7 +82,7 @@
<th style="width:200px">항목명</th>
<th style="width:110px">바이트수</th>
<th style="width:140px">공백문자방향</th>
<th style="width:140px">포맷팅</th>
<th style="width:350px">포맷팅</th>
<th class="dummy-th"></th>
</tr>
</template>
@ -114,7 +114,7 @@
<button type="button" class="btn btn-xs btn-outline-dark h-px-25 px-1">▶</button>
</td>
<td data-col="formatting" class="text-center">
<input type="text" class="form-control w-px-100" />
<input type="text" class="form-control w-px-300" />
</td>
<td class="dummy-td"></td>
</tr>
@ -214,14 +214,12 @@ $(document).ready(function(){
var lastTr = $("#tbody--${pageName}").find("tr").last()[0];
$($P.fnGetElement(lastTr,"artclNm")).set(data.ARTCL_NM);
$($P.fnGetElement(lastTr,"artclSz"))
.set(!isEmpty(data.ARTCL_SZ) ? data.ARTCL_SZ : 0);
.set(!isEmpty(data.ARTCL_SZ) ? data.ARTCL_SZ : 1);
$($P.fnGetElement(lastTr,"paddingDirection"))
.set(!isEmpty(data.PADDING_DIRECTION) ? data.PADDING_DIRECTION : "left");
$($P.fnGetElement(lastTr,"formatting"))
.set(!isEmpty(data.FORMATTING) ? data.FORMATTING : "");
}
$("#tbody--${pageName}").find("tr").each(function(){

Loading…
Cancel
Save