forked from jrattanpal/SFDriveWealth_SFDX
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Convert project to SFDX from https://github.com/iyeratl/SFDriveWealth
- Loading branch information
0 parents
commit d021d69
Showing
348 changed files
with
16,263 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.idea/ | ||
.settings/ | ||
.sfdx/ | ||
mdapi/ | ||
.project | ||
FSCDW_SFDX1.iml |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SFDX App | ||
|
||
## Dev, Build and Test | ||
|
||
|
||
## Resources | ||
|
||
|
||
## Description of Files and Directories | ||
|
||
|
||
## Issues | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"edition": "Developer", | ||
"features": "API;AuthorApex;Communities;CustomApps;CustomTabs;ForceComPlatform;SalesWave", | ||
"orgPreferences": { | ||
"enabled": [ | ||
"ChatterEnabled", | ||
"LoginForensicsEnabled", | ||
"NetworksEnabled", | ||
"IsMiddleNameEnabled", | ||
"IsNameSuffixEnabled", | ||
"DocumentContentSearchEnabled", | ||
"OptimizeSearchForCjkEnabled", | ||
"RecentlyViewedUsersForBlankLookupEnabled", | ||
"SidebarAutoCompleteEnabled", | ||
"SidebarDropDownListEnabled", | ||
"SidebarLimitToItemsIownEnabled", | ||
"SingleSearchResultShortcutEnabled", | ||
"SpellCorrectKnowledgeSearchEnabled" | ||
], | ||
"disabled": [ | ||
"IsOpportunityTeamEnabled", | ||
"IsOrdersEnabled", | ||
"IsExactTargetForSalesforceAppsEnabled", | ||
"IsCascadeActivateToRelatedPricesEnabled", | ||
"IsQuantityScheduleEnabled", | ||
"IsRevenueScheduleEnabled", | ||
"IsQuoteEnabled" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"orgName": "FSC Drive Wealth", | ||
"edition": "Developer", | ||
"orgPreferences" : { | ||
"enabled": ["S1DesktopEnabled"] | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
force-app/main/default/applications/FSC_DriveWealth.app-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<defaultLandingTab>standard-home</defaultLandingTab> | ||
<label>FSC DriveWealth</label> | ||
<tab>standard-Account</tab> | ||
<tab>DW_Session__c</tab> | ||
<tab>DW_Account__c</tab> | ||
<tab>DW_Order__c</tab> | ||
</CustomApplication> |
24 changes: 24 additions & 0 deletions
24
force-app/main/default/applications/FSC_DriveWealth_Lightning.app-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<comment>Action override created by Lightning App Builder during activation.</comment> | ||
<content>Account_Record_Page</content> | ||
<formFactor>Large</formFactor> | ||
<skipRecordTypeSelect>false</skipRecordTypeSelect> | ||
<type>Flexipage</type> | ||
<pageOrSobjectType>Account</pageOrSobjectType> | ||
</actionOverrides> | ||
<brand> | ||
<headerColor>#0070D2</headerColor> | ||
</brand> | ||
<formFactors>Large</formFactors> | ||
<label>FSC DriveWealth</label> | ||
<navType>Standard</navType> | ||
<tab>standard-home</tab> | ||
<tab>standard-Account</tab> | ||
<tab>DW_Session__c</tab> | ||
<tab>DW_Account__c</tab> | ||
<tab>DW_Order__c</tab> | ||
<uiType>Lightning</uiType> | ||
</CustomApplication> |
159 changes: 159 additions & 0 deletions
159
force-app/main/default/aura/DWCreateAccountForm/DWCreateAccountForm.cmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
<aura:component description="DWCreateAccountForm" implements="flexipage:availableForAllPageTypes,force:hasRecordId" access="global"> | ||
|
||
<!-- Workaround for strange bug where related records are not loaded the first time --> | ||
<!-- https://org62.lightning.force.com/one/one.app#/sObject/0D50M000032hJOwSAM/view--> | ||
<aura:attribute type="Account" name="acc" access="public"/> | ||
<!-- Workaround --> | ||
|
||
<!-- Instrument information for order --> | ||
<!-- <aura:attribute name="instrument" type="DriveWealthJsonInstrument" access="public" /> | ||
--> | ||
|
||
<!-- debug Apex code --> | ||
<aura:attribute name="debug" type="Boolean" default="false" access="global"/> | ||
<aura:attribute name="debugClient" type="Boolean" default="false" access="global" /> | ||
|
||
|
||
<!-- Store account if it was successfully created --> | ||
<!-- this may not been needed | ||
<aura:attribute name="account" type="DriveWealthJsonAccount" /> --> | ||
|
||
<!-- For using ApexBridge Library --> | ||
<!-- VI - utility for making apex controller calls from LC--> | ||
<c:ETLC_ApexBridge aura:id="ApexBridge" debugServer="{!v.debug}" debugClient="{!v.debugClient}"/> | ||
|
||
<!-- For using Utils library --> | ||
<!-- VI - used to display error messages in the component - also used for logging/messaging --> | ||
<c:Utils debugClient="{!v.debugClient}" aura:id="utils" /> | ||
|
||
|
||
|
||
<!--Setup initial information for creating an account --> | ||
<aura:handler name="init" value="{!this}" action="{!c.doInit}" /> | ||
|
||
<aura:registerEvent name="cmpEvent" type="c:EvtAccountCreated" /> | ||
|
||
|
||
|
||
|
||
<aura:attribute name="fname" type="String" default="" /> | ||
<aura:attribute name="lname" type="String" default="" /> | ||
<aura:attribute name="uname" type="String" default="" /> | ||
<aura:attribute name="passwd" type="String" default="" /> | ||
<aura:attribute name="recordId" type="Id" access="global" default="" /> | ||
|
||
|
||
<!-- Input Form using components --> | ||
<aura:if isTrue="{!v.acc.sfaip_fsc_dw__DW_Accounts__r}"> | ||
<lightning:card > | ||
<aura:set attribute="title"> | ||
Drive Wealth Account Details | ||
</aura:set> | ||
</lightning:card> | ||
<aura:set attribute="else"> | ||
<lightning:card > | ||
<aura:set attribute="title"> | ||
Create DW Account | ||
</aura:set> | ||
<p class="slds-p-horizontal--small"> | ||
Create DW Account to start placing orders | ||
</p> | ||
</lightning:card> | ||
</aura:set> | ||
</aura:if> | ||
|
||
<!-- ui:message will added in this div via createComponents() --> | ||
<div aura:id="uiMessage"></div> | ||
|
||
<ui:spinner aura:id="spinner" isVisible="false"/> | ||
|
||
|
||
<!-- Input Form using components --> | ||
<aura:if isTrue="{!v.acc.sfaip_fsc_dw__DW_Accounts__r}"> | ||
<div class="slds-box slds-theme--default" aura:id="showAccountForm"> | ||
<div class="slds-form-element slds-is-required"> | ||
<div class="slds-form-element__control"> | ||
<label class="slds-form-element__label" >DW Account Name</label> | ||
<div class="slds-form-element__control"> | ||
<ui:outputText value="{!v.acc.sfaip_fsc_dw__DW_Accounts__r.records[0].Name}" /> | ||
|
||
</div> | ||
</div> | ||
<br/> | ||
|
||
<div class="slds-form-element__control"> | ||
<label class="slds-form-element__label" >DW Account Number</label> | ||
<div class="slds-form-element__control"> | ||
<ui:outputText value="{!v.acc.sfaip_fsc_dw__DW_Accounts__r.records[0].sfaip_fsc_dw__Account_No__c}" /> | ||
|
||
</div> | ||
</div> | ||
<br/> | ||
|
||
<div class="slds-form-element__control"> | ||
<label class="slds-form-element__label" >DW Account Type</label> | ||
<div class="slds-form-element__control"> | ||
|
||
<aura:If isTrue="{!v.acc.sfaip_fsc_dw__DW_Accounts__r.records[0].sfaip_fsc_dw__Account_Type__c==1}"> | ||
<ui:outputText value="Practice Account" /> | ||
|
||
</aura:If> | ||
|
||
</div> | ||
</div> | ||
<br/> | ||
|
||
<div class="slds-form-element__control"> | ||
<label class="slds-form-element__label" >When was this created</label> | ||
<div class="slds-form-element__control"> | ||
<ui:outputText value="{!v.acc.sfaip_fsc_dw__DW_Accounts__r.records[0].sfaip_fsc_dw__Created_When__c}" /> | ||
|
||
</div> | ||
</div> | ||
<br/> | ||
</div> | ||
|
||
</div> | ||
<aura:set attribute="else"> | ||
<div class="slds-box slds-theme--default" aura:id="createAccountForm"> | ||
<div class="slds-form-element"> | ||
<lightning:input required="true" label="First Name" aura:id="fname" name="fname" type="text" value="{!v.fname}" /> | ||
|
||
</div> | ||
|
||
<div class="slds-form-element slds-is-required"> | ||
<div class="slds-form-element__control"> | ||
<lightning:input required="true" label="Last Name" aura:id="lname" name="lname" type="text" value="{!v.lname}"/> | ||
|
||
|
||
</div> | ||
</div> | ||
|
||
<div class="slds-form-element slds-is-required"> | ||
<div class="slds-form-element__control"> | ||
<label class="slds-form-element__label" >Email</label> | ||
<div class="slds-form-element__control"> | ||
<ui:outputText value="{!v.acc.sfaip_fsc_dw__Email__c}" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="slds-form-element"> | ||
<lightning:input required="true" label="User Name" aura:id="uname" name="uname" type="text" value="{!v.uname}" /> | ||
|
||
</div> | ||
|
||
<div class="slds-form-element slds-is-required"> | ||
<div class="slds-form-element__control"> | ||
<lightning:input required="true" label="Password (Must be more than 8 characters and less than 90)" aura:id="passwd" name="passwd" type="text" value="{!v.passwd}"/> | ||
|
||
|
||
</div> | ||
</div> | ||
<div class="slds-form-element"> | ||
<lightning:button label="Create Account" onclick="{!c.createAccount}" /> | ||
</div> | ||
</div><!-- ./container--> | ||
</aura:set> | ||
|
||
</aura:if> | ||
</aura:component> |
5 changes: 5 additions & 0 deletions
5
force-app/main/default/aura/DWCreateAccountForm/DWCreateAccountForm.cmp-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>38.0</apiVersion> | ||
<description>Create account form</description> | ||
</AuraDefinitionBundle> |
5 changes: 5 additions & 0 deletions
5
force-app/main/default/aura/DWCreateAccountForm/DWCreateAccountForm.cmp-meta.xml.dup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>38.0</apiVersion> | ||
<description>Create account form</description> | ||
</AuraDefinitionBundle> |
Oops, something went wrong.