-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrack.vf
179 lines (163 loc) · 8.61 KB
/
crack.vf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<apex:page standardController="Card__c" extensions="cardcntrlext" showHeader="true"
tabStyle="account" >
<style>
.activeTab {background-color: #786FBD; color:purple;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" activeTabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Profile" name="Profile" id="tabdetails">
<apex:form >
<apex:pageBlock mode="inlineEdit">
<apex:pageBlockSection columns="2" id="profile" >
<apex:outputField value="{! Card__c.RecordType.Name }" label="Card Type" />
<apex:outputField value="{! Card__c.IsActive__c }" label="Active" />
<apex:inputCheckbox value="{! Card__c.IsIndividual__c }">
<apex:actionSupport event="onclick" reRender="profile" />
</apex:inputCheckbox>
<apex:outputField value="{! Card__c.DisplayID__c }"/>
<apex:outputField value="{! Card__c.CompanyName__c }" label="Name" rendered="{! Card__c.IsIndividual__c == false }"/>
<apex:outputField value="{! Card__c.LastName__c }" rendered="{! Card__c.IsIndividual__c }"/>
<apex:outputText rendered="{! Card__c.IsIndividual__c }" ></apex:outputText>
<apex:outputField value="{! Card__c.FirstName__c }" rendered="{! Card__c.IsIndividual__c }"/>
<apex:outputText rendered="{! Card__c.IsIndividual__c }" ></apex:outputText>
</apex:pageBlockSection>
<apex:pageBlockSection columns="2" rendered="true" id="address">
<apex:selectList multiselect="false" size="1" value="{!option}" >
<apex:actionSupport event="onchange" reRender="address" />
<apex:selectOption itemValue="1" itemLabel="Address 1"/>
<apex:selectOption itemValue="2" itemLabel="Address 2"/>
<apex:selectOption itemValue="3" itemLabel="Address 3"/>
<apex:selectOption itemValue="4" itemLabel="Address 4"/>
<apex:selectOption itemValue="5" itemLabel="Address 5"/>
</apex:selectList>
<apex:variable var="count" value="{!0}" />
<apex:repeat value="{!Card__c.Addresses__r}" var="row">
<apex:outputField value="{!row.Street__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.Phone1__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.City__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.Phone2__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.State__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.Phone3__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.PostCode__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.Fax__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.Country__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputField value="{!row.Email__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputText rendered="{!(TEXT(row.Index__c) == Option)}" />
<apex:outputField value="{!row.Website__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputText rendered="{!(TEXT(row.Index__c) == Option)}" />
<apex:outputField value="{!row.Salutation__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:outputText rendered="{!(TEXT(row.Index__c) == Option)}" />
<apex:outputField value="{!row.ContactName__c}" rendered="{!(TEXT(row.Index__c) == Option)}"/>
<apex:variable var="count" value="{!count+1}" />
</apex:repeat>
</apex:pageBlockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" id="saveButton" value="OK" />
<apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:tab>
<apex:tab label="Card Details" name="Card Details">
<apex:form >
<apex:pageBlock mode="inlineEdit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" id="saveButton" value="OK" />
<apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>
</apex:pageBlockButtons>
<apex:inlineEditSupport showOnEdit="saveButton, cancelButton"
hideOnEdit="editButton" event="ondblclick"
changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
<apex:pageBlockSection columns="2" >
<apex:image url="PhotoURI__c" height="200px"/>
<apex:outputField value="{! Card__c.Notes__c }" label="Notes" style="width:400px"/>
</apex:pageBlockSection>
<apex:pageBlockSection columns="1" >
<apex:outputField value="{! Card__c.Identifiers__c }" label="Identifiers"/>
<apex:outputField value="{! Card__c.CustomList1_Value__c }" />
<apex:outputField value="{! Card__c.CustomList2_Value__c }" />
<apex:outputField value="{! Card__c.CustomList3_Value__c }" />
<apex:outputField value="{! Card__c.CustomField1_Value__c }"/>
<apex:outputField value="{! Card__c.CustomField2_Value__c }"/>
<apex:outputField value="{! Card__c.CustomField3_Value__c }"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:tab>
<apex:tab label="Buying Details" name="Buying Details" >
<apex:form >
<apex:pageBlock mode="inlineEdit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" id="saveButton" value="OK" />
<apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection columns="2" >
<apex:outputField value="{! Card__c.BuyingDetails_PurchaseLayout__c }" />
<apex:outputField value="{! Card__c.BuyingDetails_Credit_Limit__c }" />
<apex:outputText ></apex:outputText>
<apex:outputField value="{! Card__c.BuyingDetails_Credit_Available__c }"/>
<apex:outputText ></apex:outputText>
<apex:outputField value="{! Card__c.BuyingDetails_Credit_PastDue__c }"/>
<apex:outputText ></apex:outputText>
<apex:outputField value="{! Card__c.BuyingDetails_ABN__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_ExpenseAccount_DisplayID__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_ABNBranch__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_PaymentMemo__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_TaxIdNumber__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_PurchaseComment__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_TaxCode_Code__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_ShippingMethod__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_FreightTaxCode_Code__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_SupplierBillingRate__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_UseSupplierTaxCode__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_CostPerHour__c }"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Supplier Terms Information">
<apex:outputField value="{! Card__c.BuyingDetails_Terms_PaymentIsDue__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_Terms_EarlyDiscount__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_Terms_DiscountDate__c }"/>
<apex:outputText ></apex:outputText>
<apex:outputField value="{! Card__c.BuyingDetails_Terms_BalanceDueDate__c }"/>
<apex:outputField value="{! Card__c.BuyingDetails_Terms_VolumeDiscount__c }"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:tab>
<apex:tab label="Payment Details" name="Payment Details" >
<apex:form >
<apex:pageBlock mode="inlineEdit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" id="saveButton" value="OK" />
<apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection columns="1" >
<apex:outputField value="{! Card__c.PaymentDetails_BSBNumber__c }" label="BSB Number" />
<apex:outputField value="{! Card__c.PaymentDetails_BankAccountNumber__c }" />
<apex:outputField value="{! Card__c.PaymentDetails_BankAccountName__c }"/>
<apex:outputField value="{! Card__c.PaymentDetails_StatementText__c }"/>
</apex:pageBlockSection>
<apex:pageBlockSection columns="1" >
<apex:commandButton value="Refund Details" />
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:tab>
<apex:tab label="Addresses" name="Addresses" id="tabContact">
<apex:relatedList title="" list="addresses__r" />
</apex:tab>
<apex:tab label="Open Activities" name="OpenActivities"
id="tabOpenAct">
<apex:relatedList subject="{!Card__c}"
list="OpenActivities" title="" />
</apex:tab>
<apex:tab label="Notes and Attachments"
name="NotesAndAttachments" id="tabNoteAtt">
<apex:relatedList title="" subject="{!Card__c}"
list="NotesAndAttachments" />
</apex:tab>
</apex:tabPanel>
</apex:page>