From d2570148ec3884de3af721bd99c4b7acbbdee075 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 09 五月 2023 17:07:26 +0800
Subject: [PATCH] 前端代码提交

---
 Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/revision/model/TreeWrapperOptions.java |  122 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 122 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/revision/model/TreeWrapperOptions.java b/Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/revision/model/TreeWrapperOptions.java
new file mode 100644
index 0000000..2f161fd
--- /dev/null
+++ b/Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/revision/model/TreeWrapperOptions.java
@@ -0,0 +1,122 @@
+package com.vci.ubcs.starter.revision.model;
+
+
+
+import java.io.Serializable;
+
+public class TreeWrapperOptions implements Serializable {
+	private static final long serialVersionUID = 3183500138266494574L;
+	private String textFieldName = "name";
+	private String textValueSep = " ";
+	private String parentFieldName;
+	private String oidFieldName = "oid";
+	private String oidValueSep = ",";
+	private boolean allAttributes = true;
+	private String parentOid;
+	private boolean multipleSelect = false;
+	private boolean showCheckBox = false;
+
+	public TreeWrapperOptions() {
+	}
+
+	public TreeWrapperOptions(String parentFieldName) {
+		this.parentFieldName = parentFieldName;
+	}
+
+	public TreeWrapperOptions(String textFieldName, String parentFieldName) {
+		this.textFieldName = textFieldName;
+		this.parentFieldName = parentFieldName;
+	}
+
+	public TreeWrapperOptions(String textFieldName, String parentFieldName, String parentOid) {
+		this.textFieldName = textFieldName;
+		this.parentFieldName = parentFieldName;
+		this.parentOid = parentOid;
+	}
+
+	public void copyFromTreeQuery(TreeQueryObject treeQueryObject) {
+		if (treeQueryObject != null) {
+			this.parentOid = treeQueryObject.getParentOid();
+			this.multipleSelect = treeQueryObject.isMultipleSelect();
+			this.showCheckBox = treeQueryObject.isShowCheckBox();
+		}
+
+	}
+
+	public String getTextFieldName() {
+		return this.textFieldName;
+	}
+
+	public void setTextFieldName(String textFieldName) {
+		this.textFieldName = textFieldName;
+	}
+
+	public String getParentFieldName() {
+		return this.parentFieldName;
+	}
+
+	public void setParentFieldName(String parentFieldName) {
+		this.parentFieldName = parentFieldName;
+	}
+
+	public String getOidFieldName() {
+		return this.oidFieldName;
+	}
+
+	public void setOidFieldName(String oidFieldName) {
+		this.oidFieldName = oidFieldName;
+	}
+
+	public boolean isAllAttributes() {
+		return this.allAttributes;
+	}
+
+	public void setAllAttributes(boolean allAttributes) {
+		this.allAttributes = allAttributes;
+	}
+
+	public String getParentOid() {
+		return this.parentOid;
+	}
+
+	public void setParentOid(String parentOid) {
+		this.parentOid = parentOid;
+	}
+
+	public boolean isMultipleSelect() {
+		return this.multipleSelect;
+	}
+
+	public void setMultipleSelect(boolean multipleSelect) {
+		this.multipleSelect = multipleSelect;
+	}
+
+	public boolean isShowCheckBox() {
+		return this.showCheckBox;
+	}
+
+	public void setShowCheckBox(boolean showCheckBox) {
+		this.showCheckBox = showCheckBox;
+	}
+
+	public String getTextValueSep() {
+		return this.textValueSep;
+	}
+
+	public void setTextValueSep(String textValueSep) {
+		this.textValueSep = textValueSep;
+	}
+
+	public String getOidValueSep() {
+		return this.oidValueSep;
+	}
+
+	public void setOidValueSep(String oidValueSep) {
+		this.oidValueSep = oidValueSep;
+	}
+
+	@Override
+	public String toString() {
+		return "TreeWrapperOptions{textFieldName='" + this.textFieldName + '\'' + ", textValueSep='" + this.textValueSep + '\'' + ", parentFieldName='" + this.parentFieldName + '\'' + ", oidFieldName='" + this.oidFieldName + '\'' + ", oidValueSep='" + this.oidValueSep + '\'' + ", allAttributes=" + this.allAttributes + ", parentOid='" + this.parentOid + '\'' + ", multipleSelect=" + this.multipleSelect + ", showCheckBox=" + this.showCheckBox + '}';
+	}
+}

--
Gitblit v1.9.3