Commit 6887dadd by s_guodong

处理listbox

parent d8b7458b
package com.brilliance.mda.runtime.mda.snapshot; package com.brilliance.mda.runtime.mda.snapshot;
import com.brilliance.mda.runtime.mda.IModule; import com.brilliance.mda.runtime.mda.IModule;
import com.brilliance.mda.runtime.mda.snapshot.bo.AttributeEnum;
import com.brilliance.mda.runtime.mda.snapshot.bo.ValueVo; import com.brilliance.mda.runtime.mda.snapshot.bo.ValueVo;
import com.brilliance.mda.runtime.mda.snapshot.bo.pack.*; import com.brilliance.mda.runtime.mda.snapshot.bo.pack.*;
import com.brilliance.mda.runtime.mda.snapshot.bo.unpack.*; import com.brilliance.mda.runtime.mda.snapshot.bo.unpack.*;
...@@ -66,32 +65,14 @@ public class SnapshotServiceImpl implements SnapshotService { ...@@ -66,32 +65,14 @@ public class SnapshotServiceImpl implements SnapshotService {
@Override @Override
public PackDocumentBo packTemplate(DocumentBo documentBo) { public PackDocumentBo packTemplate(DocumentBo documentBo) {
keySet.clear(); keySet.clear();
PackDivBo packDivBo = new PackDivBo();
List<PackComboboxBo> comboboxBoList = new ArrayList<>();
packDivBo.setComboboxBoList(comboboxBoList);
List<PackDateboxBo> dateboxBoList = new ArrayList<>();
packDivBo.setDateboxBoList(dateboxBoList);
List<PackDecimalboxBo> decimalboxBoList = new ArrayList<>();
packDivBo.setDecimalboxBoList(decimalboxBoList);
List<PackLabelBo> labelBoList = new ArrayList<>();
packDivBo.setLabelBoList(labelBoList);
List<PackTextboxBo> textboxBoList = new ArrayList<>();
packDivBo.setTextboxBoList(textboxBoList);
List<PackCheckboxBo> checkboxBoList = new ArrayList<>();
packDivBo.setCheckboxBoList(checkboxBoList);
List<TextboxBo> textboxList; List<TextboxBo> textboxList;
List<LabelBo> labelList; List<LabelBo> labelList;
List<TextboxBo> xcomboboxList; List<TextboxBo> xcomboboxList;
List<TextboxBo> xdateboxList; List<TextboxBo> xdateboxList;
List<TextboxBo> xdecimalboxList; List<TextboxBo> xdecimalboxList;
List<CheckboxBo> checkboxList = new ArrayList<>(); List<CheckboxBo> checkboxList;
List<ListboxBo> listboxList;
BorderlayoutBo borderlayoutBo = documentBo.getBorderlayoutBo(); BorderlayoutBo borderlayoutBo = documentBo.getBorderlayoutBo();
if (borderlayoutBo != null) { if (borderlayoutBo != null) {
CenterBo centerBo = borderlayoutBo.getCenterBo(); CenterBo centerBo = borderlayoutBo.getCenterBo();
...@@ -102,6 +83,7 @@ public class SnapshotServiceImpl implements SnapshotService { ...@@ -102,6 +83,7 @@ public class SnapshotServiceImpl implements SnapshotService {
xdateboxList = divBo.getXdateboxList(); xdateboxList = divBo.getXdateboxList();
xdecimalboxList = divBo.getXdecimalboxList(); xdecimalboxList = divBo.getXdecimalboxList();
checkboxList = divBo.getCheckboxList(); checkboxList = divBo.getCheckboxList();
listboxList = divBo.getListboxBoList();
} else { } else {
textboxList = documentBo.getTextboxList(); textboxList = documentBo.getTextboxList();
labelList = documentBo.getLabelList(); labelList = documentBo.getLabelList();
...@@ -109,101 +91,31 @@ public class SnapshotServiceImpl implements SnapshotService { ...@@ -109,101 +91,31 @@ public class SnapshotServiceImpl implements SnapshotService {
xdateboxList = documentBo.getXdateboxList(); xdateboxList = documentBo.getXdateboxList();
xdecimalboxList = documentBo.getXdecimalboxList(); xdecimalboxList = documentBo.getXdecimalboxList();
checkboxList = documentBo.getCheckboxList(); checkboxList = documentBo.getCheckboxList();
listboxList = documentBo.getListboxBoList();
} }
for (TextboxBo textboxBo : textboxList) { PackDivBo packDivBo = new PackDivBo();
List<CustomAttributes> customAttributes = textboxBo.getCustomAttributes(); // textbox
String text = getAttributeValue(customAttributes, AttributeEnum.FIELDURL); packDivBo.setTextboxBoList(handleTextbox(textboxList));
if (StringUtils.isNotBlank(text)) {
keySet.add(new ValueVo(text));
}
PackTextboxBo data = new PackTextboxBo(); // labelList
data.setText("${" + text + "}"); packDivBo.setLabelBoList(handleLabelList(labelList));
data.setStyle(textboxBo.getStyle());
data.setCols(textboxBo.getCols());
data.setRows(textboxBo.getRows() == null ? "1" : textboxBo.getRows());
textboxBoList.add(data);
}
for (LabelBo labelBo : labelList) { // xComboboxList
PackLabelBo data = new PackLabelBo(); packDivBo.setComboboxBoList(handlexComboboxList(xcomboboxList));
List<CustomAttributes> customAttributes = labelBo.getCustomAttributes();
String value = getAttributeValue(customAttributes, AttributeEnum.LABELID);
if (StringUtils.isBlank(value)) {
value = getAttributeValue(customAttributes, AttributeEnum.FIELDURL);
keySet.add(new ValueVo(value));
data.setValue("${" + value + "}");
} else {
// /bctp/LT000070/
String[] split = value.substring(1, value.length() - 1).split("/");
String i18NString = MdaUtils.getI18NString(split[0], split[1]);
data.setValue(i18NString);
}
data.setStyle(labelBo.getStyle());
labelBoList.add(data);
}
for (TextboxBo textboxBo : xcomboboxList) { // xdateboxList
List<CustomAttributes> customAttributes = textboxBo.getCustomAttributes(); packDivBo.setDateboxBoList(handleXdateboxList(xdateboxList));
String text = getAttributeValue(customAttributes, AttributeEnum.FIELDURL);
if (StringUtils.isNotBlank(text)) { // xdecimalboxList
keySet.add(new ValueVo(text, null, getAttributeValue(customAttributes, AttributeEnum.CODETABLE))); packDivBo.setDecimalboxBoList(handleXdecimalboxList(xdecimalboxList));
}
PackComboboxBo data = new PackComboboxBo(); // checkboxList
data.setText("${" + text + "}"); packDivBo.setCheckboxBoList(handleCheckboxList(checkboxList));
data.setStyle(textboxBo.getStyle());
comboboxBoList.add(data);
}
for (TextboxBo textboxBo : xdateboxList) { // listboxList
List<CustomAttributes> customAttributes = textboxBo.getCustomAttributes(); packDivBo.setListboxBoList(handleListboxList(listboxList));
String text = getAttributeValue(customAttributes, AttributeEnum.FIELDURL);
if (StringUtils.isNotBlank(text)) {
keySet.add(new ValueVo(text, textboxBo.getFormat(), null));
}
PackDateboxBo data = new PackDateboxBo();
data.setText("${" + text + "}");
data.setStyle(textboxBo.getStyle());
data.setFormat(textboxBo.getFormat());
dateboxBoList.add(data);
}
for (TextboxBo textboxBo : xdecimalboxList) {
List<CustomAttributes> customAttributes = textboxBo.getCustomAttributes();
String text = getAttributeValue(customAttributes, AttributeEnum.FIELDURL);
if (StringUtils.isNotBlank(text)) {
keySet.add(new ValueVo(text));
}
PackDecimalboxBo data = new PackDecimalboxBo();
data.setText("${" + text + "}");
data.setStyle(textboxBo.getStyle());
data.setFormat(textboxBo.getFormat());
decimalboxBoList.add(data);
}
for (CheckboxBo checkboxBo : checkboxList) {
PackCheckboxBo data = new PackCheckboxBo();
List<CustomAttributes> customAttributes = checkboxBo.getCustomAttributes();
String fieldUrl = getAttributeValue(customAttributes, AttributeEnum.FIELDURL);
String labelId = getAttributeValue(customAttributes, AttributeEnum.LABELID);
if (StringUtils.isBlank(labelId)) {
labelId = getAttributeValue(customAttributes, AttributeEnum.FIELDURL);
keySet.add(new ValueVo(labelId));
data.setLabel("${" + labelId + "}");
} else {
// /bctp/LT000070/
String[] split = labelId.substring(1, labelId.length() - 1).split("/");
String i18NString = MdaUtils.getI18NString(split[0], split[1]);
data.setLabel(i18NString);
}
data.setChecked("${" + fieldUrl + "}");
data.setStyle(checkboxBo.getStyle());
checkboxBoList.add(data);
}
// 组成xml需要的实体 // 组成xml需要的实体
PackBorderlayoutBo packBorderlayoutBo = new PackBorderlayoutBo(); PackBorderlayoutBo packBorderlayoutBo = new PackBorderlayoutBo();
PackCenterBo packCenterBo = new PackCenterBo(); PackCenterBo packCenterBo = new PackCenterBo();
...@@ -301,7 +213,6 @@ public class SnapshotServiceImpl implements SnapshotService { ...@@ -301,7 +213,6 @@ public class SnapshotServiceImpl implements SnapshotService {
value = String.valueOf(value); value = String.valueOf(value);
} }
} }
valueMap.put(originKey, value == null ? "" : value); valueMap.put(originKey, value == null ? "" : value);
} }
...@@ -310,28 +221,261 @@ public class SnapshotServiceImpl implements SnapshotService { ...@@ -310,28 +221,261 @@ public class SnapshotServiceImpl implements SnapshotService {
* 获取属性值 * 获取属性值
* *
* @param list * @param list
* @param key
* @return * @return
*/ */
private String getAttributeValue(List<CustomAttributes> list, AttributeEnum key) { private CustomAttributes getAttributeValue(List<CustomAttributes> list) {
CustomAttributes data = new CustomAttributes();
for (CustomAttributes customAttribute : list) { for (CustomAttributes customAttribute : list) {
if (AttributeEnum.LABELID.equals(key)) {
if (StringUtils.isNotBlank(customAttribute.getLabelId())) { if (StringUtils.isNotBlank(customAttribute.getLabelId())) {
return customAttribute.getLabelId(); data.setLabelId(customAttribute.getLabelId());
} else if (StringUtils.isNotBlank(customAttribute.getFieldUrl())) {
data.setFieldUrl(customAttribute.getFieldUrl());
} else if (StringUtils.isNotBlank(customAttribute.getCodeTable())) {
data.setCodeTable(customAttribute.getCodeTable());
} else if (StringUtils.isNotBlank(customAttribute.getRowHeight())) {
data.setRowHeight(customAttribute.getRowHeight());
} else if (StringUtils.isNotBlank(customAttribute.getFormatter())) {
data.setFormatter(customAttribute.getFormatter());
} else if (StringUtils.isNotBlank(customAttribute.getColumnName())) {
data.setColumnName(customAttribute.getColumnName());
} else if (StringUtils.isNotBlank(customAttribute.getColumnStyle())) {
data.setColumnStyle(customAttribute.getColumnStyle());
} }
} }
if (AttributeEnum.FIELDURL.equals(key)) { return data;
if (StringUtils.isNotBlank(customAttribute.getFieldUrl())) {
return customAttribute.getFieldUrl();
} }
/**
* 处理textbox
*
* @param textboxList
* @return
*/
private List<PackTextboxBo> handleTextbox(List<TextboxBo> textboxList) {
List<PackTextboxBo> textboxBoList = new ArrayList<>();
if (textboxList == null) {
return textboxBoList;
} }
if (AttributeEnum.CODETABLE.equals(key)) { for (TextboxBo textboxBo : textboxList) {
if (StringUtils.isNotBlank(customAttribute.getCodeTable())) { List<CustomAttributes> customAttributes = textboxBo.getCustomAttributes();
return customAttribute.getCodeTable(); String text = getAttributeValue(customAttributes).getFieldUrl();
if (StringUtils.isNotBlank(text)) {
keySet.add(new ValueVo(text));
} }
PackTextboxBo data = new PackTextboxBo();
data.setText("${" + text + "}");
data.setStyle(textboxBo.getStyle());
data.setCols(textboxBo.getCols());
data.setRows(textboxBo.getRows() == null ? "1" : textboxBo.getRows());
textboxBoList.add(data);
} }
return textboxBoList;
} }
return "";
/**
* 处理labelList
*
* @param labelList
* @return
*/
private List<PackLabelBo> handleLabelList(List<LabelBo> labelList) {
List<PackLabelBo> labelBoList = new ArrayList<>();
if (labelList == null) {
return labelBoList;
}
for (LabelBo labelBo : labelList) {
PackLabelBo data = new PackLabelBo();
List<CustomAttributes> customAttributes = labelBo.getCustomAttributes();
CustomAttributes attributeValue = getAttributeValue(customAttributes);
String value = attributeValue.getLabelId();
if (StringUtils.isBlank(value)) {
value = attributeValue.getFieldUrl();
keySet.add(new ValueVo(value));
data.setValue("${" + value + "}");
} else {
// /bctp/LT000070/
String[] split = value.substring(1, value.length() - 1).split("/");
String i18NString = MdaUtils.getI18NString(split[0], split[1]);
data.setValue(i18NString);
}
data.setStyle(labelBo.getStyle());
labelBoList.add(data);
}
return labelBoList;
}
/**
* 处理xComboboxList
*
* @param xcomboboxList
* @return
*/
private List<PackComboboxBo> handlexComboboxList(List<TextboxBo> xcomboboxList) {
List<PackComboboxBo> comboboxBoList = new ArrayList<>();
if (xcomboboxList == null) {
return comboboxBoList;
}
for (TextboxBo textboxBo : xcomboboxList) {
List<CustomAttributes> customAttributes = textboxBo.getCustomAttributes();
CustomAttributes attributeValue = getAttributeValue(customAttributes);
String text = attributeValue.getFieldUrl();
if (StringUtils.isNotBlank(text)) {
keySet.add(new ValueVo(text, null, attributeValue.getCodeTable()));
}
PackComboboxBo data = new PackComboboxBo();
data.setText("${" + text + "}");
data.setStyle(textboxBo.getStyle());
comboboxBoList.add(data);
}
return comboboxBoList;
}
/**
* 处理XdateboxList
*
* @param xdateboxList
* @return
*/
private List<PackDateboxBo> handleXdateboxList(List<TextboxBo> xdateboxList) {
List<PackDateboxBo> dateboxBoList = new ArrayList<>();
if (xdateboxList == null) {
return dateboxBoList;
}
for (TextboxBo textboxBo : xdateboxList) {
List<CustomAttributes> customAttributes = textboxBo.getCustomAttributes();
String text = getAttributeValue(customAttributes).getFieldUrl();
if (StringUtils.isNotBlank(text)) {
keySet.add(new ValueVo(text, textboxBo.getFormat(), null));
}
PackDateboxBo data = new PackDateboxBo();
data.setText("${" + text + "}");
data.setStyle(textboxBo.getStyle());
data.setFormat(textboxBo.getFormat());
dateboxBoList.add(data);
}
return dateboxBoList;
}
/**
* 处理XdecimalboxList
*
* @param xdecimalboxList
* @return
*/
private List<PackDecimalboxBo> handleXdecimalboxList(List<TextboxBo> xdecimalboxList) {
List<PackDecimalboxBo> decimalboxBoList = new ArrayList<>();
if (xdecimalboxList == null) {
return decimalboxBoList;
}
for (TextboxBo textboxBo : xdecimalboxList) {
List<CustomAttributes> customAttributes = textboxBo.getCustomAttributes();
String text = getAttributeValue(customAttributes).getFieldUrl();
if (StringUtils.isNotBlank(text)) {
keySet.add(new ValueVo(text));
}
PackDecimalboxBo data = new PackDecimalboxBo();
data.setText("${" + text + "}");
data.setStyle(textboxBo.getStyle());
data.setFormat(textboxBo.getFormat());
decimalboxBoList.add(data);
}
return decimalboxBoList;
}
/**
* 处理checkboxList
*
* @param checkboxList
* @return
*/
private List<PackCheckboxBo> handleCheckboxList(List<CheckboxBo> checkboxList) {
List<PackCheckboxBo> checkboxBoList = new ArrayList<>();
if (checkboxList == null) {
return checkboxBoList;
}
for (CheckboxBo checkboxBo : checkboxList) {
PackCheckboxBo data = new PackCheckboxBo();
List<CustomAttributes> customAttributes = checkboxBo.getCustomAttributes();
CustomAttributes attributeValue = getAttributeValue(customAttributes);
String fieldUrl = attributeValue.getFieldUrl();
String labelId = attributeValue.getLabelId();
if (StringUtils.isBlank(labelId)) {
labelId = attributeValue.getFieldUrl();
keySet.add(new ValueVo(labelId));
data.setLabel("${" + labelId + "}");
} else {
// /bctp/LT000070/
String[] split = labelId.substring(1, labelId.length() - 1).split("/");
String i18NString = MdaUtils.getI18NString(split[0], split[1]);
data.setLabel(i18NString);
}
data.setChecked("${" + fieldUrl + "}");
data.setStyle(checkboxBo.getStyle());
checkboxBoList.add(data);
}
return checkboxBoList;
}
/**
* 处理listboxList
*
* @param listboxList
* @return
*/
private List<PackListboxBo> handleListboxList(List<ListboxBo> listboxList) {
List<PackListboxBo> listboxBoList = new ArrayList<>();
if (listboxList == null) {
return listboxBoList;
}
for (ListboxBo listbox : listboxList) {
PackListboxBo data = new PackListboxBo();
// 表头
PackListheadBo packListhead = new PackListheadBo();
List<PackListheaderBo> listheader = new ArrayList<>();
// 表数据
PackListitemBo packListiteam = new PackListitemBo();
List<PackListcellBo> listcell = new ArrayList<>();
ListheadBo listhead = listbox.getListhead();
CustomAttributes attributeValue = getAttributeValue(listbox.getCustomAttributes());
String fieldUrl = attributeValue.getFieldUrl();
String rowHeight = attributeValue.getRowHeight();
List<ListheaderBo> listheaderList = listhead.getListheaderList();
for (ListheaderBo listheaderBo : listheaderList) {
List<CustomAttributes> customAttributes = listheaderBo.getCustomAttributes();
CustomAttributes attributeValue1 = getAttributeValue(customAttributes);
// 处理表头信息
String labelId = attributeValue1.getLabelId();
String[] split = labelId.substring(1, labelId.length() - 1).split("/");
String i18NString = MdaUtils.getI18NString(split[0], split[1]);
PackListheaderBo listheaderData = new PackListheaderBo();
listheaderData.setWidth("0px".equals(listheaderBo.getWidth()) ? "100px" : listheaderBo.getWidth());
listheaderData.setLabel(i18NString);
listheaderData.setStyle(listheaderBo.getStyle());
listheader.add(listheaderData);
}
packListiteam.setListcell(listcell);
packListiteam.setHeight(rowHeight);
packListhead.setListheader(listheader);
data.setPackListheadBo(packListhead);
data.setPackListitemBo(packListiteam);
data.setStyle(listbox.getStyle());
listboxBoList.add(data);
}
return listboxBoList;
} }
......
package com.brilliance.mda.runtime.mda.snapshot.bo;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
public enum AttributeEnum {
LABELID("i18n"),
FIELDURL("fieldUrl"),
CODETABLE("codeTable");
private String value;
AttributeEnum(String value) {
this.value = value;
}
}
...@@ -36,4 +36,8 @@ public class PackDivBo { ...@@ -36,4 +36,8 @@ public class PackDivBo {
@XmlElement(name = "checkbox") @XmlElement(name = "checkbox")
private List<PackCheckboxBo> checkboxBoList; private List<PackCheckboxBo> checkboxBoList;
@XmlElement(name = "listbox")
private List<PackListboxBo> listboxBoList;
} }
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.*;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listbox")
@Data
public class PackListboxBo {
@XmlAttribute(name = "style")
private String style;
@XmlAttribute(name = "zclass")
private String zclass = "z-listbox";
@XmlElement(name = "listhead")
private PackListheadBo packListheadBo;
@XmlElement(name = "listitem")
private PackListitemBo packListitemBo;
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listcell")
@Data
public class PackListcellBo {
@XmlAttribute(name = "label")
private String label;
@XmlAttribute(name = "style")
private String style;
@XmlAttribute(name = "zclass")
private String zclass = "z-listcell";
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listhead")
@Data
public class PackListheadBo {
@XmlAttribute(name = "sizable")
private String sizable = "true";
@XmlAttribute(name = "zclass")
private String zclass = "z-listhead";
@XmlElement(name = "listheader")
private List<PackListheaderBo> listheader;
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listheader")
@Data
public class PackListheaderBo {
@XmlAttribute(name = "label")
private String label;
@XmlAttribute(name = "width")
private String width;
@XmlAttribute(name = "style")
private String style;
@XmlAttribute(name = "zclass")
private String zclass = "z-listheader";
}
package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listiteam")
@Data
public class PackListitemBo {
@XmlAttribute(name = "height")
private String height;
@XmlAttribute(name = "zclass")
private String zclass = "z-listitem";
@XmlElement(name = "listcell")
private List<PackListcellBo> listcell;
}
...@@ -25,4 +25,16 @@ public class CustomAttributes { ...@@ -25,4 +25,16 @@ public class CustomAttributes {
@XmlAttribute(name = "codeTable") @XmlAttribute(name = "codeTable")
private String codeTable; private String codeTable;
@XmlAttribute(name = "columnName")
private String columnName;
@XmlAttribute(name = "columnStyle")
private String columnStyle;
@XmlAttribute(name = "formatter")
private String formatter;
@XmlAttribute(name = "rowHeight")
private String rowHeight;
} }
...@@ -36,4 +36,7 @@ public class DivBo { ...@@ -36,4 +36,7 @@ public class DivBo {
@XmlElement(name = "checkbox") @XmlElement(name = "checkbox")
private List<CheckboxBo> checkboxList; private List<CheckboxBo> checkboxList;
@XmlElement(name = "listbox")
private List<ListboxBo> listboxBoList;
} }
...@@ -36,6 +36,9 @@ public class DocumentBo { ...@@ -36,6 +36,9 @@ public class DocumentBo {
@XmlElement(name = "checkbox") @XmlElement(name = "checkbox")
private List<CheckboxBo> checkboxList; private List<CheckboxBo> checkboxList;
@XmlElement(name = "listbox")
private List<ListboxBo> listboxBoList;
@XmlElement(name = "borderlayout") @XmlElement(name = "borderlayout")
private BorderlayoutBo borderlayoutBo; private BorderlayoutBo borderlayoutBo;
} }
package com.brilliance.mda.runtime.mda.snapshot.bo.unpack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/16
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listbox")
@Data
public class ListboxBo {
@XmlAttribute(name = "style")
private String style;
@XmlAttribute(name = "mold")
private String mold = "paging";
@XmlAttribute(name = "pageSize")
private String pageSize;
@XmlElement(name = "custom-attributes")
private List<CustomAttributes> customAttributes;
@XmlElement(name = "listhead")
private ListheadBo listhead;
}
package com.brilliance.mda.runtime.mda.snapshot.bo.unpack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/16
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listhead")
@Data
public class ListheadBo {
@XmlElement(name = "listheader")
private List<ListheaderBo> listheaderList;
@XmlAttribute(name = "sizable")
private String sizable = "true";
}
package com.brilliance.mda.runtime.mda.snapshot.bo.unpack;
import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
/**
* @Description
* @Author s_guodong
* @Date 2023/8/16
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "listheader")
@Data
public class ListheaderBo {
@XmlElement(name = "custom-attributes")
private List<CustomAttributes> customAttributes;
@XmlAttribute(name = "width")
private String width;
@XmlAttribute(name = "style")
private String style;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment