package incheon.res.rdm.com.levylink;


import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class RoadVO extends LinkVO{
	private String DEP_CODE;
	private String REL_LVY_NO;
	private String REL_TAX_CODE;
	private String ACC_YEAR;
	private String ACC_GBN;
	private String LVY_YMD;
	private String FST_AMT;
	private String LST_ADD_AMT;
	private String FST_NAP_YMD;
	private String AFT_NAP_YMD;
	private String AFT_NAP_AMT;
	private String LVY_GBN;
	private String PER_GBN;
	private String PER_NM;
	private String PER_PID;
	private String PER_PID_SNO;
	private String PER_POST;
	private String PER_REGN;
	private String PER_HENG;
	private String PER_SAN;
	private String PER_BUNJI;
	private String PER_HO;
	private String PER_SPEC_ADDR;
	private String PER_SPEC_DONG;
	private String PER_SPEC_HO;
	private String PER_TONG;
	private String PER_BAN;
	private String OBJ_NM;
	private String OBJ_POST;
	private String OBJ_REGN;
	private String OBJ_HENG;
	private String OBJ_SAN;
	private String OBJ_BUNJI;
	private String OBJ_HO;
	private String OBJ_SPEC_ADDR;
	private String OBJ_SPEC_DONG;
	private String OBJ_SPEC_HO;
	private String OBJ_TONG;
	private String OBJ_BAN;
	private String BIGO;
	private String MGE_ITEM1;
	private String MGE_ITEM2;
	private String MGE_ITEM3;
	private String MGE_ITEM4;
	private String MGE_ITEM5;
	private String MGE_ITEM6;
	private String REL_GBN;
	
	public RoadVO(){
		this.dataLength = 993;
	}
	
	public byte[] getDEP_CODE() {
		return getBytes(DEP_CODE,11);
	}
	public byte[] getREL_LVY_NO() {
		return getBytes(REL_LVY_NO,21);
	}
	public byte[] getREL_TAX_CODE() {
		return getBytes(REL_TAX_CODE,15);
	}
	public byte[] getACC_YEAR() {
		return getBytes(ACC_YEAR,4);
	}
	public byte[] getACC_GBN() {
		return getBytes(ACC_GBN,2);
	}
	public byte[] getLVY_YMD() {
		return getBytes(LVY_YMD,8);
	}
	public byte[] getFST_AMT() {
		return getBytes(FST_AMT,15);
	}
	public byte[] getLST_ADD_AMT() {
		return getBytes(LST_ADD_AMT,15);
	}
	public byte[] getFST_NAP_YMD() {
		return getBytes(FST_NAP_YMD,8);
	}
	public byte[] getAFT_NAP_YMD() {
		return getBytes(AFT_NAP_YMD,8);
	}
	public byte[] getAFT_NAP_AMT() {
		return getBytes(AFT_NAP_AMT,15);
	}
	public byte[] getLVY_GBN() {
		return getBytes(LVY_GBN,2);
	}
	public byte[] getPER_GBN() {
		return getBytes(PER_GBN,2);
	}
	public byte[] getPER_NM() {
		return getBytes(PER_NM,50);
	}
	public byte[] getPER_PID() {
		return getBytes(PER_PID,13);
	}
	public byte[] getPER_PID_SNO() {
		return getBytes(PER_PID_SNO,3);
	}
	public byte[] getPER_POST() {
		return getBytes(PER_POST,6);
	}
	public byte[] getPER_REGN() {
		return getBytes(PER_REGN,10);
	}
	public byte[] getPER_HENG() {
		return getBytes(PER_HENG,10);
	}
	public byte[] getPER_SAN() {
		return getBytes(PER_SAN,2);
	}
	public byte[] getPER_BUNJI() {
		return getBytes(PER_BUNJI,4);
	}
	public byte[] getPER_HO() {
		return getBytes(PER_HO,4);
	}
	public byte[] getPER_SPEC_ADDR() {
		return getBytes(PER_SPEC_ADDR,60);
	}
	public byte[] getPER_SPEC_DONG() {
		return getBytes(PER_SPEC_DONG,20);
	}
	public byte[] getPER_SPEC_HO() {
		return getBytes(PER_SPEC_HO,10);
	}
	public byte[] getPER_TONG() {
		return getBytes(PER_TONG,3);
	}
	public byte[] getPER_BAN() {
		return getBytes(PER_BAN,3);
	}
	public byte[] getOBJ_NM() {
		return getBytes(OBJ_NM,100);
	}
	public byte[] getOBJ_POST() {
		return getBytes(OBJ_POST,6);
	}
	public byte[] getOBJ_REGN() {
		return getBytes(OBJ_REGN,10);
	}
	public byte[] getOBJ_HENG() {
		return getBytes(OBJ_HENG,10);
	}
	public byte[] getOBJ_SAN() {
		return getBytes(OBJ_SAN,2);
	}
	public byte[] getOBJ_BUNJI() {
		return getBytes(OBJ_BUNJI,4);
	}
	public byte[] getOBJ_HO() {
		return getBytes(OBJ_HO,4);
	}
	public byte[] getOBJ_SPEC_ADDR() {
		return getBytes(OBJ_SPEC_ADDR,60);
	}
	public byte[] getOBJ_SPEC_DONG() {
		return getBytes(OBJ_SPEC_DONG,20);
	}
	public byte[] getOBJ_SPEC_HO() {
		return getBytes(OBJ_SPEC_HO,10);
	}
	public byte[] getOBJ_TONG() {
		return getBytes(OBJ_TONG,3);
	}
	public byte[] getOBJ_BAN() {
		return getBytes(OBJ_BAN,3);
	}
	public byte[] getBIGO() {
		return getBytes(BIGO,255);
	}
	public byte[] getMGE_ITEM1() {
		return getBytes(MGE_ITEM1,30);
	}
	public byte[] getMGE_ITEM2() {
		return getBytes(MGE_ITEM2,30);
	}
	public byte[] getMGE_ITEM3() {
		return getBytes(MGE_ITEM3,30);
	}
	public byte[] getMGE_ITEM4() {
		return getBytes(MGE_ITEM4,30);
	}
	public byte[] getMGE_ITEM5() {
		return getBytes(MGE_ITEM5,30);
	}
	public byte[] getMGE_ITEM6() {
		return getBytes(MGE_ITEM6,30);
	}
	public byte[] getREL_GBN() {
		return getBytes(REL_GBN,2);
	}
	


	
	
    public byte[] getData() //throws LinkException 
    {
        byte[] buf = null;
        byte[] res = new byte[dataLength];
        int off = 0;

        buf = getDEP_CODE();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getREL_LVY_NO();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getREL_TAX_CODE();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getACC_YEAR();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getACC_GBN();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getLVY_YMD();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getFST_AMT();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getLST_ADD_AMT();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getFST_NAP_YMD();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getAFT_NAP_YMD();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getAFT_NAP_AMT();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf=getLVY_GBN();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf=getPER_GBN();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        buf = getPER_NM();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_PID();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_PID_SNO();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_POST();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_REGN();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_HENG();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_SAN();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_BUNJI();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_HO();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_SPEC_ADDR();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_SPEC_DONG();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_SPEC_HO();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_TONG();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getPER_BAN();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getOBJ_NM();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf= getOBJ_POST();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf= getOBJ_REGN();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf= getOBJ_HENG();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf= getOBJ_SAN();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf= getOBJ_BUNJI();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf= getOBJ_HO();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf= getOBJ_SPEC_ADDR();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf= getOBJ_SPEC_DONG();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf= getOBJ_SPEC_HO();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf = getOBJ_TONG();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        buf= getOBJ_BAN();
        for (int i=0; i< buf.length; ++i) {
            res[off] = buf[i];
            ++off;
         }
        
        buf = getBIGO();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getMGE_ITEM1();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getMGE_ITEM2();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getMGE_ITEM3();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getMGE_ITEM4();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getMGE_ITEM5();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getMGE_ITEM6();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        buf = getREL_GBN();
        for (int i=0; i< buf.length; ++i) {
           res[off] = buf[i];
           ++off;
        }
        
        return res;
     }
}