You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LIMS-1785: Create 'Assign Sample' page for VMXm (#974)
* LIMS-1785: Create 'Assign Sample' page for VMXm
* LIMS-1785: Label link to Assign page correctly
* LIMS-1785: Use consts rather than vars
* LIMS-1785: Fix unassign dialog
---------
Co-authored-by: Mark Williams <[email protected]>
Copy file name to clipboardExpand all lines: api/src/Page/Sample.php
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,8 @@ class Sample extends Page
120
120
'BEAMLINENAME' => '[\w\-]+',
121
121
'SOURCE' => '[\w\-]+',
122
122
123
+
'assigned' => '[\w\-]+',
124
+
'unassigned' => '[\w\-]+',
123
125
'queued' => '\d',
124
126
'UNQUEUE' => '\d',
125
127
'nodata' => '\d',
@@ -1145,6 +1147,16 @@ function _samples()
1145
1147
array_push($args, $sessionid);
1146
1148
}
1147
1149
1150
+
if ($this->has_arg('assigned')) {
1151
+
$where .= " AND d.dewarstatus LIKE 'processing' AND b.isinsamplechanger > 0 AND c.beamlinelocation LIKE :" . (sizeof($args) + 1);
1152
+
array_push($args, $this->arg('assigned'));
1153
+
}
1154
+
1155
+
if ($this->has_arg('unassigned')) {
1156
+
$where .= " AND b.isinsamplechanger is null AND d.storagelocation=:" . (sizeof($args) + 1);
1157
+
array_push($args, $this->arg('unassigned'));
1158
+
}
1159
+
1148
1160
// Search
1149
1161
if ($this->has_arg('s')) {
1150
1162
$st = sizeof($args) + 1;
@@ -1219,7 +1231,7 @@ function _samples()
1219
1231
, TO_CHAR(cq.createdtimestamp, 'DD-MM-YYYY HH24:MI') as queuedtimestamp, b.smiles
1220
1232
, $cseq$sseq string_agg(cpr.name) as componentnames, string_agg(cpr.density) as componentdensities
1221
1233
, string_agg(cpr.proteinid) as componentids, string_agg(cpr.acronym) as componentacronyms, string_agg(cpr.global) as componentglobals, string_agg(chc.abundance) as componentamounts, string_agg(ct.symbol) as componenttypesymbols, b.volume, pct.symbol,ROUND(cr.abundance,3) as abundance, TO_CHAR(b.recordtimestamp, 'DD-MM-YYYY') as recordtimestamp, dp.radiationsensitivity, dp.energy, dp.userpath, dp.strategyoption, dp.minimalresolution as minimumresolution
1222
-
, count(distinct dc.dataCollectionId) as dcc
1234
+
, count(distinct dc.dataCollectionId) as dcc, b.isinsamplechanger
0 commit comments