Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

last checkpoint save before move to SVN

  • Loading branch information...
commit 41b1aab36d028948882f3a7096798f616e95ab27 1 parent e27236b
@richjvann richjvann authored
View
17 src/classes/PatientLeadUtil.cls
@@ -19,14 +19,17 @@ public without sharing class PatientLeadUtil {
externalIdCandidates.add(patientLead.Phone__c);
}
}
- String pQry = 'select id,External_Id__c from Patient__c where ';
- String delim = '';
- for (String x : externalIdCandidates) {
- pQry += delim + 'External_Id__c like \''+String.escapeSingleQuotes(x)+'%\'';
- delim = ' OR ';
- }
+ Patient__c[] existingPatients = new List<Patient__c>();
+ if (externalIdCandidates.size()>0) {
+ String pQry = 'select id,External_Id__c from Patient__c where ';
+ String delim = '';
+ for (String x : externalIdCandidates) {
+ pQry += delim + 'External_Id__c like \''+String.escapeSingleQuotes(x)+'%\'';
+ delim = ' OR ';
+ }
system.debug('pQry='+pQry);
- Patient__c[] existingPatients = Database.query(pQry);
+ existingPatients = Database.query(pQry);
+ }
Logger.info('existingPatients: ' + existingPatients );
Set<String> existingExternalIds = new Set<String>();
for (Patient__c p: existingPatients) {
View
4 src/classes/PipelineController.cls
@@ -26,13 +26,13 @@ public with sharing class PipelineController {
public String PCC {get; set; }
public Integer numberOfCloses {get; set; }
public Decimal sumOfClosedValue {get; set; }
- public Integer avgDaysToClose {get; set; }
+ public Decimal avgDaysToClose {get; set; }
public closesData(AggregateResult ar)
{
PCC = (String)ar.get('PCC');
numberOfCloses = (Integer)ar.get('numberOfCloses');
sumOfClosedValue = (Decimal)ar.get('sumOfClosedValue');
- avgDaysToClose = (Integer)ar.get('avgDaysToClose');
+ avgDaysToClose = (Decimal)ar.get('avgDaysToClose');
}
}
public PageReference toggleAllPCCs()
View
2  src/pages/Patient.page
@@ -432,7 +432,7 @@
</apex:pageblocksectionitem>
<apex:pageblocksectionitem >
<apex:outputLabel value="Patient Id"/>
- <apex:inputText id="PatientId" value="{!patient.External_ID__c}"/>
+ <apex:inputField id="PatientId" value="{!patient.External_ID__c}" required="true"/>
</apex:pageblocksectionitem>
</apex:pageblocksection>
<apex:outputPanel rendered="{!!ISNULL(patient.id)}">
Please sign in to comment.
Something went wrong with that request. Please try again.