Changeset 6695
- Timestamp:
- Jan 28, 2015, 7:59:57 AM (8 years ago)
- Location:
- trunk/www
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/biomaterials/extracts/extracts.js
r6576 r6695 116 116 Buttons.addClickHandler('btnSetOwner', Buttons.setOwnerOfItems, tableAttributes); 117 117 Buttons.addClickHandler('btnColumns', Buttons.configureColumns, tableAttributes); 118 Buttons.addClickHandler('btnInheritAnnotations', Buttons.inheritAnnotations, tableAttributes); 118 119 Buttons.addClickHandler('btnExport', Buttons.runListPlugin, tableAttributes); 119 120 Buttons.addClickHandler('btnImport', Buttons.runListPlugin, tableAttributes); -
trunk/www/biomaterials/extracts/index.jsp
r6312 r6695 46 46 import="net.sf.basedb.core.MultiPermissions" 47 47 import="net.sf.basedb.core.OwnedItem" 48 import="net.sf.basedb.core.AnnotatedItem" 48 49 import="net.sf.basedb.core.PermissionDeniedException" 49 50 import="net.sf.basedb.core.ItemAlreadyExistsException" … … 446 447 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+extracts"; 447 448 } 449 else if ("InheritAnnotations".equals(cmd)) 450 { 451 // Change owner of items selected on a list page 452 dc = sc.newDbControl(); 453 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 454 Set<AnnotatedItem> items = new HashSet<AnnotatedItem>(); 455 for (Integer id : cc.getSelected()) 456 { 457 if (id != null) items.add((AnnotatedItem)itemType.getById(dc, id)); 458 } 459 dc.close(); 460 cc.setObject("AnnotatedItems", items); 461 redirect = "../../common/annotations/batch_inherit.jsp?ID="+ID+"&item_type="+itemType.name(); 462 } 448 463 else if ("ExportItem".equals(cmd)) 449 464 { -
trunk/www/biomaterials/extracts/list_extracts.jsp
r6690 r6695 24 24 @version 2.0 25 25 --%> 26 <%@page import="net.sf.basedb.core.MeasuredBioMaterial"%>27 26 <%@ page pageEncoding="UTF-8" session="false" 28 27 import="net.sf.basedb.core.SessionControl" … … 36 35 import="net.sf.basedb.core.BioMaterialEvent" 37 36 import="net.sf.basedb.core.BioWell" 37 import="net.sf.basedb.core.MeasuredBioMaterial" 38 38 import="net.sf.basedb.core.ItemSubtype" 39 39 import="net.sf.basedb.core.AnnotationType" … … 559 559 title="Place on plate…" 560 560 tooltip="Place the selected/matching extracts on a bioplate" 561 /> 562 <tbl:button 563 id="btnInheritAnnotations" 564 image="inherit.png" 565 title="Inherit annotations…" 566 tooltip="Batch inherit annotations from parent items" 561 567 /> 562 568 <tbl:button -
trunk/www/biomaterials/samples/index.jsp
r6312 r6695 43 43 import="net.sf.basedb.core.MultiPermissions" 44 44 import="net.sf.basedb.core.OwnedItem" 45 import="net.sf.basedb.core.AnnotatedItem" 45 46 import="net.sf.basedb.core.PermissionDeniedException" 46 47 import="net.sf.basedb.core.ItemAlreadyExistsException" … … 406 407 redirect = "../../common/ownership/ownership.jsp?ID="+ID+"&item_type="+itemType.name(); 407 408 } 409 else if ("InheritAnnotations".equals(cmd)) 410 { 411 // Change owner of items selected on a list page 412 dc = sc.newDbControl(); 413 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 414 Set<AnnotatedItem> items = new HashSet<AnnotatedItem>(); 415 for (Integer id : cc.getSelected()) 416 { 417 if (id != null) items.add((AnnotatedItem)itemType.getById(dc, id)); 418 } 419 dc.close(); 420 cc.setObject("AnnotatedItems", items); 421 redirect = "../../common/annotations/batch_inherit.jsp?ID="+ID+"&item_type="+itemType.name(); 422 } 408 423 else if ("ExportItems".equals(cmd)) 409 424 { -
trunk/www/biomaterials/samples/list_samples.jsp
r6690 r6695 525 525 title="Place on plate…" 526 526 tooltip="Place the selected/matching samples on a bioplate" 527 /> 528 <tbl:button 529 id="btnInheritAnnotations" 530 image="inherit.png" 531 title="Inherit annotations…" 532 tooltip="Batch inherit annotations from parent items" 527 533 /> 528 534 <tbl:button -
trunk/www/biomaterials/samples/samples.js
r6576 r6695 109 109 Buttons.addClickHandler('btnSetOwner', Buttons.setOwnerOfItems, tableAttributes); 110 110 Buttons.addClickHandler('btnColumns', Buttons.configureColumns, tableAttributes); 111 Buttons.addClickHandler('btnInheritAnnotations', Buttons.inheritAnnotations, tableAttributes); 111 112 Buttons.addClickHandler('btnExport', Buttons.runListPlugin, tableAttributes); 112 113 Buttons.addClickHandler('btnImport', Buttons.runListPlugin, tableAttributes); -
trunk/www/common/annotations/batch_inherit.js
r6694 r6695 137 137 inherit.save = function() 138 138 { 139 if (selectedAnnotationTypes.length == 0) 140 { 141 Forms.showNotification('btnSelectAnnotationTypes', 'Please select annotation types to inherit!'); 142 return; 143 } 139 144 var frm = document.forms['annotations']; 140 145 frm.cmd.value = 'BatchInherit'; -
trunk/www/lims/arraybatches/batches.js
r6400 r6695 88 88 Buttons.addClickHandler('btnSetOwner', Buttons.setOwnerOfItems, tableAttributes); 89 89 Buttons.addClickHandler('btnColumns', Buttons.configureColumns, tableAttributes); 90 Buttons.addClickHandler('btnInheritAnnotations', Buttons.inheritAnnotations, tableAttributes); 90 91 Buttons.addClickHandler('btnExport', Buttons.runListPlugin, tableAttributes); 91 92 Buttons.addClickHandler('btnImport', Buttons.runListPlugin, tableAttributes); -
trunk/www/lims/arraybatches/index.jsp
r6192 r6695 39 39 import="net.sf.basedb.core.MultiPermissions" 40 40 import="net.sf.basedb.core.OwnedItem" 41 import="net.sf.basedb.core.AnnotatedItem" 41 42 import="net.sf.basedb.core.PermissionDeniedException" 42 43 import="net.sf.basedb.core.ItemAlreadyExistsException" … … 282 283 redirect = "../../common/ownership/ownership.jsp?ID="+ID+"&item_type="+itemType.name(); 283 284 } 285 else if ("InheritAnnotations".equals(cmd)) 286 { 287 // Change owner of items selected on a list page 288 dc = sc.newDbControl(); 289 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 290 Set<AnnotatedItem> items = new HashSet<AnnotatedItem>(); 291 for (Integer id : cc.getSelected()) 292 { 293 if (id != null) items.add((AnnotatedItem)itemType.getById(dc, id)); 294 } 295 dc.close(); 296 cc.setObject("AnnotatedItems", items); 297 redirect = "../../common/annotations/batch_inherit.jsp?ID="+ID+"&item_type="+itemType.name(); 298 } 284 299 else if ("ExportItems".equals(cmd)) 285 300 { -
trunk/www/lims/arraybatches/list_batches.jsp
r6690 r6695 335 335 title="Columns…" 336 336 tooltip="Show, hide and re-order columns" 337 /> 338 <tbl:button 339 id="btnInheritAnnotations" 340 image="inherit.png" 341 title="Inherit annotations…" 342 tooltip="Batch inherit annotations from parent items" 337 343 /> 338 344 <tbl:button -
trunk/www/lims/arraydesigns/designs.js
r6400 r6695 80 80 Buttons.addClickHandler('btnSetOwner', Buttons.setOwnerOfItems, tableAttributes); 81 81 Buttons.addClickHandler('btnColumns', Buttons.configureColumns, tableAttributes); 82 Buttons.addClickHandler('btnInheritAnnotations', Buttons.inheritAnnotations, tableAttributes); 82 83 Buttons.addClickHandler('btnExport', Buttons.runListPlugin, tableAttributes); 83 84 Buttons.addClickHandler('btnImport', Buttons.runListPlugin, tableAttributes); -
trunk/www/lims/arraydesigns/index.jsp
r6312 r6695 46 46 import="net.sf.basedb.core.MultiPermissions" 47 47 import="net.sf.basedb.core.OwnedItem" 48 import="net.sf.basedb.core.AnnotatedItem" 48 49 import="net.sf.basedb.core.PermissionDeniedException" 49 50 import="net.sf.basedb.core.ItemAlreadyExistsException" … … 333 334 redirect = "../../common/ownership/ownership.jsp?ID="+ID+"&item_type="+itemType.name(); 334 335 } 336 else if ("InheritAnnotations".equals(cmd)) 337 { 338 // Change owner of items selected on a list page 339 dc = sc.newDbControl(); 340 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 341 Set<AnnotatedItem> items = new HashSet<AnnotatedItem>(); 342 for (Integer id : cc.getSelected()) 343 { 344 if (id != null) items.add((AnnotatedItem)itemType.getById(dc, id)); 345 } 346 dc.close(); 347 cc.setObject("AnnotatedItems", items); 348 redirect = "../../common/annotations/batch_inherit.jsp?ID="+ID+"&item_type="+itemType.name(); 349 } 335 350 else if ("ExportItems".equals(cmd)) 336 351 { -
trunk/www/lims/arraydesigns/list_designs.jsp
r6690 r6695 434 434 title="Columns…" 435 435 tooltip="Show, hide and re-order columns" 436 /> 437 <tbl:button 438 id="btnInheritAnnotations" 439 image="inherit.png" 440 title="Inherit annotations…" 441 tooltip="Batch inherit annotations from parent items" 436 442 /> 437 443 <tbl:button -
trunk/www/lims/arrayslides/index.jsp
r6192 r6695 1 <%@page import="net.sf.basedb.core.InvalidDataException"%>2 1 <%-- $Id$ 3 2 ------------------------------------------------------------------ … … 40 39 import="net.sf.basedb.core.MultiPermissions" 41 40 import="net.sf.basedb.core.OwnedItem" 41 import="net.sf.basedb.core.AnnotatedItem" 42 import="net.sf.basedb.core.InvalidDataException" 42 43 import="net.sf.basedb.core.PermissionDeniedException" 43 44 import="net.sf.basedb.core.ItemAlreadyExistsException" … … 331 332 redirect = "../../common/ownership/ownership.jsp?ID="+ID+"&item_type="+itemType.name(); 332 333 } 334 else if ("InheritAnnotations".equals(cmd)) 335 { 336 // Change owner of items selected on a list page 337 dc = sc.newDbControl(); 338 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 339 Set<AnnotatedItem> items = new HashSet<AnnotatedItem>(); 340 for (Integer id : cc.getSelected()) 341 { 342 if (id != null) items.add((AnnotatedItem)itemType.getById(dc, id)); 343 } 344 dc.close(); 345 cc.setObject("AnnotatedItems", items); 346 redirect = "../../common/annotations/batch_inherit.jsp?ID="+ID+"&item_type="+itemType.name(); 347 } 333 348 else if ("ExportItems".equals(cmd)) 334 349 { -
trunk/www/lims/arrayslides/list_slides.jsp
r6690 r6695 351 351 title="Columns…" 352 352 tooltip="Show, hide and re-order columns" 353 /> 354 <tbl:button 355 id="btnInheritAnnotations" 356 image="inherit.png" 357 title="Inherit annotations…" 358 tooltip="Batch inherit annotations from parent items" 353 359 /> 354 360 <tbl:button -
trunk/www/lims/arrayslides/slides.js
r6389 r6695 81 81 Buttons.addClickHandler('btnSetOwner', Buttons.setOwnerOfItems, tableAttributes); 82 82 Buttons.addClickHandler('btnColumns', Buttons.configureColumns, tableAttributes); 83 Buttons.addClickHandler('btnInheritAnnotations', Buttons.inheritAnnotations, tableAttributes); 83 84 Buttons.addClickHandler('btnExport', Buttons.runListPlugin, tableAttributes); 84 85 Buttons.addClickHandler('btnImport', Buttons.runListPlugin, tableAttributes); -
trunk/www/views/derivedbioassays/bioassays.js
r6400 r6695 112 112 Buttons.addClickHandler('btnSetOwner', Buttons.setOwnerOfItems, tableAttributes); 113 113 Buttons.addClickHandler('btnColumns', Buttons.configureColumns, tableAttributes); 114 Buttons.addClickHandler('btnInheritAnnotations', Buttons.inheritAnnotations, tableAttributes); 114 115 Buttons.addClickHandler('btnExport', Buttons.runListPlugin, tableAttributes); 115 116 Buttons.addClickHandler('btnImport', Buttons.runListPlugin, tableAttributes); -
trunk/www/views/derivedbioassays/index.jsp
r6314 r6695 38 38 import="net.sf.basedb.core.User" 39 39 import="net.sf.basedb.core.OwnedItem" 40 import="net.sf.basedb.core.AnnotatedItem" 40 41 import="net.sf.basedb.core.ItemQuery" 41 42 import="net.sf.basedb.core.ItemResultIterator" … … 401 402 redirect = "../../common/ownership/ownership.jsp?ID="+ID+"&item_type="+itemType.name(); 402 403 } 404 else if ("InheritAnnotations".equals(cmd)) 405 { 406 // Change owner of items selected on a list page 407 dc = sc.newDbControl(); 408 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 409 Set<AnnotatedItem> items = new HashSet<AnnotatedItem>(); 410 for (Integer id : cc.getSelected()) 411 { 412 if (id != null) items.add((AnnotatedItem)itemType.getById(dc, id)); 413 } 414 dc.close(); 415 cc.setObject("AnnotatedItems", items); 416 redirect = "../../common/annotations/batch_inherit.jsp?ID="+ID+"&item_type="+itemType.name(); 417 } 403 418 else if ("ExportItems".equals(cmd)) 404 419 { -
trunk/www/views/derivedbioassays/list_bioassays.jsp
r6690 r6695 419 419 title="Columns…" 420 420 tooltip="Show, hide and re-order columns" 421 /> 422 <tbl:button 423 id="btnInheritAnnotations" 424 image="inherit.png" 425 title="Inherit annotations…" 426 tooltip="Batch inherit annotations from parent items" 421 427 /> 422 428 <tbl:button -
trunk/www/views/physicalbioassays/bioassays.js
r6576 r6695 105 105 Buttons.addClickHandler('btnSetOwner', Buttons.setOwnerOfItems, tableAttributes); 106 106 Buttons.addClickHandler('btnColumns', Buttons.configureColumns, tableAttributes); 107 Buttons.addClickHandler('btnInheritAnnotations', Buttons.inheritAnnotations, tableAttributes); 107 108 Buttons.addClickHandler('btnExport', Buttons.runListPlugin, tableAttributes); 108 109 Buttons.addClickHandler('btnImport', Buttons.runListPlugin, tableAttributes); -
trunk/www/views/physicalbioassays/index.jsp
r6314 r6695 44 44 import="net.sf.basedb.core.MultiPermissions" 45 45 import="net.sf.basedb.core.OwnedItem" 46 import="net.sf.basedb.core.AnnotatedItem" 46 47 import="net.sf.basedb.core.PermissionDeniedException" 47 48 import="net.sf.basedb.core.ItemAlreadyExistsException" … … 362 363 redirect = "../../common/ownership/ownership.jsp?ID="+ID+"&item_type="+itemType.name(); 363 364 } 365 else if ("InheritAnnotations".equals(cmd)) 366 { 367 // Change owner of items selected on a list page 368 dc = sc.newDbControl(); 369 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 370 Set<AnnotatedItem> items = new HashSet<AnnotatedItem>(); 371 for (Integer id : cc.getSelected()) 372 { 373 if (id != null) items.add((AnnotatedItem)itemType.getById(dc, id)); 374 } 375 dc.close(); 376 cc.setObject("AnnotatedItems", items); 377 redirect = "../../common/annotations/batch_inherit.jsp?ID="+ID+"&item_type="+itemType.name(); 378 } 364 379 else if ("ExportItems".equals(cmd)) 365 380 { -
trunk/www/views/physicalbioassays/list_bioassays.jsp
r6690 r6695 400 400 title="Columns…" 401 401 tooltip="Show, hide and re-order columns" 402 /> 403 <tbl:button 404 id="btnInheritAnnotations" 405 image="inherit.png" 406 title="Inherit annotations…" 407 tooltip="Batch inherit annotations from parent items" 402 408 /> 403 409 <tbl:button
Note: See TracChangeset
for help on using the changeset viewer.