Merge branch 'master' into develop
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -53,7 +53,6 @@ public class StampaEtichetteCarciofiCalibratiJavabean extends BaseReportJavabean
|
|||||||
|
|
||||||
public List<Object> run(EtichettaCalibriParamsDTO dto) throws Exception {
|
public List<Object> run(EtichettaCalibriParamsDTO dto) throws Exception {
|
||||||
List<Object> listEtichette = new ArrayList<>();
|
List<Object> listEtichette = new ArrayList<>();
|
||||||
String sql;
|
|
||||||
|
|
||||||
EtichettaCalibriFieldsDTO baseJavaBean = new EtichettaCalibriFieldsDTO();
|
EtichettaCalibriFieldsDTO baseJavaBean = new EtichettaCalibriFieldsDTO();
|
||||||
baseJavaBean.setBarcode_ul(dto.getBarcodeUl())
|
baseJavaBean.setBarcode_ul(dto.getBarcodeUl())
|
||||||
@@ -75,19 +74,19 @@ public class StampaEtichetteCarciofiCalibratiJavabean extends BaseReportJavabean
|
|||||||
.setRow_number(0)
|
.setRow_number(0)
|
||||||
.setRow_total(0)
|
.setRow_total(0)
|
||||||
;
|
;
|
||||||
if (dto.getCalibro60()!=null && dto.getCalibro60() > 0) {
|
if (dto.getCalibro60() != null && dto.getCalibro60() > 0) {
|
||||||
for (int i = 0; i < dto.getCalibro60(); i++) {
|
for (int i = 0; i < dto.getCalibro60(); i++) {
|
||||||
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
||||||
javaBean.setRow_number(i+1)
|
javaBean.setRow_number(i + 1)
|
||||||
.setRow_total(dto.getCalibro60())
|
.setRow_total(dto.getCalibro60())
|
||||||
.setCalibro(60);
|
.setCalibro(60);
|
||||||
listEtichette.add(javaBean);
|
listEtichette.add(javaBean);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (dto.getCalibro70()!= null && dto.getCalibro70() > 0) {
|
if (dto.getCalibro70() != null && dto.getCalibro70() > 0) {
|
||||||
for (int i = 0; i < dto.getCalibro70(); i++) {
|
for (int i = 0; i < dto.getCalibro70(); i++) {
|
||||||
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
||||||
javaBean.setRow_number(i+1)
|
javaBean.setRow_number(i + 1)
|
||||||
.setRow_total(dto.getCalibro70())
|
.setRow_total(dto.getCalibro70())
|
||||||
.setCalibro(70);
|
.setCalibro(70);
|
||||||
listEtichette.add(javaBean);
|
listEtichette.add(javaBean);
|
||||||
@@ -96,7 +95,7 @@ public class StampaEtichetteCarciofiCalibratiJavabean extends BaseReportJavabean
|
|||||||
if (dto.getCalibro80() != null && dto.getCalibro80() > 0) {
|
if (dto.getCalibro80() != null && dto.getCalibro80() > 0) {
|
||||||
for (int i = 0; i < dto.getCalibro80(); i++) {
|
for (int i = 0; i < dto.getCalibro80(); i++) {
|
||||||
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
||||||
javaBean.setRow_number(i+1)
|
javaBean.setRow_number(i + 1)
|
||||||
.setRow_total(dto.getCalibro80())
|
.setRow_total(dto.getCalibro80())
|
||||||
.setCalibro(80);
|
.setCalibro(80);
|
||||||
listEtichette.add(javaBean);
|
listEtichette.add(javaBean);
|
||||||
@@ -105,13 +104,21 @@ public class StampaEtichetteCarciofiCalibratiJavabean extends BaseReportJavabean
|
|||||||
if (dto.getCalibro90() != null && dto.getCalibro90() > 0) {
|
if (dto.getCalibro90() != null && dto.getCalibro90() > 0) {
|
||||||
for (int i = 0; i < dto.getCalibro90(); i++) {
|
for (int i = 0; i < dto.getCalibro90(); i++) {
|
||||||
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
||||||
javaBean.setRow_number(i+1)
|
javaBean.setRow_number(i + 1)
|
||||||
.setRow_total(dto.getCalibro90())
|
.setRow_total(dto.getCalibro90())
|
||||||
.setCalibro(90);
|
.setCalibro(90);
|
||||||
listEtichette.add(javaBean);
|
listEtichette.add(javaBean);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (dto.getCalibro100() != null && dto.getCalibro100() > 0) {
|
||||||
|
for (int i = 0; i < dto.getCalibro100(); i++) {
|
||||||
|
EtichettaCalibriFieldsDTO javaBean = baseJavaBean.clone();
|
||||||
|
javaBean.setRow_number(i + 1)
|
||||||
|
.setRow_total(dto.getCalibro100())
|
||||||
|
.setCalibro(100);
|
||||||
|
listEtichette.add(javaBean);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return listEtichette;
|
return listEtichette;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ public class EtichettaCalibriParamsDTO {
|
|||||||
private Integer calibro70;
|
private Integer calibro70;
|
||||||
private Integer calibro80;
|
private Integer calibro80;
|
||||||
private Integer calibro90;
|
private Integer calibro90;
|
||||||
|
private Integer calibro100;
|
||||||
private String idAttachmentLogo;
|
private String idAttachmentLogo;
|
||||||
private String activityId;
|
private String activityId;
|
||||||
private String jbeansource;
|
private String jbeansource;
|
||||||
@@ -33,8 +34,6 @@ public class EtichettaCalibriParamsDTO {
|
|||||||
private Integer numDocProvv;
|
private Integer numDocProvv;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Date getDataCollo() {
|
public Date getDataCollo() {
|
||||||
return dataCollo;
|
return dataCollo;
|
||||||
}
|
}
|
||||||
@@ -224,8 +223,14 @@ public class EtichettaCalibriParamsDTO {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getCalibro100() {
|
||||||
|
return calibro100;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EtichettaCalibriParamsDTO setCalibro100(Integer calibro100) {
|
||||||
|
this.calibro100 = calibro100;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public String getIdAttachmentLogo() {
|
public String getIdAttachmentLogo() {
|
||||||
return idAttachmentLogo;
|
return idAttachmentLogo;
|
||||||
|
|||||||
Reference in New Issue
Block a user