Changeset 1944
- Timestamp:
- Jun 28, 2011, 5:02:21 PM (11 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/SimpleWizardController.groovy
r1907 r1944 611 611 def importerHeader; 612 612 def importerDataMatrix; 613 def numDataRows; 613 614 614 615 try { … … 625 626 dataMatrixStart - 1, // 0 == first row 626 627 5) 628 629 // Determine the number of rows to be imported 630 def sheet = workbook.getSheetAt(sheetIndex - 1) 631 numDataRows = sheet.getLastRowNum() - ( dataMatrixStart - 1 ) + 1; 627 632 } catch( Exception e ) { 628 633 // An error occurred while reading the excel file. … … 671 676 dataMatrixStart: dataMatrixStart, 672 677 headerRow: headerRow, 678 numDataRows: numDataRows, 673 679 data: [ 674 680 header: importerHeader, … … 831 837 832 838 switch( entity.class ) { 833 case Sample: 839 case Sample: // instantiate a sample 840 def newSample = new Sample( 841 parentSubject : subject, 842 parentEvent : samplingEvent, 843 parentEventGroup: eventGroup, 844 name : sampleName, 845 template : (samplingEvent.sampleTemplate) ? samplingEvent.sampleTemplate : '' 846 ) 847 848 flow.study.addToSamples(newSample) 834 849 if( !study.samples?.find( equalClosure ) ) { 835 850 study.addToSamples( entity ); -
trunk/grails-app/views/simpleWizard/simpleWizard/columns.gsp
r1685 r1944 33 33 Please match the columns from the excel file with the fields in the database. 34 34 </span> 35 <g:if test="${excel.numDataRows > 200}"> 36 <span class="info"> 37 <span class="error" style="background-position: 0 50%;">Too many samples in excel file</span> 38 Your uploaded excel file contains more than 200 samples. This wizard might become very slow when importing that many samples.<br /> 39 The best you can do is to save your study (go back to the first page of the wizard and click save), and use the <i>Import</i> -> 40 <i>A part or a study design</i> menu option. 41 </span> 42 </g:if> 35 43 36 44 <div class="importcolumns">
Note: See TracChangeset
for help on using the changeset viewer.