This commit is contained in:
Christophe Coenraets 2018-01-07 08:36:33 -05:00
Родитель 3590e5594b
Коммит bad706f241
55 изменённых файлов: 298 добавлений и 190 удалений

Просмотреть файл

@ -8,7 +8,7 @@
<div>
<lightning:card title="Create Dataset" iconName="utility:setup" class="slds-m-horizontal_small">
<lightning:card title="Create Dataset" iconName="utility:setup">
<lightning:layout verticalAlign="end" class="path-to-zip slds-m-around--small">
<lightning:layoutitem flexibility="grow">
<lightning:input label="ZIP file URL:" value="{!v.pathToZip}" />

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>39.0</apiVersion>
<apiVersion>42.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>

Просмотреть файл

@ -1,9 +1,12 @@
<aura:component controller="EinsteinVisionController">
<aura:attribute name="dataset" type="Object"/>
<aura:attribute name="datasetColumns" type="List" />
<aura:attribute name="modelColumns" type="List" />
<aura:attribute name="models" type="Object[]"/>
<aura:attribute name="currentTab" type="String" default="labels"/>
<aura:handler name="init" value="{! this }" action="{! c.onInit }"/>
<aura:registerEvent name="onchange" type="c:EinsteinVisionDatasetEvent"/>
<lightning:card title="{!v.dataset.name}" iconName="utility:preview">
@ -20,63 +23,17 @@
Dataset Id: {!v.dataset.id}
<lightning:tabset >
<lightning:tab label="Labels" onactive="{!c.onLabelsTab}">
<table class="slds-table slds-table--bordered slds-table--cell-buffer">
<thead>
<tr class="slds-text-title--caps">
<th scope="col">
<div class="slds-truncate" title="Name">Label</div>
</th>
<th scope="col">
<div class="slds-truncate" title="Examples">Examples</div>
</th>
</tr>
</thead>
<tbody>
<aura:iteration items="{!v.dataset.labelSummary.labels}" var="label">
<tr>
<td data-label="Account Name">
<div class="slds-truncate" title="{!label.name}">{!label.name}</div>
</td>
<td data-label="Account Name">
<div class="slds-truncate" title="{!label.numExamples}">{!label.numExamples}</div>
</td>
</tr>
</aura:iteration>
</tbody>
</table>
<lightning:tab label="Labels" onactive="{!c.onLabelsTab}">
<lightning:datatable data="{!v.dataset.labelSummary.labels}"
columns="{!v.datasetColumns}"
keyField="id"
hideCheckboxColumn="true" />
</lightning:tab>
<lightning:tab label="Models" onactive="{!c.onModelsTab}">
<table class="slds-table slds-table--bordered slds-table--cell-buffer">
<thead>
<tr class="slds-text-title--caps">
<th scope="col">
<div class="slds-truncate" title="Model Id">Model Id</div>
</th>
<th scope="col">
<div class="slds-truncate" title="Progress">Progress</div>
</th>
<th scope="col">
<div class="slds-truncate" title="Status">Status</div>
</th>
</tr>
</thead>
<tbody>
<aura:iteration items="{!v.models}" var="model">
<tr>
<td data-label="Model Id">
<div class="slds-truncate" title="{!model.modelId}">{!model.modelId}</div>
</td>
<td data-label="Progress">
<div class="slds-truncate" title="{!model.progress}">{!model.progress}</div>
</td>
<td data-label="Status">
<div class="slds-truncate" title="{!model.status}">{!model.status}</div>
</td>
</tr>
</aura:iteration>
</tbody>
</table>
<lightning:datatable data="{!v.models}"
columns="{!v.modelColumns}"
keyField="modelId"
hideCheckboxColumn="true" />
</lightning:tab>
</lightning:tabset>

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>39.0</apiVersion>
<apiVersion>42.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>

Просмотреть файл

