Changeset 7603
- Timestamp:
- Feb 22, 2019, 1:50:40 PM (5 years ago)
- Location:
- trunk/www
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/common/overview/index.jsp
r6192 r7603 101 101 } 102 102 } 103 options.setOption( Validator.NONMATCHING_SPOTCOUNT, "threshold", request.getParameter("threshold"));103 options.setOption((ValidationRuleAction)Validator.NONMATCHING_SPOTCOUNT, "threshold", request.getParameter("threshold")); 104 104 options.saveToPreset(presets.getDefault()); 105 105 OverviewUtil.saveValidationPresets(sc); -
trunk/www/views/derivedbioassays/ajax.jsp
r6799 r7603 69 69 try 70 70 { 71 if ("GetExtracts".equals(cmd)) 72 { 73 dc = sc.newDbControl(); 74 DerivedBioAssay dba = DerivedBioAssay.getById(dc, itemId); 75 json.put("id", dba.getId()); 76 json.put("name", dba.getName()); 77 78 JSONArray jsonSources = new JSONArray(); 79 try 80 { 81 Extract extract = dba.getExtract(); 82 if (extract != null) 83 { 84 JSONObject jsonSrc = new JSONObject(); 85 jsonSrc.put("id", extract.getId()); 86 jsonSrc.put("name", extract.getName()); 87 jsonSources.add(jsonSrc); 88 } 89 else 90 { 91 SpecialQuery<BioMaterialEventSource> sourceQuery = dba.getPhysicalBioAssay().getCreationEvent().getEventSources(); 92 sourceQuery.order(Orders.asc(Hql.property("position"))); 93 sourceQuery.order(Orders.asc(Hql.property("bioMaterial.name"))); 94 for (BioMaterialEventSource src : sourceQuery.list(dc)) 95 { 96 JSONObject jsonSrc = new JSONObject(); 97 try 98 { 99 extract = (Extract)src.getBioMaterial(); 100 jsonSrc.put("id", extract.getId()); 101 jsonSrc.put("name", extract.getName()); 102 jsonSrc.put("position", src.getPosition()); 103 jsonSources.add(jsonSrc); 104 } 105 catch (PermissionDeniedException ex) 106 {} 107 } 108 } 109 } 110 catch (PermissionDeniedException ex) 111 {} 112 json.put("sources", jsonSources); 113 114 115 dc.commit(); 116 } 117 else if ("GetArrayDesign".equals(cmd)) 71 if ("GetArrayDesign".equals(cmd)) 118 72 { 119 73 dc = sc.newDbControl(); -
trunk/www/views/experiments/reporters/index.jsp
r7432 r7603 37 37 import="net.sf.basedb.core.User" 38 38 import="net.sf.basedb.core.ItemQuery" 39 import="net.sf.basedb.core.DynamicReporterQuery"40 39 import="net.sf.basedb.core.ItemResultIterator" 41 40 import="net.sf.basedb.core.Permission" … … 46 45 import="net.sf.basedb.core.ItemAlreadyExistsException" 47 46 import="net.sf.basedb.core.query.Restriction" 47 import="net.sf.basedb.core.query.SqlQuery" 48 48 import="net.sf.basedb.plugins.CloneReportersPlugin" 49 49 import="net.sf.basedb.clients.web.Base" … … 109 109 dc = sc.newDbControl(); 110 110 final Experiment experiment = Experiment.getById(dc, experimentId); 111 final DynamicReporterQuery query = Reporter.getDynamicQuery(experiment);111 final SqlQuery query = Reporter.getDynamicQuery(experiment); 112 112 dc.close(); 113 113 cc.setQuery(query); … … 120 120 dc = sc.newDbControl(); 121 121 final Experiment experiment = Experiment.getById(dc, experimentId); 122 final DynamicReporterQuery query = Reporter.getDynamicQuery(experiment);122 final SqlQuery query = Reporter.getDynamicQuery(experiment); 123 123 dc.close(); 124 124 cc.setQuery(query); … … 130 130 dc = sc.newDbControl(); 131 131 final Experiment experiment = Experiment.getById(dc, experimentId); 132 final DynamicReporterQuery query = Reporter.getDynamicQuery(experiment);132 final SqlQuery query = Reporter.getDynamicQuery(experiment); 133 133 cc.configureQuery(dc, query, Collections.singletonList("@id")); 134 134 dc.close(); -
trunk/www/views/experiments/reporters/list_reporters.jsp
r7166 r7603 31 31 import="net.sf.basedb.core.VirtualDb" 32 32 import="net.sf.basedb.core.BaseException" 33 import="net.sf.basedb.core.DynamicReporterQuery"34 33 import="net.sf.basedb.core.Reporter" 35 34 import="net.sf.basedb.core.DynamicResultIterator" … … 43 42 import="net.sf.basedb.core.query.Selects" 44 43 import="net.sf.basedb.core.query.Dynamic" 44 import="net.sf.basedb.core.query.SqlQuery" 45 45 import="net.sf.basedb.core.query.SqlResult" 46 46 import="net.sf.basedb.util.Enumeration" … … 105 105 try 106 106 { 107 final DynamicReporterQuery query = Reporter.getDynamicQuery(experiment);107 final SqlQuery query = Reporter.getDynamicQuery(experiment); 108 108 query.select(Selects.expression(Dynamic.reporter("id"), "id", true)); 109 109 if (hasUpToDateColumn) -
trunk/www/views/experiments/rootrawbioassays/view_bioassay.jsp
r7210 r7603 294 294 if (inherited != null) 295 295 { 296 parentType = inherited.get ItemType().toString();296 parentType = inherited.getThisItemType().toString(); 297 297 if (lastModified == null) 298 298 { -
trunk/www/views/experiments/spotdata/index.jsp
r6192 r7603 32 32 import="net.sf.basedb.core.RawDataTypes" 33 33 import="net.sf.basedb.core.ItemContext" 34 import="net.sf.basedb.core. DynamicSpotQuery"34 import="net.sf.basedb.core.query.SqlQuery" 35 35 import="net.sf.basedb.clients.web.Base" 36 36 import="net.sf.basedb.clients.web.WebException" … … 139 139 if (bas != null) dc.reattachItem(bas, false); 140 140 if (ba != null) dc.reattachItem(ba, false); 141 final DynamicSpotQuery query = ba != null ? ba.getSpotData() : bas.getSpotData();141 final SqlQuery query = ba != null ? ba.getSpotData() : bas.getSpotData(); 142 142 registerExportFormatters(dc, cc, bas, ba); 143 143 dc.close(); … … 151 151 if (bas != null) dc.reattachItem(bas, false); 152 152 if (ba != null) dc.reattachItem(ba, false); 153 final DynamicSpotQuery query = ba != null ? ba.getSpotData() : bas.getSpotData();153 final SqlQuery query = ba != null ? ba.getSpotData() : bas.getSpotData(); 154 154 cc.configureQuery(dc, query, Collections.singletonList("@id")); 155 155 dc.close(); -
trunk/www/views/experiments/spotdata/list_spotdata.jsp
r6700 r7603 36 36 import="net.sf.basedb.core.RawDataType" 37 37 import="net.sf.basedb.core.BaseException" 38 import="net.sf.basedb.core.DynamicSpotQuery"39 38 import="net.sf.basedb.core.DynamicResultIterator" 40 39 import="net.sf.basedb.core.PluginDefinition" … … 43 42 import="net.sf.basedb.core.plugin.GuiContext" 44 43 import="net.sf.basedb.core.plugin.Plugin" 44 import="net.sf.basedb.core.query.SqlQuery" 45 45 import="net.sf.basedb.core.query.SqlResult" 46 46 import="net.sf.basedb.util.Enumeration" … … 127 127 try 128 128 { 129 final DynamicSpotQuery query = bioAssay != null ? bioAssay.getSpotData() : bioAssaySet.getSpotData();129 final SqlQuery query = bioAssay != null ? bioAssay.getSpotData() : bioAssaySet.getSpotData(); 130 130 cc.configureQuery(dc, query, selected.selectedProperties); 131 131 query.setFailSafe(true); -
trunk/www/views/itemlists/members/index.jsp
r6745 r7603 232 232 for (int itemId : cc.getSelected()) 233 233 { 234 list.remove ((Listable)itemType.getById(dc, itemId));234 list.removeItem((Listable)itemType.getById(dc, itemId)); 235 235 } 236 236 dc.commit();
Note: See TracChangeset
for help on using the changeset viewer.