Changeset 6076
- Timestamp:
- Jul 31, 2012, 11:03:27 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/3.1-stable merged: 6036,6051,6054,6066-6069,6073 /tags/3.1.2 (added) merged: 6074
- Property svn:mergeinfo changed
-
trunk/src/core/net/sf/basedb/core/Job.java
r5595 r6076 946 946 /** 947 947 Set the progress of the job. The job must be in the {@link Status#EXECUTING} or 948 {@link Status#PREPARED} status. 948 {@link Status#PREPARED} status. -1 can be used as a special value to indicate that 949 it is not known how far the job has progressed. 949 950 @param percentComplete The number of percent completed 950 951 @param statusMessage A message … … 952 953 write permission of the job isn't in the <code>EXECUTING</code> status 953 954 @throws InvalidDataException If the status message is too long or the 954 percentage value isn't between 0and 100955 percentage value isn't between -1 and 100 955 956 */ 956 957 public void setProgress(int percentComplete, String statusMessage) … … 962 963 throw new PermissionDeniedException("Cannot set progress for a job with status '"+getStatus()+"': "+toString()); 963 964 } 964 if (percentComplete < 0|| percentComplete > 100)965 { 966 throw new NumberOutOfRangeException("percentComplete", percentComplete, 0, 100);965 if (percentComplete < -1 || percentComplete > 100) 966 { 967 throw new NumberOutOfRangeException("percentComplete", percentComplete, -1, 100); 967 968 } 968 969 JobData data = getData(); -
trunk/src/core/net/sf/basedb/core/Project.java
r6058 r6076 245 245 { 246 246 int projectPermission = getSessionControl().getProjectPermission(this); 247 granted |= projectPermission & Permission.grant(Permission.READ, Permission.USE);247 granted |= projectPermission; 248 248 super.initPermissions(granted, denied); 249 249 } -
trunk/www/biomaterials/bioplates/wells/list_biowells.jsp
r6041 r6076 268 268 id="bioMaterial.name" 269 269 property="$mbm.name" 270 exportproperty="bioMaterial.name" 270 271 datatype="string" 271 272 title="[Biomtrl] Name" … … 277 278 id="bioMaterial.description" 278 279 property="$mbm.description" 280 exportproperty="bioMaterial.description" 279 281 datatype="string" 280 282 title="[Biomtrl] Description" … … 286 288 id="bioMaterial.entryDate" 287 289 property="$evt.entryDate" 290 exportproperty="bioMaterial.creationEvent.entryDate" 288 291 datatype="date" 289 292 title="[Biomtrl] Registered" -
trunk/www/common/overview/info.jsp
r6052 r6076 53 53 import="net.sf.basedb.clients.web.extensions.JspContext" 54 54 import="net.sf.basedb.clients.web.extensions.ExtensionsControl" 55 import="net.sf.basedb.clients.web.formatter.FormatterFactory" 55 56 import="net.sf.basedb.util.Values" 56 57 import="net.sf.basedb.util.NestedIterator" 58 import="net.sf.basedb.util.formatter.Formatter" 57 59 import="net.sf.basedb.util.overview.GenericOverview" 58 60 import="net.sf.basedb.util.overview.OverviewUtil" … … 441 443 { 442 444 Annotation a = snapshot.getAnnotation(dc); 443 String unitSymbol = a.hasUnit() ? " " + a.getUnitSymbol(null) : "";444 AnnotationType at = at = snapshot.getAnnotationType(dc);445 AnnotationType at = snapshot.getAnnotationType(dc); 446 Formatter formatter = FormatterFactory.getAnnotationFormatter(sc, a, null); 445 447 Annotatable annotationOwner = null; 446 448 try … … 484 486 %> 485 487 </tbl:cell> 486 <tbl:cell column="values"><%=Values.getString(a.getValues(null), ", ", true )%><%=unitSymbol%></tbl:cell>488 <tbl:cell column="values"><%=Values.getString(a.getValues(null), ", ", true, formatter)%></tbl:cell> 487 489 <tbl:cell column="edit"><base:icon image="edit.png" onclick="<%=editLink%>" 488 490 tooltip="<%=editTooltip%>" visible="<%=editLink != null %>"/></tbl:cell> -
trunk/www/include/styles/main.css
r6057 r6076 570 570 border-top: 1px solid #2288AA !important; 571 571 border-bottom: 1px solid #2288AA !important; 572 transition: all 0.3s ease 0.1s; 573 -moz-transition: all 0.3s ease 0.1s; 574 -webkit-transition: all 0.3s ease 0.1s; 572 575 } 573 576 -
trunk/www/include/styles/table.css
r6021 r6076 181 181 .itemlist div.data > table > tbody.rows > tr 182 182 { 183 border-top: 1px dotted #A0A0A0; 183 184 border-bottom: 1px dotted #A0A0A0; 184 185 } -
trunk/www/my_base/projects/items/list_items.jsp
r6040 r6076 340 340 image="check_uncheck.png" 341 341 tooltip="Check/uncheck all" 342 onclick="Forms.checkUncheck(document.forms[formId] )"342 onclick="Forms.checkUncheck(document.forms[formId], /item:/)" 343 343 /></tbl:header> 344 344 <tbl:header -
trunk/www/views/items/list_items.jsp
r6040 r6076 327 327 image="check_uncheck.png" 328 328 tooltip="Check/uncheck all" 329 onclick="Forms.checkUncheck(document.forms[formId] )"329 onclick="Forms.checkUncheck(document.forms[formId], /item:/)" 330 330 /></tbl:header> 331 331 <tbl:header -
trunk/www/views/trashcan/list_trash.jsp
r6040 r6076 279 279 image="check_uncheck.png" 280 280 tooltip="Check/uncheck all" 281 onclick="Forms.checkUncheck(document.forms[formId] )"281 onclick="Forms.checkUncheck(document.forms[formId], /item:/)" 282 282 /></tbl:header> 283 283 <tbl:header
Note: See TracChangeset
for help on using the changeset viewer.