@ -1,10 +1,23 @@
({
onInit: function(component, event, helper) {
component.set('v.datasetColumns', [
{label: 'Label', fieldName: 'name', type: 'text'},
{label: 'Examples', fieldName: 'numExamples', type: 'number'}
]);
component.set('v.modelColumns', [
{label: 'Model Id', fieldName: 'modelId', type: 'text'},
{label: 'Progress', fieldName: 'progress', type: 'text'},
{label: 'Status', fieldName: 'status', type: 'text'}
]);
},
onModelsTab: function(component, event, helper) {
helper.getModelsByDataset(component);
component.set('v.currentTab', 'models');
},
onLabelsTab: function(component, event, helper) {
console.log(JSON.stringify(component.get("v.dataset")));
component.set('v.currentTab', 'labels');
},

Просмотреть файл

@ -1,10 +0,0 @@
<aura:component >
<aura:attribute name="value" type="Object"/>
<aura:attribute name="formattedValue" type="String"/>
<aura:handler name="change" value="{!v.value}" action="{!c.valueChangeHandler}"/>
{!v.formattedValue}
</aura:component>

Просмотреть файл

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>38.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>

Просмотреть файл

@ -1,7 +0,0 @@
({
valueChangeHandler : function(component) {
var value = component.get("v.value");
var formattedValue = new Date(value).toLocaleString('en-US', {month: 'short', year: 'numeric', day: 'numeric'});
component.set("v.formattedValue", formattedValue);
}
})

Просмотреть файл

@ -23,7 +23,11 @@
if (component.marker) {
component.marker.setLatLng(latLng);
} else {
component.marker = window.L.marker(latLng);
var myIcon = L.divIcon({
className: 'my-div-icon',
html: '<svg width="34" height="34" viewBox="0 0 100 100"><g><path fill="#235493" d="m78.8 51.2h-6.3v27.5c0 0.8-0.5 1.2-1.3 1.2h-12.4c-0.8 0-1.3-0.5-1.3-1.2v-21.2h-15v21.2c0 0.8-0.5 1.2-1.3 1.2h-12.4c-0.8 0-1.3-0.5-1.3-1.2v-27.5h-6.3c-0.5 0-1-0.2-1.1-0.8-0.3-0.5-0.1-1 0.3-1.4l28.8-28.8c0.5-0.5 1.4-0.5 1.8 0l28.8 28.8c0.4 0.4 0.4 0.9 0.3 1.4s-0.8 0.8-1.3 0.8z"></path></g>'
});
component.marker = window.L.marker(latLng, {icon: myIcon});
component.marker.addTo(component.map);
}
component.map.setView(latLng);

Просмотреть файл

@ -0,0 +1,6 @@
<aura:documentation>
<aura:description>Documentation</aura:description>
<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
Example Description
</aura:example>
</aura:documentation>

Просмотреть файл

@ -0,0 +1,14 @@
<aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes"
access="global">
<aura:attribute name="recordId" type="Id"/>
<aura:attribute name="property" type="Property__c"/>
<force:recordData recordId="{!v.recordId}"
targetFields="{!v.property}"
fields="['Id', 'Price__c']" />
<c:MortgageCalculator principal="{!v.property.Price__c}"/>
<c:MortgageAmortizationChart/>
</aura:component>

Просмотреть файл

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="MortgageCalcWithAmortization">
<apiVersion>41.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>

Просмотреть файл

@ -0,0 +1,2 @@
.THIS {
}

Просмотреть файл

@ -0,0 +1,3 @@
<design:component >
</design:component>

Просмотреть файл

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="120px" height="120px" viewBox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M120,108 C120,114.6 114.6,120 108,120 L12,120 C5.4,120 0,114.6 0,108 L0,12 C0,5.4 5.4,0 12,0 L108,0 C114.6,0 120,5.4 120,12 L120,108 L120,108 Z" id="Shape" fill="#2A739E"/>
<path d="M77.7383308,20 L61.1640113,20 L44.7300055,63.2000173 L56.0543288,63.2000173 L40,99.623291 L72.7458388,54.5871812 L60.907727,54.5871812 L77.7383308,20 Z" id="Path-1" fill="#FFFFFF"/>
</g>
</svg>

После

Ширина:  |  Высота:  |  Размер: 661 B

Просмотреть файл

@ -0,0 +1,5 @@
({
myAction : function(component, event, helper) {
}
})

Просмотреть файл

@ -0,0 +1,5 @@
({
helperMethod : function() {
}
})

Просмотреть файл

@ -0,0 +1,5 @@
({
// Your renderer method overrides go here
})

Просмотреть файл

@ -1,17 +1,9 @@
<aura:component implements="flexipage:availableForAllPageTypes"
access="global">
<aura:attribute name="recordId" type="Id" />
<aura:attribute name="property" type="Property__c" />
<force:recordData recordId="{!v.recordId}"
targetFields="{!v.property}"
layoutType="FULL"
recordUpdated="{!c.recordUpdated}"/>
<aura:attribute name="principal" type="Integer" default="200000"/>
<aura:attribute name="years" type="Integer" default="30"/>
<aura:attribute name="rate" type="Integer" default="5"/>
<aura:attribute name="principal" type="Integer" default="200000" access="global"/>
<aura:attribute name="years" type="Integer" default="30" access="global"/>
<aura:attribute name="rate" type="Integer" default="5" access="global"/>
<aura:attribute name="monthlyPayment" type="Decimal"/>
<aura:registerEvent name="change" type="c:MortgageChange"/>

Просмотреть файл

@ -1,6 +1,8 @@
.THIS {
height: 300px;
/* height: 300px; */
text-align: center;
max-width: 300px;
padding-bottom: 20px;
}
.THIS .result {

Просмотреть файл

@ -4,6 +4,9 @@
},
recordUpdated : function(component) {
component.set("v.principal", component.get("v.property").Price__c);
var property = component.get("v.property");
if (property) {
component.set("v.principal", property.Price__c);
}
}
})

