Skip to content
Snippets Groups Projects
Commit b974de1d authored by felmer's avatar felmer
Browse files

SSDM-9367: SampleUpdate.js extended for properties of data type SAMPLE

parent 40a0de31
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/ ...@@ -5,6 +5,7 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/
IdListUpdateValue, AttachmentListUpdateValue) { IdListUpdateValue, AttachmentListUpdateValue) {
var SampleUpdate = function() { var SampleUpdate = function() {
this.properties = {}; this.properties = {};
this.sampleProperties = {};
this.experimentId = new FieldUpdateValue(); this.experimentId = new FieldUpdateValue();
this.projectId = new FieldUpdateValue(); this.projectId = new FieldUpdateValue();
this.spaceId = new FieldUpdateValue(); this.spaceId = new FieldUpdateValue();
...@@ -114,6 +115,12 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/ ...@@ -114,6 +115,12 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/
prototype.setProperties = function(properties) { prototype.setProperties = function(properties) {
this.properties = properties; this.properties = properties;
}; };
prototype.setSampleProperty = function(propertyName, sampleId) {
this.sampleProperties[propertyName] = sampleId;
};
prototype.getSampleProperties = function() {
return this.sampleProperties;
};
prototype.getTagIds = function() { prototype.getTagIds = function() {
return this.tagIds; return this.tagIds;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment