· 5 years ago · Feb 26, 2020, 10:00 PM
1//Declaring Scope
2
3$scope = $('div[ng-controller="applyController"]').scope()
4
5var di = new Date().format('{dd}{MM}{yy}{hh}{mm}{ss}');
6
7
8
9//Wizard 1
10$scope.Variables.EventType= "Baptisms";
11$scope.Variables.SpectatorAttendance= "800";
12$scope.Variables.AdjustGLLimit= "1000";
13$scope.Variables.VenueProvince= "ON";
14
15
16
17//Filling variables
18$scope.Variables.PolicyHolderState= "FL";
19$scope.Variables.PolicyFor= "Individual";
20$scope.Variables.PolicyHolderFirstName= "Ameet "+ di
21$scope.Variables.PolicyHolderLastName= "Holman";
22$scope.Variables.address= "1 Valleywood Drive, Suite 100";
23$scope.Variables.city= "Markham";
24$scope.Variables.Province= "ON";
25$scope.Variables.zipcode= "L3R5L9";
26$scope.Variables.primaryPhone= "1122334455";
27$scope.Variables.Email= "testscio.ameet+"+ di +"@gmail.com";
28
29
30
31
32//Filling Event Information
33$scope.Variables.alcoholserved= "No";
34
35
36//Venue Wizard
37
38$scope.Variables.VenueName= "Cambium Farms";
39$scope.Variables.VenueAdressOne= "18333 Winston Churchill Blvd";
40$scope.Variables.VenueCity= "Caledon";
41
42$scope.Variables.VenueProvince= "ON";
43$scope.Variables.VenueZipCode= "L7K1J3";
44$scope.Variables.VenueStartDate= "3/15/2020";
45$scope.Variables.VenueEndDate= "3/15/2020";
46
47// Payment variables
48$scope.Purchase.CardType = "VISA";
49$scope.Purchase.NumberCard = "4111111111111111";
50$scope.Purchase.CardName = "Nacho test Ah " + di;
51$scope.Purchase.Month = "12";
52$scope.Purchase.Year = 2021;
53$scope.Purchase.SecurityCode = "323";
54$scope.Purchase.ShowButton1 = true;
55$scope.Purchase.ShowButton2 = true;
56
57
58
59
60
61
62$scope.$apply();
63
64// Update Wizards
65//$.each($scope.Insurance.Wizards, function(wIdx, wiz){
66// wiz.ValidationStatus = "Passed"
67//});