Просмотреть файл

@ -4,7 +4,7 @@
var principal = component.get("v.principal");
var years = component.get("v.years");
var rate = component.get("v.rate");
if (rate && rate > 0) {
if (principal && years && rate && rate > 0) {
var monthlyRate = rate / 100 / 12;
var monthlyPayment = principal * monthlyRate / (1 - (Math.pow(1/(1 + monthlyRate), years * 12)));
component.set("v.monthlyPayment", monthlyPayment);

Просмотреть файл

@ -1,14 +0,0 @@
<aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes"
access="global">
<aura:attribute name="recordId" type="Id"/>
<aura:attribute name="principal" type="Integer" default="200000"/>
<aura:attribute name="years" type="Integer" default="30"/>
<aura:attribute name="rate" type="Integer" default="5"/>
<lightning:card iconName="utility:chart" title="Mortgage Calculator">
<c:MortgageCalculator recordId="{!v.recordId}" principal="{!v.principal}" years="{!v.years}" rate="{!v.rate}"/>
</lightning:card>
</aura:component>

Просмотреть файл

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>38.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>

Просмотреть файл

@ -1,5 +0,0 @@
<design:component label="Mortgage Calculator Card">
<design:attribute name="principal" label="Principal" description="Mortgage principal" />
<design:attribute name="years" label="Years" description="Mortgage years" />
<design:attribute name="rate" label="Rate" description="Mortgage rate" />
</design:component>

Просмотреть файл

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="100px" height="100px" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 39.1 (31720) - http://www.bohemiancoding.com/sketch -->
<title>Slice</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect id="Rectangle" fill="#779EF2" x="0" y="0" width="100" height="100" rx="8"></rect>
<text id="%" font-family="SalesforceSans-Regular, Salesforce Sans" font-size="64" font-weight="normal" fill="#FFFFFF">
<tspan x="10.46" y="73">%</tspan>
</text>
</g>
</svg>

До

Ширина:  |  Высота:  |  Размер: 751 B

Просмотреть файл

@ -1,5 +0,0 @@
({
myAction : function() {
}
})

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>38.0</apiVersion>
<apiVersion>42.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>

Просмотреть файл

@ -54,7 +54,7 @@
var slider = component.find('slider').getElement();
var params = event.getParam('arguments');
if (params) {
slider.noUiSlider.set([params.min, params.max]);
slider.noUiSlider.set([params.min, params.max]);
}
}

Просмотреть файл

@ -0,0 +1,6 @@
<aura:documentation>
<aura:description>Documentation</aura:description>
<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
Example Description
</aura:example>
</aura:documentation>

Просмотреть файл

@ -0,0 +1,27 @@
<aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes" controller="PropertyController" access="global">
<aura:attribute name="recordId" type="Id" />
<aura:attribute name="files" type="Object[]" />
<aura:attribute name="property" type="Property__c" />
<force:recordData aura:id="propertyService" recordId="{!v.recordId}" targetFields="{!v.property}" fields="['Id', 'Address__c', 'City__c', 'Description__c']"
/>
<aura:handler name="init" value="{!this}" action="{!c.onInit}" />
<aura:if isTrue="{!v.files.length > 0}">
<lightning:carousel disableAutoRefresh="true">
<aura:iteration items="{!v.files}" var="file" indexVar="index">
<lightning:carouselImage src="{! '/sfc/servlet.shepherd/version/download/' + file.Id}" header="{!v.property.Address__c + ' ' + v.property.City__c}"
description="{!v.property.Description__c}" />
</aura:iteration>
</lightning:carousel>
<aura:set attribute="else">
<lightning:card class="no-picture">
<lightning:icon iconName="utility:photo" size="large"/>
<p>There are currently no pictures for this property. You can upload pictures in the Files related list.</p>
</lightning:card>
</aura:set>
</aura:if>
</aura:component>

Просмотреть файл

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="PropertyCarousel">
<apiVersion>42.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>

Просмотреть файл

@ -0,0 +1,6 @@
.THIS .slds-card__body {
text-align: center;
padding-bottom: 12px;
padding-left: 20px;
padding-right: 20px;
}

Просмотреть файл

@ -0,0 +1,3 @@
<design:component >
</design:component>

Просмотреть файл

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="120px" height="120px" viewBox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M120,108 C120,114.6 114.6,120 108,120 L12,120 C5.4,120 0,114.6 0,108 L0,12 C0,5.4 5.4,0 12,0 L108,0 C114.6,0 120,5.4 120,12 L120,108 L120,108 Z" id="Shape" fill="#2A739E"/>
<path d="M77.7383308,20 L61.1640113,20 L44.7300055,63.2000173 L56.0543288,63.2000173 L40,99.623291 L72.7458388,54.5871812 L60.907727,54.5871812 L77.7383308,20 Z" id="Path-1" fill="#FFFFFF"/>
</g>
</svg>

После

Ширина:  |  Высота:  |  Размер: 661 B

Просмотреть файл

@ -0,0 +1,13 @@
({
onInit : function(component) {
var action = component.get("c.getPictures");
action.setParams({
"propertyId": component.get("v.recordId"),
});
action.setCallback(this, function (response) {
component.set("v.files", response.getReturnValue());
});
$A.enqueueAction(action);
}
})

Просмотреть файл

@ -0,0 +1,5 @@
({
helperMethod : function() {
}
})

Просмотреть файл

@ -0,0 +1,5 @@
({
// Your renderer method overrides go here
})

Просмотреть файл

@ -15,10 +15,10 @@
<aura:handler event="ltng:selectSObject" action="{!c.recordChangeHandler}"/>
<lightning:card title="Days on the market" iconName="utility:event">
<lightning:card>
<lightning:layout >
<lightning:layoutitem class="{! 'days-block ' + v.status}">
<div class="days">{!v.property.Days_On_Market__c}</div>days
<div class="days">{!v.property.Days_On_Market__c}</div>days on<br/>the market
</lightning:layoutitem>
<lightning:layoutitem flexibility="grow" class="chart">
<div class="{! 'bar ' + v.status }" style="{! 'width:' + v.property.Days_On_Market__c / 90 * 100 + '%' }"/>

Просмотреть файл

@ -1,5 +1,6 @@
.THIS .slds-card__body {
padding: 0 12px;
padding: 12px 12px 0 12px;
line-height: 1rem;
}
.THIS .days-block {
@ -25,8 +26,8 @@
}
.THIS .days {
font-size: 32px;
line-height: 32px;
font-size: 28px;
line-height: 28px;
font-weight: 300;
margin-right: 12px;
margin: 0;
@ -80,4 +81,8 @@
.THIS .axis .legend {
margin-top: 36px;
}
.THIS .slds-card__header {
display: none;
}

Просмотреть файл

@ -3,7 +3,7 @@
}
.THIS .leaflet-container {
height: 400px;
height: 820px;
}
.THIS .slds-card__header {

Просмотреть файл

@ -33,7 +33,7 @@
<div>
<p>Bedrooms: {!v.property.Beds__c}</p>
<p>Bathrooms: {!v.property.Baths__c}</p>
<p>Date Listed: <c:FormattedDate value="{!v.property.Date_Listed__c}" /></p>
<p>Date Listed: <lightning:FormattedDateTime value="{!v.property.Date_Listed__c}" year="numeric" month="short" day="2-digit" weekday="long"/></p>
<h3><lightning:formattedNumber value="{!v.property.Price__c}" style="currency" currencyCode="USD" minimumFractionDigits="0" maximumFractionDigits="0" /></h3>
</div>
</lightning:layoutItem>
@ -45,7 +45,7 @@
</aura:if>
</lightning:layoutItem>
<lightning:layoutItem>
<div>
<div class="broker">
<p><a onclick="{!c.navigateToRecord}">{!v.property.Broker__r.Name}</a></p>
<p>{!v.property.Broker__r.Title__c}</p>
<p>{!v.property.Broker__r.Mobile_Phone__c}</p>

Просмотреть файл

@ -24,4 +24,8 @@
.THIS .select {
text-align: center;
margin-top: 60px;
}
.THIS .broker {
line-height: 1rem;
}

Просмотреть файл

@ -30,7 +30,7 @@
<ul class="slds-grid slds-wrap">
<li class="slds-item slds-size--1-of-2"><span class="slds-text-color--weak slds-m-right--small">Bedrooms:</span> {!item.Beds__c}</li>
<li class="slds-item slds-size--1-of-2"><span class="slds-text-color--weak slds-m-right--small">Bathrooms:</span> {!item.Baths__c}</li>
<li class="slds-item slds-size--1-of-2"><span class="slds-text-color--weak slds-m-right--small">Price:</span> <lightning:formattedNumber value="{!item.Price__c}" style="currency" currencyCode="USD"/></li>
<li class="slds-item slds-size--1-of-2"><span class="slds-text-color--weak slds-m-right--small">Price:</span> <lightning:formattedNumber value="{!item.Price__c}" style="currency" currencyCode="USD" minimumFractionDigits="0" maximumFractionDigits="0" /></li>
<li class="slds-item slds-size--1-of-2"><span class="slds-text-color--weak slds-m-right--small">Status:</span> {!item.Status__c}</li>
</ul>
</div>

Просмотреть файл

@ -70,5 +70,22 @@ global with sharing class PropertyController {
}
}
@AuraEnabled
public static List<ContentVersion> getPictures (Id propertyId) {
List<ContentDocumentLink> links = [select id, LinkedEntityId, ContentDocumentId from ContentDocumentLink where LinkedEntityId=:propertyId];
if (links.isEmpty()) {
return null;
}
Set<Id> contentIds = new Set<Id>();
for (ContentDocumentLink link :links) {
contentIds.add(link.ContentDocumentId);
}
return [SELECT Id, Title FROM ContentVersion WHERE ContentDocumentId IN :contentIds AND IsLatest=true];
}
}

Просмотреть файл

@ -108,6 +108,9 @@
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentName>PropertyCarousel</componentName>
</componentInstances>
<componentInstances>
<componentName>PropertyDaysOnMarketChart</componentName>
</componentInstances>
@ -126,13 +129,6 @@
</componentInstanceProperties>
<componentName>MapCard</componentName>
</componentInstances>
<componentInstances>
<componentInstanceProperties>
<name>animations</name>
<value>true</value>
</componentInstanceProperties>
<componentName>PictureGalleryCard</componentName>
</componentInstances>
<componentInstances>
<componentInstanceProperties>
<name>searchCriteria</name>

Просмотреть файл

@ -35,6 +35,10 @@
<behavior>Edit</behavior>
<field>Tags__c</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Price_Sold__c</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
@ -240,13 +244,16 @@
<sortField>CREATED_DATE</sortField>
<sortOrder>Desc</sortOrder>
</relatedLists>
<relatedLists>
<relatedList>RelatedFileList</relatedList>
</relatedLists>
<showEmailCheckbox>false</showEmailCheckbox>
<showHighlightsPanel>false</showHighlightsPanel>
<showInteractionLogPanel>false</showInteractionLogPanel>
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>false</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00h0S000000J8Mn</masterLabel>
<masterLabel>00h9A000000Lvvd</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>

Просмотреть файл

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Price_Sold__c</fullName>
<externalId>false</externalId>
<label>Price Sold</label>
<precision>8</precision>
<required>false</required>
<scale>0</scale>
<trackFeedHistory>false</trackFeedHistory>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Currency</type>
</CustomField>

Просмотреть файл

@ -2,7 +2,7 @@
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Price__c</fullName>
<externalId>false</externalId>
<label>Price</label>
<label>Asking Price</label>
<precision>8</precision>
<required>false</required>
<scale>0</scale>

Просмотреть файл

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<PathAssistant xmlns="http://soap.sforce.com/2006/04/metadata">
<active>true</active>
<entityName>Property__c</entityName>
<fieldName>Status__c</fieldName>
<masterLabel>Property Status</masterLabel>
<pathAssistantSteps>
<fieldNames>Date_Listed__c</fieldNames>
<fieldNames>Price__c</fieldNames>
<picklistValueName>Available</picklistValueName>
</pathAssistantSteps>
<pathAssistantSteps>
<fieldNames>Date_Closed__c</fieldNames>
<fieldNames>Price_Sold__c</fieldNames>
<picklistValueName>Closed</picklistValueName>
</pathAssistantSteps>
<pathAssistantSteps>
<fieldNames>Date_Contracted__c</fieldNames>
<fieldNames>Price__c</fieldNames>
<picklistValueName>Contracted</picklistValueName>
</pathAssistantSteps>
<pathAssistantSteps>
<fieldNames>Date_Pre_Market__c</fieldNames>
<fieldNames>Price__c</fieldNames>
<picklistValueName>Pre Market</picklistValueName>
</pathAssistantSteps>
<pathAssistantSteps>
<fieldNames>Price_Sold__c</fieldNames>
<fieldNames>Date_Agreement__c</fieldNames>
<fieldNames>Date_Closed__c</fieldNames>
<picklistValueName>Under Agreement</picklistValueName>
</pathAssistantSteps>
<recordTypeName>__MASTER__</recordTypeName>
</PathAssistant>

Просмотреть файл

@ -447,6 +447,14 @@
<tab>Heat_Map_Mock</tab>
<visibility>Visible</visibility>
</tabSettings>
<tabSettings>
<tab>Property_Explorer</tab>
<visibility>Visible</visibility>
</tabSettings>
<tabSettings>
<tab>Property_Finder</tab>
<visibility>Visible</visibility>
</tabSettings>
<tabSettings>
<tab>Property__c</tab>
<visibility>Visible</visibility>

Просмотреть файл

@ -330,6 +330,11 @@
<field>Property__c.Picture__c</field>
<readable>false</readable>
</fieldPermissions>
<fieldPermissions>
<editable>true</editable>
<field>Property__c.Price_Sold__c</field>
<readable>true</readable>
</fieldPermissions>
<fieldPermissions>
<editable>false</editable>
<field>Property__c.Price__c</field>
@ -435,14 +440,6 @@
<apexPage>HeatMapMock</apexPage>
<enabled>true</enabled>
</pageAccesses>
<tabVisibilities>
<tab>Property_Explorer</tab>
<visibility>DefaultOn</visibility>
</tabVisibilities>
<tabVisibilities>
<tab>Property_Finder</tab>
<visibility>DefaultOn</visibility>
</tabVisibilities>
<userLicense>Salesforce</userLicense>
<userPermissions>
<enabled>true</enabled>

