Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
87f15c94
Commit
87f15c94
authored
9 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-1980 : Strict validation, the user needs to select all storage properties to the system.
SVN: 34142
parent
dd41e73a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/StorageManager/widgets/StorageController.js
+28
-7
28 additions, 7 deletions
...html/js/views/StorageManager/widgets/StorageController.js
with
28 additions
and
7 deletions
plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/StorageManager/widgets/StorageController.js
+
28
−
7
View file @
87f15c94
...
...
@@ -277,23 +277,44 @@ function StorageController(configOverride) {
//
this
.
isValid
=
function
(
callback
)
{
var
_this
=
this
;
this
.
_is
UserTypingExistingBox
(
function
(
error
1
)
{
if
(
error
1
)
{
Util
.
showError
(
error
1
,
function
()
{},
true
);
this
.
_is
ValidState
(
function
(
error
0
)
{
if
(
error
0
)
{
Util
.
showError
(
error
0
,
function
()
{},
true
);
callback
(
false
);
}
else
{
_this
.
_is
PositionAlreadyUsed
(
function
(
error
2
)
{
if
(
error
2
)
{
Util
.
showError
(
error
2
,
function
()
{},
true
);
_this
.
_is
UserTypingExistingBox
(
function
(
error
1
)
{
if
(
error
1
)
{
Util
.
showError
(
error
1
,
function
()
{},
true
);
callback
(
false
);
}
else
{
callback
(
true
);
_this
.
_isPositionAlreadyUsed
(
function
(
error2
)
{
if
(
error2
)
{
Util
.
showError
(
error2
,
function
()
{},
true
);
callback
(
false
);
}
else
{
callback
(
true
);
}
});
}
});
}
});
}
this
.
_isValidState
=
function
(
callback
)
{
if
(
!
this
.
_storageModel
.
row
||
!
this
.
_storageModel
.
column
)
{
callback
(
"
Select a rack please.
"
);
}
else
if
(
!
this
.
_storageModel
.
boxName
)
{
callback
(
"
Select a box please.
"
);
}
else
if
(
!
this
.
_storageModel
.
boxSize
)
{
callback
(
"
Select a box size please.
"
);
}
else
if
(
!
this
.
_storageModel
.
boxPosition
)
{
callback
(
"
Select a box position please.
"
);
}
else
{
callback
(
null
);
}
}
this
.
_isPositionAlreadyUsed
=
function
(
callback
)
{
var
_this
=
this
;
// Check user don't selects a position already selected by a sample that is not the binded one
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment