|
@@ -591,7 +591,7 @@ public class TbVmsCtlrDto implements Serializable {
|
|
|
Integer vmsFormId = units[ii].getVmsFormId();
|
|
|
|
|
|
if (pForm.isObjectDownload()) {
|
|
|
- // TODO: 모든 객체를 추가해 줘야 한다.
|
|
|
+ // 모든 객체를 추가해 줘야 한다.
|
|
|
List<VmsFormObject> objects = pForm.getObjects();
|
|
|
VmsFormDto formDto = formData.addForm(vmsFormId, formDisplaySec, formDisplayType, formBkClr, objects.size());
|
|
|
for (int jj = 0; jj < objects.size(); jj++) {
|
|
@@ -613,10 +613,10 @@ public class TbVmsCtlrDto implements Serializable {
|
|
|
formObjDto = new VmsFormObjBitmapId(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), eVmsImageType.VMS_IMAGE_TYPE_BMP.getValue(), units[ii].getBitmapId());
|
|
|
}
|
|
|
else if (objects.get(jj).getObjectKind() == eVmsFormObjectKind.OBJECT_VIDEO_FILE) {
|
|
|
- formObjDto = new VmsFormObjVideo(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), "");
|
|
|
+ formObjDto = new VmsFormObjVideo(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), formObj.getVideoFileName());
|
|
|
}
|
|
|
else if (objects.get(jj).getObjectKind() == eVmsFormObjectKind.OBJECT_STREAM_URL) {
|
|
|
- formObjDto = new VmsFormObjStream(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), "");
|
|
|
+ formObjDto = new VmsFormObjStream(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), formObj.getStrmAddr());
|
|
|
}
|
|
|
else {
|
|
|
formObjDto = new VmsFormObjBitmap(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), eVmsImageType.VMS_IMAGE_TYPE_BMP.getValue(), formObj.getImageData());
|
|
@@ -674,11 +674,10 @@ public class TbVmsCtlrDto implements Serializable {
|
|
|
|
|
|
int formId = units[downloadCnt].getFormNo();
|
|
|
int downloadFormCnt = 1;
|
|
|
- int displaySec = 1;//units[downloadCnt].getDisplaySec();
|
|
|
- int displayType = units[downloadCnt].getDisplayType();
|
|
|
VmsFormDataDto formData = new VmsFormDataDto(formId, downloadFormCnt);
|
|
|
|
|
|
if (pForm.isObjectDownload()) {
|
|
|
+ // 모든 객체를 추가해 줘야 한다.
|
|
|
List<VmsFormObject> objects = pForm.getObjects();
|
|
|
VmsFormDto formDto = formData.addForm(vmsFormId, formDisplaySec, formDisplayType, formBkClr, objects.size());
|
|
|
for (int jj = 0; jj < objects.size(); jj++) {
|
|
@@ -700,10 +699,10 @@ public class TbVmsCtlrDto implements Serializable {
|
|
|
formObjDto = new VmsFormObjBitmapId(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), eVmsImageType.VMS_IMAGE_TYPE_BMP.getValue(), units[downloadCnt].getBitmapId());
|
|
|
}
|
|
|
else if (objects.get(jj).getObjectKind() == eVmsFormObjectKind.OBJECT_VIDEO_FILE) {
|
|
|
- formObjDto = new VmsFormObjVideo(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), "");
|
|
|
+ formObjDto = new VmsFormObjVideo(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), formObj.getVideoFileName());
|
|
|
}
|
|
|
else if (objects.get(jj).getObjectKind() == eVmsFormObjectKind.OBJECT_STREAM_URL) {
|
|
|
- formObjDto = new VmsFormObjStream(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), "");
|
|
|
+ formObjDto = new VmsFormObjStream(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), formObj.getStrmAddr());
|
|
|
}
|
|
|
else {
|
|
|
formObjDto = new VmsFormObjBitmap(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), eVmsImageType.VMS_IMAGE_TYPE_BMP.getValue(), formObj.getImageData());
|
|
@@ -727,46 +726,6 @@ public class TbVmsCtlrDto implements Serializable {
|
|
|
this.vmsCtlrNmbr, formCnt, downloadCnt + 1, pForm.getVmsFormId(), formId, formBitmapId);
|
|
|
}
|
|
|
|
|
|
-// VmsFormDataDto formData = new VmsFormDataDto(formId, downloadFormCnt);
|
|
|
-// int ii = downloadCnt;
|
|
|
-// VmsForm pForm = this.formManager.getItem(units[ii].getFormIdx());
|
|
|
-// List<VmsFormObject> objects = pForm.getObjects();
|
|
|
-// VmsFormDto formDto = formData.addForm(units[ii].getVmsFormId(), units[ii].getDisplaySec(), units[ii].getDisplayType(), units[ii].getBkClr(), objects.size());
|
|
|
-// for (int jj = 0; jj < objects.size(); jj++) {
|
|
|
-// VmsFormObject formObj = objects.get(jj);
|
|
|
-//
|
|
|
-// int objSize = formObj.getObjectSize();
|
|
|
-// int blinking = formObj.getBlinking();
|
|
|
-// int posX = formObj.getPosX();
|
|
|
-// int posY = formObj.getPosY();
|
|
|
-// int bkClr = formObj.getBkColor();
|
|
|
-//
|
|
|
-// String fileName = String.format("C:\\DRIVE_E\\ANDONG_VMS_FTP\\FORM\\%d_%d_%d-%d-%d-%d-%d.bmp", this.vmsCtlrNmbr, ii, jj, posX, posY, formObj.getDsplWidth(), formObj.getDsplHeight());
|
|
|
-//
|
|
|
-// VmsFormObj formObjDto;
|
|
|
-// if (objects.get(jj).getObjectKind() == eVmsFormObjectKind.OBJECT_TEXT) {
|
|
|
-// int clrR = formObj.getFontClr().getRed();
|
|
|
-// int clrG = formObj.getFontClr().getGreen();
|
|
|
-// int clrB = formObj.getFontClr().getBlue();
|
|
|
-// int fontNameCd = formObj.getFontNameCd();
|
|
|
-// formObjDto = new VmsFormObjText(objSize, blinking, posX, posY, bkClr, clrR, clrG, clrB, formObj.getFontSize(), fontNameCd, formObj.getFontBold(), formObj.getTextData());
|
|
|
-// }
|
|
|
-// else if (objects.get(jj).getObjectKind() == eVmsFormObjectKind.OBJECT_BITMAP_ID) {
|
|
|
-// //formObjDto = new VmsFormObjBitmapId(objSize, blinking, posX, posY, bkClr, object.getDsplWidth(), object.getDsplHeight(), eVmsImageType.VMS_IMAGE_TYPE_BMP.getValue(), units[ii].getBitmapId());
|
|
|
-// ItsUtils.saveByteArrayToFile(fileName, formObj.getImageData());
|
|
|
-// formObjDto = new VmsFormObjBitmap(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), eVmsImageType.VMS_IMAGE_TYPE_BMP.getValue(), formObj.getImageData());
|
|
|
-// }
|
|
|
-// else {
|
|
|
-// //formObjDto = new VmsFormObjBitmapId(objSize, blinking, posX, posY, bkClr, object.getDsplWidth(), object.getDsplHeight(), eVmsImageType.VMS_IMAGE_TYPE_BMP.getValue(), units[ii].getBitmapId());
|
|
|
-// ItsUtils.saveByteArrayToFile(fileName, formObj.getImageData());
|
|
|
-// formObjDto = new VmsFormObjBitmap(objSize, blinking, posX, posY, bkClr, formObj.getDsplWidth(), formObj.getDsplHeight(), eVmsImageType.VMS_IMAGE_TYPE_BMP.getValue(), formObj.getImageData());
|
|
|
-// }
|
|
|
-// formObjDto.calSize();
|
|
|
-// formDto.addObject(formObjDto);
|
|
|
-// }
|
|
|
-// formDto.calObjCount();
|
|
|
-// formData.calFormCount();
|
|
|
-
|
|
|
VmsReqDownloadForm downloadForm = new VmsReqDownloadForm(this, formData);
|
|
|
return sendData(downloadForm, 1);
|
|
|
}
|