Просмотреть файл

@ -330,6 +330,11 @@
<field>Property__c.Picture__c</field>
<readable>false</readable>
</fieldPermissions>
<fieldPermissions>
<editable>true</editable>
<field>Property__c.Price_Sold__c</field>
<readable>true</readable>
</fieldPermissions>
<fieldPermissions>
<editable>false</editable>
<field>Property__c.Price__c</field>
@ -399,14 +404,6 @@
<apexPage>HeatMapMock</apexPage>
<enabled>false</enabled>
</pageAccesses>
<tabVisibilities>
<tab>Property_Explorer</tab>
<visibility>DefaultOn</visibility>
</tabVisibilities>
<tabVisibilities>
<tab>Property_Finder</tab>
<visibility>DefaultOn</visibility>
</tabVisibilities>
<userLicense>Salesforce</userLicense>
<userPermissions>
<enabled>true</enabled>

Просмотреть файл

@ -330,6 +330,11 @@
<field>Property__c.Picture__c</field>
<readable>false</readable>
</fieldPermissions>
<fieldPermissions>
<editable>true</editable>
<field>Property__c.Price_Sold__c</field>
<readable>true</readable>
</fieldPermissions>
<fieldPermissions>
<editable>false</editable>
<field>Property__c.Price__c</field>
@ -399,14 +404,6 @@
<apexPage>HeatMapMock</apexPage>
<enabled>false</enabled>
</pageAccesses>
<tabVisibilities>
<tab>Property_Explorer</tab>
<visibility>DefaultOn</visibility>
</tabVisibilities>
<tabVisibilities>
<tab>Property_Finder</tab>
<visibility>DefaultOn</visibility>
</tabVisibilities>
<userLicense>Salesforce</userLicense>
<userPermissions>
<enabled>true</enabled>

Просмотреть файл

@ -330,6 +330,11 @@
<field>Property__c.Picture__c</field>
<readable>false</readable>
</fieldPermissions>
<fieldPermissions>
<editable>true</editable>
<field>Property__c.Price_Sold__c</field>
<readable>true</readable>
</fieldPermissions>
<fieldPermissions>
<editable>false</editable>
<field>Property__c.Price__c</field>
@ -399,14 +404,6 @@
<apexPage>HeatMapMock</apexPage>
<enabled>false</enabled>
</pageAccesses>
<tabVisibilities>
<tab>Property_Explorer</tab>
<visibility>DefaultOn</visibility>
</tabVisibilities>
<tabVisibilities>
<tab>Property_Finder</tab>
<visibility>DefaultOn</visibility>
</tabVisibilities>
<userLicense>Salesforce</userLicense>
<userPermissions>
<enabled>true</enabled>