package market.Mes.Pickle.Performance.impl;

import java.util.List;

import market.Mes.Pickle.Performance.vo.Tbs02L2PltcmProSeq;

public class SxUtil {
	
	public Tbs02L2PltcmProSeq doAddMsg(Tbs02L2PltcmProSeq ts,List<String> coilList){
		
		for (int i = 0; i < coilList.size(); i++) {
			//1-10
			if (ts.getCoil_id1()==null || "".equals(ts.getCoil_id1())) {				
				ts.setCoil_id1(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id2()==null || "".equals(ts.getCoil_id2())) {				
				ts.setCoil_id2(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id3()==null || "".equals(ts.getCoil_id3())) {				
				ts.setCoil_id3(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id4()==null || "".equals(ts.getCoil_id4())) {				
				ts.setCoil_id4(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id5()==null || "".equals(ts.getCoil_id5())) {				
				ts.setCoil_id5(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id6()==null || "".equals(ts.getCoil_id6())) {				
				ts.setCoil_id6(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id7()==null || "".equals(ts.getCoil_id7())) {				
				ts.setCoil_id7(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id8()==null || "".equals(ts.getCoil_id8())) {				
				ts.setCoil_id8(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id9()==null || "".equals(ts.getCoil_id9())) {				
				ts.setCoil_id9(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id10()==null || "".equals(ts.getCoil_id10())) {				
				ts.setCoil_id10(coilList.get(i));
				continue;
			}
			//11-20
			if (ts.getCoil_id11()==null || "".equals(ts.getCoil_id11())) {				
				ts.setCoil_id11(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id12()==null || "".equals(ts.getCoil_id12())) {				
				ts.setCoil_id12(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id13()==null || "".equals(ts.getCoil_id13())) {				
				ts.setCoil_id13(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id14()==null || "".equals(ts.getCoil_id14())) {				
				ts.setCoil_id14(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id15()==null || "".equals(ts.getCoil_id15())) {				
				ts.setCoil_id15(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id16()==null || "".equals(ts.getCoil_id16())) {				
				ts.setCoil_id16(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id17()==null || "".equals(ts.getCoil_id17())) {				
				ts.setCoil_id17(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id18()==null || "".equals(ts.getCoil_id18())) {				
				ts.setCoil_id18(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id19()==null || "".equals(ts.getCoil_id19())) {				
				ts.setCoil_id19(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id20()==null || "".equals(ts.getCoil_id20())) {				
				ts.setCoil_id20(coilList.get(i));
				continue;
			}
			//21-30
			if (ts.getCoil_id21()==null || "".equals(ts.getCoil_id21())) {				
				ts.setCoil_id21(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id22()==null || "".equals(ts.getCoil_id22())) {				
				ts.setCoil_id22(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id23()==null || "".equals(ts.getCoil_id23())) {				
				ts.setCoil_id23(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id24()==null || "".equals(ts.getCoil_id24())) {				
				ts.setCoil_id24(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id25()==null || "".equals(ts.getCoil_id25())) {				
				ts.setCoil_id25(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id26()==null || "".equals(ts.getCoil_id26())) {				
				ts.setCoil_id26(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id27()==null || "".equals(ts.getCoil_id27())) {				
				ts.setCoil_id27(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id28()==null || "".equals(ts.getCoil_id28())) {				
				ts.setCoil_id28(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id29()==null || "".equals(ts.getCoil_id29())) {				
				ts.setCoil_id29(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id30()==null || "".equals(ts.getCoil_id30())) {				
				ts.setCoil_id30(coilList.get(i));
				continue;
			}
			//31-40
			if (ts.getCoil_id31()==null || "".equals(ts.getCoil_id31())) {				
				ts.setCoil_id31(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id32()==null || "".equals(ts.getCoil_id32())) {				
				ts.setCoil_id32(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id33()==null || "".equals(ts.getCoil_id33())) {				
				ts.setCoil_id33(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id34()==null || "".equals(ts.getCoil_id34())) {				
				ts.setCoil_id34(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id35()==null || "".equals(ts.getCoil_id35())) {				
				ts.setCoil_id35(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id36()==null || "".equals(ts.getCoil_id36())) {				
				ts.setCoil_id36(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id37()==null || "".equals(ts.getCoil_id37())) {				
				ts.setCoil_id37(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id38()==null || "".equals(ts.getCoil_id38())) {				
				ts.setCoil_id38(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id39()==null || "".equals(ts.getCoil_id39())) {				
				ts.setCoil_id39(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id40()==null || "".equals(ts.getCoil_id40())) {				
				ts.setCoil_id40(coilList.get(i));
				continue;
			}
			//41-50
			if (ts.getCoil_id41()==null || "".equals(ts.getCoil_id41())) {				
				ts.setCoil_id41(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id42()==null || "".equals(ts.getCoil_id42())) {				
				ts.setCoil_id42(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id43()==null || "".equals(ts.getCoil_id43())) {				
				ts.setCoil_id43(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id44()==null || "".equals(ts.getCoil_id44())) {				
				ts.setCoil_id44(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id45()==null || "".equals(ts.getCoil_id45())) {				
				ts.setCoil_id45(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id46()==null || "".equals(ts.getCoil_id46())) {				
				ts.setCoil_id46(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id47()==null || "".equals(ts.getCoil_id47())) {				
				ts.setCoil_id47(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id48()==null || "".equals(ts.getCoil_id48())) {				
				ts.setCoil_id48(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id49()==null || "".equals(ts.getCoil_id49())) {				
				ts.setCoil_id49(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id50()==null || "".equals(ts.getCoil_id50())) {				
				ts.setCoil_id50(coilList.get(i));
				continue;
			}
			//51-60
			if (ts.getCoil_id51()==null || "".equals(ts.getCoil_id51())) {				
				ts.setCoil_id51(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id52()==null || "".equals(ts.getCoil_id52())) {				
				ts.setCoil_id52(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id53()==null || "".equals(ts.getCoil_id53())) {				
				ts.setCoil_id53(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id54()==null || "".equals(ts.getCoil_id54())) {				
				ts.setCoil_id54(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id55()==null || "".equals(ts.getCoil_id55())) {				
				ts.setCoil_id55(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id56()==null || "".equals(ts.getCoil_id56())) {				
				ts.setCoil_id56(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id57()==null || "".equals(ts.getCoil_id57())) {				
				ts.setCoil_id57(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id58()==null || "".equals(ts.getCoil_id58())) {				
				ts.setCoil_id58(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id59()==null || "".equals(ts.getCoil_id59())) {				
				ts.setCoil_id59(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id60()==null || "".equals(ts.getCoil_id60())) {				
				ts.setCoil_id60(coilList.get(i));
				continue;
			}
			//61-70
			if (ts.getCoil_id61()==null || "".equals(ts.getCoil_id61())) {				
				ts.setCoil_id61(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id62()==null || "".equals(ts.getCoil_id62())) {				
				ts.setCoil_id62(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id63()==null || "".equals(ts.getCoil_id63())) {				
				ts.setCoil_id63(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id64()==null || "".equals(ts.getCoil_id64())) {				
				ts.setCoil_id64(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id65()==null || "".equals(ts.getCoil_id65())) {				
				ts.setCoil_id65(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id66()==null || "".equals(ts.getCoil_id66())) {				
				ts.setCoil_id66(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id67()==null || "".equals(ts.getCoil_id67())) {				
				ts.setCoil_id67(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id68()==null || "".equals(ts.getCoil_id68())) {				
				ts.setCoil_id68(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id69()==null || "".equals(ts.getCoil_id69())) {				
				ts.setCoil_id69(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id70()==null || "".equals(ts.getCoil_id70())) {				
				ts.setCoil_id70(coilList.get(i));
				continue;
			}
			//71-80
			if (ts.getCoil_id71()==null || "".equals(ts.getCoil_id71())) {				
				ts.setCoil_id71(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id72()==null || "".equals(ts.getCoil_id72())) {				
				ts.setCoil_id72(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id73()==null || "".equals(ts.getCoil_id73())) {				
				ts.setCoil_id73(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id74()==null || "".equals(ts.getCoil_id74())) {				
				ts.setCoil_id74(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id75()==null || "".equals(ts.getCoil_id75())) {				
				ts.setCoil_id75(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id76()==null || "".equals(ts.getCoil_id76())) {				
				ts.setCoil_id76(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id77()==null || "".equals(ts.getCoil_id77())) {				
				ts.setCoil_id77(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id78()==null || "".equals(ts.getCoil_id78())) {				
				ts.setCoil_id78(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id79()==null || "".equals(ts.getCoil_id79())) {				
				ts.setCoil_id79(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id80()==null || "".equals(ts.getCoil_id80())) {				
				ts.setCoil_id80(coilList.get(i));
				continue;
			}
			//81-90
			if (ts.getCoil_id81()==null || "".equals(ts.getCoil_id81())) {				
				ts.setCoil_id81(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id82()==null || "".equals(ts.getCoil_id82())) {				
				ts.setCoil_id82(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id83()==null || "".equals(ts.getCoil_id83())) {				
				ts.setCoil_id83(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id84()==null || "".equals(ts.getCoil_id84())) {				
				ts.setCoil_id84(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id85()==null || "".equals(ts.getCoil_id85())) {				
				ts.setCoil_id85(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id86()==null || "".equals(ts.getCoil_id86())) {				
				ts.setCoil_id86(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id87()==null || "".equals(ts.getCoil_id87())) {				
				ts.setCoil_id87(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id88()==null || "".equals(ts.getCoil_id88())) {				
				ts.setCoil_id88(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id89()==null || "".equals(ts.getCoil_id89())) {				
				ts.setCoil_id89(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id90()==null || "".equals(ts.getCoil_id90())) {				
				ts.setCoil_id90(coilList.get(i));
				continue;
			}
			//91-100
			if (ts.getCoil_id91()==null || "".equals(ts.getCoil_id91())) {				
				ts.setCoil_id91(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id92()==null || "".equals(ts.getCoil_id92())) {				
				ts.setCoil_id92(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id93()==null || "".equals(ts.getCoil_id93())) {				
				ts.setCoil_id93(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id94()==null || "".equals(ts.getCoil_id94())) {				
				ts.setCoil_id94(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id95()==null || "".equals(ts.getCoil_id95())) {				
				ts.setCoil_id95(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id96()==null || "".equals(ts.getCoil_id96())) {				
				ts.setCoil_id96(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id97()==null || "".equals(ts.getCoil_id97())) {				
				ts.setCoil_id97(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id98()==null || "".equals(ts.getCoil_id98())) {				
				ts.setCoil_id98(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id99()==null || "".equals(ts.getCoil_id99())) {				
				ts.setCoil_id99(coilList.get(i));
				continue;
			}
			if (ts.getCoil_id100()==null || "".equals(ts.getCoil_id100())) {				
				ts.setCoil_id100(coilList.get(i));
				continue;
			}
		}
		return ts;
	}
}
