|
|
@ -30,11 +30,18 @@ public class IecClient implements ClientEventListener {
|
|
|
|
int[] title = new int[]{1, 3, 9999, 33};
|
|
|
|
int[] title = new int[]{1, 3, 9999, 33};
|
|
|
|
if (StringUtils.isNotBlank(apTitle)) {
|
|
|
|
if (StringUtils.isNotBlank(apTitle)) {
|
|
|
|
String[] strs = apTitle.replaceAll(" ", ",").split(",");
|
|
|
|
String[] strs = apTitle.replaceAll(" ", ",").split(",");
|
|
|
|
if (strs.length > 3) {
|
|
|
|
if (strs.length == 4) {
|
|
|
|
title[0] = Integer.parseInt(strs[0]);
|
|
|
|
title[0] = Integer.parseInt(strs[0]);
|
|
|
|
title[1] = Integer.parseInt(strs[1]);
|
|
|
|
title[1] = Integer.parseInt(strs[1]);
|
|
|
|
title[2] = Integer.parseInt(strs[2]);
|
|
|
|
title[2] = Integer.parseInt(strs[2]);
|
|
|
|
title[3] = Integer.parseInt(strs[3]);
|
|
|
|
title[3] = Integer.parseInt(strs[3]);
|
|
|
|
|
|
|
|
} else if (strs.length == 5) {
|
|
|
|
|
|
|
|
title = new int[]{1, 3, 9999, 33, 1};
|
|
|
|
|
|
|
|
title[0] = Integer.parseInt(strs[0]);
|
|
|
|
|
|
|
|
title[1] = Integer.parseInt(strs[1]);
|
|
|
|
|
|
|
|
title[2] = Integer.parseInt(strs[2]);
|
|
|
|
|
|
|
|
title[3] = Integer.parseInt(strs[3]);
|
|
|
|
|
|
|
|
title[4] = Integer.parseInt(strs[4]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
clientSap.setTSelRemote(new byte[]{0, 1});
|
|
|
|
clientSap.setTSelRemote(new byte[]{0, 1});
|
|
|
|