Changeset 4619
- Timestamp:
- Oct 30, 2008, 2:35:53 PM (15 years ago)
- Location:
- trunk/www/views/experiments
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/views/experiments/index.jsp
r4613 r4619 341 341 redirect = "../../common/plugin/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&main_type=OTHER&title=Run+plugin"; 342 342 } 343 else if ("DeleteAllRawData".equals(cmd))344 {345 dc = sc.newDbControl();346 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);347 Experiment exp = Experiment.getById(dc, cc.getId());348 List<RawBioAssay> all = new ArrayList<RawBioAssay>(exp.getRawBioAssays().list(dc));349 for (RawBioAssay rba : all)350 {351 exp.removeRawBioAssay(rba);352 }353 dc.commit();354 355 dc = sc.newDbControl();356 for (RawBioAssay rba : all)357 {358 rba = RawBioAssay.getById(dc, rba.getId());359 rba.deleteRawData();360 }361 dc.commit();362 363 dc = sc.newDbControl();364 exp = Experiment.getById(dc, cc.getId());365 for (RawBioAssay rba : all)366 {367 exp.addRawBioAssay(rba);368 }369 dc.commit();370 redirect = viewPage;371 }372 343 else 373 344 { -
trunk/www/views/experiments/view_experiment.jsp
r4613 r4619 148 148 location.href = '<%=root%>/analyze/index.jsp?ID=<%=ID%>&experiment_id=<%=itemId%>'; 149 149 } 150 function deleteAllRaw()151 {152 location.href = 'index.jsp?ID=<%=ID%>&cmd=DeleteAllRawData&item_id=<%=itemId%>';153 }154 150 function viewBioAssaySets() 155 151 { … … 275 271 title="Help…" 276 272 tooltip="Get help about this page" 277 />278 <tbl:button279 onclick="deleteAllRaw()"280 title="Delete all raw data"281 273 /> 282 274 </tbl:toolbar>
Note: See TracChangeset
for help on using the changeset viewer.