Changeset 5542
- Timestamp:
- Jan 17, 2011, 1:34:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/biomaterials/wizards/move_biomaterial.jsp
r5541 r5542 22 22 @author Nicklas 23 23 --%> 24 <%@page import="net.sf.basedb.core.BioPlateEventType"%>25 24 <%@ page pageEncoding="UTF-8" session="false" 26 25 import="net.sf.basedb.core.BioPlate" 27 26 import="net.sf.basedb.core.BioPlateEvent" 27 import="net.sf.basedb.core.PermissionDeniedException" 28 import="net.sf.basedb.core.BioPlateEventType" 28 29 import="net.sf.basedb.core.MeasuredBioMaterial" 29 30 import="net.sf.basedb.core.Hardware" … … 63 64 List<Protocol> recentProtocols = (List<Protocol>)cc.getRecent(dc, Item.PROTOCOL); 64 65 65 Item itemType = Item.SAMPLE; 66 Item itemType = null; 67 try 68 { 69 itemType = sourcePlate.getBioPlateType().getBioMaterialType(); 70 } 71 catch (PermissionDeniedException ex) 72 {} 66 73 67 74 final String clazz = "class=\"text\""; … … 350 357 351 358 var url = '../bioplates/index.jsp?ID=<%=ID%>&cmd=UpdateContext&mode=selectone&callback=setBioPlateCallback'; 352 url += '&resetTemporary=1&tmpfilter:INT:bioPlateType.bioMaterialType= |<%=itemType.getValue()%>'359 url += '&resetTemporary=1&tmpfilter:INT:bioPlateType.bioMaterialType=<%=itemType == null ? "=" : "|" + itemType.getValue()%>' 353 360 url += '&exclude='+sourcePlate.id; 354 361 Main.openPopup(url, 'SelectBioPlate', 1000, 700);
Note: See TracChangeset
for help on using the changeset viewer.