Commit fe484510d005823391b419b7540e3d6bdd984125
1 parent
e82ef638
..
Showing
215 changed files
with
1368 additions
and
9 deletions
Too many changes.
To preserve performance only 100 of 215 files are displayed.
400-SOURCECODE/AIAHTML5.ADMIN.API/App_Start/WebApiConfig.cs
1 | 1 | using System; |
2 | 2 | using System.Collections.Generic; |
3 | +using System.Configuration; | |
3 | 4 | using System.Linq; |
4 | 5 | using System.Web.Http; |
5 | 6 | using System.Web.Http.Cors; |
... | ... | @@ -17,8 +18,14 @@ namespace AIAHTML5.ADMIN.API |
17 | 18 | .Remove(GlobalConfiguration.Configuration.Formatters.XmlFormatter); |
18 | 19 | |
19 | 20 | // Configure cross domain access |
20 | - var cors = new EnableCorsAttribute("http://localhost:4200, http://localhost:4201, http://localhost:91", "*", "*"); | |
21 | - config.EnableCors(cors); | |
21 | + //var cors = new EnableCorsAttribute("http://localhost:4200, http://localhost:4201, http://localhost:91", "*", "*"); | |
22 | + //config.EnableCors(cors); | |
23 | + string Enablecors = ConfigurationManager.AppSettings["Enablecors"]; | |
24 | + if (Enablecors == "false") | |
25 | + { | |
26 | + EnableCorsAttribute cors = new EnableCorsAttribute("http://localhost:4200", "*", "GET,POST"); | |
27 | + config.EnableCors(cors); | |
28 | + } | |
22 | 29 | |
23 | 30 | // Web API routes |
24 | 31 | config.MapHttpAttributeRoutes(); | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Web.config
... | ... | @@ -12,6 +12,7 @@ |
12 | 12 | <add key="webpages:Enabled" value="false" /> |
13 | 13 | <add key="ClientValidationEnabled" value="true" /> |
14 | 14 | <add key="UnobtrusiveJavaScriptEnabled" value="true" /> |
15 | + <add key="Enablecors" value="false"/> | |
15 | 16 | </appSettings> |
16 | 17 | <system.web> |
17 | 18 | <compilation debug="true" targetFramework="4.5" /> | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.Web/src/app/app.component.ts
... | ... | @@ -4,6 +4,8 @@ import { ManageDiscountCodeService } from './components/ManageDiscountCode/manag |
4 | 4 | import { SubscriptionPriceService } from './components/SubscriptionPrice/subscriptionprice.service'; |
5 | 5 | import { LicenseService } from './components/LicenseEntity/license.service'; |
6 | 6 | import { ReportService } from './components/Reports/report.service'; |
7 | +//import { MyAuthService } from './shared/my-auth.service'; | |
8 | +import { GlobalService } from './Shared/global'; | |
7 | 9 | @Component({ |
8 | 10 | selector: 'app-component', |
9 | 11 | templateUrl: '../app/app.component.html', |
... | ... | @@ -12,8 +14,11 @@ import { ReportService } from './components/Reports/report.service'; |
12 | 14 | |
13 | 15 | export class AppComponent implements OnInit { |
14 | 16 | |
15 | - constructor(private userservice: UserService) { } | |
16 | - | |
17 | + constructor(private userservice: UserService, private global: GlobalService) { } | |
18 | + | |
17 | 19 | ngOnInit(): void { } |
18 | - | |
20 | + logout() { | |
21 | + localStorage.removeItem('loggedInUserDetails'); | |
22 | + window.location.href = this.global.LiveURL; | |
23 | + } | |
19 | 24 | } | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.Web/src/app/app.module.ts
... | ... | @@ -48,6 +48,17 @@ import { ContenteditableModelDirective } from './shared/contenteditabledirective |
48 | 48 | import { LoadingService } from './shared/loading.service'; |
49 | 49 | import { PagerComponent } from './shared/Pager/pager.component'; |
50 | 50 | import { NumberOnlyDirective } from './shared/numberonlydirective'; |
51 | +//import { MyAuthService } from './shared/my-auth.service'; | |
52 | +//import { AngularFireAuth } from 'angularfire2/auth'; | |
53 | +//import { FirebaseApp, AngularFireModule } from 'angularfire2'; | |
54 | +//import 'firebase/storage' | |
55 | +//import * as firebase from 'firebase/app'; | |
56 | +//export const firebaseConfig = { | |
57 | +// apiKey: 'xxxxxxxxxxxxxxxxxxxxx', | |
58 | +// authDomain: 'xxxxxxxxxxxxxxxxxxxxx', | |
59 | +// databaseURL: 'xxxxxxxxxxxxxxxxxxxxx', | |
60 | +// storageBucket: 'xxxxxxxxxxxxxxxxxxxxx' | |
61 | +//}; | |
51 | 62 | |
52 | 63 | @NgModule({ |
53 | 64 | declarations: [ |
... | ... | @@ -61,14 +72,16 @@ import { NumberOnlyDirective } from './shared/numberonlydirective'; |
61 | 72 | SubscriptionCancellationReport, NetAdSubscriptionReport, |
62 | 73 | SiteLicenseUsageReport, DiscountCodeReport, ImageExportReport, |
63 | 74 | EditLicenseBasicSettings, LicenseModestySettings, |
64 | - LicenseModuleSettings, SiteLicenseAccount, UserGroup, PagerComponent, | |
65 | - NumberOnlyDirective | |
75 | + LicenseModuleSettings, SiteLicenseAccount, UserGroup, PagerComponent, NumberOnlyDirective | |
66 | 76 | ], |
67 | 77 | imports: [ |
68 | 78 | BrowserModule, AppRoutingModule, HttpClientModule, FormsModule, ReactiveFormsModule, HttpModule, Ng2Bs3ModalModule, |
69 | 79 | BsDatepickerModule.forRoot(), ModalModule.forRoot()//ModalModule.forRoot() |
80 | + // , AngularFireModule.initializeApp(firebaseConfig), | |
70 | 81 | ], |
71 | - providers: [GlobalService, ConfirmService, BsModalService, LoadingService, CsvService, | |
82 | + providers: [GlobalService, ConfirmService, BsModalService, LoadingService, CsvService, | |
83 | + // MyAuthService, AngularFireAuth, FirebaseApp, AngularFireModule, | |
84 | + | |
72 | 85 | //AuthService, |
73 | 86 | //AuthGuard, |
74 | 87 | //{ |
... | ... | @@ -76,7 +89,9 @@ import { NumberOnlyDirective } from './shared/numberonlydirective'; |
76 | 89 | // useClass: MyInterceptor, |
77 | 90 | // multi: true |
78 | 91 | //} |
79 | - { provide: APP_BASE_HREF, useValue: '/' } | |
92 | + { provide: APP_BASE_HREF, useValue: '/Admin-UI' } | |
93 | + //{ provide: APP_BASE_HREF, useValue: '/' } | |
94 | + | |
80 | 95 | ], |
81 | 96 | bootstrap: [AppComponent] |
82 | 97 | }) | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.ClearSessionManager.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetBackGroundArtList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetBaseLayer.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetBitmask.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetBodyRegion.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetBodyRegionList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetBodyRegionView.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetBodyRegionViewList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetDissectibleContent.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetGenderList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetLayerModel.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetLayerdata.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetLexiconTermList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetNavigatorModel.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetOverLayLayerList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetPLRModel.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetPolygonForId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetStructureGroupId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetStructureGroupList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetStructureList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetTermList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetTermNumberForContentId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetViewOrientation.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetViewOrientationList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_GetVocabTermModal.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DA_LayerNumberInternal.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DeleteIncorrectLoginAttempts.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DeleteLicense.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.DeleteUserSession.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_CreateUser.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetAccountTypeList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetCountryList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetCourseConductedList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetInstitutionList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetInternetProductList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetMultimediaProductList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetProductRequiredList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetReferList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetSecurityQuestionList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetStateList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetSubscriptionDuration.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetSubscriptionEndDate.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetSubscriptionPlan.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetSubscriptionPlanInfo.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetSubscriptionPrice.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_GetUsername.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_InsertPaymentTransaction.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.EC_UpdateUser.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAIALicenseDetails.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAccountModule.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAllEditionForLicense.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAllLoginFailureCauses.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAllModuleStatus.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAllModuleStatusWithSlug.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAllUserWithGroup.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAttributeTypeList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetAttributeValueList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetBlockedUserByAccNoAndType.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetBlockedUserByAccNoAndType.sql
0 → 100644
1 | + | |
2 | +-- ============================================= | |
3 | +-- Author: Magic Software | |
4 | +-- Create date: 12-May-2009 | |
5 | +-- Description: To get the list of blocked user who have attempt 5 times wrong login | |
6 | +-- ============================================= | |
7 | +CREATE PROCEDURE [dbo].[GetBlockedUserByAccNoAndType] | |
8 | + -- Add the parameters for the stored procedure here | |
9 | + @iUserTypeId tinyint, @iLicenseId int | |
10 | +AS | |
11 | +BEGIN | |
12 | + -- returns the metadata | |
13 | + IF 1=0 BEGIN | |
14 | + SET FMTONLY OFF | |
15 | + END | |
16 | + SELECT DISTINCT | |
17 | + AIAUser.Id, | |
18 | + AIAUser.FirstName, | |
19 | + AIAUser.LastName, | |
20 | + AIAUser.LoginId, | |
21 | + AIAUser.Password, | |
22 | + AIAUser.EmailId, | |
23 | + ISNULL(License.AccountNumber,'') AccountNumber, | |
24 | + IncorrectLoginAttempts.LoginTime | |
25 | + FROM | |
26 | + IncorrectLoginAttempts | |
27 | + INNER JOIN AIAUser ON IncorrectLoginAttempts.UserId = AIAUser.Id | |
28 | + INNER JOIN UserType ON AIAUser.UserTypeId = UserType.Id | |
29 | + LEFT JOIN AIAUserToLicenseEdition ON AIAUser.Id = AIAUserToLicenseEdition.UserId | |
30 | + LEFT JOIN LicenseToEdition ON AIAUserToLicenseEdition.LicenseEditionId = LicenseToEdition.Id | |
31 | + LEFT JOIN License ON LicenseToEdition.LicenseId = License.Id | |
32 | + WHERE | |
33 | + IncorrectLoginAttempts.CntIncorrectLogins >= 5 | |
34 | + AND UserType.Priority >= (SELECT UserType.Priority FROM UserType WHERE UserType.Id=@iUserTypeId) | |
35 | + AND ((@iLicenseId =0) OR (License.Id = @iLicenseId)) | |
36 | + AND License.IsActive = 1 | |
37 | +END | |
38 | + | |
39 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.GetBlockedUserByUserId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetBlockedUserByUserType.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetBlockedUserDetailsByUserIdAndUserTypeId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetCAMSearch.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetCancelledLicenses.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetContentAttributeData.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetContentList.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetCustomerSummary.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetCustomerSummary_25042017.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetCustomerSummary_bkp.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetDiscountCodes.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetDiscountCodes.sql
0 → 100644
1 | +SET QUOTED_IDENTIFIER ON | |
2 | +GO | |
3 | +SET ANSI_NULLS ON | |
4 | +GO | |
5 | + | |
6 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetDiscountCodes]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
7 | +drop procedure [dbo].[GetDiscountCodes] | |
8 | +GO | |
9 | + | |
10 | +-- ==================================================== | |
11 | +-- Author: Magic Software | |
12 | +-- Create date: 23-Dec-2009 | |
13 | +-- Description: To get the details of all discounts | |
14 | +-- ==================================================== | |
15 | +CREATE PROCEDURE [dbo].[GetDiscountCodes] | |
16 | + -- Add the parameters for the stored procedure here | |
17 | + @sDiscountCode VARCHAR(255) = '', @sStartDate VARCHAR(20) = '', @sEndDate VARCHAR(20) = '' | |
18 | +AS | |
19 | +BEGIN | |
20 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
21 | + -- interfering with SELECT statements. | |
22 | + SET NOCOUNT ON; | |
23 | + DECLARE @dtStartDate DATETIME, @dtEndDate DATETIME | |
24 | + | |
25 | + -- convert the datatype of startdate & enddate parameter to datetime | |
26 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
27 | + SELECT @dtEndDate = CONVERT(DATETIME,@sEndDate) | |
28 | + | |
29 | + SELECT Id, DiscountCode, Percentage, CONVERT(VARCHAR(10),StartDate,101) as StartDate, CONVERT(VARCHAR(10),EndDate,101) as EndDate, | |
30 | + (CASE IsActive WHEN 1 THEN 'Active' ELSE 'Inactive' END) AS Status | |
31 | + FROM Discount WHERE StartDate >= (CASE WHEN LEN(@sStartDate) > 0 THEN @dtStartDate ELSE StartDate END) | |
32 | + AND EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE EndDate END) | |
33 | + AND DiscountCode like (CASE WHEN LEN(@sDiscountCode) > 0 THEN '%' + @sDiscountCode + '%' ELSE DiscountCode END) | |
34 | + ORDER BY Status | |
35 | +END | |
36 | + | |
37 | +GO | |
38 | +SET QUOTED_IDENTIFIER OFF | |
39 | +GO | |
40 | +SET ANSI_NULLS ON | |
41 | +GO | |
42 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.GetDiscountDetails.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetDiscountReport.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetDiscountedPrice.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetEditionsBySiteAccount.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetEncyclopediaSearch.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetExpiringLicenses.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetExportedImageDetails.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetImagePinData.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetInDepthSearch.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetIncorrectLoginAttempt.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLabExcerciseByUserId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseByIPAndAccount.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseBySiteId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseDetailByUserId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseDetailsById.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseEditionIdByUserId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseEditionIdForUser.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseEditionsForModesty.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseIdBySiteUrl.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseIdByUserId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLicenseIdEditionIdByUserId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetLoginFailureErrorReport.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetModuleStatusByLicenseId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetModulesByUserId.StoredProcedure.sql
0 → 100644
500-DBDump/AIA-StoredProcedures/dbo.GetNetAdDetailReport.StoredProcedure.sql
0 → 100644