- Timestamp:
- Apr 25, 2012, 2:36:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/bloodform.jsp
r1614 r1622 41 41 <script language="JavaScript"> 42 42 43 var debug = false;43 var debug = true; 44 44 var currentStep = 1; 45 45 var pnrIsValid = false; … … 51 51 var patientInfo = null; 52 52 var bloodInfo = null; 53 var c aseInfo = null;53 var consentInfo = null; 54 54 55 55 function init() … … 165 165 return; 166 166 } 167 if (!isValidCaseName(caseName ))167 if (!isValidCaseName(caseName, true)) // Allow 'C' suffix to be used 168 168 { 169 169 setInputStatus('case', 'Only 7-digits name is allowed.', 'invalid'); … … 333 333 bloodInfo = response.bloodInfo; 334 334 patientInfo = response.patientInfo; 335 c aseInfo = response.caseInfo;335 consentInfo = response.consentInfo; 336 336 337 337 if (patientInfo) … … 452 452 Forms.selectListOption(frm.bloodSample, 'PreNeo'); 453 453 } 454 if (c aseInfo && caseInfo.consent)455 { 456 frm.copyConsent.value = c aseInfo.id;457 var html = "From case '" + caseInfo.name + "' (" + caseInfo.consent;458 if (c aseInfo.consentDate) html += '; ' + caseInfo.consentDate;454 if (consentInfo && consentInfo.consent) 455 { 456 frm.copyConsent.value = consentInfo.id; 457 var html = "From '" + consentInfo.name + "' (" + consentInfo.consent; 458 if (consentInfo.consentDate) html += '; ' + consentInfo.consentDate; 459 459 html += ')'; 460 460 setInnerHTML('copyConsent.text', html);
Note: See TracChangeset
for help on using the changeset viewer.