Commit 32f76b742091bbb23e82bf69c9fed99c54125c67
Merge branch 'AdminProdChanges' of http://gitlab.ebix.com/ADAM/AIAHTML5 into Develop
Showing
101 changed files
with
8124 additions
and
567 deletions
Too many changes.
To preserve performance only 100 of 101 files are displayed.
400-SOURCECODE/AIAHTML5.ADMIN.API/AIAHTML5.ADMIN.API.csproj
... | ... | @@ -714,15 +714,48 @@ |
714 | 714 | <Compile Include="Entity\usp_DB_TblRowCOUNT_Result.cs"> |
715 | 715 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
716 | 716 | </Compile> |
717 | + <Compile Include="Entity\usp_EC_GetAccountTypeList_Result.cs"> | |
718 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
719 | + </Compile> | |
720 | + <Compile Include="Entity\usp_EC_GetCountryList_Result.cs"> | |
721 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
722 | + </Compile> | |
723 | + <Compile Include="Entity\usp_EC_GetSecurityQuestionList_Result.cs"> | |
724 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
725 | + </Compile> | |
726 | + <Compile Include="Entity\usp_EC_GetStateList_Result.cs"> | |
727 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
728 | + </Compile> | |
717 | 729 | <Compile Include="Entity\usp_GetAccountNumber_Result.cs"> |
718 | 730 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
719 | 731 | </Compile> |
720 | 732 | <Compile Include="Entity\usp_GetAccountTypeList_Result.cs"> |
721 | 733 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
722 | 734 | </Compile> |
735 | + <Compile Include="Entity\usp_GetBlockedUserByAccNoAndType_Result.cs"> | |
736 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
737 | + </Compile> | |
738 | + <Compile Include="Entity\usp_GetCancelledLicenses_Result.cs"> | |
739 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
740 | + </Compile> | |
741 | + <Compile Include="Entity\usp_GetCustomerSummary_Result.cs"> | |
742 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
743 | + </Compile> | |
744 | + <Compile Include="Entity\usp_GetDiscountCodes_Result.cs"> | |
745 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
746 | + </Compile> | |
747 | + <Compile Include="Entity\usp_GetDiscountReport_Result.cs"> | |
748 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
749 | + </Compile> | |
723 | 750 | <Compile Include="Entity\usp_GetEditions_Result.cs"> |
724 | 751 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
725 | 752 | </Compile> |
753 | + <Compile Include="Entity\usp_GetExpiringLicenses_Result.cs"> | |
754 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
755 | + </Compile> | |
756 | + <Compile Include="Entity\usp_GetExportedImageDetails_Result.cs"> | |
757 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
758 | + </Compile> | |
726 | 759 | <Compile Include="Entity\usp_GetLicenseById_Result.cs"> |
727 | 760 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
728 | 761 | </Compile> |
... | ... | @@ -747,21 +780,54 @@ |
747 | 780 | <Compile Include="Entity\usp_GetManageRights_Result.cs"> |
748 | 781 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
749 | 782 | </Compile> |
783 | + <Compile Include="Entity\usp_GetModuleStatusByLicenseId_Result.cs"> | |
784 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
785 | + </Compile> | |
786 | + <Compile Include="Entity\usp_GetNetAdSummaryReport_Result.cs"> | |
787 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
788 | + </Compile> | |
750 | 789 | <Compile Include="Entity\usp_GetProductEditionByLicense_Result.cs"> |
751 | 790 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
752 | 791 | </Compile> |
753 | 792 | <Compile Include="Entity\usp_GetSearchUserList_Result.cs"> |
754 | 793 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
755 | 794 | </Compile> |
795 | + <Compile Include="Entity\usp_GetSearchUsers_Result.cs"> | |
796 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
797 | + </Compile> | |
798 | + <Compile Include="Entity\usp_GetSiteAccountAdmin_Result.cs"> | |
799 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
800 | + </Compile> | |
756 | 801 | <Compile Include="Entity\usp_GetSiteAccountEditions_Result.cs"> |
757 | 802 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
758 | 803 | </Compile> |
804 | + <Compile Include="Entity\usp_GetSiteAccountSites_Result.cs"> | |
805 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
806 | + </Compile> | |
807 | + <Compile Include="Entity\usp_GetSiteAccoutDetail_Result.cs"> | |
808 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
809 | + </Compile> | |
759 | 810 | <Compile Include="Entity\usp_GetSiteById_Result.cs"> |
760 | 811 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
761 | 812 | </Compile> |
813 | + <Compile Include="Entity\usp_GetSiteLicenseUsageReports_Result.cs"> | |
814 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
815 | + </Compile> | |
816 | + <Compile Include="Entity\usp_GetSiteLicenseUsageReport_Result.cs"> | |
817 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
818 | + </Compile> | |
819 | + <Compile Include="Entity\usp_GetSubscribedLicenses_Result.cs"> | |
820 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
821 | + </Compile> | |
762 | 822 | <Compile Include="Entity\usp_GetSubscriptionPlans_Result.cs"> |
763 | 823 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
764 | 824 | </Compile> |
825 | + <Compile Include="Entity\usp_GetUsageReport_Result.cs"> | |
826 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
827 | + </Compile> | |
828 | + <Compile Include="Entity\usp_GetUserTyeByAccountNumber_Result.cs"> | |
829 | + <DependentUpon>AIADBEntity.tt</DependentUpon> | |
830 | + </Compile> | |
765 | 831 | <Compile Include="Entity\usp_GetUserType_Result.cs"> |
766 | 832 | <DependentUpon>AIADBEntity.tt</DependentUpon> |
767 | 833 | </Compile> | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/CommonController.cs
... | ... | @@ -94,7 +94,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
94 | 94 | string sStartDate = DateTime.MinValue.ToShortDateString(); |
95 | 95 | string sEndDate = DateTime.MaxValue.ToShortDateString(); |
96 | 96 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
97 | - var lstDiscountCode = dbContext.GetDiscountCodes("", "", "", 1, 1, spRecordCount).ToList(); | |
97 | + var lstDiscountCode = dbContext.usp_GetDiscountCodes("", "", "", 1, 1, spRecordCount).ToList(); | |
98 | 98 | lstDiscountCode1 = lstDiscountCode.Select(l => new DiscountCodeModel { Id = l.Id, DiscountCode = l.DiscountCode }).ToList(); |
99 | 99 | return Ok(lstDiscountCode1); |
100 | 100 | } | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/LicenseController.cs
... | ... | @@ -403,5 +403,22 @@ namespace AIAHTML5.ADMIN.API.Controllers |
403 | 403 | } |
404 | 404 | } |
405 | 405 | |
406 | + [Route("LicenseSiteAdmin")] | |
407 | + [HttpGet] | |
408 | + public HttpResponseMessage GetLicenseSiteAdmin(string AccountNo) | |
409 | + { | |
410 | + List<Tuple<int, string, string>> LicenseSiteAdminList = new List<Tuple<int, string, string>>(); | |
411 | + try | |
412 | + { | |
413 | + LicenseSiteAdminList = LicenseModel.GetLicenseSiteAdmin(dbContext, AccountNo); | |
414 | + return Request.CreateResponse(HttpStatusCode.OK, new { LicenseSiteAdminList = LicenseSiteAdminList }); | |
415 | + } | |
416 | + catch (Exception ex) | |
417 | + { | |
418 | + // Log exception code goes here | |
419 | + return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message); | |
420 | + } | |
421 | + } | |
422 | + | |
406 | 423 | } |
407 | 424 | } | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/ReportController.cs
... | ... | @@ -26,7 +26,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
26 | 26 | { |
27 | 27 | |
28 | 28 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
29 | - var lstUsageReport = dbContext.GetUsageReport(sFromDate, sToDate, sAccoutNumber, sZip, iState, iCountry,pageNo, pageLength, spRecordCount).ToList(); | |
29 | + var lstUsageReport = dbContext.usp_GetUsageReport(sFromDate, sToDate, sAccoutNumber, sZip, iState, iCountry, pageNo, pageLength, spRecordCount).ToList(); | |
30 | 30 | return Ok(new { UserUsage = lstUsageReport, RecordCount = spRecordCount.Value }); |
31 | 31 | //return Ok(lstUsageReport); |
32 | 32 | } |
... | ... | @@ -36,7 +36,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
36 | 36 | public IHttpActionResult GetCustomerSummeryReport(string sAccoutNumber, string sLicenseeFullName, Nullable<decimal> iStartPrice, Nullable<decimal> iEndPrice, int iLicenseType, int iAccountType, string sZip, int iState, int iCountry, int pageNo, int pageLength) |
37 | 37 | { |
38 | 38 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
39 | - var lstCustomerSummeryReport = dbContext.GetCustomerSummary(sAccoutNumber, sLicenseeFullName, iStartPrice, iEndPrice, (byte)iLicenseType, (byte)iAccountType, sZip, iState, iCountry,pageNo,pageLength,spRecordCount).ToList(); | |
39 | + var lstCustomerSummeryReport = dbContext.usp_GetCustomerSummary(sAccoutNumber, sLicenseeFullName, iStartPrice, iEndPrice, (byte)iLicenseType, (byte)iAccountType, sZip, iState, iCountry, pageNo, pageLength, spRecordCount).ToList(); | |
40 | 40 | return Ok(new { CustomerSummery = lstCustomerSummeryReport, RecordCount = spRecordCount.Value }); |
41 | 41 | //return Ok(lstCustomerSummeryReport); |
42 | 42 | } |
... | ... | @@ -47,7 +47,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
47 | 47 | public IHttpActionResult GetExpiringSubscriptionReport(string sFromDate, string sToDate, decimal iStartPrice, decimal iEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId, int pageNo, int pageLength) |
48 | 48 | { |
49 | 49 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
50 | - var lstExpiringSubscriptionReport = dbContext.GetExpiringLicenses(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, pageNo, pageLength, spRecordCount).ToList(); | |
50 | + var lstExpiringSubscriptionReport = dbContext.usp_GetExpiringLicenses(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, pageNo, pageLength, spRecordCount).ToList(); | |
51 | 51 | return Ok(new { ExpiringSubscription = lstExpiringSubscriptionReport, RecordCount = spRecordCount.Value }); |
52 | 52 | |
53 | 53 | } |
... | ... | @@ -65,7 +65,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
65 | 65 | public IHttpActionResult GetSubscriptionCancellationReport(string sFromDate, string sToDate, decimal icStartPrice, decimal icEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId, int pageNo, int pageLength) |
66 | 66 | { |
67 | 67 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
68 | - var lstExpiringSubscriptionReport = dbContext.GetCancelledLicenses(sFromDate, sToDate, icStartPrice, icEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, pageNo, pageLength, spRecordCount).ToList(); | |
68 | + var lstExpiringSubscriptionReport = dbContext.usp_GetCancelledLicenses(sFromDate, sToDate, icStartPrice, icEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, pageNo, pageLength, spRecordCount).ToList(); | |
69 | 69 | return Ok(new { SubscriptionCancel = lstExpiringSubscriptionReport, RecordCount = spRecordCount.Value }); |
70 | 70 | } |
71 | 71 | |
... | ... | @@ -76,7 +76,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
76 | 76 | try |
77 | 77 | { |
78 | 78 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
79 | - var lstNetAdSummaryReport = dbContext.GetNetAdSummaryReport(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, pageNo, pageLength, spRecordCount).ToList(); | |
79 | + var lstNetAdSummaryReport = dbContext.usp_GetNetAdSummaryReport(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, pageNo, pageLength, spRecordCount).ToList(); | |
80 | 80 | return Ok(new { NetAdSubscriptionList = lstNetAdSummaryReport, RecordCount = spRecordCount.Value }); |
81 | 81 | } |
82 | 82 | catch (Exception ex) |
... | ... | @@ -93,7 +93,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
93 | 93 | try |
94 | 94 | { |
95 | 95 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
96 | - var lstSiteLicenseUsageReport = dbContext.GetSiteLicenseUsageReport(sFromDate, sToDate, sAccountNumber, (byte)iEdition, pageNo, pageLength, spRecordCount).ToList(); | |
96 | + var lstSiteLicenseUsageReport = dbContext.usp_GetSiteLicenseUsageReport(sFromDate, sToDate, sAccountNumber, (byte)iEdition, pageNo, pageLength, spRecordCount).ToList(); | |
97 | 97 | return Ok(new { SiteLicenseUsageList = lstSiteLicenseUsageReport, RecordCount = spRecordCount.Value }); |
98 | 98 | } |
99 | 99 | catch (Exception ex) |
... | ... | @@ -109,7 +109,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
109 | 109 | try |
110 | 110 | { |
111 | 111 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
112 | - var lstDiscountReport = dbContext.GetDiscountReport(sFromDate, sToDate, iDiscountCode, sAccountNumber, pageNo, pageLength, spRecordCount).ToList(); | |
112 | + var lstDiscountReport = dbContext.usp_GetDiscountReport(sFromDate, sToDate, iDiscountCode, sAccountNumber, pageNo, pageLength, spRecordCount).ToList(); | |
113 | 113 | return Ok(new { DiscountReportList = lstDiscountReport, RecordCount = spRecordCount.Value }); |
114 | 114 | } |
115 | 115 | catch (Exception ex) |
... | ... | @@ -127,7 +127,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
127 | 127 | { |
128 | 128 | if (sAccountNumber == null) sAccountNumber = string.Empty; |
129 | 129 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
130 | - var lstImageExportReport = dbContext.GetExportedImageDetails(sFromDate, sToDate, sAccountNumber, pageNo, pageLength, spRecordCount).ToList(); | |
130 | + var lstImageExportReport = dbContext.usp_GetExportedImageDetails(sFromDate, sToDate, sAccountNumber, pageNo, pageLength, spRecordCount).ToList(); | |
131 | 131 | return Ok(new { ImageExportList = lstImageExportReport, RecordCount = spRecordCount.Value }); |
132 | 132 | } |
133 | 133 | catch (Exception ex) | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs
... | ... | @@ -154,8 +154,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
154 | 154 | //var spStatus = new System.Data.Objects.ObjectParameter("Status", 0); |
155 | 155 | var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0); |
156 | 156 | //recordCount = (int)spRecordCount.Value; |
157 | - List<GetSearchUsers_Result> Users = dbContext.GetSearchUsers(firstname, lastname, emailid, accountnumber, UserTypeId, AccountTypeId, 1, | |
158 | - pageNo, pageLength, spRecordCount).ToList(); | |
157 | + List<usp_GetSearchUsers_Result> Users = dbContext.usp_GetSearchUsers(firstname, lastname, emailid, accountnumber, UserTypeId, AccountTypeId, 1, pageNo, pageLength, spRecordCount).ToList(); | |
159 | 158 | return Ok(new { UserList = Users, RecordCount = spRecordCount.Value }); |
160 | 159 | } |
161 | 160 | catch(Exception ex) |
... | ... | @@ -295,7 +294,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
295 | 294 | short UserType = (short)UserTypeId; |
296 | 295 | dbContext.Configuration.ProxyCreationEnabled = false; |
297 | 296 | List<GetUserTyeByAccountNumber_Result> userTypelist = new List<GetUserTyeByAccountNumber_Result>(); |
298 | - var userTypeEntity = dbContext.GetUserTyeByAccountNumber((byte)UserType, LicenseId).ToList(); | |
297 | + var userTypeEntity = dbContext.usp_GetUserTyeByAccountNumber((byte)UserType, LicenseId).ToList(); | |
299 | 298 | userTypelist = userTypeEntity.Select(l => new GetUserTyeByAccountNumber_Result() { Id = l.Id, Title = l.Title }).ToList(); |
300 | 299 | if (userTypelist != null && userTypelist.Count==0) |
301 | 300 | { |
... | ... | @@ -379,7 +378,7 @@ namespace AIAHTML5.ADMIN.API.Controllers |
379 | 378 | public IHttpActionResult GetBlockedUserByAccNoAndType(int UserTypeId, int LicenseId) |
380 | 379 | { |
381 | 380 | dbContext.Configuration.ProxyCreationEnabled = false; |
382 | - List<GetBlockedUserByAccNoAndType_Result> Users = dbContext.GetBlockedUserByAccNoAndType((byte)UserTypeId, LicenseId).ToList(); | |
381 | + List<usp_GetBlockedUserByAccNoAndType_Result> Users = dbContext.usp_GetBlockedUserByAccNoAndType((byte)UserTypeId, LicenseId).ToList(); | |
383 | 382 | return Ok(Users); |
384 | 383 | } |
385 | 384 | [Route("UnblockedUser")] | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.Context.cs
... | ... | @@ -3930,5 +3930,1036 @@ namespace AIAHTML5.ADMIN.API.Entity |
3930 | 3930 | |
3931 | 3931 | return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_CheckSubscriptionForLicense", idParameter, status); |
3932 | 3932 | } |
3933 | + | |
3934 | + public virtual int usp_UpdateAiaUserPassword(Nullable<int> id, string newPassword, ObjectParameter status) | |
3935 | + { | |
3936 | + var idParameter = id.HasValue ? | |
3937 | + new ObjectParameter("Id", id) : | |
3938 | + new ObjectParameter("Id", typeof(int)); | |
3939 | + | |
3940 | + var newPasswordParameter = newPassword != null ? | |
3941 | + new ObjectParameter("NewPassword", newPassword) : | |
3942 | + new ObjectParameter("NewPassword", typeof(string)); | |
3943 | + | |
3944 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_UpdateAiaUserPassword", idParameter, newPasswordParameter, status); | |
3945 | + } | |
3946 | + | |
3947 | + public virtual int usp_UpdateUserProfile(Nullable<int> id, string firstName, string lastName, string emailId, ObjectParameter status) | |
3948 | + { | |
3949 | + var idParameter = id.HasValue ? | |
3950 | + new ObjectParameter("Id", id) : | |
3951 | + new ObjectParameter("Id", typeof(int)); | |
3952 | + | |
3953 | + var firstNameParameter = firstName != null ? | |
3954 | + new ObjectParameter("FirstName", firstName) : | |
3955 | + new ObjectParameter("FirstName", typeof(string)); | |
3956 | + | |
3957 | + var lastNameParameter = lastName != null ? | |
3958 | + new ObjectParameter("LastName", lastName) : | |
3959 | + new ObjectParameter("LastName", typeof(string)); | |
3960 | + | |
3961 | + var emailIdParameter = emailId != null ? | |
3962 | + new ObjectParameter("EmailId", emailId) : | |
3963 | + new ObjectParameter("EmailId", typeof(string)); | |
3964 | + | |
3965 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_UpdateUserProfile", idParameter, firstNameParameter, lastNameParameter, emailIdParameter, status); | |
3966 | + } | |
3967 | + | |
3968 | + public virtual ObjectResult<usp_EC_GetAccountTypeList_Result> usp_EC_GetAccountTypeList() | |
3969 | + { | |
3970 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_EC_GetAccountTypeList_Result>("usp_EC_GetAccountTypeList"); | |
3971 | + } | |
3972 | + | |
3973 | + public virtual ObjectResult<string> usp_DeleteLicense(Nullable<int> iLicenseId) | |
3974 | + { | |
3975 | + var iLicenseIdParameter = iLicenseId.HasValue ? | |
3976 | + new ObjectParameter("iLicenseId", iLicenseId) : | |
3977 | + new ObjectParameter("iLicenseId", typeof(int)); | |
3978 | + | |
3979 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("usp_DeleteLicense", iLicenseIdParameter); | |
3980 | + } | |
3981 | + | |
3982 | + public virtual ObjectResult<usp_GetModuleStatusByLicenseId_Result> usp_GetModuleStatusByLicenseId(Nullable<int> iLicenseId) | |
3983 | + { | |
3984 | + var iLicenseIdParameter = iLicenseId.HasValue ? | |
3985 | + new ObjectParameter("iLicenseId", iLicenseId) : | |
3986 | + new ObjectParameter("iLicenseId", typeof(int)); | |
3987 | + | |
3988 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetModuleStatusByLicenseId_Result>("usp_GetModuleStatusByLicenseId", iLicenseIdParameter); | |
3989 | + } | |
3990 | + | |
3991 | + public virtual ObjectResult<usp_GetSiteAccountAdmin_Result> usp_GetSiteAccountAdmin(string accountNumber) | |
3992 | + { | |
3993 | + var accountNumberParameter = accountNumber != null ? | |
3994 | + new ObjectParameter("AccountNumber", accountNumber) : | |
3995 | + new ObjectParameter("AccountNumber", typeof(string)); | |
3996 | + | |
3997 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetSiteAccountAdmin_Result>("usp_GetSiteAccountAdmin", accountNumberParameter); | |
3998 | + } | |
3999 | + | |
4000 | + public virtual ObjectResult<usp_GetSiteAccountSites_Result> usp_GetSiteAccountSites(string strAccountNumber, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4001 | + { | |
4002 | + var strAccountNumberParameter = strAccountNumber != null ? | |
4003 | + new ObjectParameter("strAccountNumber", strAccountNumber) : | |
4004 | + new ObjectParameter("strAccountNumber", typeof(string)); | |
4005 | + | |
4006 | + var pageNoParameter = pageNo.HasValue ? | |
4007 | + new ObjectParameter("pageNo", pageNo) : | |
4008 | + new ObjectParameter("pageNo", typeof(int)); | |
4009 | + | |
4010 | + var pageLengthParameter = pageLength.HasValue ? | |
4011 | + new ObjectParameter("pageLength", pageLength) : | |
4012 | + new ObjectParameter("pageLength", typeof(int)); | |
4013 | + | |
4014 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetSiteAccountSites_Result>("usp_GetSiteAccountSites", strAccountNumberParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4015 | + } | |
4016 | + | |
4017 | + public virtual ObjectResult<usp_GetSiteAccoutDetail_Result> usp_GetSiteAccoutDetail(string strAccountNumber, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4018 | + { | |
4019 | + var strAccountNumberParameter = strAccountNumber != null ? | |
4020 | + new ObjectParameter("strAccountNumber", strAccountNumber) : | |
4021 | + new ObjectParameter("strAccountNumber", typeof(string)); | |
4022 | + | |
4023 | + var pageNoParameter = pageNo.HasValue ? | |
4024 | + new ObjectParameter("pageNo", pageNo) : | |
4025 | + new ObjectParameter("pageNo", typeof(int)); | |
4026 | + | |
4027 | + var pageLengthParameter = pageLength.HasValue ? | |
4028 | + new ObjectParameter("pageLength", pageLength) : | |
4029 | + new ObjectParameter("pageLength", typeof(int)); | |
4030 | + | |
4031 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetSiteAccoutDetail_Result>("usp_GetSiteAccoutDetail", strAccountNumberParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4032 | + } | |
4033 | + | |
4034 | + public virtual ObjectResult<string> usp_InsertNewLicenseAccount(string sAccountNumber, string sLicenseeFname, string sLicenseeLname, Nullable<byte> iLicenseTypeId, Nullable<byte> iAccountTypeId, string sInstitutionName, string sAddress1, string sAddress2, string sCity, string sZip, Nullable<int> iStateId, Nullable<int> iCountryId, string sPhone, string sEmailId, Nullable<int> iTotalLogins, string sStartDate, string sEndDate, string sMasterIP, string sEditionList, Nullable<decimal> iPrice, string sProductKey, string sSiteIPTo, string sSiteMasterIPTo, Nullable<int> iNoofImages) | |
4035 | + { | |
4036 | + var sAccountNumberParameter = sAccountNumber != null ? | |
4037 | + new ObjectParameter("sAccountNumber", sAccountNumber) : | |
4038 | + new ObjectParameter("sAccountNumber", typeof(string)); | |
4039 | + | |
4040 | + var sLicenseeFnameParameter = sLicenseeFname != null ? | |
4041 | + new ObjectParameter("sLicenseeFname", sLicenseeFname) : | |
4042 | + new ObjectParameter("sLicenseeFname", typeof(string)); | |
4043 | + | |
4044 | + var sLicenseeLnameParameter = sLicenseeLname != null ? | |
4045 | + new ObjectParameter("sLicenseeLname", sLicenseeLname) : | |
4046 | + new ObjectParameter("sLicenseeLname", typeof(string)); | |
4047 | + | |
4048 | + var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ? | |
4049 | + new ObjectParameter("iLicenseTypeId", iLicenseTypeId) : | |
4050 | + new ObjectParameter("iLicenseTypeId", typeof(byte)); | |
4051 | + | |
4052 | + var iAccountTypeIdParameter = iAccountTypeId.HasValue ? | |
4053 | + new ObjectParameter("iAccountTypeId", iAccountTypeId) : | |
4054 | + new ObjectParameter("iAccountTypeId", typeof(byte)); | |
4055 | + | |
4056 | + var sInstitutionNameParameter = sInstitutionName != null ? | |
4057 | + new ObjectParameter("sInstitutionName", sInstitutionName) : | |
4058 | + new ObjectParameter("sInstitutionName", typeof(string)); | |
4059 | + | |
4060 | + var sAddress1Parameter = sAddress1 != null ? | |
4061 | + new ObjectParameter("sAddress1", sAddress1) : | |
4062 | + new ObjectParameter("sAddress1", typeof(string)); | |
4063 | + | |
4064 | + var sAddress2Parameter = sAddress2 != null ? | |
4065 | + new ObjectParameter("sAddress2", sAddress2) : | |
4066 | + new ObjectParameter("sAddress2", typeof(string)); | |
4067 | + | |
4068 | + var sCityParameter = sCity != null ? | |
4069 | + new ObjectParameter("sCity", sCity) : | |
4070 | + new ObjectParameter("sCity", typeof(string)); | |
4071 | + | |
4072 | + var sZipParameter = sZip != null ? | |
4073 | + new ObjectParameter("sZip", sZip) : | |
4074 | + new ObjectParameter("sZip", typeof(string)); | |
4075 | + | |
4076 | + var iStateIdParameter = iStateId.HasValue ? | |
4077 | + new ObjectParameter("iStateId", iStateId) : | |
4078 | + new ObjectParameter("iStateId", typeof(int)); | |
4079 | + | |
4080 | + var iCountryIdParameter = iCountryId.HasValue ? | |
4081 | + new ObjectParameter("iCountryId", iCountryId) : | |
4082 | + new ObjectParameter("iCountryId", typeof(int)); | |
4083 | + | |
4084 | + var sPhoneParameter = sPhone != null ? | |
4085 | + new ObjectParameter("sPhone", sPhone) : | |
4086 | + new ObjectParameter("sPhone", typeof(string)); | |
4087 | + | |
4088 | + var sEmailIdParameter = sEmailId != null ? | |
4089 | + new ObjectParameter("sEmailId", sEmailId) : | |
4090 | + new ObjectParameter("sEmailId", typeof(string)); | |
4091 | + | |
4092 | + var iTotalLoginsParameter = iTotalLogins.HasValue ? | |
4093 | + new ObjectParameter("iTotalLogins", iTotalLogins) : | |
4094 | + new ObjectParameter("iTotalLogins", typeof(int)); | |
4095 | + | |
4096 | + var sStartDateParameter = sStartDate != null ? | |
4097 | + new ObjectParameter("sStartDate", sStartDate) : | |
4098 | + new ObjectParameter("sStartDate", typeof(string)); | |
4099 | + | |
4100 | + var sEndDateParameter = sEndDate != null ? | |
4101 | + new ObjectParameter("sEndDate", sEndDate) : | |
4102 | + new ObjectParameter("sEndDate", typeof(string)); | |
4103 | + | |
4104 | + var sMasterIPParameter = sMasterIP != null ? | |
4105 | + new ObjectParameter("sMasterIP", sMasterIP) : | |
4106 | + new ObjectParameter("sMasterIP", typeof(string)); | |
4107 | + | |
4108 | + var sEditionListParameter = sEditionList != null ? | |
4109 | + new ObjectParameter("sEditionList", sEditionList) : | |
4110 | + new ObjectParameter("sEditionList", typeof(string)); | |
4111 | + | |
4112 | + var iPriceParameter = iPrice.HasValue ? | |
4113 | + new ObjectParameter("iPrice", iPrice) : | |
4114 | + new ObjectParameter("iPrice", typeof(decimal)); | |
4115 | + | |
4116 | + var sProductKeyParameter = sProductKey != null ? | |
4117 | + new ObjectParameter("sProductKey", sProductKey) : | |
4118 | + new ObjectParameter("sProductKey", typeof(string)); | |
4119 | + | |
4120 | + var sSiteIPToParameter = sSiteIPTo != null ? | |
4121 | + new ObjectParameter("sSiteIPTo", sSiteIPTo) : | |
4122 | + new ObjectParameter("sSiteIPTo", typeof(string)); | |
4123 | + | |
4124 | + var sSiteMasterIPToParameter = sSiteMasterIPTo != null ? | |
4125 | + new ObjectParameter("sSiteMasterIPTo", sSiteMasterIPTo) : | |
4126 | + new ObjectParameter("sSiteMasterIPTo", typeof(string)); | |
4127 | + | |
4128 | + var iNoofImagesParameter = iNoofImages.HasValue ? | |
4129 | + new ObjectParameter("iNoofImages", iNoofImages) : | |
4130 | + new ObjectParameter("iNoofImages", typeof(int)); | |
4131 | + | |
4132 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("usp_InsertNewLicenseAccount", sAccountNumberParameter, sLicenseeFnameParameter, sLicenseeLnameParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sInstitutionNameParameter, sAddress1Parameter, sAddress2Parameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sEmailIdParameter, iTotalLoginsParameter, sStartDateParameter, sEndDateParameter, sMasterIPParameter, sEditionListParameter, iPriceParameter, sProductKeyParameter, sSiteIPToParameter, sSiteMasterIPToParameter, iNoofImagesParameter); | |
4133 | + } | |
4134 | + | |
4135 | + public virtual ObjectResult<string> usp_InsertSingleLicenseAccount(string sAccountNumber, string sLicenseeFname, string sLicenseeLname, Nullable<byte> iAccountTypeId, string sInstitutionName, string sAddress1, string sAddress2, string sCity, string sZip, Nullable<int> iStateId, Nullable<int> iCountryId, string sPhone, string sEmailId, Nullable<int> iTotalLogins, string sStartDate, string sEndDate, string sEditionList, Nullable<decimal> iPrice, string sProductKey, string sLoginId, string sPassword, Nullable<byte> iSecurityQuesId, string sSecurityAnswer, Nullable<int> iCreatorId, Nullable<int> iNoofImages) | |
4136 | + { | |
4137 | + var sAccountNumberParameter = sAccountNumber != null ? | |
4138 | + new ObjectParameter("sAccountNumber", sAccountNumber) : | |
4139 | + new ObjectParameter("sAccountNumber", typeof(string)); | |
4140 | + | |
4141 | + var sLicenseeFnameParameter = sLicenseeFname != null ? | |
4142 | + new ObjectParameter("sLicenseeFname", sLicenseeFname) : | |
4143 | + new ObjectParameter("sLicenseeFname", typeof(string)); | |
4144 | + | |
4145 | + var sLicenseeLnameParameter = sLicenseeLname != null ? | |
4146 | + new ObjectParameter("sLicenseeLname", sLicenseeLname) : | |
4147 | + new ObjectParameter("sLicenseeLname", typeof(string)); | |
4148 | + | |
4149 | + var iAccountTypeIdParameter = iAccountTypeId.HasValue ? | |
4150 | + new ObjectParameter("iAccountTypeId", iAccountTypeId) : | |
4151 | + new ObjectParameter("iAccountTypeId", typeof(byte)); | |
4152 | + | |
4153 | + var sInstitutionNameParameter = sInstitutionName != null ? | |
4154 | + new ObjectParameter("sInstitutionName", sInstitutionName) : | |
4155 | + new ObjectParameter("sInstitutionName", typeof(string)); | |
4156 | + | |
4157 | + var sAddress1Parameter = sAddress1 != null ? | |
4158 | + new ObjectParameter("sAddress1", sAddress1) : | |
4159 | + new ObjectParameter("sAddress1", typeof(string)); | |
4160 | + | |
4161 | + var sAddress2Parameter = sAddress2 != null ? | |
4162 | + new ObjectParameter("sAddress2", sAddress2) : | |
4163 | + new ObjectParameter("sAddress2", typeof(string)); | |
4164 | + | |
4165 | + var sCityParameter = sCity != null ? | |
4166 | + new ObjectParameter("sCity", sCity) : | |
4167 | + new ObjectParameter("sCity", typeof(string)); | |
4168 | + | |
4169 | + var sZipParameter = sZip != null ? | |
4170 | + new ObjectParameter("sZip", sZip) : | |
4171 | + new ObjectParameter("sZip", typeof(string)); | |
4172 | + | |
4173 | + var iStateIdParameter = iStateId.HasValue ? | |
4174 | + new ObjectParameter("iStateId", iStateId) : | |
4175 | + new ObjectParameter("iStateId", typeof(int)); | |
4176 | + | |
4177 | + var iCountryIdParameter = iCountryId.HasValue ? | |
4178 | + new ObjectParameter("iCountryId", iCountryId) : | |
4179 | + new ObjectParameter("iCountryId", typeof(int)); | |
4180 | + | |
4181 | + var sPhoneParameter = sPhone != null ? | |
4182 | + new ObjectParameter("sPhone", sPhone) : | |
4183 | + new ObjectParameter("sPhone", typeof(string)); | |
4184 | + | |
4185 | + var sEmailIdParameter = sEmailId != null ? | |
4186 | + new ObjectParameter("sEmailId", sEmailId) : | |
4187 | + new ObjectParameter("sEmailId", typeof(string)); | |
4188 | + | |
4189 | + var iTotalLoginsParameter = iTotalLogins.HasValue ? | |
4190 | + new ObjectParameter("iTotalLogins", iTotalLogins) : | |
4191 | + new ObjectParameter("iTotalLogins", typeof(int)); | |
4192 | + | |
4193 | + var sStartDateParameter = sStartDate != null ? | |
4194 | + new ObjectParameter("sStartDate", sStartDate) : | |
4195 | + new ObjectParameter("sStartDate", typeof(string)); | |
4196 | + | |
4197 | + var sEndDateParameter = sEndDate != null ? | |
4198 | + new ObjectParameter("sEndDate", sEndDate) : | |
4199 | + new ObjectParameter("sEndDate", typeof(string)); | |
4200 | + | |
4201 | + var sEditionListParameter = sEditionList != null ? | |
4202 | + new ObjectParameter("sEditionList", sEditionList) : | |
4203 | + new ObjectParameter("sEditionList", typeof(string)); | |
4204 | + | |
4205 | + var iPriceParameter = iPrice.HasValue ? | |
4206 | + new ObjectParameter("iPrice", iPrice) : | |
4207 | + new ObjectParameter("iPrice", typeof(decimal)); | |
4208 | + | |
4209 | + var sProductKeyParameter = sProductKey != null ? | |
4210 | + new ObjectParameter("sProductKey", sProductKey) : | |
4211 | + new ObjectParameter("sProductKey", typeof(string)); | |
4212 | + | |
4213 | + var sLoginIdParameter = sLoginId != null ? | |
4214 | + new ObjectParameter("sLoginId", sLoginId) : | |
4215 | + new ObjectParameter("sLoginId", typeof(string)); | |
4216 | + | |
4217 | + var sPasswordParameter = sPassword != null ? | |
4218 | + new ObjectParameter("sPassword", sPassword) : | |
4219 | + new ObjectParameter("sPassword", typeof(string)); | |
4220 | + | |
4221 | + var iSecurityQuesIdParameter = iSecurityQuesId.HasValue ? | |
4222 | + new ObjectParameter("iSecurityQuesId", iSecurityQuesId) : | |
4223 | + new ObjectParameter("iSecurityQuesId", typeof(byte)); | |
4224 | + | |
4225 | + var sSecurityAnswerParameter = sSecurityAnswer != null ? | |
4226 | + new ObjectParameter("sSecurityAnswer", sSecurityAnswer) : | |
4227 | + new ObjectParameter("sSecurityAnswer", typeof(string)); | |
4228 | + | |
4229 | + var iCreatorIdParameter = iCreatorId.HasValue ? | |
4230 | + new ObjectParameter("iCreatorId", iCreatorId) : | |
4231 | + new ObjectParameter("iCreatorId", typeof(int)); | |
4232 | + | |
4233 | + var iNoofImagesParameter = iNoofImages.HasValue ? | |
4234 | + new ObjectParameter("iNoofImages", iNoofImages) : | |
4235 | + new ObjectParameter("iNoofImages", typeof(int)); | |
4236 | + | |
4237 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("usp_InsertSingleLicenseAccount", sAccountNumberParameter, sLicenseeFnameParameter, sLicenseeLnameParameter, iAccountTypeIdParameter, sInstitutionNameParameter, sAddress1Parameter, sAddress2Parameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sEmailIdParameter, iTotalLoginsParameter, sStartDateParameter, sEndDateParameter, sEditionListParameter, iPriceParameter, sProductKeyParameter, sLoginIdParameter, sPasswordParameter, iSecurityQuesIdParameter, sSecurityAnswerParameter, iCreatorIdParameter, iNoofImagesParameter); | |
4238 | + } | |
4239 | + | |
4240 | + public virtual ObjectResult<string> usp_InsertTestLicenseAccount(string sAccountNumber, string sLicenseeFname, string sLicenseeLname, string sLoginId, string sPassword, string sEmailId, Nullable<byte> iAccountTypeId, Nullable<byte> iEditionId, string sAddress, string sCity, string sZip, Nullable<int> iStateId, Nullable<int> iCountryId, string sPhone, string sStartDate, string sEndDate, Nullable<int> iCreatorId, Nullable<int> iNoofImages) | |
4241 | + { | |
4242 | + var sAccountNumberParameter = sAccountNumber != null ? | |
4243 | + new ObjectParameter("sAccountNumber", sAccountNumber) : | |
4244 | + new ObjectParameter("sAccountNumber", typeof(string)); | |
4245 | + | |
4246 | + var sLicenseeFnameParameter = sLicenseeFname != null ? | |
4247 | + new ObjectParameter("sLicenseeFname", sLicenseeFname) : | |
4248 | + new ObjectParameter("sLicenseeFname", typeof(string)); | |
4249 | + | |
4250 | + var sLicenseeLnameParameter = sLicenseeLname != null ? | |
4251 | + new ObjectParameter("sLicenseeLname", sLicenseeLname) : | |
4252 | + new ObjectParameter("sLicenseeLname", typeof(string)); | |
4253 | + | |
4254 | + var sLoginIdParameter = sLoginId != null ? | |
4255 | + new ObjectParameter("sLoginId", sLoginId) : | |
4256 | + new ObjectParameter("sLoginId", typeof(string)); | |
4257 | + | |
4258 | + var sPasswordParameter = sPassword != null ? | |
4259 | + new ObjectParameter("sPassword", sPassword) : | |
4260 | + new ObjectParameter("sPassword", typeof(string)); | |
4261 | + | |
4262 | + var sEmailIdParameter = sEmailId != null ? | |
4263 | + new ObjectParameter("sEmailId", sEmailId) : | |
4264 | + new ObjectParameter("sEmailId", typeof(string)); | |
4265 | + | |
4266 | + var iAccountTypeIdParameter = iAccountTypeId.HasValue ? | |
4267 | + new ObjectParameter("iAccountTypeId", iAccountTypeId) : | |
4268 | + new ObjectParameter("iAccountTypeId", typeof(byte)); | |
4269 | + | |
4270 | + var iEditionIdParameter = iEditionId.HasValue ? | |
4271 | + new ObjectParameter("iEditionId", iEditionId) : | |
4272 | + new ObjectParameter("iEditionId", typeof(byte)); | |
4273 | + | |
4274 | + var sAddressParameter = sAddress != null ? | |
4275 | + new ObjectParameter("sAddress", sAddress) : | |
4276 | + new ObjectParameter("sAddress", typeof(string)); | |
4277 | + | |
4278 | + var sCityParameter = sCity != null ? | |
4279 | + new ObjectParameter("sCity", sCity) : | |
4280 | + new ObjectParameter("sCity", typeof(string)); | |
4281 | + | |
4282 | + var sZipParameter = sZip != null ? | |
4283 | + new ObjectParameter("sZip", sZip) : | |
4284 | + new ObjectParameter("sZip", typeof(string)); | |
4285 | + | |
4286 | + var iStateIdParameter = iStateId.HasValue ? | |
4287 | + new ObjectParameter("iStateId", iStateId) : | |
4288 | + new ObjectParameter("iStateId", typeof(int)); | |
4289 | + | |
4290 | + var iCountryIdParameter = iCountryId.HasValue ? | |
4291 | + new ObjectParameter("iCountryId", iCountryId) : | |
4292 | + new ObjectParameter("iCountryId", typeof(int)); | |
4293 | + | |
4294 | + var sPhoneParameter = sPhone != null ? | |
4295 | + new ObjectParameter("sPhone", sPhone) : | |
4296 | + new ObjectParameter("sPhone", typeof(string)); | |
4297 | + | |
4298 | + var sStartDateParameter = sStartDate != null ? | |
4299 | + new ObjectParameter("sStartDate", sStartDate) : | |
4300 | + new ObjectParameter("sStartDate", typeof(string)); | |
4301 | + | |
4302 | + var sEndDateParameter = sEndDate != null ? | |
4303 | + new ObjectParameter("sEndDate", sEndDate) : | |
4304 | + new ObjectParameter("sEndDate", typeof(string)); | |
4305 | + | |
4306 | + var iCreatorIdParameter = iCreatorId.HasValue ? | |
4307 | + new ObjectParameter("iCreatorId", iCreatorId) : | |
4308 | + new ObjectParameter("iCreatorId", typeof(int)); | |
4309 | + | |
4310 | + var iNoofImagesParameter = iNoofImages.HasValue ? | |
4311 | + new ObjectParameter("iNoofImages", iNoofImages) : | |
4312 | + new ObjectParameter("iNoofImages", typeof(int)); | |
4313 | + | |
4314 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("usp_InsertTestLicenseAccount", sAccountNumberParameter, sLicenseeFnameParameter, sLicenseeLnameParameter, sLoginIdParameter, sPasswordParameter, sEmailIdParameter, iAccountTypeIdParameter, iEditionIdParameter, sAddressParameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sStartDateParameter, sEndDateParameter, iCreatorIdParameter, iNoofImagesParameter); | |
4315 | + } | |
4316 | + | |
4317 | + public virtual ObjectResult<string> usp_UpdateLicenseAccount(Nullable<int> iLicenseId, string sLicenseeFname, string sLicenseeLname, Nullable<byte> iLicenseTypeId, Nullable<byte> iAccountTypeId, string sInstitutionName, string sAddress1, string sAddress2, string sCity, string sZip, Nullable<int> iStateId, Nullable<int> iCountryId, string sPhone, string sEmailId, Nullable<byte> iIsActive, Nullable<int> iTotalLogins, Nullable<byte> iIsRennew, string sStartDate, string sEndDate, string sRenewDate, string sMasterIP, string sEditionList, Nullable<decimal> iPrice, string sProductKey, string sSiteIPTo, string sSiteMasterIPTo, Nullable<int> iNoofImages) | |
4318 | + { | |
4319 | + var iLicenseIdParameter = iLicenseId.HasValue ? | |
4320 | + new ObjectParameter("iLicenseId", iLicenseId) : | |
4321 | + new ObjectParameter("iLicenseId", typeof(int)); | |
4322 | + | |
4323 | + var sLicenseeFnameParameter = sLicenseeFname != null ? | |
4324 | + new ObjectParameter("sLicenseeFname", sLicenseeFname) : | |
4325 | + new ObjectParameter("sLicenseeFname", typeof(string)); | |
4326 | + | |
4327 | + var sLicenseeLnameParameter = sLicenseeLname != null ? | |
4328 | + new ObjectParameter("sLicenseeLname", sLicenseeLname) : | |
4329 | + new ObjectParameter("sLicenseeLname", typeof(string)); | |
4330 | + | |
4331 | + var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ? | |
4332 | + new ObjectParameter("iLicenseTypeId", iLicenseTypeId) : | |
4333 | + new ObjectParameter("iLicenseTypeId", typeof(byte)); | |
4334 | + | |
4335 | + var iAccountTypeIdParameter = iAccountTypeId.HasValue ? | |
4336 | + new ObjectParameter("iAccountTypeId", iAccountTypeId) : | |
4337 | + new ObjectParameter("iAccountTypeId", typeof(byte)); | |
4338 | + | |
4339 | + var sInstitutionNameParameter = sInstitutionName != null ? | |
4340 | + new ObjectParameter("sInstitutionName", sInstitutionName) : | |
4341 | + new ObjectParameter("sInstitutionName", typeof(string)); | |
4342 | + | |
4343 | + var sAddress1Parameter = sAddress1 != null ? | |
4344 | + new ObjectParameter("sAddress1", sAddress1) : | |
4345 | + new ObjectParameter("sAddress1", typeof(string)); | |
4346 | + | |
4347 | + var sAddress2Parameter = sAddress2 != null ? | |
4348 | + new ObjectParameter("sAddress2", sAddress2) : | |
4349 | + new ObjectParameter("sAddress2", typeof(string)); | |
4350 | + | |
4351 | + var sCityParameter = sCity != null ? | |
4352 | + new ObjectParameter("sCity", sCity) : | |
4353 | + new ObjectParameter("sCity", typeof(string)); | |
4354 | + | |
4355 | + var sZipParameter = sZip != null ? | |
4356 | + new ObjectParameter("sZip", sZip) : | |
4357 | + new ObjectParameter("sZip", typeof(string)); | |
4358 | + | |
4359 | + var iStateIdParameter = iStateId.HasValue ? | |
4360 | + new ObjectParameter("iStateId", iStateId) : | |
4361 | + new ObjectParameter("iStateId", typeof(int)); | |
4362 | + | |
4363 | + var iCountryIdParameter = iCountryId.HasValue ? | |
4364 | + new ObjectParameter("iCountryId", iCountryId) : | |
4365 | + new ObjectParameter("iCountryId", typeof(int)); | |
4366 | + | |
4367 | + var sPhoneParameter = sPhone != null ? | |
4368 | + new ObjectParameter("sPhone", sPhone) : | |
4369 | + new ObjectParameter("sPhone", typeof(string)); | |
4370 | + | |
4371 | + var sEmailIdParameter = sEmailId != null ? | |
4372 | + new ObjectParameter("sEmailId", sEmailId) : | |
4373 | + new ObjectParameter("sEmailId", typeof(string)); | |
4374 | + | |
4375 | + var iIsActiveParameter = iIsActive.HasValue ? | |
4376 | + new ObjectParameter("iIsActive", iIsActive) : | |
4377 | + new ObjectParameter("iIsActive", typeof(byte)); | |
4378 | + | |
4379 | + var iTotalLoginsParameter = iTotalLogins.HasValue ? | |
4380 | + new ObjectParameter("iTotalLogins", iTotalLogins) : | |
4381 | + new ObjectParameter("iTotalLogins", typeof(int)); | |
4382 | + | |
4383 | + var iIsRennewParameter = iIsRennew.HasValue ? | |
4384 | + new ObjectParameter("iIsRennew", iIsRennew) : | |
4385 | + new ObjectParameter("iIsRennew", typeof(byte)); | |
4386 | + | |
4387 | + var sStartDateParameter = sStartDate != null ? | |
4388 | + new ObjectParameter("sStartDate", sStartDate) : | |
4389 | + new ObjectParameter("sStartDate", typeof(string)); | |
4390 | + | |
4391 | + var sEndDateParameter = sEndDate != null ? | |
4392 | + new ObjectParameter("sEndDate", sEndDate) : | |
4393 | + new ObjectParameter("sEndDate", typeof(string)); | |
4394 | + | |
4395 | + var sRenewDateParameter = sRenewDate != null ? | |
4396 | + new ObjectParameter("sRenewDate", sRenewDate) : | |
4397 | + new ObjectParameter("sRenewDate", typeof(string)); | |
4398 | + | |
4399 | + var sMasterIPParameter = sMasterIP != null ? | |
4400 | + new ObjectParameter("sMasterIP", sMasterIP) : | |
4401 | + new ObjectParameter("sMasterIP", typeof(string)); | |
4402 | + | |
4403 | + var sEditionListParameter = sEditionList != null ? | |
4404 | + new ObjectParameter("sEditionList", sEditionList) : | |
4405 | + new ObjectParameter("sEditionList", typeof(string)); | |
4406 | + | |
4407 | + var iPriceParameter = iPrice.HasValue ? | |
4408 | + new ObjectParameter("iPrice", iPrice) : | |
4409 | + new ObjectParameter("iPrice", typeof(decimal)); | |
4410 | + | |
4411 | + var sProductKeyParameter = sProductKey != null ? | |
4412 | + new ObjectParameter("sProductKey", sProductKey) : | |
4413 | + new ObjectParameter("sProductKey", typeof(string)); | |
4414 | + | |
4415 | + var sSiteIPToParameter = sSiteIPTo != null ? | |
4416 | + new ObjectParameter("sSiteIPTo", sSiteIPTo) : | |
4417 | + new ObjectParameter("sSiteIPTo", typeof(string)); | |
4418 | + | |
4419 | + var sSiteMasterIPToParameter = sSiteMasterIPTo != null ? | |
4420 | + new ObjectParameter("sSiteMasterIPTo", sSiteMasterIPTo) : | |
4421 | + new ObjectParameter("sSiteMasterIPTo", typeof(string)); | |
4422 | + | |
4423 | + var iNoofImagesParameter = iNoofImages.HasValue ? | |
4424 | + new ObjectParameter("iNoofImages", iNoofImages) : | |
4425 | + new ObjectParameter("iNoofImages", typeof(int)); | |
4426 | + | |
4427 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("usp_UpdateLicenseAccount", iLicenseIdParameter, sLicenseeFnameParameter, sLicenseeLnameParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sInstitutionNameParameter, sAddress1Parameter, sAddress2Parameter, sCityParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sPhoneParameter, sEmailIdParameter, iIsActiveParameter, iTotalLoginsParameter, iIsRennewParameter, sStartDateParameter, sEndDateParameter, sRenewDateParameter, sMasterIPParameter, sEditionListParameter, iPriceParameter, sProductKeyParameter, sSiteIPToParameter, sSiteMasterIPToParameter, iNoofImagesParameter); | |
4428 | + } | |
4429 | + | |
4430 | + public virtual ObjectResult<usp_GetDiscountCodes_Result> usp_GetDiscountCodes(string sDiscountCode, string sStartDate, string sEndDate, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4431 | + { | |
4432 | + var sDiscountCodeParameter = sDiscountCode != null ? | |
4433 | + new ObjectParameter("sDiscountCode", sDiscountCode) : | |
4434 | + new ObjectParameter("sDiscountCode", typeof(string)); | |
4435 | + | |
4436 | + var sStartDateParameter = sStartDate != null ? | |
4437 | + new ObjectParameter("sStartDate", sStartDate) : | |
4438 | + new ObjectParameter("sStartDate", typeof(string)); | |
4439 | + | |
4440 | + var sEndDateParameter = sEndDate != null ? | |
4441 | + new ObjectParameter("sEndDate", sEndDate) : | |
4442 | + new ObjectParameter("sEndDate", typeof(string)); | |
4443 | + | |
4444 | + var pageNoParameter = pageNo.HasValue ? | |
4445 | + new ObjectParameter("pageNo", pageNo) : | |
4446 | + new ObjectParameter("pageNo", typeof(int)); | |
4447 | + | |
4448 | + var pageLengthParameter = pageLength.HasValue ? | |
4449 | + new ObjectParameter("pageLength", pageLength) : | |
4450 | + new ObjectParameter("pageLength", typeof(int)); | |
4451 | + | |
4452 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetDiscountCodes_Result>("usp_GetDiscountCodes", sDiscountCodeParameter, sStartDateParameter, sEndDateParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4453 | + } | |
4454 | + | |
4455 | + public virtual ObjectResult<string> usp_InsertNewDiscount(Nullable<decimal> dPercentage, string sStartDate, string sEndDate, string sDiscountCode) | |
4456 | + { | |
4457 | + var dPercentageParameter = dPercentage.HasValue ? | |
4458 | + new ObjectParameter("dPercentage", dPercentage) : | |
4459 | + new ObjectParameter("dPercentage", typeof(decimal)); | |
4460 | + | |
4461 | + var sStartDateParameter = sStartDate != null ? | |
4462 | + new ObjectParameter("sStartDate", sStartDate) : | |
4463 | + new ObjectParameter("sStartDate", typeof(string)); | |
4464 | + | |
4465 | + var sEndDateParameter = sEndDate != null ? | |
4466 | + new ObjectParameter("sEndDate", sEndDate) : | |
4467 | + new ObjectParameter("sEndDate", typeof(string)); | |
4468 | + | |
4469 | + var sDiscountCodeParameter = sDiscountCode != null ? | |
4470 | + new ObjectParameter("sDiscountCode", sDiscountCode) : | |
4471 | + new ObjectParameter("sDiscountCode", typeof(string)); | |
4472 | + | |
4473 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("usp_InsertNewDiscount", dPercentageParameter, sStartDateParameter, sEndDateParameter, sDiscountCodeParameter); | |
4474 | + } | |
4475 | + | |
4476 | + public virtual ObjectResult<string> usp_UpdateDiscount(Nullable<int> iDiscountId, Nullable<decimal> dPercentage, string sStartDate, string sEndDate, Nullable<byte> iActive, string sDiscountCode) | |
4477 | + { | |
4478 | + var iDiscountIdParameter = iDiscountId.HasValue ? | |
4479 | + new ObjectParameter("iDiscountId", iDiscountId) : | |
4480 | + new ObjectParameter("iDiscountId", typeof(int)); | |
4481 | + | |
4482 | + var dPercentageParameter = dPercentage.HasValue ? | |
4483 | + new ObjectParameter("dPercentage", dPercentage) : | |
4484 | + new ObjectParameter("dPercentage", typeof(decimal)); | |
4485 | + | |
4486 | + var sStartDateParameter = sStartDate != null ? | |
4487 | + new ObjectParameter("sStartDate", sStartDate) : | |
4488 | + new ObjectParameter("sStartDate", typeof(string)); | |
4489 | + | |
4490 | + var sEndDateParameter = sEndDate != null ? | |
4491 | + new ObjectParameter("sEndDate", sEndDate) : | |
4492 | + new ObjectParameter("sEndDate", typeof(string)); | |
4493 | + | |
4494 | + var iActiveParameter = iActive.HasValue ? | |
4495 | + new ObjectParameter("iActive", iActive) : | |
4496 | + new ObjectParameter("iActive", typeof(byte)); | |
4497 | + | |
4498 | + var sDiscountCodeParameter = sDiscountCode != null ? | |
4499 | + new ObjectParameter("sDiscountCode", sDiscountCode) : | |
4500 | + new ObjectParameter("sDiscountCode", typeof(string)); | |
4501 | + | |
4502 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("usp_UpdateDiscount", iDiscountIdParameter, dPercentageParameter, sStartDateParameter, sEndDateParameter, iActiveParameter, sDiscountCodeParameter); | |
4503 | + } | |
4504 | + | |
4505 | + public virtual ObjectResult<usp_EC_GetCountryList_Result> usp_EC_GetCountryList() | |
4506 | + { | |
4507 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_EC_GetCountryList_Result>("usp_EC_GetCountryList"); | |
4508 | + } | |
4509 | + | |
4510 | + public virtual ObjectResult<usp_EC_GetStateList_Result> usp_EC_GetStateList() | |
4511 | + { | |
4512 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_EC_GetStateList_Result>("usp_EC_GetStateList"); | |
4513 | + } | |
4514 | + | |
4515 | + public virtual ObjectResult<usp_EC_GetSecurityQuestionList_Result> usp_EC_GetSecurityQuestionList() | |
4516 | + { | |
4517 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_EC_GetSecurityQuestionList_Result>("usp_EC_GetSecurityQuestionList"); | |
4518 | + } | |
4519 | + | |
4520 | + public virtual ObjectResult<usp_GetCancelledLicenses_Result> usp_GetCancelledLicenses(string sFromDate, string sToDate, Nullable<decimal> iStartPrice, Nullable<decimal> iEndPrice, Nullable<byte> iLicenseTypeId, Nullable<byte> iAccountTypeId, string sZip, Nullable<int> iStateId, Nullable<int> iCountryId, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4521 | + { | |
4522 | + var sFromDateParameter = sFromDate != null ? | |
4523 | + new ObjectParameter("sFromDate", sFromDate) : | |
4524 | + new ObjectParameter("sFromDate", typeof(string)); | |
4525 | + | |
4526 | + var sToDateParameter = sToDate != null ? | |
4527 | + new ObjectParameter("sToDate", sToDate) : | |
4528 | + new ObjectParameter("sToDate", typeof(string)); | |
4529 | + | |
4530 | + var iStartPriceParameter = iStartPrice.HasValue ? | |
4531 | + new ObjectParameter("iStartPrice", iStartPrice) : | |
4532 | + new ObjectParameter("iStartPrice", typeof(decimal)); | |
4533 | + | |
4534 | + var iEndPriceParameter = iEndPrice.HasValue ? | |
4535 | + new ObjectParameter("iEndPrice", iEndPrice) : | |
4536 | + new ObjectParameter("iEndPrice", typeof(decimal)); | |
4537 | + | |
4538 | + var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ? | |
4539 | + new ObjectParameter("iLicenseTypeId", iLicenseTypeId) : | |
4540 | + new ObjectParameter("iLicenseTypeId", typeof(byte)); | |
4541 | + | |
4542 | + var iAccountTypeIdParameter = iAccountTypeId.HasValue ? | |
4543 | + new ObjectParameter("iAccountTypeId", iAccountTypeId) : | |
4544 | + new ObjectParameter("iAccountTypeId", typeof(byte)); | |
4545 | + | |
4546 | + var sZipParameter = sZip != null ? | |
4547 | + new ObjectParameter("sZip", sZip) : | |
4548 | + new ObjectParameter("sZip", typeof(string)); | |
4549 | + | |
4550 | + var iStateIdParameter = iStateId.HasValue ? | |
4551 | + new ObjectParameter("iStateId", iStateId) : | |
4552 | + new ObjectParameter("iStateId", typeof(int)); | |
4553 | + | |
4554 | + var iCountryIdParameter = iCountryId.HasValue ? | |
4555 | + new ObjectParameter("iCountryId", iCountryId) : | |
4556 | + new ObjectParameter("iCountryId", typeof(int)); | |
4557 | + | |
4558 | + var pageNoParameter = pageNo.HasValue ? | |
4559 | + new ObjectParameter("pageNo", pageNo) : | |
4560 | + new ObjectParameter("pageNo", typeof(int)); | |
4561 | + | |
4562 | + var pageLengthParameter = pageLength.HasValue ? | |
4563 | + new ObjectParameter("pageLength", pageLength) : | |
4564 | + new ObjectParameter("pageLength", typeof(int)); | |
4565 | + | |
4566 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetCancelledLicenses_Result>("usp_GetCancelledLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4567 | + } | |
4568 | + | |
4569 | + public virtual ObjectResult<usp_GetCustomerSummary_Result> usp_GetCustomerSummary(string sAccoutNumber, string sLicenseeFullName, Nullable<decimal> iStartPrice, Nullable<decimal> iEndPrice, Nullable<byte> iLicenseType, Nullable<byte> iAccountType, string sZip, Nullable<int> iState, Nullable<int> iCountry, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4570 | + { | |
4571 | + var sAccoutNumberParameter = sAccoutNumber != null ? | |
4572 | + new ObjectParameter("sAccoutNumber", sAccoutNumber) : | |
4573 | + new ObjectParameter("sAccoutNumber", typeof(string)); | |
4574 | + | |
4575 | + var sLicenseeFullNameParameter = sLicenseeFullName != null ? | |
4576 | + new ObjectParameter("sLicenseeFullName", sLicenseeFullName) : | |
4577 | + new ObjectParameter("sLicenseeFullName", typeof(string)); | |
4578 | + | |
4579 | + var iStartPriceParameter = iStartPrice.HasValue ? | |
4580 | + new ObjectParameter("iStartPrice", iStartPrice) : | |
4581 | + new ObjectParameter("iStartPrice", typeof(decimal)); | |
4582 | + | |
4583 | + var iEndPriceParameter = iEndPrice.HasValue ? | |
4584 | + new ObjectParameter("iEndPrice", iEndPrice) : | |
4585 | + new ObjectParameter("iEndPrice", typeof(decimal)); | |
4586 | + | |
4587 | + var iLicenseTypeParameter = iLicenseType.HasValue ? | |
4588 | + new ObjectParameter("iLicenseType", iLicenseType) : | |
4589 | + new ObjectParameter("iLicenseType", typeof(byte)); | |
4590 | + | |
4591 | + var iAccountTypeParameter = iAccountType.HasValue ? | |
4592 | + new ObjectParameter("iAccountType", iAccountType) : | |
4593 | + new ObjectParameter("iAccountType", typeof(byte)); | |
4594 | + | |
4595 | + var sZipParameter = sZip != null ? | |
4596 | + new ObjectParameter("sZip", sZip) : | |
4597 | + new ObjectParameter("sZip", typeof(string)); | |
4598 | + | |
4599 | + var iStateParameter = iState.HasValue ? | |
4600 | + new ObjectParameter("iState", iState) : | |
4601 | + new ObjectParameter("iState", typeof(int)); | |
4602 | + | |
4603 | + var iCountryParameter = iCountry.HasValue ? | |
4604 | + new ObjectParameter("iCountry", iCountry) : | |
4605 | + new ObjectParameter("iCountry", typeof(int)); | |
4606 | + | |
4607 | + var pageNoParameter = pageNo.HasValue ? | |
4608 | + new ObjectParameter("pageNo", pageNo) : | |
4609 | + new ObjectParameter("pageNo", typeof(int)); | |
4610 | + | |
4611 | + var pageLengthParameter = pageLength.HasValue ? | |
4612 | + new ObjectParameter("pageLength", pageLength) : | |
4613 | + new ObjectParameter("pageLength", typeof(int)); | |
4614 | + | |
4615 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetCustomerSummary_Result>("usp_GetCustomerSummary", sAccoutNumberParameter, sLicenseeFullNameParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeParameter, iAccountTypeParameter, sZipParameter, iStateParameter, iCountryParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4616 | + } | |
4617 | + | |
4618 | + public virtual ObjectResult<usp_GetDiscountReport_Result> usp_GetDiscountReport(string sStartDate, string sEndDate, Nullable<int> intDiscountID, string sAccoutNumber, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4619 | + { | |
4620 | + var sStartDateParameter = sStartDate != null ? | |
4621 | + new ObjectParameter("sStartDate", sStartDate) : | |
4622 | + new ObjectParameter("sStartDate", typeof(string)); | |
4623 | + | |
4624 | + var sEndDateParameter = sEndDate != null ? | |
4625 | + new ObjectParameter("sEndDate", sEndDate) : | |
4626 | + new ObjectParameter("sEndDate", typeof(string)); | |
4627 | + | |
4628 | + var intDiscountIDParameter = intDiscountID.HasValue ? | |
4629 | + new ObjectParameter("intDiscountID", intDiscountID) : | |
4630 | + new ObjectParameter("intDiscountID", typeof(int)); | |
4631 | + | |
4632 | + var sAccoutNumberParameter = sAccoutNumber != null ? | |
4633 | + new ObjectParameter("sAccoutNumber", sAccoutNumber) : | |
4634 | + new ObjectParameter("sAccoutNumber", typeof(string)); | |
4635 | + | |
4636 | + var pageNoParameter = pageNo.HasValue ? | |
4637 | + new ObjectParameter("pageNo", pageNo) : | |
4638 | + new ObjectParameter("pageNo", typeof(int)); | |
4639 | + | |
4640 | + var pageLengthParameter = pageLength.HasValue ? | |
4641 | + new ObjectParameter("pageLength", pageLength) : | |
4642 | + new ObjectParameter("pageLength", typeof(int)); | |
4643 | + | |
4644 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetDiscountReport_Result>("usp_GetDiscountReport", sStartDateParameter, sEndDateParameter, intDiscountIDParameter, sAccoutNumberParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4645 | + } | |
4646 | + | |
4647 | + public virtual ObjectResult<usp_GetExpiringLicenses_Result> usp_GetExpiringLicenses(string sFromDate, string sToDate, Nullable<decimal> iStartPrice, Nullable<decimal> iEndPrice, Nullable<int> iLicenseTypeId, Nullable<int> iAccountTypeId, string sZip, Nullable<int> iStateId, Nullable<int> iCountryId, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4648 | + { | |
4649 | + var sFromDateParameter = sFromDate != null ? | |
4650 | + new ObjectParameter("sFromDate", sFromDate) : | |
4651 | + new ObjectParameter("sFromDate", typeof(string)); | |
4652 | + | |
4653 | + var sToDateParameter = sToDate != null ? | |
4654 | + new ObjectParameter("sToDate", sToDate) : | |
4655 | + new ObjectParameter("sToDate", typeof(string)); | |
4656 | + | |
4657 | + var iStartPriceParameter = iStartPrice.HasValue ? | |
4658 | + new ObjectParameter("iStartPrice", iStartPrice) : | |
4659 | + new ObjectParameter("iStartPrice", typeof(decimal)); | |
4660 | + | |
4661 | + var iEndPriceParameter = iEndPrice.HasValue ? | |
4662 | + new ObjectParameter("iEndPrice", iEndPrice) : | |
4663 | + new ObjectParameter("iEndPrice", typeof(decimal)); | |
4664 | + | |
4665 | + var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ? | |
4666 | + new ObjectParameter("iLicenseTypeId", iLicenseTypeId) : | |
4667 | + new ObjectParameter("iLicenseTypeId", typeof(int)); | |
4668 | + | |
4669 | + var iAccountTypeIdParameter = iAccountTypeId.HasValue ? | |
4670 | + new ObjectParameter("iAccountTypeId", iAccountTypeId) : | |
4671 | + new ObjectParameter("iAccountTypeId", typeof(int)); | |
4672 | + | |
4673 | + var sZipParameter = sZip != null ? | |
4674 | + new ObjectParameter("sZip", sZip) : | |
4675 | + new ObjectParameter("sZip", typeof(string)); | |
4676 | + | |
4677 | + var iStateIdParameter = iStateId.HasValue ? | |
4678 | + new ObjectParameter("iStateId", iStateId) : | |
4679 | + new ObjectParameter("iStateId", typeof(int)); | |
4680 | + | |
4681 | + var iCountryIdParameter = iCountryId.HasValue ? | |
4682 | + new ObjectParameter("iCountryId", iCountryId) : | |
4683 | + new ObjectParameter("iCountryId", typeof(int)); | |
4684 | + | |
4685 | + var pageNoParameter = pageNo.HasValue ? | |
4686 | + new ObjectParameter("pageNo", pageNo) : | |
4687 | + new ObjectParameter("pageNo", typeof(int)); | |
4688 | + | |
4689 | + var pageLengthParameter = pageLength.HasValue ? | |
4690 | + new ObjectParameter("pageLength", pageLength) : | |
4691 | + new ObjectParameter("pageLength", typeof(int)); | |
4692 | + | |
4693 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetExpiringLicenses_Result>("usp_GetExpiringLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4694 | + } | |
4695 | + | |
4696 | + public virtual ObjectResult<usp_GetExportedImageDetails_Result> usp_GetExportedImageDetails(string sStartDate, string sEndDate, string sAccoutNumber, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4697 | + { | |
4698 | + var sStartDateParameter = sStartDate != null ? | |
4699 | + new ObjectParameter("sStartDate", sStartDate) : | |
4700 | + new ObjectParameter("sStartDate", typeof(string)); | |
4701 | + | |
4702 | + var sEndDateParameter = sEndDate != null ? | |
4703 | + new ObjectParameter("sEndDate", sEndDate) : | |
4704 | + new ObjectParameter("sEndDate", typeof(string)); | |
4705 | + | |
4706 | + var sAccoutNumberParameter = sAccoutNumber != null ? | |
4707 | + new ObjectParameter("sAccoutNumber", sAccoutNumber) : | |
4708 | + new ObjectParameter("sAccoutNumber", typeof(string)); | |
4709 | + | |
4710 | + var pageNoParameter = pageNo.HasValue ? | |
4711 | + new ObjectParameter("pageNo", pageNo) : | |
4712 | + new ObjectParameter("pageNo", typeof(int)); | |
4713 | + | |
4714 | + var pageLengthParameter = pageLength.HasValue ? | |
4715 | + new ObjectParameter("pageLength", pageLength) : | |
4716 | + new ObjectParameter("pageLength", typeof(int)); | |
4717 | + | |
4718 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetExportedImageDetails_Result>("usp_GetExportedImageDetails", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4719 | + } | |
4720 | + | |
4721 | + public virtual ObjectResult<usp_GetNetAdSummaryReport_Result> usp_GetNetAdSummaryReport(string sFromDate, string sToDate, Nullable<decimal> iStartPrice, Nullable<decimal> iEndPrice, Nullable<byte> iLicenseTypeId, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4722 | + { | |
4723 | + var sFromDateParameter = sFromDate != null ? | |
4724 | + new ObjectParameter("sFromDate", sFromDate) : | |
4725 | + new ObjectParameter("sFromDate", typeof(string)); | |
4726 | + | |
4727 | + var sToDateParameter = sToDate != null ? | |
4728 | + new ObjectParameter("sToDate", sToDate) : | |
4729 | + new ObjectParameter("sToDate", typeof(string)); | |
4730 | + | |
4731 | + var iStartPriceParameter = iStartPrice.HasValue ? | |
4732 | + new ObjectParameter("iStartPrice", iStartPrice) : | |
4733 | + new ObjectParameter("iStartPrice", typeof(decimal)); | |
4734 | + | |
4735 | + var iEndPriceParameter = iEndPrice.HasValue ? | |
4736 | + new ObjectParameter("iEndPrice", iEndPrice) : | |
4737 | + new ObjectParameter("iEndPrice", typeof(decimal)); | |
4738 | + | |
4739 | + var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ? | |
4740 | + new ObjectParameter("iLicenseTypeId", iLicenseTypeId) : | |
4741 | + new ObjectParameter("iLicenseTypeId", typeof(byte)); | |
4742 | + | |
4743 | + var pageNoParameter = pageNo.HasValue ? | |
4744 | + new ObjectParameter("pageNo", pageNo) : | |
4745 | + new ObjectParameter("pageNo", typeof(int)); | |
4746 | + | |
4747 | + var pageLengthParameter = pageLength.HasValue ? | |
4748 | + new ObjectParameter("pageLength", pageLength) : | |
4749 | + new ObjectParameter("pageLength", typeof(int)); | |
4750 | + | |
4751 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetNetAdSummaryReport_Result>("usp_GetNetAdSummaryReport", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4752 | + } | |
4753 | + | |
4754 | + public virtual ObjectResult<usp_GetSiteLicenseUsageReport_Result> usp_GetSiteLicenseUsageReport(string sFromDate, string sToDate, string sAccoutNumber, Nullable<byte> iEditionId, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4755 | + { | |
4756 | + var sFromDateParameter = sFromDate != null ? | |
4757 | + new ObjectParameter("sFromDate", sFromDate) : | |
4758 | + new ObjectParameter("sFromDate", typeof(string)); | |
4759 | + | |
4760 | + var sToDateParameter = sToDate != null ? | |
4761 | + new ObjectParameter("sToDate", sToDate) : | |
4762 | + new ObjectParameter("sToDate", typeof(string)); | |
4763 | + | |
4764 | + var sAccoutNumberParameter = sAccoutNumber != null ? | |
4765 | + new ObjectParameter("sAccoutNumber", sAccoutNumber) : | |
4766 | + new ObjectParameter("sAccoutNumber", typeof(string)); | |
4767 | + | |
4768 | + var iEditionIdParameter = iEditionId.HasValue ? | |
4769 | + new ObjectParameter("iEditionId", iEditionId) : | |
4770 | + new ObjectParameter("iEditionId", typeof(byte)); | |
4771 | + | |
4772 | + var pageNoParameter = pageNo.HasValue ? | |
4773 | + new ObjectParameter("pageNo", pageNo) : | |
4774 | + new ObjectParameter("pageNo", typeof(int)); | |
4775 | + | |
4776 | + var pageLengthParameter = pageLength.HasValue ? | |
4777 | + new ObjectParameter("pageLength", pageLength) : | |
4778 | + new ObjectParameter("pageLength", typeof(int)); | |
4779 | + | |
4780 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetSiteLicenseUsageReport_Result>("usp_GetSiteLicenseUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, iEditionIdParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4781 | + } | |
4782 | + | |
4783 | + public virtual ObjectResult<usp_GetUsageReport_Result> usp_GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable<int> iState, Nullable<int> iCountry, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4784 | + { | |
4785 | + var sFromDateParameter = sFromDate != null ? | |
4786 | + new ObjectParameter("sFromDate", sFromDate) : | |
4787 | + new ObjectParameter("sFromDate", typeof(string)); | |
4788 | + | |
4789 | + var sToDateParameter = sToDate != null ? | |
4790 | + new ObjectParameter("sToDate", sToDate) : | |
4791 | + new ObjectParameter("sToDate", typeof(string)); | |
4792 | + | |
4793 | + var sAccoutNumberParameter = sAccoutNumber != null ? | |
4794 | + new ObjectParameter("sAccoutNumber", sAccoutNumber) : | |
4795 | + new ObjectParameter("sAccoutNumber", typeof(string)); | |
4796 | + | |
4797 | + var sZipParameter = sZip != null ? | |
4798 | + new ObjectParameter("sZip", sZip) : | |
4799 | + new ObjectParameter("sZip", typeof(string)); | |
4800 | + | |
4801 | + var iStateParameter = iState.HasValue ? | |
4802 | + new ObjectParameter("iState", iState) : | |
4803 | + new ObjectParameter("iState", typeof(int)); | |
4804 | + | |
4805 | + var iCountryParameter = iCountry.HasValue ? | |
4806 | + new ObjectParameter("iCountry", iCountry) : | |
4807 | + new ObjectParameter("iCountry", typeof(int)); | |
4808 | + | |
4809 | + var pageNoParameter = pageNo.HasValue ? | |
4810 | + new ObjectParameter("pageNo", pageNo) : | |
4811 | + new ObjectParameter("pageNo", typeof(int)); | |
4812 | + | |
4813 | + var pageLengthParameter = pageLength.HasValue ? | |
4814 | + new ObjectParameter("pageLength", pageLength) : | |
4815 | + new ObjectParameter("pageLength", typeof(int)); | |
4816 | + | |
4817 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetUsageReport_Result>("usp_GetUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, sZipParameter, iStateParameter, iCountryParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4818 | + } | |
4819 | + | |
4820 | + public virtual ObjectResult<usp_GetSearchUsers_Result> usp_GetSearchUsers(string sFirstName, string sLastName, string sEmailId, string sAccoutNumber, Nullable<int> iUserTypeId, Nullable<int> iAccountTypeId, Nullable<int> iLoginUserType, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4821 | + { | |
4822 | + var sFirstNameParameter = sFirstName != null ? | |
4823 | + new ObjectParameter("sFirstName", sFirstName) : | |
4824 | + new ObjectParameter("sFirstName", typeof(string)); | |
4825 | + | |
4826 | + var sLastNameParameter = sLastName != null ? | |
4827 | + new ObjectParameter("sLastName", sLastName) : | |
4828 | + new ObjectParameter("sLastName", typeof(string)); | |
4829 | + | |
4830 | + var sEmailIdParameter = sEmailId != null ? | |
4831 | + new ObjectParameter("sEmailId", sEmailId) : | |
4832 | + new ObjectParameter("sEmailId", typeof(string)); | |
4833 | + | |
4834 | + var sAccoutNumberParameter = sAccoutNumber != null ? | |
4835 | + new ObjectParameter("sAccoutNumber", sAccoutNumber) : | |
4836 | + new ObjectParameter("sAccoutNumber", typeof(string)); | |
4837 | + | |
4838 | + var iUserTypeIdParameter = iUserTypeId.HasValue ? | |
4839 | + new ObjectParameter("iUserTypeId", iUserTypeId) : | |
4840 | + new ObjectParameter("iUserTypeId", typeof(int)); | |
4841 | + | |
4842 | + var iAccountTypeIdParameter = iAccountTypeId.HasValue ? | |
4843 | + new ObjectParameter("iAccountTypeId", iAccountTypeId) : | |
4844 | + new ObjectParameter("iAccountTypeId", typeof(int)); | |
4845 | + | |
4846 | + var iLoginUserTypeParameter = iLoginUserType.HasValue ? | |
4847 | + new ObjectParameter("iLoginUserType", iLoginUserType) : | |
4848 | + new ObjectParameter("iLoginUserType", typeof(int)); | |
4849 | + | |
4850 | + var pageNoParameter = pageNo.HasValue ? | |
4851 | + new ObjectParameter("pageNo", pageNo) : | |
4852 | + new ObjectParameter("pageNo", typeof(int)); | |
4853 | + | |
4854 | + var pageLengthParameter = pageLength.HasValue ? | |
4855 | + new ObjectParameter("pageLength", pageLength) : | |
4856 | + new ObjectParameter("pageLength", typeof(int)); | |
4857 | + | |
4858 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetSearchUsers_Result>("usp_GetSearchUsers", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4859 | + } | |
4860 | + | |
4861 | + public virtual ObjectResult<usp_GetSiteLicenseUsageReports_Result> usp_GetSiteLicenseUsageReports(string sFromDate, string sToDate, string sAccoutNumber, Nullable<byte> iEditionId, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4862 | + { | |
4863 | + var sFromDateParameter = sFromDate != null ? | |
4864 | + new ObjectParameter("sFromDate", sFromDate) : | |
4865 | + new ObjectParameter("sFromDate", typeof(string)); | |
4866 | + | |
4867 | + var sToDateParameter = sToDate != null ? | |
4868 | + new ObjectParameter("sToDate", sToDate) : | |
4869 | + new ObjectParameter("sToDate", typeof(string)); | |
4870 | + | |
4871 | + var sAccoutNumberParameter = sAccoutNumber != null ? | |
4872 | + new ObjectParameter("sAccoutNumber", sAccoutNumber) : | |
4873 | + new ObjectParameter("sAccoutNumber", typeof(string)); | |
4874 | + | |
4875 | + var iEditionIdParameter = iEditionId.HasValue ? | |
4876 | + new ObjectParameter("iEditionId", iEditionId) : | |
4877 | + new ObjectParameter("iEditionId", typeof(byte)); | |
4878 | + | |
4879 | + var pageNoParameter = pageNo.HasValue ? | |
4880 | + new ObjectParameter("pageNo", pageNo) : | |
4881 | + new ObjectParameter("pageNo", typeof(int)); | |
4882 | + | |
4883 | + var pageLengthParameter = pageLength.HasValue ? | |
4884 | + new ObjectParameter("pageLength", pageLength) : | |
4885 | + new ObjectParameter("pageLength", typeof(int)); | |
4886 | + | |
4887 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetSiteLicenseUsageReports_Result>("usp_GetSiteLicenseUsageReports", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, iEditionIdParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4888 | + } | |
4889 | + | |
4890 | + public virtual ObjectResult<usp_GetUserTyeByAccountNumber_Result> usp_GetUserTyeByAccountNumber(Nullable<byte> iUserTypeId, Nullable<int> iLicenseId) | |
4891 | + { | |
4892 | + var iUserTypeIdParameter = iUserTypeId.HasValue ? | |
4893 | + new ObjectParameter("iUserTypeId", iUserTypeId) : | |
4894 | + new ObjectParameter("iUserTypeId", typeof(byte)); | |
4895 | + | |
4896 | + var iLicenseIdParameter = iLicenseId.HasValue ? | |
4897 | + new ObjectParameter("iLicenseId", iLicenseId) : | |
4898 | + new ObjectParameter("iLicenseId", typeof(int)); | |
4899 | + | |
4900 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetUserTyeByAccountNumber_Result>("usp_GetUserTyeByAccountNumber", iUserTypeIdParameter, iLicenseIdParameter); | |
4901 | + } | |
4902 | + | |
4903 | + public virtual ObjectResult<usp_GetSubscribedLicenses_Result> usp_GetSubscribedLicenses(string sFromDate, string sToDate, Nullable<decimal> iStartPrice, Nullable<decimal> iEndPrice, Nullable<byte> iLicenseTypeId, Nullable<byte> iAccountTypeId, string sZip, Nullable<int> iStateId, Nullable<int> iCountryId, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount) | |
4904 | + { | |
4905 | + var sFromDateParameter = sFromDate != null ? | |
4906 | + new ObjectParameter("sFromDate", sFromDate) : | |
4907 | + new ObjectParameter("sFromDate", typeof(string)); | |
4908 | + | |
4909 | + var sToDateParameter = sToDate != null ? | |
4910 | + new ObjectParameter("sToDate", sToDate) : | |
4911 | + new ObjectParameter("sToDate", typeof(string)); | |
4912 | + | |
4913 | + var iStartPriceParameter = iStartPrice.HasValue ? | |
4914 | + new ObjectParameter("iStartPrice", iStartPrice) : | |
4915 | + new ObjectParameter("iStartPrice", typeof(decimal)); | |
4916 | + | |
4917 | + var iEndPriceParameter = iEndPrice.HasValue ? | |
4918 | + new ObjectParameter("iEndPrice", iEndPrice) : | |
4919 | + new ObjectParameter("iEndPrice", typeof(decimal)); | |
4920 | + | |
4921 | + var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ? | |
4922 | + new ObjectParameter("iLicenseTypeId", iLicenseTypeId) : | |
4923 | + new ObjectParameter("iLicenseTypeId", typeof(byte)); | |
4924 | + | |
4925 | + var iAccountTypeIdParameter = iAccountTypeId.HasValue ? | |
4926 | + new ObjectParameter("iAccountTypeId", iAccountTypeId) : | |
4927 | + new ObjectParameter("iAccountTypeId", typeof(byte)); | |
4928 | + | |
4929 | + var sZipParameter = sZip != null ? | |
4930 | + new ObjectParameter("sZip", sZip) : | |
4931 | + new ObjectParameter("sZip", typeof(string)); | |
4932 | + | |
4933 | + var iStateIdParameter = iStateId.HasValue ? | |
4934 | + new ObjectParameter("iStateId", iStateId) : | |
4935 | + new ObjectParameter("iStateId", typeof(int)); | |
4936 | + | |
4937 | + var iCountryIdParameter = iCountryId.HasValue ? | |
4938 | + new ObjectParameter("iCountryId", iCountryId) : | |
4939 | + new ObjectParameter("iCountryId", typeof(int)); | |
4940 | + | |
4941 | + var pageNoParameter = pageNo.HasValue ? | |
4942 | + new ObjectParameter("pageNo", pageNo) : | |
4943 | + new ObjectParameter("pageNo", typeof(int)); | |
4944 | + | |
4945 | + var pageLengthParameter = pageLength.HasValue ? | |
4946 | + new ObjectParameter("pageLength", pageLength) : | |
4947 | + new ObjectParameter("pageLength", typeof(int)); | |
4948 | + | |
4949 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetSubscribedLicenses_Result>("usp_GetSubscribedLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount); | |
4950 | + } | |
4951 | + | |
4952 | + public virtual ObjectResult<usp_GetBlockedUserByAccNoAndType_Result> usp_GetBlockedUserByAccNoAndType(Nullable<byte> iUserTypeId, Nullable<int> iLicenseId) | |
4953 | + { | |
4954 | + var iUserTypeIdParameter = iUserTypeId.HasValue ? | |
4955 | + new ObjectParameter("iUserTypeId", iUserTypeId) : | |
4956 | + new ObjectParameter("iUserTypeId", typeof(byte)); | |
4957 | + | |
4958 | + var iLicenseIdParameter = iLicenseId.HasValue ? | |
4959 | + new ObjectParameter("iLicenseId", iLicenseId) : | |
4960 | + new ObjectParameter("iLicenseId", typeof(int)); | |
4961 | + | |
4962 | + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetBlockedUserByAccNoAndType_Result>("usp_GetBlockedUserByAccNoAndType", iUserTypeIdParameter, iLicenseIdParameter); | |
4963 | + } | |
3933 | 4964 | } |
3934 | 4965 | } | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx
... | ... | @@ -2674,6 +2674,9 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does |
2674 | 2674 | <Parameter Name="Status" Type="bit" Mode="InOut" /> |
2675 | 2675 | </Function> |
2676 | 2676 | <Function Name="usp_DB_TblRowCOUNT" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> |
2677 | + <Function Name="usp_DeleteLicense" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2678 | + <Parameter Name="iLicenseId" Type="int" Mode="In" /> | |
2679 | + </Function> | |
2677 | 2680 | <Function Name="usp_DeleteLicenseUserGroup" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2678 | 2681 | <Parameter Name="UserGroupId" Type="int" Mode="In" /> |
2679 | 2682 | <Parameter Name="Status" Type="bit" Mode="InOut" /> |
... | ... | @@ -2688,13 +2691,88 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does |
2688 | 2691 | <Parameter Name="Id" Type="tinyint" Mode="In" /> |
2689 | 2692 | <Parameter Name="Status" Type="bit" Mode="InOut" /> |
2690 | 2693 | </Function> |
2694 | + <Function Name="usp_EC_GetAccountTypeList" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> | |
2695 | + <Function Name="usp_EC_GetCountryList" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> | |
2696 | + <Function Name="usp_EC_GetSecurityQuestionList" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> | |
2697 | + <Function Name="usp_EC_GetStateList" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> | |
2691 | 2698 | <Function Name="usp_GetAccountNumber" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2692 | 2699 | <Parameter Name="LicenseType" Type="int" Mode="In" /> |
2693 | 2700 | </Function> |
2694 | 2701 | <Function Name="usp_GetAccountTypeList" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2695 | 2702 | <Parameter Name="Id" Type="int" Mode="In" /> |
2696 | 2703 | </Function> |
2704 | + <Function Name="usp_GetBlockedUserByAccNoAndType" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2705 | + <Parameter Name="iUserTypeId" Type="tinyint" Mode="In" /> | |
2706 | + <Parameter Name="iLicenseId" Type="int" Mode="In" /> | |
2707 | + </Function> | |
2708 | + <Function Name="usp_GetCancelledLicenses" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2709 | + <Parameter Name="sFromDate" Type="varchar" Mode="In" /> | |
2710 | + <Parameter Name="sToDate" Type="varchar" Mode="In" /> | |
2711 | + <Parameter Name="iStartPrice" Type="numeric" Mode="In" /> | |
2712 | + <Parameter Name="iEndPrice" Type="numeric" Mode="In" /> | |
2713 | + <Parameter Name="iLicenseTypeId" Type="tinyint" Mode="In" /> | |
2714 | + <Parameter Name="iAccountTypeId" Type="tinyint" Mode="In" /> | |
2715 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
2716 | + <Parameter Name="iStateId" Type="int" Mode="In" /> | |
2717 | + <Parameter Name="iCountryId" Type="int" Mode="In" /> | |
2718 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2719 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2720 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2721 | + </Function> | |
2722 | + <Function Name="usp_GetCustomerSummary" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2723 | + <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" /> | |
2724 | + <Parameter Name="sLicenseeFullName" Type="varchar" Mode="In" /> | |
2725 | + <Parameter Name="iStartPrice" Type="numeric" Mode="In" /> | |
2726 | + <Parameter Name="iEndPrice" Type="numeric" Mode="In" /> | |
2727 | + <Parameter Name="iLicenseType" Type="tinyint" Mode="In" /> | |
2728 | + <Parameter Name="iAccountType" Type="tinyint" Mode="In" /> | |
2729 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
2730 | + <Parameter Name="iState" Type="int" Mode="In" /> | |
2731 | + <Parameter Name="iCountry" Type="int" Mode="In" /> | |
2732 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2733 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2734 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2735 | + </Function> | |
2736 | + <Function Name="usp_GetDiscountCodes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2737 | + <Parameter Name="sDiscountCode" Type="varchar" Mode="In" /> | |
2738 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
2739 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
2740 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2741 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2742 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2743 | + </Function> | |
2744 | + <Function Name="usp_GetDiscountReport" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2745 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
2746 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
2747 | + <Parameter Name="intDiscountID" Type="int" Mode="In" /> | |
2748 | + <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" /> | |
2749 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2750 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2751 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2752 | + </Function> | |
2697 | 2753 | <Function Name="usp_GetEditions" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> |
2754 | + <Function Name="usp_GetExpiringLicenses" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2755 | + <Parameter Name="sFromDate" Type="varchar" Mode="In" /> | |
2756 | + <Parameter Name="sToDate" Type="varchar" Mode="In" /> | |
2757 | + <Parameter Name="iStartPrice" Type="numeric" Mode="In" /> | |
2758 | + <Parameter Name="iEndPrice" Type="numeric" Mode="In" /> | |
2759 | + <Parameter Name="iLicenseTypeId" Type="int" Mode="In" /> | |
2760 | + <Parameter Name="iAccountTypeId" Type="int" Mode="In" /> | |
2761 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
2762 | + <Parameter Name="iStateId" Type="int" Mode="In" /> | |
2763 | + <Parameter Name="iCountryId" Type="int" Mode="In" /> | |
2764 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2765 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2766 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2767 | + </Function> | |
2768 | + <Function Name="usp_GetExportedImageDetails" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2769 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
2770 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
2771 | + <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" /> | |
2772 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2773 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2774 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2775 | + </Function> | |
2698 | 2776 | <Function Name="usp_GetLicenseById" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2699 | 2777 | <Parameter Name="Id" Type="int" Mode="In" /> |
2700 | 2778 | </Function> |
... | ... | @@ -2737,22 +2815,109 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does |
2737 | 2815 | <Parameter Name="UserId" Type="int" Mode="In" /> |
2738 | 2816 | <Parameter Name="RoleName" Type="varchar" Mode="In" /> |
2739 | 2817 | </Function> |
2818 | + <Function Name="usp_GetModuleStatusByLicenseId" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2819 | + <Parameter Name="iLicenseId" Type="int" Mode="In" /> | |
2820 | + </Function> | |
2821 | + <Function Name="usp_GetNetAdSummaryReport" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2822 | + <Parameter Name="sFromDate" Type="varchar" Mode="In" /> | |
2823 | + <Parameter Name="sToDate" Type="varchar" Mode="In" /> | |
2824 | + <Parameter Name="iStartPrice" Type="numeric" Mode="In" /> | |
2825 | + <Parameter Name="iEndPrice" Type="numeric" Mode="In" /> | |
2826 | + <Parameter Name="iLicenseTypeId" Type="tinyint" Mode="In" /> | |
2827 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2828 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2829 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2830 | + </Function> | |
2740 | 2831 | <Function Name="usp_GetProductEditionByLicense" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2741 | 2832 | <Parameter Name="iLicenseId" Type="int" Mode="In" /> |
2742 | 2833 | </Function> |
2834 | + <Function Name="usp_GetSearchUsers" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2835 | + <Parameter Name="sFirstName" Type="varchar" Mode="In" /> | |
2836 | + <Parameter Name="sLastName" Type="varchar" Mode="In" /> | |
2837 | + <Parameter Name="sEmailId" Type="varchar" Mode="In" /> | |
2838 | + <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" /> | |
2839 | + <Parameter Name="iUserTypeId" Type="int" Mode="In" /> | |
2840 | + <Parameter Name="iAccountTypeId" Type="int" Mode="In" /> | |
2841 | + <Parameter Name="iLoginUserType" Type="int" Mode="In" /> | |
2842 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2843 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2844 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2845 | + </Function> | |
2846 | + <Function Name="usp_GetSiteAccountAdmin" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2847 | + <Parameter Name="AccountNumber" Type="varchar" Mode="In" /> | |
2848 | + </Function> | |
2743 | 2849 | <Function Name="usp_GetSiteAccountEditions" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2744 | 2850 | <Parameter Name="SiteId" Type="int" Mode="In" /> |
2745 | 2851 | <Parameter Name="LicenseId" Type="int" Mode="In" /> |
2746 | 2852 | </Function> |
2853 | + <Function Name="usp_GetSiteAccountSites" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2854 | + <Parameter Name="strAccountNumber" Type="varchar" Mode="In" /> | |
2855 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2856 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2857 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2858 | + </Function> | |
2859 | + <Function Name="usp_GetSiteAccoutDetail" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2860 | + <Parameter Name="strAccountNumber" Type="varchar" Mode="In" /> | |
2861 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2862 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2863 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2864 | + </Function> | |
2747 | 2865 | <Function Name="usp_GetSiteById" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2748 | 2866 | <Parameter Name="SiteId" Type="int" Mode="In" /> |
2749 | 2867 | </Function> |
2868 | + <Function Name="usp_GetSiteLicenseUsageReport" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2869 | + <Parameter Name="sFromDate" Type="varchar" Mode="In" /> | |
2870 | + <Parameter Name="sToDate" Type="varchar" Mode="In" /> | |
2871 | + <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" /> | |
2872 | + <Parameter Name="iEditionId" Type="tinyint" Mode="In" /> | |
2873 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2874 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2875 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2876 | + </Function> | |
2877 | + <Function Name="usp_GetSiteLicenseUsageReports" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2878 | + <Parameter Name="sFromDate" Type="varchar" Mode="In" /> | |
2879 | + <Parameter Name="sToDate" Type="varchar" Mode="In" /> | |
2880 | + <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" /> | |
2881 | + <Parameter Name="iEditionId" Type="tinyint" Mode="In" /> | |
2882 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2883 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2884 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2885 | + </Function> | |
2886 | + <Function Name="usp_GetSubscribedLicenses" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2887 | + <Parameter Name="sFromDate" Type="varchar" Mode="In" /> | |
2888 | + <Parameter Name="sToDate" Type="varchar" Mode="In" /> | |
2889 | + <Parameter Name="iStartPrice" Type="numeric" Mode="In" /> | |
2890 | + <Parameter Name="iEndPrice" Type="numeric" Mode="In" /> | |
2891 | + <Parameter Name="iLicenseTypeId" Type="tinyint" Mode="In" /> | |
2892 | + <Parameter Name="iAccountTypeId" Type="tinyint" Mode="In" /> | |
2893 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
2894 | + <Parameter Name="iStateId" Type="int" Mode="In" /> | |
2895 | + <Parameter Name="iCountryId" Type="int" Mode="In" /> | |
2896 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2897 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2898 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2899 | + </Function> | |
2750 | 2900 | <Function Name="usp_GetSubscriptionPlans" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2751 | 2901 | <Parameter Name="iEditionId" Type="tinyint" Mode="In" /> |
2752 | 2902 | <Parameter Name="pageNo" Type="int" Mode="In" /> |
2753 | 2903 | <Parameter Name="pageLength" Type="int" Mode="In" /> |
2754 | 2904 | <Parameter Name="recordCount" Type="int" Mode="InOut" /> |
2755 | 2905 | </Function> |
2906 | + <Function Name="usp_GetUsageReport" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2907 | + <Parameter Name="sFromDate" Type="varchar" Mode="In" /> | |
2908 | + <Parameter Name="sToDate" Type="varchar" Mode="In" /> | |
2909 | + <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" /> | |
2910 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
2911 | + <Parameter Name="iState" Type="int" Mode="In" /> | |
2912 | + <Parameter Name="iCountry" Type="int" Mode="In" /> | |
2913 | + <Parameter Name="pageNo" Type="int" Mode="In" /> | |
2914 | + <Parameter Name="pageLength" Type="int" Mode="In" /> | |
2915 | + <Parameter Name="recordCount" Type="int" Mode="InOut" /> | |
2916 | + </Function> | |
2917 | + <Function Name="usp_GetUserTyeByAccountNumber" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2918 | + <Parameter Name="iUserTypeId" Type="tinyint" Mode="In" /> | |
2919 | + <Parameter Name="iLicenseId" Type="int" Mode="In" /> | |
2920 | + </Function> | |
2756 | 2921 | <Function Name="usp_GetUserType" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2757 | 2922 | <Parameter Name="id" Type="int" Mode="In" /> |
2758 | 2923 | </Function> |
... | ... | @@ -2777,6 +2942,38 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does |
2777 | 2942 | <Parameter Name="RequestType" Type="varchar" Mode="In" /> |
2778 | 2943 | <Parameter Name="Status" Type="bit" Mode="InOut" /> |
2779 | 2944 | </Function> |
2945 | + <Function Name="usp_InsertNewDiscount" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2946 | + <Parameter Name="dPercentage" Type="decimal" Mode="In" /> | |
2947 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
2948 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
2949 | + <Parameter Name="sDiscountCode" Type="varchar" Mode="In" /> | |
2950 | + </Function> | |
2951 | + <Function Name="usp_InsertNewLicenseAccount" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
2952 | + <Parameter Name="sAccountNumber" Type="varchar" Mode="In" /> | |
2953 | + <Parameter Name="sLicenseeFname" Type="varchar" Mode="In" /> | |
2954 | + <Parameter Name="sLicenseeLname" Type="varchar" Mode="In" /> | |
2955 | + <Parameter Name="iLicenseTypeId" Type="tinyint" Mode="In" /> | |
2956 | + <Parameter Name="iAccountTypeId" Type="tinyint" Mode="In" /> | |
2957 | + <Parameter Name="sInstitutionName" Type="varchar" Mode="In" /> | |
2958 | + <Parameter Name="sAddress1" Type="varchar" Mode="In" /> | |
2959 | + <Parameter Name="sAddress2" Type="varchar" Mode="In" /> | |
2960 | + <Parameter Name="sCity" Type="varchar" Mode="In" /> | |
2961 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
2962 | + <Parameter Name="iStateId" Type="int" Mode="In" /> | |
2963 | + <Parameter Name="iCountryId" Type="int" Mode="In" /> | |
2964 | + <Parameter Name="sPhone" Type="varchar" Mode="In" /> | |
2965 | + <Parameter Name="sEmailId" Type="varchar" Mode="In" /> | |
2966 | + <Parameter Name="iTotalLogins" Type="int" Mode="In" /> | |
2967 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
2968 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
2969 | + <Parameter Name="sMasterIP" Type="varchar" Mode="In" /> | |
2970 | + <Parameter Name="sEditionList" Type="varchar" Mode="In" /> | |
2971 | + <Parameter Name="iPrice" Type="numeric" Mode="In" /> | |
2972 | + <Parameter Name="sProductKey" Type="varchar" Mode="In" /> | |
2973 | + <Parameter Name="sSiteIPTo" Type="varchar" Mode="In" /> | |
2974 | + <Parameter Name="sSiteMasterIPTo" Type="varchar" Mode="In" /> | |
2975 | + <Parameter Name="iNoofImages" Type="int" Mode="In" /> | |
2976 | + </Function> | |
2780 | 2977 | <Function Name="usp_InsertResellerLicenseAccount" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2781 | 2978 | <Parameter Name="sLicenseeFname" Type="varchar" Mode="In" /> |
2782 | 2979 | <Parameter Name="sLicenseeLname" Type="varchar" Mode="In" /> |
... | ... | @@ -2800,6 +2997,33 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does |
2800 | 2997 | <Parameter Name="sProductKey" Type="varchar" Mode="In" /> |
2801 | 2998 | <Parameter Name="iNoofImages" Type="int" Mode="In" /> |
2802 | 2999 | </Function> |
3000 | + <Function Name="usp_InsertSingleLicenseAccount" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
3001 | + <Parameter Name="sAccountNumber" Type="varchar" Mode="In" /> | |
3002 | + <Parameter Name="sLicenseeFname" Type="varchar" Mode="In" /> | |
3003 | + <Parameter Name="sLicenseeLname" Type="varchar" Mode="In" /> | |
3004 | + <Parameter Name="iAccountTypeId" Type="tinyint" Mode="In" /> | |
3005 | + <Parameter Name="sInstitutionName" Type="varchar" Mode="In" /> | |
3006 | + <Parameter Name="sAddress1" Type="varchar" Mode="In" /> | |
3007 | + <Parameter Name="sAddress2" Type="varchar" Mode="In" /> | |
3008 | + <Parameter Name="sCity" Type="varchar" Mode="In" /> | |
3009 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
3010 | + <Parameter Name="iStateId" Type="int" Mode="In" /> | |
3011 | + <Parameter Name="iCountryId" Type="int" Mode="In" /> | |
3012 | + <Parameter Name="sPhone" Type="varchar" Mode="In" /> | |
3013 | + <Parameter Name="sEmailId" Type="varchar" Mode="In" /> | |
3014 | + <Parameter Name="iTotalLogins" Type="int" Mode="In" /> | |
3015 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
3016 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
3017 | + <Parameter Name="sEditionList" Type="varchar" Mode="In" /> | |
3018 | + <Parameter Name="iPrice" Type="numeric" Mode="In" /> | |
3019 | + <Parameter Name="sProductKey" Type="varchar" Mode="In" /> | |
3020 | + <Parameter Name="sLoginId" Type="varchar" Mode="In" /> | |
3021 | + <Parameter Name="sPassword" Type="varchar" Mode="In" /> | |
3022 | + <Parameter Name="iSecurityQuesId" Type="tinyint" Mode="In" /> | |
3023 | + <Parameter Name="sSecurityAnswer" Type="varchar" Mode="In" /> | |
3024 | + <Parameter Name="iCreatorId" Type="int" Mode="In" /> | |
3025 | + <Parameter Name="iNoofImages" Type="int" Mode="In" /> | |
3026 | + </Function> | |
2803 | 3027 | <Function Name="usp_InsertSubscriptionPlan" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2804 | 3028 | <Parameter Name="Id" Type="tinyint" Mode="In" /> |
2805 | 3029 | <Parameter Name="Title" Type="varchar" Mode="In" /> |
... | ... | @@ -2809,6 +3033,26 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does |
2809 | 3033 | <Parameter Name="IsActive" Type="bit" Mode="In" /> |
2810 | 3034 | <Parameter Name="Status" Type="bit" Mode="InOut" /> |
2811 | 3035 | </Function> |
3036 | + <Function Name="usp_InsertTestLicenseAccount" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
3037 | + <Parameter Name="sAccountNumber" Type="varchar" Mode="In" /> | |
3038 | + <Parameter Name="sLicenseeFname" Type="varchar" Mode="In" /> | |
3039 | + <Parameter Name="sLicenseeLname" Type="varchar" Mode="In" /> | |
3040 | + <Parameter Name="sLoginId" Type="varchar" Mode="In" /> | |
3041 | + <Parameter Name="sPassword" Type="varchar" Mode="In" /> | |
3042 | + <Parameter Name="sEmailId" Type="varchar" Mode="In" /> | |
3043 | + <Parameter Name="iAccountTypeId" Type="tinyint" Mode="In" /> | |
3044 | + <Parameter Name="iEditionId" Type="tinyint" Mode="In" /> | |
3045 | + <Parameter Name="sAddress" Type="varchar" Mode="In" /> | |
3046 | + <Parameter Name="sCity" Type="varchar" Mode="In" /> | |
3047 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
3048 | + <Parameter Name="iStateId" Type="int" Mode="In" /> | |
3049 | + <Parameter Name="iCountryId" Type="int" Mode="In" /> | |
3050 | + <Parameter Name="sPhone" Type="varchar" Mode="In" /> | |
3051 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
3052 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
3053 | + <Parameter Name="iCreatorId" Type="int" Mode="In" /> | |
3054 | + <Parameter Name="iNoofImages" Type="int" Mode="In" /> | |
3055 | + </Function> | |
2812 | 3056 | <Function Name="usp_InsertUpdateLicenseUserGroup" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2813 | 3057 | <Parameter Name="Id" Type="int" Mode="In" /> |
2814 | 3058 | <Parameter Name="LicenseId" Type="int" Mode="In" /> |
... | ... | @@ -2852,10 +3096,52 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does |
2852 | 3096 | <Parameter Name="isActive" Type="tinyint" Mode="In" /> |
2853 | 3097 | <Parameter Name="Status" Type="int" Mode="InOut" /> |
2854 | 3098 | </Function> |
3099 | + <Function Name="usp_UpdateAiaUserPassword" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
3100 | + <Parameter Name="Id" Type="int" Mode="In" /> | |
3101 | + <Parameter Name="NewPassword" Type="varchar" Mode="In" /> | |
3102 | + <Parameter Name="Status" Type="bit" Mode="InOut" /> | |
3103 | + </Function> | |
2855 | 3104 | <Function Name="usp_UpdateblockedUser" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2856 | 3105 | <Parameter Name="Id" Type="int" Mode="In" /> |
2857 | 3106 | <Parameter Name="Status" Type="int" Mode="InOut" /> |
2858 | 3107 | </Function> |
3108 | + <Function Name="usp_UpdateDiscount" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
3109 | + <Parameter Name="iDiscountId" Type="int" Mode="In" /> | |
3110 | + <Parameter Name="dPercentage" Type="decimal" Mode="In" /> | |
3111 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
3112 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
3113 | + <Parameter Name="iActive" Type="tinyint" Mode="In" /> | |
3114 | + <Parameter Name="sDiscountCode" Type="varchar" Mode="In" /> | |
3115 | + </Function> | |
3116 | + <Function Name="usp_UpdateLicenseAccount" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
3117 | + <Parameter Name="iLicenseId" Type="int" Mode="In" /> | |
3118 | + <Parameter Name="sLicenseeFname" Type="varchar" Mode="In" /> | |
3119 | + <Parameter Name="sLicenseeLname" Type="varchar" Mode="In" /> | |
3120 | + <Parameter Name="iLicenseTypeId" Type="tinyint" Mode="In" /> | |
3121 | + <Parameter Name="iAccountTypeId" Type="tinyint" Mode="In" /> | |
3122 | + <Parameter Name="sInstitutionName" Type="varchar" Mode="In" /> | |
3123 | + <Parameter Name="sAddress1" Type="varchar" Mode="In" /> | |
3124 | + <Parameter Name="sAddress2" Type="varchar" Mode="In" /> | |
3125 | + <Parameter Name="sCity" Type="varchar" Mode="In" /> | |
3126 | + <Parameter Name="sZip" Type="varchar" Mode="In" /> | |
3127 | + <Parameter Name="iStateId" Type="int" Mode="In" /> | |
3128 | + <Parameter Name="iCountryId" Type="int" Mode="In" /> | |
3129 | + <Parameter Name="sPhone" Type="varchar" Mode="In" /> | |
3130 | + <Parameter Name="sEmailId" Type="varchar" Mode="In" /> | |
3131 | + <Parameter Name="iIsActive" Type="tinyint" Mode="In" /> | |
3132 | + <Parameter Name="iTotalLogins" Type="int" Mode="In" /> | |
3133 | + <Parameter Name="iIsRennew" Type="tinyint" Mode="In" /> | |
3134 | + <Parameter Name="sStartDate" Type="varchar" Mode="In" /> | |
3135 | + <Parameter Name="sEndDate" Type="varchar" Mode="In" /> | |
3136 | + <Parameter Name="sRenewDate" Type="varchar" Mode="In" /> | |
3137 | + <Parameter Name="sMasterIP" Type="varchar" Mode="In" /> | |
3138 | + <Parameter Name="sEditionList" Type="varchar" Mode="In" /> | |
3139 | + <Parameter Name="iPrice" Type="numeric" Mode="In" /> | |
3140 | + <Parameter Name="sProductKey" Type="varchar" Mode="In" /> | |
3141 | + <Parameter Name="sSiteIPTo" Type="varchar" Mode="In" /> | |
3142 | + <Parameter Name="sSiteMasterIPTo" Type="varchar" Mode="In" /> | |
3143 | + <Parameter Name="iNoofImages" Type="int" Mode="In" /> | |
3144 | + </Function> | |
2859 | 3145 | <Function Name="usp_UpdateLicenseBasicSettings" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> |
2860 | 3146 | <Parameter Name="iLicenseId" Type="int" Mode="In" /> |
2861 | 3147 | <Parameter Name="sLicenseeFname" Type="varchar" Mode="In" /> |
... | ... | @@ -2902,7 +3188,14 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does |
2902 | 3188 | <Parameter Name="olduserId" Type="varchar" Mode="In" /> |
2903 | 3189 | <Parameter Name="Status" Type="int" Mode="InOut" /> |
2904 | 3190 | </Function> |
2905 | - <EntityContainer Name="AIADatabaseV5ModelStoreContainer"> | |
3191 | + <Function Name="usp_UpdateUserProfile" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> | |
3192 | + <Parameter Name="Id" Type="int" Mode="In" /> | |
3193 | + <Parameter Name="FirstName" Type="varchar" Mode="In" /> | |
3194 | + <Parameter Name="LastName" Type="varchar" Mode="In" /> | |
3195 | + <Parameter Name="EmailId" Type="varchar" Mode="In" /> | |
3196 | + <Parameter Name="Status" Type="int" Mode="InOut" /> | |
3197 | + </Function> | |
3198 | + <EntityContainer Name="AIADatabaseV5ModelStoreContainer"> | |
2906 | 3199 | <EntitySet Name="AccountType" EntityType="Self.AccountType" Schema="dbo" store:Type="Tables" /> |
2907 | 3200 | <EntitySet Name="Activity" EntityType="Self.Activity" Schema="dbo" store:Type="Tables" /> |
2908 | 3201 | <EntitySet Name="AIARequired" EntityType="Self.AIARequired" Schema="dbo" store:Type="Tables" /> |
... | ... | @@ -6653,255 +6946,548 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]</Definin |
6653 | 6946 | <Parameter Name="Id" Mode="In" Type="Byte" /> |
6654 | 6947 | <Parameter Name="Status" Mode="InOut" Type="Boolean" /> |
6655 | 6948 | </FunctionImport> |
6656 | - </EntityContainer> | |
6657 | - <ComplexType Name="DA_GetBaseLayer_Result"> | |
6658 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6659 | - <Property Type="Int32" Name="RegionLayerMappingId" Nullable="false" /> | |
6660 | - <Property Type="Int32" Name="Zoom" Nullable="false" /> | |
6661 | - <Property Type="Int32" Name="LayerNumberInternal" Nullable="false" /> | |
6662 | - <Property Type="Int32" Name="TermNumber" Nullable="false" /> | |
6663 | - <Property Type="Int32" Name="ImageId" Nullable="false" /> | |
6664 | - <Property Type="Int32" Name="DissectibleRegionId" Nullable="false" /> | |
6665 | - </ComplexType> | |
6666 | - <ComplexType Name="DA_GetBitmask_Result"> | |
6667 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6668 | - <Property Type="Int32" Name="Zoom" Nullable="false" /> | |
6669 | - <Property Type="Int32" Name="FileLength" Nullable="false" /> | |
6670 | - <Property Type="Binary" Name="Bitmask" Nullable="false" MaxLength="Max" /> | |
6671 | - <Property Type="DateTime" Name="LastModified" Nullable="true" Precision="23" /> | |
6672 | - </ComplexType> | |
6673 | - <ComplexType Name="DA_GetBodyRegion_Result"> | |
6674 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6675 | - <Property Type="String" Name="Name" Nullable="false" MaxLength="50" /> | |
6676 | - </ComplexType> | |
6677 | - <ComplexType Name="DA_GetBodyRegionView_Result"> | |
6678 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6679 | - <Property Type="Int32" Name="BodyViewId" Nullable="false" /> | |
6680 | - <Property Type="Int32" Name="RegionId" Nullable="false" /> | |
6681 | - <Property Type="Int32" Name="Zorder" Nullable="false" /> | |
6682 | - <Property Type="Int32" Name="Zoom" Nullable="false" /> | |
6683 | - <Property Type="Int32" Name="OffsetX" Nullable="false" /> | |
6684 | - <Property Type="Int32" Name="OffsetY" Nullable="false" /> | |
6685 | - <Property Type="Int32" Name="Width" Nullable="false" /> | |
6686 | - <Property Type="Int32" Name="Height" Nullable="false" /> | |
6687 | - <Property Type="String" Name="IsMirrored" Nullable="false" MaxLength="1" /> | |
6688 | - <Property Type="Int32" Name="MirrorOffset" Nullable="false" /> | |
6689 | - <Property Type="String" Name="IsPrimary" Nullable="false" MaxLength="1" /> | |
6690 | - <Property Type="String" Name="CanvasBounds" Nullable="true" MaxLength="1" /> | |
6691 | - </ComplexType> | |
6692 | - <ComplexType Name="DA_GetDissectibleContent_Result"> | |
6693 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6694 | - <Property Type="Int32" Name="ContentDescriptorId" Nullable="false" /> | |
6695 | - <Property Type="Int32" Name="StructureGroupId" Nullable="false" /> | |
6696 | - <Property Type="Int32" Name="DissectibleBodyViewId" Nullable="false" /> | |
6697 | - <Property Type="String" Name="Sex" Nullable="false" MaxLength="1" /> | |
6698 | - <Property Type="String" Name="SexPresentation" Nullable="false" MaxLength="1" /> | |
6699 | - <Property Type="Int32" Name="PlrOffsetX" Nullable="true" /> | |
6700 | - <Property Type="Int32" Name="PlrOffsetY" Nullable="true" /> | |
6701 | - </ComplexType> | |
6702 | - <ComplexType Name="DA_GetLayerModel_Result"> | |
6703 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6704 | - <Property Type="Int32" Name="LayerNumber" Nullable="false" /> | |
6705 | - <Property Type="Int32" Name="LayerNumberInternal" Nullable="true" /> | |
6706 | - <Property Type="String" Name="LayerName" Nullable="false" MaxLength="50" /> | |
6707 | - <Property Type="String" Name="IsSkin" Nullable="false" MaxLength="1" /> | |
6708 | - <Property Type="String" Name="IsBase" Nullable="false" MaxLength="1" /> | |
6709 | - <Property Type="Int32" Name="DissectibleRegionId" Nullable="false" /> | |
6710 | - <Property Type="Int32" Name="LayerNumberInternal1" Nullable="false" /> | |
6711 | - <Property Type="Int32" Name="Zoom" Nullable="false" /> | |
6712 | - <Property Type="Int32" Name="ISOID" Nullable="false" /> | |
6713 | - <Property Type="Int32" Name="COMPID" Nullable="false" /> | |
6714 | - </ComplexType> | |
6715 | - <ComplexType Name="DA_GetNavigatorModel_Result"> | |
6716 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6717 | - <Property Type="String" Name="SkinTone" Nullable="false" MaxLength="1" /> | |
6718 | - <Property Type="String" Name="FigLeaf" Nullable="false" MaxLength="1" /> | |
6719 | - <Property Type="String" Name="GrayScale" Nullable="false" MaxLength="1" /> | |
6720 | - </ComplexType> | |
6721 | - <ComplexType Name="DA_GetOverLayLayerList_Result"> | |
6722 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6723 | - <Property Type="Int32" Name="DissectibleRegionId" Nullable="false" /> | |
6724 | - <Property Type="String" Name="SkinTone" Nullable="false" MaxLength="1" /> | |
6725 | - <Property Type="String" Name="IsForeground" Nullable="true" MaxLength="1" /> | |
6726 | - <Property Type="Int32" Name="LayerNumberStart" Nullable="false" /> | |
6727 | - <Property Type="Int32" Name="LayerNumberEnd" Nullable="false" /> | |
6728 | - <Property Type="Int32" Name="OffsetX" Nullable="false" /> | |
6729 | - <Property Type="Int32" Name="OffsetY" Nullable="false" /> | |
6730 | - <Property Type="Int32" Name="ImageId" Nullable="false" /> | |
6731 | - </ComplexType> | |
6732 | - <ComplexType Name="DA_GetPLRModel_Result"> | |
6733 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6734 | - <Property Type="Int32" Name="ParentId" Nullable="true" /> | |
6735 | - <Property Type="String" Name="SystemStructure" Nullable="false" MaxLength="1" /> | |
6736 | - <Property Type="Int32" Name="LayerNumberInternal" Nullable="true" /> | |
6737 | - <Property Type="Int32" Name="LayerNumber" Nullable="true" /> | |
6738 | - <Property Type="String" Name="IsSkin" Nullable="true" MaxLength="1" /> | |
6739 | - <Property Type="String" Name="IsBaseArt" Nullable="true" MaxLength="1" /> | |
6740 | - <Property Type="Int32" Name="TermNumber" Nullable="true" /> | |
6741 | - <Property Type="Int32" Name="PlrStructureId" Nullable="true" /> | |
6742 | - <Property Type="Int32" Name="PlrStructureIndex" Nullable="true" /> | |
6743 | - <Property Type="Int32" Name="DissectiblePolygonId" Nullable="true" /> | |
6744 | - <Property Type="Int32" Name="BoundLeft" Nullable="false" /> | |
6745 | - <Property Type="Int32" Name="BoundRight" Nullable="false" /> | |
6746 | - <Property Type="Int32" Name="BoundTop" Nullable="false" /> | |
6747 | - <Property Type="Int32" Name="BoundBottom" Nullable="false" /> | |
6748 | - </ComplexType> | |
6749 | - <ComplexType Name="DA_GetPolygonForId_Result"> | |
6750 | - <Property Type="Int32" Name="DissectiblePolygonId" Nullable="false" /> | |
6751 | - <Property Type="Int32" Name="PolygonSequence" Nullable="false" /> | |
6752 | - <Property Type="Int32" Name="PointX" Nullable="false" /> | |
6753 | - <Property Type="Int32" Name="PointY" Nullable="false" /> | |
6754 | - </ComplexType> | |
6755 | - <ComplexType Name="DA_GetStructureGroupId_Result"> | |
6756 | - <Property Type="Int32" Name="DissectibleBodyViewId" Nullable="false" /> | |
6757 | - <Property Type="String" Name="Sex" Nullable="false" MaxLength="1" /> | |
6758 | - </ComplexType> | |
6759 | - <ComplexType Name="DA_GetTermList_Result"> | |
6760 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6761 | - <Property Type="Int32" Name="TermNumber" Nullable="false" /> | |
6762 | - <Property Type="Int32" Name="VocabLexiconId" Nullable="false" /> | |
6763 | - <Property Type="String" Name="TermText" Nullable="false" MaxLength="200" /> | |
6764 | - </ComplexType> | |
6765 | - <ComplexType Name="DA_GetViewOrientation_Result"> | |
6766 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6767 | - <Property Type="String" Name="Name" Nullable="false" MaxLength="50" /> | |
6768 | - <Property Type="String" Name="Subject" Nullable="false" MaxLength="50" /> | |
6769 | - </ComplexType> | |
6770 | - <ComplexType Name="DA_GetVocabTermModal_Result"> | |
6771 | - <Property Type="Int32" Name="TermNumber" Nullable="false" /> | |
6772 | - <Property Type="String" Name="TermText" Nullable="false" MaxLength="200" /> | |
6773 | - <Property Type="Int32" Name="VocabSystemsNumbersId" Nullable="true" /> | |
6774 | - </ComplexType> | |
6775 | - <ComplexType Name="EC_GetAccountTypeList_Result"> | |
6776 | - <Property Type="Byte" Name="Id" Nullable="false" /> | |
6777 | - <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
6778 | - </ComplexType> | |
6779 | - <ComplexType Name="EC_GetCountryList_Result"> | |
6780 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6781 | - <Property Type="String" Name="CountryName" Nullable="false" MaxLength="50" /> | |
6782 | - </ComplexType> | |
6783 | - <ComplexType Name="EC_GetCourseConductedList_Result"> | |
6784 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6785 | - <Property Type="String" Name="CourseConduct" Nullable="false" MaxLength="50" /> | |
6786 | - </ComplexType> | |
6787 | - <ComplexType Name="EC_GetInstitutionList_Result"> | |
6788 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6789 | - <Property Type="String" Name="InstitutionName" Nullable="false" MaxLength="50" /> | |
6790 | - </ComplexType> | |
6791 | - <ComplexType Name="EC_GetInternetProductList_Result"> | |
6792 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6793 | - <Property Type="String" Name="InternetProduct" Nullable="false" MaxLength="50" /> | |
6794 | - </ComplexType> | |
6795 | - <ComplexType Name="EC_GetMultimediaProductList_Result"> | |
6796 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6797 | - <Property Type="String" Name="MultimediaProduct" Nullable="false" MaxLength="50" /> | |
6798 | - </ComplexType> | |
6799 | - <ComplexType Name="EC_GetProductRequiredList_Result"> | |
6800 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6801 | - <Property Type="String" Name="RecommendedType" Nullable="false" MaxLength="50" /> | |
6802 | - </ComplexType> | |
6803 | - <ComplexType Name="EC_GetReferList_Result"> | |
6804 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6805 | - <Property Type="String" Name="ReferedBy" Nullable="false" MaxLength="50" /> | |
6806 | - </ComplexType> | |
6807 | - <ComplexType Name="EC_GetSecurityQuestionList_Result"> | |
6808 | - <Property Type="Byte" Name="Id" Nullable="false" /> | |
6809 | - <Property Type="String" Name="Title" Nullable="false" MaxLength="100" /> | |
6810 | - </ComplexType> | |
6811 | - <ComplexType Name="EC_GetStateList_Result"> | |
6812 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6813 | - <Property Type="String" Name="StateName" Nullable="false" MaxLength="50" /> | |
6814 | - </ComplexType> | |
6815 | - <ComplexType Name="EC_GetSubscriptionPlan_Result"> | |
6816 | - <Property Type="Decimal" Name="price" Nullable="true" Precision="14" Scale="2" /> | |
6817 | - <Property Type="String" Name="title" Nullable="false" MaxLength="50" /> | |
6818 | - <Property Type="Int16" Name="Id" Nullable="false" /> | |
6819 | - <Property Type="Byte" Name="Duration" Nullable="false" /> | |
6820 | - </ComplexType> | |
6821 | - <ComplexType Name="EC_GetSubscriptionPlanInfo_Result"> | |
6822 | - <Property Type="Int64" Name="rowId" Nullable="true" /> | |
6823 | - <Property Type="Decimal" Name="price" Nullable="true" Precision="14" Scale="2" /> | |
6824 | - <Property Type="String" Name="title" Nullable="false" MaxLength="50" /> | |
6825 | - <Property Type="Int16" Name="Id" Nullable="false" /> | |
6826 | - <Property Type="Byte" Name="Duration" Nullable="false" /> | |
6827 | - </ComplexType> | |
6828 | - <ComplexType Name="GetAccountModule_Result"> | |
6829 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6830 | - <Property Type="String" Name="Title" Nullable="false" MaxLength="100" /> | |
6831 | - <Property Type="Boolean" Name="Status" Nullable="false" /> | |
6832 | - </ComplexType> | |
6833 | - <ComplexType Name="GetAIALicenseDetails_Result"> | |
6834 | - <Property Type="Int32" Name="LicenseId" Nullable="false" /> | |
6835 | - <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="16" /> | |
6836 | - <Property Type="String" Name="LicenseType" Nullable="false" MaxLength="50" /> | |
6837 | - <Property Type="String" Name="AccountType" Nullable="false" MaxLength="50" /> | |
6838 | - <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
6839 | - <Property Type="String" Name="LicenseState" Nullable="false" MaxLength="50" /> | |
6840 | - <Property Type="String" Name="LicenseCountry" Nullable="false" MaxLength="50" /> | |
6841 | - <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
6842 | - <Property Type="Int32" Name="CardNumber" Nullable="true" /> | |
6843 | - <Property Type="String" Name="ProductKey" Nullable="true" MaxLength="50" /> | |
6844 | - <Property Type="String" Name="ClientAdmin" Nullable="true" /> | |
6845 | - <Property Type="String" Name="LicenseeName" Nullable="false" MaxLength="101" /> | |
6846 | - <Property Type="String" Name="ContactAddress" Nullable="false" MaxLength="252" /> | |
6847 | - <Property Type="String" Name="EntryDate" Nullable="true" MaxLength="30" /> | |
6848 | - <Property Type="String" Name="LicenseStatus" Nullable="false" MaxLength="8" /> | |
6849 | - <Property Type="String" Name="ModifyDate" Nullable="false" MaxLength="30" /> | |
6850 | - <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" /> | |
6851 | - <Property Type="String" Name="RenewDate" Nullable="false" MaxLength="30" /> | |
6852 | - <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" /> | |
6853 | - <Property Type="Int32" Name="NoofImages" Nullable="true" /> | |
6854 | - </ComplexType> | |
6855 | - <ComplexType Name="GetAllEditionForLicense_Result"> | |
6856 | - <Property Type="Byte" Name="Id" Nullable="false" /> | |
6857 | - <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
6858 | - <Property Type="Int32" Name="IsSelected" Nullable="false" /> | |
6859 | - <Property Type="Int32" Name="TotalLogins" Nullable="false" /> | |
6860 | - </ComplexType> | |
6861 | - <ComplexType Name="GetAllLoginFailureCauses_Result"> | |
6862 | - <Property Type="Byte" Name="Id" Nullable="false" /> | |
6863 | - <Property Type="String" Name="Description" Nullable="true" MaxLength="1000" /> | |
6864 | - </ComplexType> | |
6865 | - <ComplexType Name="GetAllModuleStatus_Result"> | |
6866 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6867 | - <Property Type="String" Name="Title" Nullable="false" MaxLength="100" /> | |
6868 | - </ComplexType> | |
6869 | - <ComplexType Name="GetAllModuleStatusWithSlug_Result"> | |
6870 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6871 | - <Property Type="String" Name="Name" Nullable="false" MaxLength="100" /> | |
6872 | - <Property Type="String" Name="Slug" Nullable="true" MaxLength="100" /> | |
6873 | - </ComplexType> | |
6874 | - <ComplexType Name="GetAllUserWithGroup_Result"> | |
6875 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6876 | - <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
6877 | - <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
6878 | - <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> | |
6879 | - <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
6880 | - <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
6881 | - <Property Type="Int32" Name="InGroup" Nullable="false" /> | |
6882 | - </ComplexType> | |
6883 | - <ComplexType Name="GetAttributeTypeList_Result"> | |
6884 | - <Property Type="String" Name="Name" Nullable="false" MaxLength="50" /> | |
6885 | - <Property Type="String" Name="ShortName" Nullable="true" MaxLength="50" /> | |
6886 | - </ComplexType> | |
6887 | - <ComplexType Name="GetBlockedUserByAccNoAndType_Result"> | |
6888 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6889 | - <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
6890 | - <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
6891 | - <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> | |
6892 | - <Property Type="String" Name="Password" Nullable="false" MaxLength="50" /> | |
6893 | - <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
6894 | - <Property Type="String" Name="AccountNumber" Nullable="false" MaxLength="16" /> | |
6895 | - <Property Type="DateTime" Name="LoginTime" Nullable="true" Precision="23" /> | |
6896 | - </ComplexType> | |
6897 | - <ComplexType Name="GetBlockedUserByUserId_Result"> | |
6898 | - <Property Type="Int32" Name="Id" Nullable="false" /> | |
6899 | - <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
6900 | - <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
6901 | - <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> | |
6902 | - <Property Type="String" Name="Password" Nullable="false" MaxLength="50" /> | |
6903 | - <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
6904 | - <Property Type="String" Name="AccountNumber" Nullable="false" MaxLength="16" /> | |
6949 | + <FunctionImport Name="usp_UpdateAiaUserPassword"> | |
6950 | + <Parameter Name="Id" Mode="In" Type="Int32" /> | |
6951 | + <Parameter Name="NewPassword" Mode="In" Type="String" /> | |
6952 | + <Parameter Name="Status" Mode="InOut" Type="Boolean" /> | |
6953 | + </FunctionImport> | |
6954 | + <FunctionImport Name="usp_UpdateUserProfile"> | |
6955 | + <Parameter Name="Id" Mode="In" Type="Int32" /> | |
6956 | + <Parameter Name="FirstName" Mode="In" Type="String" /> | |
6957 | + <Parameter Name="LastName" Mode="In" Type="String" /> | |
6958 | + <Parameter Name="EmailId" Mode="In" Type="String" /> | |
6959 | + <Parameter Name="Status" Mode="InOut" Type="Int32" /> | |
6960 | + </FunctionImport> | |
6961 | + <FunctionImport Name="usp_EC_GetAccountTypeList" ReturnType="Collection(AIADatabaseV5Model.usp_EC_GetAccountTypeList_Result)" /> | |
6962 | + <FunctionImport Name="usp_DeleteLicense" ReturnType="Collection(String)"> | |
6963 | + <Parameter Name="iLicenseId" Mode="In" Type="Int32" /> | |
6964 | + </FunctionImport> | |
6965 | + <FunctionImport Name="usp_GetModuleStatusByLicenseId" ReturnType="Collection(AIADatabaseV5Model.usp_GetModuleStatusByLicenseId_Result)"> | |
6966 | + <Parameter Name="iLicenseId" Mode="In" Type="Int32" /> | |
6967 | + </FunctionImport> | |
6968 | + <FunctionImport Name="usp_GetSiteAccountAdmin" ReturnType="Collection(AIADatabaseV5Model.usp_GetSiteAccountAdmin_Result)"> | |
6969 | + <Parameter Name="AccountNumber" Mode="In" Type="String" /> | |
6970 | + </FunctionImport> | |
6971 | + <FunctionImport Name="usp_GetSiteAccountSites" ReturnType="Collection(AIADatabaseV5Model.usp_GetSiteAccountSites_Result)"> | |
6972 | + <Parameter Name="strAccountNumber" Mode="In" Type="String" /> | |
6973 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
6974 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
6975 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
6976 | + </FunctionImport> | |
6977 | + <FunctionImport Name="usp_GetSiteAccoutDetail" ReturnType="Collection(AIADatabaseV5Model.usp_GetSiteAccoutDetail_Result)"> | |
6978 | + <Parameter Name="strAccountNumber" Mode="In" Type="String" /> | |
6979 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
6980 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
6981 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
6982 | + </FunctionImport> | |
6983 | + <FunctionImport Name="usp_InsertNewLicenseAccount" ReturnType="Collection(String)"> | |
6984 | + <Parameter Name="sAccountNumber" Mode="In" Type="String" /> | |
6985 | + <Parameter Name="sLicenseeFname" Mode="In" Type="String" /> | |
6986 | + <Parameter Name="sLicenseeLname" Mode="In" Type="String" /> | |
6987 | + <Parameter Name="iLicenseTypeId" Mode="In" Type="Byte" /> | |
6988 | + <Parameter Name="iAccountTypeId" Mode="In" Type="Byte" /> | |
6989 | + <Parameter Name="sInstitutionName" Mode="In" Type="String" /> | |
6990 | + <Parameter Name="sAddress1" Mode="In" Type="String" /> | |
6991 | + <Parameter Name="sAddress2" Mode="In" Type="String" /> | |
6992 | + <Parameter Name="sCity" Mode="In" Type="String" /> | |
6993 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
6994 | + <Parameter Name="iStateId" Mode="In" Type="Int32" /> | |
6995 | + <Parameter Name="iCountryId" Mode="In" Type="Int32" /> | |
6996 | + <Parameter Name="sPhone" Mode="In" Type="String" /> | |
6997 | + <Parameter Name="sEmailId" Mode="In" Type="String" /> | |
6998 | + <Parameter Name="iTotalLogins" Mode="In" Type="Int32" /> | |
6999 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7000 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7001 | + <Parameter Name="sMasterIP" Mode="In" Type="String" /> | |
7002 | + <Parameter Name="sEditionList" Mode="In" Type="String" /> | |
7003 | + <Parameter Name="iPrice" Mode="In" Type="Decimal" /> | |
7004 | + <Parameter Name="sProductKey" Mode="In" Type="String" /> | |
7005 | + <Parameter Name="sSiteIPTo" Mode="In" Type="String" /> | |
7006 | + <Parameter Name="sSiteMasterIPTo" Mode="In" Type="String" /> | |
7007 | + <Parameter Name="iNoofImages" Mode="In" Type="Int32" /> | |
7008 | + </FunctionImport> | |
7009 | + <FunctionImport Name="usp_InsertSingleLicenseAccount" ReturnType="Collection(String)"> | |
7010 | + <Parameter Name="sAccountNumber" Mode="In" Type="String" /> | |
7011 | + <Parameter Name="sLicenseeFname" Mode="In" Type="String" /> | |
7012 | + <Parameter Name="sLicenseeLname" Mode="In" Type="String" /> | |
7013 | + <Parameter Name="iAccountTypeId" Mode="In" Type="Byte" /> | |
7014 | + <Parameter Name="sInstitutionName" Mode="In" Type="String" /> | |
7015 | + <Parameter Name="sAddress1" Mode="In" Type="String" /> | |
7016 | + <Parameter Name="sAddress2" Mode="In" Type="String" /> | |
7017 | + <Parameter Name="sCity" Mode="In" Type="String" /> | |
7018 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
7019 | + <Parameter Name="iStateId" Mode="In" Type="Int32" /> | |
7020 | + <Parameter Name="iCountryId" Mode="In" Type="Int32" /> | |
7021 | + <Parameter Name="sPhone" Mode="In" Type="String" /> | |
7022 | + <Parameter Name="sEmailId" Mode="In" Type="String" /> | |
7023 | + <Parameter Name="iTotalLogins" Mode="In" Type="Int32" /> | |
7024 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7025 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7026 | + <Parameter Name="sEditionList" Mode="In" Type="String" /> | |
7027 | + <Parameter Name="iPrice" Mode="In" Type="Decimal" /> | |
7028 | + <Parameter Name="sProductKey" Mode="In" Type="String" /> | |
7029 | + <Parameter Name="sLoginId" Mode="In" Type="String" /> | |
7030 | + <Parameter Name="sPassword" Mode="In" Type="String" /> | |
7031 | + <Parameter Name="iSecurityQuesId" Mode="In" Type="Byte" /> | |
7032 | + <Parameter Name="sSecurityAnswer" Mode="In" Type="String" /> | |
7033 | + <Parameter Name="iCreatorId" Mode="In" Type="Int32" /> | |
7034 | + <Parameter Name="iNoofImages" Mode="In" Type="Int32" /> | |
7035 | + </FunctionImport> | |
7036 | + <FunctionImport Name="usp_InsertTestLicenseAccount" ReturnType="Collection(String)"> | |
7037 | + <Parameter Name="sAccountNumber" Mode="In" Type="String" /> | |
7038 | + <Parameter Name="sLicenseeFname" Mode="In" Type="String" /> | |
7039 | + <Parameter Name="sLicenseeLname" Mode="In" Type="String" /> | |
7040 | + <Parameter Name="sLoginId" Mode="In" Type="String" /> | |
7041 | + <Parameter Name="sPassword" Mode="In" Type="String" /> | |
7042 | + <Parameter Name="sEmailId" Mode="In" Type="String" /> | |
7043 | + <Parameter Name="iAccountTypeId" Mode="In" Type="Byte" /> | |
7044 | + <Parameter Name="iEditionId" Mode="In" Type="Byte" /> | |
7045 | + <Parameter Name="sAddress" Mode="In" Type="String" /> | |
7046 | + <Parameter Name="sCity" Mode="In" Type="String" /> | |
7047 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
7048 | + <Parameter Name="iStateId" Mode="In" Type="Int32" /> | |
7049 | + <Parameter Name="iCountryId" Mode="In" Type="Int32" /> | |
7050 | + <Parameter Name="sPhone" Mode="In" Type="String" /> | |
7051 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7052 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7053 | + <Parameter Name="iCreatorId" Mode="In" Type="Int32" /> | |
7054 | + <Parameter Name="iNoofImages" Mode="In" Type="Int32" /> | |
7055 | + </FunctionImport> | |
7056 | + <FunctionImport Name="usp_UpdateLicenseAccount" ReturnType="Collection(String)"> | |
7057 | + <Parameter Name="iLicenseId" Mode="In" Type="Int32" /> | |
7058 | + <Parameter Name="sLicenseeFname" Mode="In" Type="String" /> | |
7059 | + <Parameter Name="sLicenseeLname" Mode="In" Type="String" /> | |
7060 | + <Parameter Name="iLicenseTypeId" Mode="In" Type="Byte" /> | |
7061 | + <Parameter Name="iAccountTypeId" Mode="In" Type="Byte" /> | |
7062 | + <Parameter Name="sInstitutionName" Mode="In" Type="String" /> | |
7063 | + <Parameter Name="sAddress1" Mode="In" Type="String" /> | |
7064 | + <Parameter Name="sAddress2" Mode="In" Type="String" /> | |
7065 | + <Parameter Name="sCity" Mode="In" Type="String" /> | |
7066 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
7067 | + <Parameter Name="iStateId" Mode="In" Type="Int32" /> | |
7068 | + <Parameter Name="iCountryId" Mode="In" Type="Int32" /> | |
7069 | + <Parameter Name="sPhone" Mode="In" Type="String" /> | |
7070 | + <Parameter Name="sEmailId" Mode="In" Type="String" /> | |
7071 | + <Parameter Name="iIsActive" Mode="In" Type="Byte" /> | |
7072 | + <Parameter Name="iTotalLogins" Mode="In" Type="Int32" /> | |
7073 | + <Parameter Name="iIsRennew" Mode="In" Type="Byte" /> | |
7074 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7075 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7076 | + <Parameter Name="sRenewDate" Mode="In" Type="String" /> | |
7077 | + <Parameter Name="sMasterIP" Mode="In" Type="String" /> | |
7078 | + <Parameter Name="sEditionList" Mode="In" Type="String" /> | |
7079 | + <Parameter Name="iPrice" Mode="In" Type="Decimal" /> | |
7080 | + <Parameter Name="sProductKey" Mode="In" Type="String" /> | |
7081 | + <Parameter Name="sSiteIPTo" Mode="In" Type="String" /> | |
7082 | + <Parameter Name="sSiteMasterIPTo" Mode="In" Type="String" /> | |
7083 | + <Parameter Name="iNoofImages" Mode="In" Type="Int32" /> | |
7084 | + </FunctionImport> | |
7085 | + <FunctionImport Name="usp_GetDiscountCodes" ReturnType="Collection(AIADatabaseV5Model.usp_GetDiscountCodes_Result)"> | |
7086 | + <Parameter Name="sDiscountCode" Mode="In" Type="String" /> | |
7087 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7088 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7089 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7090 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7091 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7092 | + </FunctionImport> | |
7093 | + <FunctionImport Name="usp_InsertNewDiscount" ReturnType="Collection(String)"> | |
7094 | + <Parameter Name="dPercentage" Mode="In" Type="Decimal" /> | |
7095 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7096 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7097 | + <Parameter Name="sDiscountCode" Mode="In" Type="String" /> | |
7098 | + </FunctionImport> | |
7099 | + <FunctionImport Name="usp_UpdateDiscount" ReturnType="Collection(String)"> | |
7100 | + <Parameter Name="iDiscountId" Mode="In" Type="Int32" /> | |
7101 | + <Parameter Name="dPercentage" Mode="In" Type="Decimal" /> | |
7102 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7103 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7104 | + <Parameter Name="iActive" Mode="In" Type="Byte" /> | |
7105 | + <Parameter Name="sDiscountCode" Mode="In" Type="String" /> | |
7106 | + </FunctionImport> | |
7107 | + <FunctionImport Name="usp_EC_GetCountryList" ReturnType="Collection(AIADatabaseV5Model.usp_EC_GetCountryList_Result)" /> | |
7108 | + <FunctionImport Name="usp_EC_GetStateList" ReturnType="Collection(AIADatabaseV5Model.usp_EC_GetStateList_Result)" /> | |
7109 | + <FunctionImport Name="usp_EC_GetSecurityQuestionList" ReturnType="Collection(AIADatabaseV5Model.usp_EC_GetSecurityQuestionList_Result)" /> | |
7110 | + <FunctionImport Name="usp_GetCancelledLicenses" ReturnType="Collection(AIADatabaseV5Model.usp_GetCancelledLicenses_Result)"> | |
7111 | + <Parameter Name="sFromDate" Mode="In" Type="String" /> | |
7112 | + <Parameter Name="sToDate" Mode="In" Type="String" /> | |
7113 | + <Parameter Name="iStartPrice" Mode="In" Type="Decimal" /> | |
7114 | + <Parameter Name="iEndPrice" Mode="In" Type="Decimal" /> | |
7115 | + <Parameter Name="iLicenseTypeId" Mode="In" Type="Byte" /> | |
7116 | + <Parameter Name="iAccountTypeId" Mode="In" Type="Byte" /> | |
7117 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
7118 | + <Parameter Name="iStateId" Mode="In" Type="Int32" /> | |
7119 | + <Parameter Name="iCountryId" Mode="In" Type="Int32" /> | |
7120 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7121 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7122 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7123 | + </FunctionImport> | |
7124 | + <FunctionImport Name="usp_GetCustomerSummary" ReturnType="Collection(AIADatabaseV5Model.usp_GetCustomerSummary_Result)"> | |
7125 | + <Parameter Name="sAccoutNumber" Mode="In" Type="String" /> | |
7126 | + <Parameter Name="sLicenseeFullName" Mode="In" Type="String" /> | |
7127 | + <Parameter Name="iStartPrice" Mode="In" Type="Decimal" /> | |
7128 | + <Parameter Name="iEndPrice" Mode="In" Type="Decimal" /> | |
7129 | + <Parameter Name="iLicenseType" Mode="In" Type="Byte" /> | |
7130 | + <Parameter Name="iAccountType" Mode="In" Type="Byte" /> | |
7131 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
7132 | + <Parameter Name="iState" Mode="In" Type="Int32" /> | |
7133 | + <Parameter Name="iCountry" Mode="In" Type="Int32" /> | |
7134 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7135 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7136 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7137 | + </FunctionImport> | |
7138 | + <FunctionImport Name="usp_GetDiscountReport" ReturnType="Collection(AIADatabaseV5Model.usp_GetDiscountReport_Result)"> | |
7139 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7140 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7141 | + <Parameter Name="intDiscountID" Mode="In" Type="Int32" /> | |
7142 | + <Parameter Name="sAccoutNumber" Mode="In" Type="String" /> | |
7143 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7144 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7145 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7146 | + </FunctionImport> | |
7147 | + <FunctionImport Name="usp_GetExpiringLicenses" ReturnType="Collection(AIADatabaseV5Model.usp_GetExpiringLicenses_Result)"> | |
7148 | + <Parameter Name="sFromDate" Mode="In" Type="String" /> | |
7149 | + <Parameter Name="sToDate" Mode="In" Type="String" /> | |
7150 | + <Parameter Name="iStartPrice" Mode="In" Type="Decimal" /> | |
7151 | + <Parameter Name="iEndPrice" Mode="In" Type="Decimal" /> | |
7152 | + <Parameter Name="iLicenseTypeId" Mode="In" Type="Int32" /> | |
7153 | + <Parameter Name="iAccountTypeId" Mode="In" Type="Int32" /> | |
7154 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
7155 | + <Parameter Name="iStateId" Mode="In" Type="Int32" /> | |
7156 | + <Parameter Name="iCountryId" Mode="In" Type="Int32" /> | |
7157 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7158 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7159 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7160 | + </FunctionImport> | |
7161 | + <FunctionImport Name="usp_GetExportedImageDetails" ReturnType="Collection(AIADatabaseV5Model.usp_GetExportedImageDetails_Result)"> | |
7162 | + <Parameter Name="sStartDate" Mode="In" Type="String" /> | |
7163 | + <Parameter Name="sEndDate" Mode="In" Type="String" /> | |
7164 | + <Parameter Name="sAccoutNumber" Mode="In" Type="String" /> | |
7165 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7166 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7167 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7168 | + </FunctionImport> | |
7169 | + <FunctionImport Name="usp_GetNetAdSummaryReport" ReturnType="Collection(AIADatabaseV5Model.usp_GetNetAdSummaryReport_Result)"> | |
7170 | + <Parameter Name="sFromDate" Mode="In" Type="String" /> | |
7171 | + <Parameter Name="sToDate" Mode="In" Type="String" /> | |
7172 | + <Parameter Name="iStartPrice" Mode="In" Type="Decimal" /> | |
7173 | + <Parameter Name="iEndPrice" Mode="In" Type="Decimal" /> | |
7174 | + <Parameter Name="iLicenseTypeId" Mode="In" Type="Byte" /> | |
7175 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7176 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7177 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7178 | + </FunctionImport> | |
7179 | + <FunctionImport Name="usp_GetSiteLicenseUsageReport" ReturnType="Collection(AIADatabaseV5Model.usp_GetSiteLicenseUsageReport_Result)"> | |
7180 | + <Parameter Name="sFromDate" Mode="In" Type="String" /> | |
7181 | + <Parameter Name="sToDate" Mode="In" Type="String" /> | |
7182 | + <Parameter Name="sAccoutNumber" Mode="In" Type="String" /> | |
7183 | + <Parameter Name="iEditionId" Mode="In" Type="Byte" /> | |
7184 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7185 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7186 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7187 | + </FunctionImport> | |
7188 | + <FunctionImport Name="usp_GetUsageReport" ReturnType="Collection(AIADatabaseV5Model.usp_GetUsageReport_Result)"> | |
7189 | + <Parameter Name="sFromDate" Mode="In" Type="String" /> | |
7190 | + <Parameter Name="sToDate" Mode="In" Type="String" /> | |
7191 | + <Parameter Name="sAccoutNumber" Mode="In" Type="String" /> | |
7192 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
7193 | + <Parameter Name="iState" Mode="In" Type="Int32" /> | |
7194 | + <Parameter Name="iCountry" Mode="In" Type="Int32" /> | |
7195 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7196 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7197 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7198 | + </FunctionImport> | |
7199 | + <FunctionImport Name="usp_GetSearchUsers" ReturnType="Collection(AIADatabaseV5Model.usp_GetSearchUsers_Result)"> | |
7200 | + <Parameter Name="sFirstName" Mode="In" Type="String" /> | |
7201 | + <Parameter Name="sLastName" Mode="In" Type="String" /> | |
7202 | + <Parameter Name="sEmailId" Mode="In" Type="String" /> | |
7203 | + <Parameter Name="sAccoutNumber" Mode="In" Type="String" /> | |
7204 | + <Parameter Name="iUserTypeId" Mode="In" Type="Int32" /> | |
7205 | + <Parameter Name="iAccountTypeId" Mode="In" Type="Int32" /> | |
7206 | + <Parameter Name="iLoginUserType" Mode="In" Type="Int32" /> | |
7207 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7208 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7209 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7210 | + </FunctionImport> | |
7211 | + <FunctionImport Name="usp_GetSiteLicenseUsageReports" ReturnType="Collection(AIADatabaseV5Model.usp_GetSiteLicenseUsageReports_Result)"> | |
7212 | + <Parameter Name="sFromDate" Mode="In" Type="String" /> | |
7213 | + <Parameter Name="sToDate" Mode="In" Type="String" /> | |
7214 | + <Parameter Name="sAccoutNumber" Mode="In" Type="String" /> | |
7215 | + <Parameter Name="iEditionId" Mode="In" Type="Byte" /> | |
7216 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7217 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7218 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7219 | + </FunctionImport> | |
7220 | + <FunctionImport Name="usp_GetUserTyeByAccountNumber" ReturnType="Collection(AIADatabaseV5Model.usp_GetUserTyeByAccountNumber_Result)"> | |
7221 | + <Parameter Name="iUserTypeId" Mode="In" Type="Byte" /> | |
7222 | + <Parameter Name="iLicenseId" Mode="In" Type="Int32" /> | |
7223 | + </FunctionImport> | |
7224 | + <FunctionImport Name="usp_GetSubscribedLicenses" ReturnType="Collection(AIADatabaseV5Model.usp_GetSubscribedLicenses_Result)"> | |
7225 | + <Parameter Name="sFromDate" Mode="In" Type="String" /> | |
7226 | + <Parameter Name="sToDate" Mode="In" Type="String" /> | |
7227 | + <Parameter Name="iStartPrice" Mode="In" Type="Decimal" /> | |
7228 | + <Parameter Name="iEndPrice" Mode="In" Type="Decimal" /> | |
7229 | + <Parameter Name="iLicenseTypeId" Mode="In" Type="Byte" /> | |
7230 | + <Parameter Name="iAccountTypeId" Mode="In" Type="Byte" /> | |
7231 | + <Parameter Name="sZip" Mode="In" Type="String" /> | |
7232 | + <Parameter Name="iStateId" Mode="In" Type="Int32" /> | |
7233 | + <Parameter Name="iCountryId" Mode="In" Type="Int32" /> | |
7234 | + <Parameter Name="pageNo" Mode="In" Type="Int32" /> | |
7235 | + <Parameter Name="pageLength" Mode="In" Type="Int32" /> | |
7236 | + <Parameter Name="recordCount" Mode="InOut" Type="Int32" /> | |
7237 | + </FunctionImport> | |
7238 | + <FunctionImport Name="usp_GetBlockedUserByAccNoAndType" ReturnType="Collection(AIADatabaseV5Model.usp_GetBlockedUserByAccNoAndType_Result)"> | |
7239 | + <Parameter Name="iUserTypeId" Mode="In" Type="Byte" /> | |
7240 | + <Parameter Name="iLicenseId" Mode="In" Type="Int32" /> | |
7241 | + </FunctionImport> | |
7242 | + </EntityContainer> | |
7243 | + <ComplexType Name="DA_GetBaseLayer_Result"> | |
7244 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7245 | + <Property Type="Int32" Name="RegionLayerMappingId" Nullable="false" /> | |
7246 | + <Property Type="Int32" Name="Zoom" Nullable="false" /> | |
7247 | + <Property Type="Int32" Name="LayerNumberInternal" Nullable="false" /> | |
7248 | + <Property Type="Int32" Name="TermNumber" Nullable="false" /> | |
7249 | + <Property Type="Int32" Name="ImageId" Nullable="false" /> | |
7250 | + <Property Type="Int32" Name="DissectibleRegionId" Nullable="false" /> | |
7251 | + </ComplexType> | |
7252 | + <ComplexType Name="DA_GetBitmask_Result"> | |
7253 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7254 | + <Property Type="Int32" Name="Zoom" Nullable="false" /> | |
7255 | + <Property Type="Int32" Name="FileLength" Nullable="false" /> | |
7256 | + <Property Type="Binary" Name="Bitmask" Nullable="false" MaxLength="Max" /> | |
7257 | + <Property Type="DateTime" Name="LastModified" Nullable="true" Precision="23" /> | |
7258 | + </ComplexType> | |
7259 | + <ComplexType Name="DA_GetBodyRegion_Result"> | |
7260 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7261 | + <Property Type="String" Name="Name" Nullable="false" MaxLength="50" /> | |
7262 | + </ComplexType> | |
7263 | + <ComplexType Name="DA_GetBodyRegionView_Result"> | |
7264 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7265 | + <Property Type="Int32" Name="BodyViewId" Nullable="false" /> | |
7266 | + <Property Type="Int32" Name="RegionId" Nullable="false" /> | |
7267 | + <Property Type="Int32" Name="Zorder" Nullable="false" /> | |
7268 | + <Property Type="Int32" Name="Zoom" Nullable="false" /> | |
7269 | + <Property Type="Int32" Name="OffsetX" Nullable="false" /> | |
7270 | + <Property Type="Int32" Name="OffsetY" Nullable="false" /> | |
7271 | + <Property Type="Int32" Name="Width" Nullable="false" /> | |
7272 | + <Property Type="Int32" Name="Height" Nullable="false" /> | |
7273 | + <Property Type="String" Name="IsMirrored" Nullable="false" MaxLength="1" /> | |
7274 | + <Property Type="Int32" Name="MirrorOffset" Nullable="false" /> | |
7275 | + <Property Type="String" Name="IsPrimary" Nullable="false" MaxLength="1" /> | |
7276 | + <Property Type="String" Name="CanvasBounds" Nullable="true" MaxLength="1" /> | |
7277 | + </ComplexType> | |
7278 | + <ComplexType Name="DA_GetDissectibleContent_Result"> | |
7279 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7280 | + <Property Type="Int32" Name="ContentDescriptorId" Nullable="false" /> | |
7281 | + <Property Type="Int32" Name="StructureGroupId" Nullable="false" /> | |
7282 | + <Property Type="Int32" Name="DissectibleBodyViewId" Nullable="false" /> | |
7283 | + <Property Type="String" Name="Sex" Nullable="false" MaxLength="1" /> | |
7284 | + <Property Type="String" Name="SexPresentation" Nullable="false" MaxLength="1" /> | |
7285 | + <Property Type="Int32" Name="PlrOffsetX" Nullable="true" /> | |
7286 | + <Property Type="Int32" Name="PlrOffsetY" Nullable="true" /> | |
7287 | + </ComplexType> | |
7288 | + <ComplexType Name="DA_GetLayerModel_Result"> | |
7289 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7290 | + <Property Type="Int32" Name="LayerNumber" Nullable="false" /> | |
7291 | + <Property Type="Int32" Name="LayerNumberInternal" Nullable="true" /> | |
7292 | + <Property Type="String" Name="LayerName" Nullable="false" MaxLength="50" /> | |
7293 | + <Property Type="String" Name="IsSkin" Nullable="false" MaxLength="1" /> | |
7294 | + <Property Type="String" Name="IsBase" Nullable="false" MaxLength="1" /> | |
7295 | + <Property Type="Int32" Name="DissectibleRegionId" Nullable="false" /> | |
7296 | + <Property Type="Int32" Name="LayerNumberInternal1" Nullable="false" /> | |
7297 | + <Property Type="Int32" Name="Zoom" Nullable="false" /> | |
7298 | + <Property Type="Int32" Name="ISOID" Nullable="false" /> | |
7299 | + <Property Type="Int32" Name="COMPID" Nullable="false" /> | |
7300 | + </ComplexType> | |
7301 | + <ComplexType Name="DA_GetNavigatorModel_Result"> | |
7302 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7303 | + <Property Type="String" Name="SkinTone" Nullable="false" MaxLength="1" /> | |
7304 | + <Property Type="String" Name="FigLeaf" Nullable="false" MaxLength="1" /> | |
7305 | + <Property Type="String" Name="GrayScale" Nullable="false" MaxLength="1" /> | |
7306 | + </ComplexType> | |
7307 | + <ComplexType Name="DA_GetOverLayLayerList_Result"> | |
7308 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7309 | + <Property Type="Int32" Name="DissectibleRegionId" Nullable="false" /> | |
7310 | + <Property Type="String" Name="SkinTone" Nullable="false" MaxLength="1" /> | |
7311 | + <Property Type="String" Name="IsForeground" Nullable="true" MaxLength="1" /> | |
7312 | + <Property Type="Int32" Name="LayerNumberStart" Nullable="false" /> | |
7313 | + <Property Type="Int32" Name="LayerNumberEnd" Nullable="false" /> | |
7314 | + <Property Type="Int32" Name="OffsetX" Nullable="false" /> | |
7315 | + <Property Type="Int32" Name="OffsetY" Nullable="false" /> | |
7316 | + <Property Type="Int32" Name="ImageId" Nullable="false" /> | |
7317 | + </ComplexType> | |
7318 | + <ComplexType Name="DA_GetPLRModel_Result"> | |
7319 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7320 | + <Property Type="Int32" Name="ParentId" Nullable="true" /> | |
7321 | + <Property Type="String" Name="SystemStructure" Nullable="false" MaxLength="1" /> | |
7322 | + <Property Type="Int32" Name="LayerNumberInternal" Nullable="true" /> | |
7323 | + <Property Type="Int32" Name="LayerNumber" Nullable="true" /> | |
7324 | + <Property Type="String" Name="IsSkin" Nullable="true" MaxLength="1" /> | |
7325 | + <Property Type="String" Name="IsBaseArt" Nullable="true" MaxLength="1" /> | |
7326 | + <Property Type="Int32" Name="TermNumber" Nullable="true" /> | |
7327 | + <Property Type="Int32" Name="PlrStructureId" Nullable="true" /> | |
7328 | + <Property Type="Int32" Name="PlrStructureIndex" Nullable="true" /> | |
7329 | + <Property Type="Int32" Name="DissectiblePolygonId" Nullable="true" /> | |
7330 | + <Property Type="Int32" Name="BoundLeft" Nullable="false" /> | |
7331 | + <Property Type="Int32" Name="BoundRight" Nullable="false" /> | |
7332 | + <Property Type="Int32" Name="BoundTop" Nullable="false" /> | |
7333 | + <Property Type="Int32" Name="BoundBottom" Nullable="false" /> | |
7334 | + </ComplexType> | |
7335 | + <ComplexType Name="DA_GetPolygonForId_Result"> | |
7336 | + <Property Type="Int32" Name="DissectiblePolygonId" Nullable="false" /> | |
7337 | + <Property Type="Int32" Name="PolygonSequence" Nullable="false" /> | |
7338 | + <Property Type="Int32" Name="PointX" Nullable="false" /> | |
7339 | + <Property Type="Int32" Name="PointY" Nullable="false" /> | |
7340 | + </ComplexType> | |
7341 | + <ComplexType Name="DA_GetStructureGroupId_Result"> | |
7342 | + <Property Type="Int32" Name="DissectibleBodyViewId" Nullable="false" /> | |
7343 | + <Property Type="String" Name="Sex" Nullable="false" MaxLength="1" /> | |
7344 | + </ComplexType> | |
7345 | + <ComplexType Name="DA_GetTermList_Result"> | |
7346 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7347 | + <Property Type="Int32" Name="TermNumber" Nullable="false" /> | |
7348 | + <Property Type="Int32" Name="VocabLexiconId" Nullable="false" /> | |
7349 | + <Property Type="String" Name="TermText" Nullable="false" MaxLength="200" /> | |
7350 | + </ComplexType> | |
7351 | + <ComplexType Name="DA_GetViewOrientation_Result"> | |
7352 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7353 | + <Property Type="String" Name="Name" Nullable="false" MaxLength="50" /> | |
7354 | + <Property Type="String" Name="Subject" Nullable="false" MaxLength="50" /> | |
7355 | + </ComplexType> | |
7356 | + <ComplexType Name="DA_GetVocabTermModal_Result"> | |
7357 | + <Property Type="Int32" Name="TermNumber" Nullable="false" /> | |
7358 | + <Property Type="String" Name="TermText" Nullable="false" MaxLength="200" /> | |
7359 | + <Property Type="Int32" Name="VocabSystemsNumbersId" Nullable="true" /> | |
7360 | + </ComplexType> | |
7361 | + <ComplexType Name="EC_GetAccountTypeList_Result"> | |
7362 | + <Property Type="Byte" Name="Id" Nullable="false" /> | |
7363 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
7364 | + </ComplexType> | |
7365 | + <ComplexType Name="EC_GetCountryList_Result"> | |
7366 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7367 | + <Property Type="String" Name="CountryName" Nullable="false" MaxLength="50" /> | |
7368 | + </ComplexType> | |
7369 | + <ComplexType Name="EC_GetCourseConductedList_Result"> | |
7370 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7371 | + <Property Type="String" Name="CourseConduct" Nullable="false" MaxLength="50" /> | |
7372 | + </ComplexType> | |
7373 | + <ComplexType Name="EC_GetInstitutionList_Result"> | |
7374 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7375 | + <Property Type="String" Name="InstitutionName" Nullable="false" MaxLength="50" /> | |
7376 | + </ComplexType> | |
7377 | + <ComplexType Name="EC_GetInternetProductList_Result"> | |
7378 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7379 | + <Property Type="String" Name="InternetProduct" Nullable="false" MaxLength="50" /> | |
7380 | + </ComplexType> | |
7381 | + <ComplexType Name="EC_GetMultimediaProductList_Result"> | |
7382 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7383 | + <Property Type="String" Name="MultimediaProduct" Nullable="false" MaxLength="50" /> | |
7384 | + </ComplexType> | |
7385 | + <ComplexType Name="EC_GetProductRequiredList_Result"> | |
7386 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7387 | + <Property Type="String" Name="RecommendedType" Nullable="false" MaxLength="50" /> | |
7388 | + </ComplexType> | |
7389 | + <ComplexType Name="EC_GetReferList_Result"> | |
7390 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7391 | + <Property Type="String" Name="ReferedBy" Nullable="false" MaxLength="50" /> | |
7392 | + </ComplexType> | |
7393 | + <ComplexType Name="EC_GetSecurityQuestionList_Result"> | |
7394 | + <Property Type="Byte" Name="Id" Nullable="false" /> | |
7395 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="100" /> | |
7396 | + </ComplexType> | |
7397 | + <ComplexType Name="EC_GetStateList_Result"> | |
7398 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7399 | + <Property Type="String" Name="StateName" Nullable="false" MaxLength="50" /> | |
7400 | + </ComplexType> | |
7401 | + <ComplexType Name="EC_GetSubscriptionPlan_Result"> | |
7402 | + <Property Type="Decimal" Name="price" Nullable="true" Precision="14" Scale="2" /> | |
7403 | + <Property Type="String" Name="title" Nullable="false" MaxLength="50" /> | |
7404 | + <Property Type="Int16" Name="Id" Nullable="false" /> | |
7405 | + <Property Type="Byte" Name="Duration" Nullable="false" /> | |
7406 | + </ComplexType> | |
7407 | + <ComplexType Name="EC_GetSubscriptionPlanInfo_Result"> | |
7408 | + <Property Type="Int64" Name="rowId" Nullable="true" /> | |
7409 | + <Property Type="Decimal" Name="price" Nullable="true" Precision="14" Scale="2" /> | |
7410 | + <Property Type="String" Name="title" Nullable="false" MaxLength="50" /> | |
7411 | + <Property Type="Int16" Name="Id" Nullable="false" /> | |
7412 | + <Property Type="Byte" Name="Duration" Nullable="false" /> | |
7413 | + </ComplexType> | |
7414 | + <ComplexType Name="GetAccountModule_Result"> | |
7415 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7416 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="100" /> | |
7417 | + <Property Type="Boolean" Name="Status" Nullable="false" /> | |
7418 | + </ComplexType> | |
7419 | + <ComplexType Name="GetAIALicenseDetails_Result"> | |
7420 | + <Property Type="Int32" Name="LicenseId" Nullable="false" /> | |
7421 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="16" /> | |
7422 | + <Property Type="String" Name="LicenseType" Nullable="false" MaxLength="50" /> | |
7423 | + <Property Type="String" Name="AccountType" Nullable="false" MaxLength="50" /> | |
7424 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
7425 | + <Property Type="String" Name="LicenseState" Nullable="false" MaxLength="50" /> | |
7426 | + <Property Type="String" Name="LicenseCountry" Nullable="false" MaxLength="50" /> | |
7427 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
7428 | + <Property Type="Int32" Name="CardNumber" Nullable="true" /> | |
7429 | + <Property Type="String" Name="ProductKey" Nullable="true" MaxLength="50" /> | |
7430 | + <Property Type="String" Name="ClientAdmin" Nullable="true" /> | |
7431 | + <Property Type="String" Name="LicenseeName" Nullable="false" MaxLength="101" /> | |
7432 | + <Property Type="String" Name="ContactAddress" Nullable="false" MaxLength="252" /> | |
7433 | + <Property Type="String" Name="EntryDate" Nullable="true" MaxLength="30" /> | |
7434 | + <Property Type="String" Name="LicenseStatus" Nullable="false" MaxLength="8" /> | |
7435 | + <Property Type="String" Name="ModifyDate" Nullable="false" MaxLength="30" /> | |
7436 | + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" /> | |
7437 | + <Property Type="String" Name="RenewDate" Nullable="false" MaxLength="30" /> | |
7438 | + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" /> | |
7439 | + <Property Type="Int32" Name="NoofImages" Nullable="true" /> | |
7440 | + </ComplexType> | |
7441 | + <ComplexType Name="GetAllEditionForLicense_Result"> | |
7442 | + <Property Type="Byte" Name="Id" Nullable="false" /> | |
7443 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
7444 | + <Property Type="Int32" Name="IsSelected" Nullable="false" /> | |
7445 | + <Property Type="Int32" Name="TotalLogins" Nullable="false" /> | |
7446 | + </ComplexType> | |
7447 | + <ComplexType Name="GetAllLoginFailureCauses_Result"> | |
7448 | + <Property Type="Byte" Name="Id" Nullable="false" /> | |
7449 | + <Property Type="String" Name="Description" Nullable="true" MaxLength="1000" /> | |
7450 | + </ComplexType> | |
7451 | + <ComplexType Name="GetAllModuleStatus_Result"> | |
7452 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7453 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="100" /> | |
7454 | + </ComplexType> | |
7455 | + <ComplexType Name="GetAllModuleStatusWithSlug_Result"> | |
7456 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7457 | + <Property Type="String" Name="Name" Nullable="false" MaxLength="100" /> | |
7458 | + <Property Type="String" Name="Slug" Nullable="true" MaxLength="100" /> | |
7459 | + </ComplexType> | |
7460 | + <ComplexType Name="GetAllUserWithGroup_Result"> | |
7461 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7462 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
7463 | + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
7464 | + <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> | |
7465 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
7466 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
7467 | + <Property Type="Int32" Name="InGroup" Nullable="false" /> | |
7468 | + </ComplexType> | |
7469 | + <ComplexType Name="GetAttributeTypeList_Result"> | |
7470 | + <Property Type="String" Name="Name" Nullable="false" MaxLength="50" /> | |
7471 | + <Property Type="String" Name="ShortName" Nullable="true" MaxLength="50" /> | |
7472 | + </ComplexType> | |
7473 | + <ComplexType Name="GetBlockedUserByAccNoAndType_Result"> | |
7474 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7475 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
7476 | + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
7477 | + <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> | |
7478 | + <Property Type="String" Name="Password" Nullable="false" MaxLength="50" /> | |
7479 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
7480 | + <Property Type="String" Name="AccountNumber" Nullable="false" MaxLength="16" /> | |
7481 | + <Property Type="DateTime" Name="LoginTime" Nullable="true" Precision="23" /> | |
7482 | + </ComplexType> | |
7483 | + <ComplexType Name="GetBlockedUserByUserId_Result"> | |
7484 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
7485 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
7486 | + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
7487 | + <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> | |
7488 | + <Property Type="String" Name="Password" Nullable="false" MaxLength="50" /> | |
7489 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
7490 | + <Property Type="String" Name="AccountNumber" Nullable="false" MaxLength="16" /> | |
6905 | 7491 | <Property Type="DateTime" Name="LoginTime" Nullable="true" Precision="23" /> |
6906 | 7492 | </ComplexType> |
6907 | 7493 | <ComplexType Name="GetBlockedUserByUserType_Result"> |
... | ... | @@ -7650,27 +8236,264 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]</Definin |
7650 | 8236 | <Property Type="DateTime" Name="CreationDate" Nullable="true" Precision="23" /> |
7651 | 8237 | <Property Type="DateTime" Name="ModifiedDate" Nullable="true" Precision="23" /> |
7652 | 8238 | <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> |
7653 | - <Property Type="String" Name="AccountTypeTitle" Nullable="true" MaxLength="50" /> | |
7654 | - <Property Type="String" Name="EditionType" Nullable="true" MaxLength="50" /> | |
7655 | - <Property Type="String" Name="UserStatus" Nullable="true" MaxLength="8" /> | |
7656 | - <Property Type="Int32" Name="UserTypeId" Nullable="true" /> | |
7657 | - <Property Type="Int32" Name="EditionTypeId" Nullable="true" /> | |
8239 | + <Property Type="String" Name="AccountTypeTitle" Nullable="true" MaxLength="50" /> | |
8240 | + <Property Type="String" Name="EditionType" Nullable="true" MaxLength="50" /> | |
8241 | + <Property Type="String" Name="UserStatus" Nullable="true" MaxLength="8" /> | |
8242 | + <Property Type="Int32" Name="UserTypeId" Nullable="true" /> | |
8243 | + <Property Type="Int32" Name="EditionTypeId" Nullable="true" /> | |
8244 | + </ComplexType> | |
8245 | + <ComplexType Name="usp_GetLicenseUserGroupUsers_Result"> | |
8246 | + <Property Type="Int64" Name="RowNo" Nullable="true" /> | |
8247 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
8248 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
8249 | + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
8250 | + <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> | |
8251 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
8252 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
8253 | + <Property Type="Int32" Name="InGroup" Nullable="false" /> | |
8254 | + </ComplexType> | |
8255 | + <ComplexType Name="usp_InsertResellerLicenseAccount_Result"> | |
8256 | + <Property Type="String" Name="SPStatus" Nullable="true" MaxLength="2" /> | |
8257 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> | |
8258 | + <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" /> | |
8259 | + <Property Type="String" Name="Password" Nullable="true" MaxLength="50" /> | |
8260 | + </ComplexType> | |
8261 | + <ComplexType Name="usp_EC_GetAccountTypeList_Result"> | |
8262 | + <Property Type="Byte" Name="Id" Nullable="false" /> | |
8263 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
8264 | + </ComplexType> | |
8265 | + <ComplexType Name="usp_GetModuleStatusByLicenseId_Result"> | |
8266 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
8267 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="100" /> | |
8268 | + <Property Type="Boolean" Name="Status" Nullable="false" /> | |
8269 | + </ComplexType> | |
8270 | + <ComplexType Name="usp_GetSiteAccountAdmin_Result"> | |
8271 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
8272 | + <Property Type="String" Name="Password" Nullable="false" MaxLength="50" /> | |
8273 | + <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> | |
8274 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
8275 | + <Property Type="Byte" Name="UserTypeId" Nullable="false" /> | |
8276 | + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
8277 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
8278 | + <Property Type="Boolean" Name="IsActive" Nullable="true" /> | |
8279 | + <Property Type="Byte" Name="SecurityQuestionId" Nullable="true" /> | |
8280 | + <Property Type="String" Name="SecurityAnswer" Nullable="true" MaxLength="50" /> | |
8281 | + <Property Type="Int32" Name="CreatorId" Nullable="true" /> | |
8282 | + <Property Type="DateTime" Name="CreationDate" Nullable="false" Precision="23" /> | |
8283 | + <Property Type="Int32" Name="ModifierId" Nullable="true" /> | |
8284 | + <Property Type="DateTime" Name="ModifiedDate" Nullable="true" Precision="23" /> | |
8285 | + <Property Type="DateTime" Name="DeactivationDate" Nullable="true" Precision="23" /> | |
8286 | + </ComplexType> | |
8287 | + <ComplexType Name="usp_GetSiteAccountSites_Result"> | |
8288 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
8289 | + <Property Type="String" Name="SiteIp" Nullable="true" MaxLength="2000" /> | |
8290 | + <Property Type="String" Name="Title" Nullable="true" MaxLength="100" /> | |
8291 | + <Property Type="String" Name="SiteIPTo" Nullable="false" MaxLength="100" /> | |
8292 | + <Property Type="String" Name="SiteMasterIPTo" Nullable="false" MaxLength="100" /> | |
8293 | + <Property Type="String" Name="CreationDate" Nullable="true" MaxLength="30" /> | |
8294 | + <Property Type="String" Name="ModifiedDate" Nullable="true" MaxLength="30" /> | |
8295 | + <Property Type="String" Name="InstituteName" Nullable="true" MaxLength="100" /> | |
8296 | + <Property Type="String" Name="Department" Nullable="true" MaxLength="50" /> | |
8297 | + <Property Type="Int32" Name="UserId" Nullable="false" /> | |
8298 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
8299 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
8300 | + </ComplexType> | |
8301 | + <ComplexType Name="usp_GetSiteAccoutDetail_Result"> | |
8302 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
8303 | + <Property Type="String" Name="SiteIp" Nullable="true" MaxLength="2000" /> | |
8304 | + <Property Type="String" Name="Title" Nullable="true" MaxLength="100" /> | |
8305 | + <Property Type="String" Name="SiteIPTo" Nullable="false" MaxLength="100" /> | |
8306 | + <Property Type="String" Name="SiteMasterIPTo" Nullable="false" MaxLength="100" /> | |
8307 | + <Property Type="String" Name="CreationDate" Nullable="true" MaxLength="30" /> | |
8308 | + <Property Type="String" Name="ModifiedDate" Nullable="true" MaxLength="30" /> | |
8309 | + <Property Type="String" Name="InstituteName" Nullable="true" MaxLength="100" /> | |
8310 | + <Property Type="String" Name="Department" Nullable="true" MaxLength="50" /> | |
8311 | + <Property Type="Int32" Name="UserId" Nullable="false" /> | |
8312 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
8313 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
8314 | + </ComplexType> | |
8315 | + <ComplexType Name="usp_GetDiscountCodes_Result"> | |
8316 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
8317 | + <Property Type="String" Name="DiscountCode" Nullable="true" MaxLength="255" /> | |
8318 | + <Property Type="Decimal" Name="Percentage" Nullable="false" Precision="5" Scale="2" /> | |
8319 | + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="10" /> | |
8320 | + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="10" /> | |
8321 | + <Property Type="String" Name="Status" Nullable="false" MaxLength="8" /> | |
8322 | + </ComplexType> | |
8323 | + <ComplexType Name="usp_EC_GetCountryList_Result"> | |
8324 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
8325 | + <Property Type="String" Name="CountryName" Nullable="false" MaxLength="50" /> | |
8326 | + </ComplexType> | |
8327 | + <ComplexType Name="usp_EC_GetStateList_Result"> | |
8328 | + <Property Type="Int32" Name="Id" Nullable="false" /> | |
8329 | + <Property Type="String" Name="StateName" Nullable="false" MaxLength="50" /> | |
8330 | + </ComplexType> | |
8331 | + <ComplexType Name="usp_EC_GetSecurityQuestionList_Result"> | |
8332 | + <Property Type="Byte" Name="Id" Nullable="false" /> | |
8333 | + <Property Type="String" Name="Title" Nullable="false" MaxLength="100" /> | |
8334 | + </ComplexType> | |
8335 | + <ComplexType Name="usp_GetCancelledLicenses_Result"> | |
8336 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8337 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> | |
8338 | + <Property Type="String" Name="LicenseeName" Nullable="true" MaxLength="100" /> | |
8339 | + <Property Type="String" Name="LicenseType" Nullable="true" MaxLength="50" /> | |
8340 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
8341 | + <Property Type="String" Name="AccountType" Nullable="true" MaxLength="50" /> | |
8342 | + <Property Type="String" Name="Edition" Nullable="true" MaxLength="200" /> | |
8343 | + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" /> | |
8344 | + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" /> | |
8345 | + <Property Type="String" Name="LicenseCreationDate" Nullable="true" MaxLength="30" /> | |
8346 | + <Property Type="Decimal" Name="SubscriptionPrice" Nullable="true" Precision="14" Scale="2" /> | |
8347 | + <Property Type="Int32" Name="CardNumber" Nullable="true" /> | |
8348 | + </ComplexType> | |
8349 | + <ComplexType Name="usp_GetCustomerSummary_Result"> | |
8350 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8351 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> | |
8352 | + <Property Type="String" Name="LicenseeName" Nullable="true" MaxLength="100" /> | |
8353 | + <Property Type="String" Name="LicenseType" Nullable="true" MaxLength="50" /> | |
8354 | + <Property Type="String" Name="AccountType" Nullable="true" MaxLength="50" /> | |
8355 | + <Property Type="String" Name="Edition" Nullable="true" MaxLength="200" /> | |
8356 | + <Property Type="String" Name="Email" Nullable="true" MaxLength="100" /> | |
8357 | + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" /> | |
8358 | + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" /> | |
8359 | + <Property Type="String" Name="LicenseStatus" Nullable="true" MaxLength="8" /> | |
8360 | + <Property Type="Decimal" Name="Price" Nullable="true" Precision="14" Scale="2" /> | |
8361 | + <Property Type="String" Name="LicenseZip" Nullable="true" MaxLength="20" /> | |
8362 | + <Property Type="String" Name="LicenseState" Nullable="true" MaxLength="50" /> | |
8363 | + <Property Type="String" Name="LicenseCountry" Nullable="true" MaxLength="50" /> | |
8364 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
8365 | + <Property Type="String" Name="LicenseCreationDate" Nullable="true" MaxLength="30" /> | |
8366 | + <Property Type="Int32" Name="CardNumber" Nullable="true" /> | |
8367 | + </ComplexType> | |
8368 | + <ComplexType Name="usp_GetDiscountReport_Result"> | |
8369 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8370 | + <Property Type="String" Name="DiscountCode" Nullable="true" MaxLength="255" /> | |
8371 | + <Property Type="Decimal" Name="Percentage" Nullable="false" Precision="5" Scale="2" /> | |
8372 | + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="10" /> | |
8373 | + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="10" /> | |
8374 | + <Property Type="String" Name="DiscountStatus" Nullable="false" MaxLength="8" /> | |
8375 | + <Property Type="Int32" Name="TotalLicenses" Nullable="true" /> | |
8376 | + </ComplexType> | |
8377 | + <ComplexType Name="usp_GetExpiringLicenses_Result"> | |
8378 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8379 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> | |
8380 | + <Property Type="String" Name="LicenseeName" Nullable="true" MaxLength="100" /> | |
8381 | + <Property Type="String" Name="LicenseType" Nullable="true" MaxLength="50" /> | |
8382 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
8383 | + <Property Type="String" Name="Edition" Nullable="true" MaxLength="200" /> | |
8384 | + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" /> | |
8385 | + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" /> | |
8386 | + <Property Type="String" Name="LicenseCreationDate" Nullable="true" MaxLength="30" /> | |
8387 | + <Property Type="Decimal" Name="SubscriptionPrice" Nullable="true" Precision="14" Scale="2" /> | |
8388 | + <Property Type="String" Name="AccountType" Nullable="true" MaxLength="50" /> | |
8389 | + <Property Type="Int32" Name="DaysRemaining" Nullable="true" /> | |
8390 | + <Property Type="Int32" Name="CardNumber" Nullable="true" /> | |
8391 | + </ComplexType> | |
8392 | + <ComplexType Name="usp_GetExportedImageDetails_Result"> | |
8393 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8394 | + <Property Type="Int32" Name="LicenseId" Nullable="false" /> | |
8395 | + <Property Type="DateTime" Name="ExportedDate" Nullable="false" Precision="23" /> | |
8396 | + <Property Type="String" Name="ImageName" Nullable="false" MaxLength="2000" /> | |
8397 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="16" /> | |
8398 | + <Property Type="String" Name="OriginalFileName" Nullable="true" MaxLength="1000" /> | |
8399 | + <Property Type="String" Name="Title" Nullable="true" MaxLength="1000" /> | |
8400 | + <Property Type="String" Name="ModuleName" Nullable="true" MaxLength="1000" /> | |
8401 | + <Property Type="Int32" Name="ExportLimit" Nullable="true" /> | |
8402 | + <Property Type="String" Name="UserName" Nullable="true" MaxLength="201" /> | |
8403 | + <Property Type="Int32" Name="imageCount" Nullable="true" /> | |
8404 | + </ComplexType> | |
8405 | + <ComplexType Name="usp_GetNetAdSummaryReport_Result"> | |
8406 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8407 | + <Property Type="String" Name="LicenseType" Nullable="true" MaxLength="50" /> | |
8408 | + <Property Type="String" Name="AccountType" Nullable="true" MaxLength="50" /> | |
8409 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
8410 | + <Property Type="String" Name="LicenseCreationDate" Nullable="true" MaxLength="30" /> | |
8411 | + <Property Type="Int32" Name="ActiveSubscription" Nullable="true" /> | |
8412 | + <Property Type="Int32" Name="RenewSubscription" Nullable="true" /> | |
8413 | + <Property Type="Int32" Name="InActiveSubscription" Nullable="true" /> | |
8414 | + <Property Type="Int32" Name="NetAdSubscription" Nullable="true" /> | |
8415 | + </ComplexType> | |
8416 | + <ComplexType Name="usp_GetSiteLicenseUsageReport_Result"> | |
8417 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8418 | + <Property Type="String" Name="AccountNumber" Nullable="false" MaxLength="50" /> | |
8419 | + <Property Type="String" Name="EditionTitle" Nullable="false" MaxLength="50" /> | |
8420 | + <Property Type="String" Name="ReferalUrl" Nullable="true" MaxLength="100" /> | |
8421 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
8422 | + <Property Type="String" Name="LicenseCreationDate" Nullable="true" MaxLength="30" /> | |
8423 | + <Property Type="Int32" Name="TotalLogins" Nullable="true" /> | |
8424 | + <Property Type="String" Name="LastLogin" Nullable="true" MaxLength="30" /> | |
8425 | + </ComplexType> | |
8426 | + <ComplexType Name="usp_GetUsageReport_Result"> | |
8427 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8428 | + <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" /> | |
8429 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
8430 | + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
8431 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> | |
8432 | + <Property Type="Int32" Name="CardNumber" Nullable="true" /> | |
8433 | + <Property Type="String" Name="UserType" Nullable="true" MaxLength="50" /> | |
8434 | + <Property Type="String" Name="LicenseCreationDate" Nullable="true" MaxLength="30" /> | |
8435 | + <Property Type="String" Name="LicenseZip" Nullable="true" MaxLength="20" /> | |
8436 | + <Property Type="String" Name="LicenseState" Nullable="true" MaxLength="50" /> | |
8437 | + <Property Type="String" Name="LicenseCountry" Nullable="true" MaxLength="50" /> | |
8438 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
8439 | + <Property Type="Int32" Name="TotalLogins" Nullable="true" /> | |
8440 | + <Property Type="String" Name="LastLogin" Nullable="true" MaxLength="30" /> | |
8441 | + </ComplexType> | |
8442 | + <ComplexType Name="usp_GetSearchUsers_Result"> | |
8443 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8444 | + <Property Type="Int32" Name="Id" Nullable="true" /> | |
8445 | + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> | |
8446 | + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> | |
8447 | + <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" /> | |
8448 | + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> | |
8449 | + <Property Type="String" Name="UserTypeTitle" Nullable="true" MaxLength="50" /> | |
8450 | + <Property Type="String" Name="Password" Nullable="true" MaxLength="50" /> | |
8451 | + <Property Type="DateTime" Name="CreationDate" Nullable="true" Precision="23" /> | |
8452 | + <Property Type="DateTime" Name="ModifiedDate" Nullable="true" Precision="23" /> | |
8453 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> | |
8454 | + <Property Type="String" Name="AccountTypeTitle" Nullable="true" MaxLength="50" /> | |
8455 | + <Property Type="String" Name="EditionType" Nullable="true" MaxLength="50" /> | |
8456 | + <Property Type="String" Name="UserStatus" Nullable="true" MaxLength="8" /> | |
8457 | + <Property Type="Int32" Name="UserTypeId" Nullable="true" /> | |
8458 | + <Property Type="Int32" Name="EditionTypeId" Nullable="true" /> | |
8459 | + </ComplexType> | |
8460 | + <ComplexType Name="usp_GetSiteLicenseUsageReports_Result"> | |
8461 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8462 | + <Property Type="String" Name="AccountNumber" Nullable="false" MaxLength="50" /> | |
8463 | + <Property Type="String" Name="EditionTitle" Nullable="false" MaxLength="50" /> | |
8464 | + <Property Type="String" Name="ReferalUrl" Nullable="true" MaxLength="100" /> | |
8465 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
8466 | + <Property Type="String" Name="LicenseCreationDate" Nullable="true" MaxLength="30" /> | |
8467 | + <Property Type="Int32" Name="TotalLogins" Nullable="true" /> | |
8468 | + <Property Type="String" Name="LastLogin" Nullable="true" MaxLength="30" /> | |
8469 | + </ComplexType> | |
8470 | + <ComplexType Name="usp_GetUserTyeByAccountNumber_Result"> | |
8471 | + <Property Type="Byte" Name="Id" Nullable="true" /> | |
8472 | + <Property Type="String" Name="Title" Nullable="true" MaxLength="50" /> | |
8473 | + </ComplexType> | |
8474 | + <ComplexType Name="usp_GetSubscribedLicenses_Result"> | |
8475 | + <Property Type="Int64" Name="RowNum" Nullable="true" /> | |
8476 | + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> | |
8477 | + <Property Type="String" Name="LicenseeName" Nullable="true" MaxLength="100" /> | |
8478 | + <Property Type="String" Name="LicenseType" Nullable="true" MaxLength="50" /> | |
8479 | + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> | |
8480 | + <Property Type="String" Name="AccountType" Nullable="true" MaxLength="50" /> | |
8481 | + <Property Type="String" Name="Edition" Nullable="true" MaxLength="200" /> | |
8482 | + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" /> | |
8483 | + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" /> | |
8484 | + <Property Type="String" Name="LicenseCreationDate" Nullable="true" MaxLength="30" /> | |
8485 | + <Property Type="Decimal" Name="SubscriptionPrice" Nullable="true" Precision="14" Scale="2" /> | |
8486 | + <Property Type="Int32" Name="CardNumber" Nullable="true" /> | |
7658 | 8487 | </ComplexType> |
7659 | - <ComplexType Name="usp_GetLicenseUserGroupUsers_Result"> | |
7660 | - <Property Type="Int64" Name="RowNo" Nullable="true" /> | |
8488 | + <ComplexType Name="usp_GetBlockedUserByAccNoAndType_Result"> | |
7661 | 8489 | <Property Type="Int32" Name="Id" Nullable="false" /> |
7662 | 8490 | <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" /> |
7663 | 8491 | <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" /> |
7664 | 8492 | <Property Type="String" Name="LoginId" Nullable="false" MaxLength="50" /> |
8493 | + <Property Type="String" Name="Password" Nullable="false" MaxLength="50" /> | |
7665 | 8494 | <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" /> |
7666 | - <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> | |
7667 | - <Property Type="Int32" Name="InGroup" Nullable="false" /> | |
7668 | - </ComplexType> | |
7669 | - <ComplexType Name="usp_InsertResellerLicenseAccount_Result"> | |
7670 | - <Property Type="String" Name="SPStatus" Nullable="true" MaxLength="2" /> | |
7671 | - <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" /> | |
7672 | - <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" /> | |
7673 | - <Property Type="String" Name="Password" Nullable="true" MaxLength="50" /> | |
8495 | + <Property Type="String" Name="AccountNumber" Nullable="false" MaxLength="16" /> | |
8496 | + <Property Type="DateTime" Name="LoginTime" Nullable="true" Precision="23" /> | |
7674 | 8497 | </ComplexType> |
7675 | 8498 | </Schema> |
7676 | 8499 | </edmx:ConceptualModels> |
... | ... | @@ -10042,144 +10865,451 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]</Definin |
10042 | 10865 | </ComplexTypeMapping> |
10043 | 10866 | </ResultMapping> |
10044 | 10867 | </FunctionImportMapping> |
10045 | - <FunctionImportMapping FunctionImportName="usp_GetLicenseTypes" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseTypes"> | |
10868 | + <FunctionImportMapping FunctionImportName="usp_GetLicenseTypes" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseTypes"> | |
10869 | + <ResultMapping> | |
10870 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseTypes_Result"> | |
10871 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
10872 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
10873 | + <ScalarProperty Name="IsActive" ColumnName="IsActive" /> | |
10874 | + </ComplexTypeMapping> | |
10875 | + </ResultMapping> | |
10876 | + </FunctionImportMapping> | |
10877 | + <FunctionImportMapping FunctionImportName="usp_GetManageRights" FunctionName="AIADatabaseV5Model.Store.usp_GetManageRights"> | |
10878 | + <ResultMapping> | |
10879 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetManageRights_Result"> | |
10880 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
10881 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
10882 | + <ScalarProperty Name="ParentId" ColumnName="ParentId" /> | |
10883 | + <ScalarProperty Name="Priority" ColumnName="Priority" /> | |
10884 | + <ScalarProperty Name="MenuStatus" ColumnName="MenuStatus" /> | |
10885 | + </ComplexTypeMapping> | |
10886 | + </ResultMapping> | |
10887 | + </FunctionImportMapping> | |
10888 | + <FunctionImportMapping FunctionImportName="usp_DeleteSiteAccount" FunctionName="AIADatabaseV5Model.Store.usp_DeleteSiteAccount" /> | |
10889 | + <FunctionImportMapping FunctionImportName="usp_GetLicenseModestySettings" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseModestySettings"> | |
10890 | + <ResultMapping> | |
10891 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseModestySettings_Result"> | |
10892 | + <ScalarProperty Name="LicenseEditionId" ColumnName="LicenseEditionId" /> | |
10893 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
10894 | + <ScalarProperty Name="IsModesty" ColumnName="IsModesty" /> | |
10895 | + </ComplexTypeMapping> | |
10896 | + </ResultMapping> | |
10897 | + </FunctionImportMapping> | |
10898 | + <FunctionImportMapping FunctionImportName="usp_GetSiteAccountEditions" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteAccountEditions"> | |
10899 | + <ResultMapping> | |
10900 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteAccountEditions_Result"> | |
10901 | + <ScalarProperty Name="LicenseEditionId" ColumnName="LicenseEditionId" /> | |
10902 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
10903 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
10904 | + </ComplexTypeMapping> | |
10905 | + </ResultMapping> | |
10906 | + </FunctionImportMapping> | |
10907 | + <FunctionImportMapping FunctionImportName="usp_GetSiteById" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteById"> | |
10908 | + <ResultMapping> | |
10909 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteById_Result"> | |
10910 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
10911 | + <ScalarProperty Name="SiteIp" ColumnName="SiteIp" /> | |
10912 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
10913 | + <ScalarProperty Name="SiteIPTo" ColumnName="SiteIPTo" /> | |
10914 | + <ScalarProperty Name="SiteMasterIPTo" ColumnName="SiteMasterIPTo" /> | |
10915 | + <ScalarProperty Name="Address1" ColumnName="Address1" /> | |
10916 | + <ScalarProperty Name="Address2" ColumnName="Address2" /> | |
10917 | + <ScalarProperty Name="Zip" ColumnName="Zip" /> | |
10918 | + <ScalarProperty Name="Phone" ColumnName="Phone" /> | |
10919 | + <ScalarProperty Name="City" ColumnName="City" /> | |
10920 | + <ScalarProperty Name="StateId" ColumnName="StateId" /> | |
10921 | + <ScalarProperty Name="CountryId" ColumnName="CountryId" /> | |
10922 | + <ScalarProperty Name="IsMaster" ColumnName="IsMaster" /> | |
10923 | + <ScalarProperty Name="IsActive" ColumnName="IsActive" /> | |
10924 | + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
10925 | + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
10926 | + <ScalarProperty Name="InstituteName" ColumnName="InstituteName" /> | |
10927 | + <ScalarProperty Name="Department" ColumnName="Department" /> | |
10928 | + <ScalarProperty Name="UserId" ColumnName="UserId" /> | |
10929 | + <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
10930 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
10931 | + </ComplexTypeMapping> | |
10932 | + </ResultMapping> | |
10933 | + </FunctionImportMapping> | |
10934 | + <FunctionImportMapping FunctionImportName="usp_InsertUpdateSiteAccount" FunctionName="AIADatabaseV5Model.Store.usp_InsertUpdateSiteAccount" /> | |
10935 | + <FunctionImportMapping FunctionImportName="usp_UpdateLicenseBasicSettings" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseBasicSettings" /> | |
10936 | + <FunctionImportMapping FunctionImportName="usp_UpdateLicenseModestySettings" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseModestySettings" /> | |
10937 | + <FunctionImportMapping FunctionImportName="usp_UpdateLicenseModuleStatus" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseModuleStatus" /> | |
10938 | + <FunctionImportMapping FunctionImportName="usp_InsertDeleteUserManageRights" FunctionName="AIADatabaseV5Model.Store.usp_InsertDeleteUserManageRights" /> | |
10939 | + <FunctionImportMapping FunctionImportName="usp_DeleteLicenseUserGroup" FunctionName="AIADatabaseV5Model.Store.usp_DeleteLicenseUserGroup" /> | |
10940 | + <FunctionImportMapping FunctionImportName="usp_GetLicenseUserGroups" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseUserGroups"> | |
10941 | + <ResultMapping> | |
10942 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseUserGroups_Result"> | |
10943 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
10944 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
10945 | + <ScalarProperty Name="LicenseId" ColumnName="LicenseId" /> | |
10946 | + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
10947 | + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
10948 | + <ScalarProperty Name="IsActive" ColumnName="IsActive" /> | |
10949 | + <ScalarProperty Name="TotalUsers" ColumnName="TotalUsers" /> | |
10950 | + </ComplexTypeMapping> | |
10951 | + </ResultMapping> | |
10952 | + </FunctionImportMapping> | |
10953 | + <FunctionImportMapping FunctionImportName="usp_InsertUpdateLicenseUserGroup" FunctionName="AIADatabaseV5Model.Store.usp_InsertUpdateLicenseUserGroup" /> | |
10954 | + <FunctionImportMapping FunctionImportName="usp_UpdateLicenseUserGroupUsers" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseUserGroupUsers" /> | |
10955 | + <FunctionImportMapping FunctionImportName="usp_GetlicensesList" FunctionName="AIADatabaseV5Model.Store.usp_GetlicensesList"> | |
10956 | + <ResultMapping> | |
10957 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetlicensesList_Result"> | |
10958 | + <ScalarProperty Name="LicenseId" ColumnName="LicenseId" /> | |
10959 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
10960 | + <ScalarProperty Name="LicenseType" ColumnName="LicenseType" /> | |
10961 | + <ScalarProperty Name="AccountType" ColumnName="AccountType" /> | |
10962 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
10963 | + <ScalarProperty Name="LicenseState" ColumnName="LicenseState" /> | |
10964 | + <ScalarProperty Name="LicenseCountry" ColumnName="LicenseCountry" /> | |
10965 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
10966 | + <ScalarProperty Name="CardNumber" ColumnName="CardNumber" /> | |
10967 | + <ScalarProperty Name="ProductKey" ColumnName="ProductKey" /> | |
10968 | + <ScalarProperty Name="ClientAdmin" ColumnName="ClientAdmin" /> | |
10969 | + <ScalarProperty Name="LicenseeName" ColumnName="LicenseeName" /> | |
10970 | + <ScalarProperty Name="ContactAddress" ColumnName="ContactAddress" /> | |
10971 | + <ScalarProperty Name="EntryDate" ColumnName="EntryDate" /> | |
10972 | + <ScalarProperty Name="LicenseStatus" ColumnName="LicenseStatus" /> | |
10973 | + <ScalarProperty Name="ModifyDate" ColumnName="ModifyDate" /> | |
10974 | + <ScalarProperty Name="StartDate" ColumnName="StartDate" /> | |
10975 | + <ScalarProperty Name="RenewDate" ColumnName="RenewDate" /> | |
10976 | + <ScalarProperty Name="EndDate" ColumnName="EndDate" /> | |
10977 | + <ScalarProperty Name="NoofImages" ColumnName="NoofImages" /> | |
10978 | + </ComplexTypeMapping> | |
10979 | + </ResultMapping> | |
10980 | + </FunctionImportMapping> | |
10981 | + <FunctionImportMapping FunctionImportName="GetSearchUserList1" FunctionName="AIADatabaseV5Model.Store.GetSearchUserList"> | |
10982 | + <ResultMapping> | |
10983 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSearchUserList1_Result"> | |
10984 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
10985 | + <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
10986 | + <ScalarProperty Name="LastName" ColumnName="LastName" /> | |
10987 | + <ScalarProperty Name="LoginId" ColumnName="LoginId" /> | |
10988 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
10989 | + <ScalarProperty Name="UserTypeTitle" ColumnName="UserTypeTitle" /> | |
10990 | + <ScalarProperty Name="Password" ColumnName="Password" /> | |
10991 | + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
10992 | + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
10993 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
10994 | + <ScalarProperty Name="AccountTypeTitle" ColumnName="AccountTypeTitle" /> | |
10995 | + <ScalarProperty Name="EditionType" ColumnName="EditionType" /> | |
10996 | + <ScalarProperty Name="UserStatus" ColumnName="UserStatus" /> | |
10997 | + <ScalarProperty Name="UserTypeId" ColumnName="UserTypeId" /> | |
10998 | + <ScalarProperty Name="EditionTypeId" ColumnName="EditionTypeId" /> | |
10999 | + </ComplexTypeMapping> | |
11000 | + </ResultMapping> | |
11001 | + </FunctionImportMapping> | |
11002 | + <FunctionImportMapping FunctionImportName="GetSearchUsers" FunctionName="AIADatabaseV5Model.Store.GetSearchUsers"> | |
11003 | + <ResultMapping> | |
11004 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSearchUsers_Result"> | |
11005 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11006 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
11007 | + <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
11008 | + <ScalarProperty Name="LastName" ColumnName="LastName" /> | |
11009 | + <ScalarProperty Name="LoginId" ColumnName="LoginId" /> | |
11010 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
11011 | + <ScalarProperty Name="UserTypeTitle" ColumnName="UserTypeTitle" /> | |
11012 | + <ScalarProperty Name="Password" ColumnName="Password" /> | |
11013 | + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
11014 | + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
11015 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
11016 | + <ScalarProperty Name="AccountTypeTitle" ColumnName="AccountTypeTitle" /> | |
11017 | + <ScalarProperty Name="EditionType" ColumnName="EditionType" /> | |
11018 | + <ScalarProperty Name="UserStatus" ColumnName="UserStatus" /> | |
11019 | + <ScalarProperty Name="UserTypeId" ColumnName="UserTypeId" /> | |
11020 | + <ScalarProperty Name="EditionTypeId" ColumnName="EditionTypeId" /> | |
11021 | + </ComplexTypeMapping> | |
11022 | + </ResultMapping> | |
11023 | + </FunctionImportMapping> | |
11024 | + <FunctionImportMapping FunctionImportName="usp_CheckAccountNoExists" FunctionName="AIADatabaseV5Model.Store.usp_CheckAccountNoExists" /> | |
11025 | + <FunctionImportMapping FunctionImportName="usp_GetLicenseUserGroupUsers" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseUserGroupUsers"> | |
11026 | + <ResultMapping> | |
11027 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseUserGroupUsers_Result"> | |
11028 | + <ScalarProperty Name="RowNo" ColumnName="RowNo" /> | |
11029 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
11030 | + <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
11031 | + <ScalarProperty Name="LastName" ColumnName="LastName" /> | |
11032 | + <ScalarProperty Name="LoginId" ColumnName="LoginId" /> | |
11033 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
11034 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
11035 | + <ScalarProperty Name="InGroup" ColumnName="InGroup" /> | |
11036 | + </ComplexTypeMapping> | |
11037 | + </ResultMapping> | |
11038 | + </FunctionImportMapping> | |
11039 | + <FunctionImportMapping FunctionImportName="usp_InsertResellerLicenseAccount" FunctionName="AIADatabaseV5Model.Store.usp_InsertResellerLicenseAccount"> | |
11040 | + <ResultMapping> | |
11041 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_InsertResellerLicenseAccount_Result"> | |
11042 | + <ScalarProperty Name="SPStatus" ColumnName="SPStatus" /> | |
11043 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
11044 | + <ScalarProperty Name="LoginId" ColumnName="LoginId" /> | |
11045 | + <ScalarProperty Name="Password" ColumnName="Password" /> | |
11046 | + </ComplexTypeMapping> | |
11047 | + </ResultMapping> | |
11048 | + </FunctionImportMapping> | |
11049 | + <FunctionImportMapping FunctionImportName="usp_CheckDuplicateLicenseUserGroup" FunctionName="AIADatabaseV5Model.Store.usp_CheckDuplicateLicenseUserGroup" /> | |
11050 | + <FunctionImportMapping FunctionImportName="usp_CheckSubscriptionForLicense" FunctionName="AIADatabaseV5Model.Store.usp_CheckSubscriptionForLicense" /> | |
11051 | + <FunctionImportMapping FunctionImportName="usp_UpdateAiaUserPassword" FunctionName="AIADatabaseV5Model.Store.usp_UpdateAiaUserPassword" /> | |
11052 | + <FunctionImportMapping FunctionImportName="usp_UpdateUserProfile" FunctionName="AIADatabaseV5Model.Store.usp_UpdateUserProfile" /> | |
11053 | + <FunctionImportMapping FunctionImportName="usp_EC_GetAccountTypeList" FunctionName="AIADatabaseV5Model.Store.usp_EC_GetAccountTypeList"> | |
11054 | + <ResultMapping> | |
11055 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_EC_GetAccountTypeList_Result"> | |
11056 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
11057 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
11058 | + </ComplexTypeMapping> | |
11059 | + </ResultMapping> | |
11060 | + </FunctionImportMapping> | |
11061 | + <FunctionImportMapping FunctionImportName="usp_DeleteLicense" FunctionName="AIADatabaseV5Model.Store.usp_DeleteLicense" /> | |
11062 | + <FunctionImportMapping FunctionImportName="usp_GetModuleStatusByLicenseId" FunctionName="AIADatabaseV5Model.Store.usp_GetModuleStatusByLicenseId"> | |
11063 | + <ResultMapping> | |
11064 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetModuleStatusByLicenseId_Result"> | |
11065 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
11066 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
11067 | + <ScalarProperty Name="Status" ColumnName="Status" /> | |
11068 | + </ComplexTypeMapping> | |
11069 | + </ResultMapping> | |
11070 | + </FunctionImportMapping> | |
11071 | + <FunctionImportMapping FunctionImportName="usp_GetSiteAccountAdmin" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteAccountAdmin"> | |
11072 | + <ResultMapping> | |
11073 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteAccountAdmin_Result"> | |
11074 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
11075 | + <ScalarProperty Name="Password" ColumnName="Password" /> | |
11076 | + <ScalarProperty Name="LoginId" ColumnName="LoginId" /> | |
11077 | + <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
11078 | + <ScalarProperty Name="UserTypeId" ColumnName="UserTypeId" /> | |
11079 | + <ScalarProperty Name="LastName" ColumnName="LastName" /> | |
11080 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
11081 | + <ScalarProperty Name="IsActive" ColumnName="IsActive" /> | |
11082 | + <ScalarProperty Name="SecurityQuestionId" ColumnName="SecurityQuestionId" /> | |
11083 | + <ScalarProperty Name="SecurityAnswer" ColumnName="SecurityAnswer" /> | |
11084 | + <ScalarProperty Name="CreatorId" ColumnName="CreatorId" /> | |
11085 | + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
11086 | + <ScalarProperty Name="ModifierId" ColumnName="ModifierId" /> | |
11087 | + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
11088 | + <ScalarProperty Name="DeactivationDate" ColumnName="DeactivationDate" /> | |
11089 | + </ComplexTypeMapping> | |
11090 | + </ResultMapping> | |
11091 | + </FunctionImportMapping> | |
11092 | + <FunctionImportMapping FunctionImportName="usp_GetSiteAccountSites" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteAccountSites"> | |
11093 | + <ResultMapping> | |
11094 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteAccountSites_Result"> | |
11095 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
11096 | + <ScalarProperty Name="SiteIp" ColumnName="SiteIp" /> | |
11097 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
11098 | + <ScalarProperty Name="SiteIPTo" ColumnName="SiteIPTo" /> | |
11099 | + <ScalarProperty Name="SiteMasterIPTo" ColumnName="SiteMasterIPTo" /> | |
11100 | + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
11101 | + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
11102 | + <ScalarProperty Name="InstituteName" ColumnName="InstituteName" /> | |
11103 | + <ScalarProperty Name="Department" ColumnName="Department" /> | |
11104 | + <ScalarProperty Name="UserId" ColumnName="UserId" /> | |
11105 | + <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
11106 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
11107 | + </ComplexTypeMapping> | |
11108 | + </ResultMapping> | |
11109 | + </FunctionImportMapping> | |
11110 | + <FunctionImportMapping FunctionImportName="usp_GetSiteAccoutDetail" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteAccoutDetail"> | |
10046 | 11111 | <ResultMapping> |
10047 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseTypes_Result"> | |
11112 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteAccoutDetail_Result"> | |
10048 | 11113 | <ScalarProperty Name="Id" ColumnName="Id" /> |
11114 | + <ScalarProperty Name="SiteIp" ColumnName="SiteIp" /> | |
10049 | 11115 | <ScalarProperty Name="Title" ColumnName="Title" /> |
10050 | - <ScalarProperty Name="IsActive" ColumnName="IsActive" /> | |
11116 | + <ScalarProperty Name="SiteIPTo" ColumnName="SiteIPTo" /> | |
11117 | + <ScalarProperty Name="SiteMasterIPTo" ColumnName="SiteMasterIPTo" /> | |
11118 | + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
11119 | + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
11120 | + <ScalarProperty Name="InstituteName" ColumnName="InstituteName" /> | |
11121 | + <ScalarProperty Name="Department" ColumnName="Department" /> | |
11122 | + <ScalarProperty Name="UserId" ColumnName="UserId" /> | |
11123 | + <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
11124 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
10051 | 11125 | </ComplexTypeMapping> |
10052 | 11126 | </ResultMapping> |
10053 | 11127 | </FunctionImportMapping> |
10054 | - <FunctionImportMapping FunctionImportName="usp_GetManageRights" FunctionName="AIADatabaseV5Model.Store.usp_GetManageRights"> | |
11128 | + <FunctionImportMapping FunctionImportName="usp_InsertNewLicenseAccount" FunctionName="AIADatabaseV5Model.Store.usp_InsertNewLicenseAccount" /> | |
11129 | + <FunctionImportMapping FunctionImportName="usp_InsertSingleLicenseAccount" FunctionName="AIADatabaseV5Model.Store.usp_InsertSingleLicenseAccount" /> | |
11130 | + <FunctionImportMapping FunctionImportName="usp_InsertTestLicenseAccount" FunctionName="AIADatabaseV5Model.Store.usp_InsertTestLicenseAccount" /> | |
11131 | + <FunctionImportMapping FunctionImportName="usp_UpdateLicenseAccount" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseAccount" /> | |
11132 | + <FunctionImportMapping FunctionImportName="usp_GetDiscountCodes" FunctionName="AIADatabaseV5Model.Store.usp_GetDiscountCodes"> | |
10055 | 11133 | <ResultMapping> |
10056 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetManageRights_Result"> | |
11134 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetDiscountCodes_Result"> | |
10057 | 11135 | <ScalarProperty Name="Id" ColumnName="Id" /> |
10058 | - <ScalarProperty Name="Title" ColumnName="Title" /> | |
10059 | - <ScalarProperty Name="ParentId" ColumnName="ParentId" /> | |
10060 | - <ScalarProperty Name="Priority" ColumnName="Priority" /> | |
10061 | - <ScalarProperty Name="MenuStatus" ColumnName="MenuStatus" /> | |
11136 | + <ScalarProperty Name="DiscountCode" ColumnName="DiscountCode" /> | |
11137 | + <ScalarProperty Name="Percentage" ColumnName="Percentage" /> | |
11138 | + <ScalarProperty Name="StartDate" ColumnName="StartDate" /> | |
11139 | + <ScalarProperty Name="EndDate" ColumnName="EndDate" /> | |
11140 | + <ScalarProperty Name="Status" ColumnName="Status" /> | |
10062 | 11141 | </ComplexTypeMapping> |
10063 | 11142 | </ResultMapping> |
10064 | 11143 | </FunctionImportMapping> |
10065 | - <FunctionImportMapping FunctionImportName="usp_DeleteSiteAccount" FunctionName="AIADatabaseV5Model.Store.usp_DeleteSiteAccount" /> | |
10066 | - <FunctionImportMapping FunctionImportName="usp_GetLicenseModestySettings" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseModestySettings"> | |
11144 | + <FunctionImportMapping FunctionImportName="usp_InsertNewDiscount" FunctionName="AIADatabaseV5Model.Store.usp_InsertNewDiscount" /> | |
11145 | + <FunctionImportMapping FunctionImportName="usp_UpdateDiscount" FunctionName="AIADatabaseV5Model.Store.usp_UpdateDiscount" /> | |
11146 | + <FunctionImportMapping FunctionImportName="usp_EC_GetCountryList" FunctionName="AIADatabaseV5Model.Store.usp_EC_GetCountryList"> | |
10067 | 11147 | <ResultMapping> |
10068 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseModestySettings_Result"> | |
10069 | - <ScalarProperty Name="LicenseEditionId" ColumnName="LicenseEditionId" /> | |
10070 | - <ScalarProperty Name="Title" ColumnName="Title" /> | |
10071 | - <ScalarProperty Name="IsModesty" ColumnName="IsModesty" /> | |
11148 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_EC_GetCountryList_Result"> | |
11149 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
11150 | + <ScalarProperty Name="CountryName" ColumnName="CountryName" /> | |
10072 | 11151 | </ComplexTypeMapping> |
10073 | 11152 | </ResultMapping> |
10074 | 11153 | </FunctionImportMapping> |
10075 | - <FunctionImportMapping FunctionImportName="usp_GetSiteAccountEditions" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteAccountEditions"> | |
11154 | + <FunctionImportMapping FunctionImportName="usp_EC_GetStateList" FunctionName="AIADatabaseV5Model.Store.usp_EC_GetStateList"> | |
10076 | 11155 | <ResultMapping> |
10077 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteAccountEditions_Result"> | |
10078 | - <ScalarProperty Name="LicenseEditionId" ColumnName="LicenseEditionId" /> | |
11156 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_EC_GetStateList_Result"> | |
10079 | 11157 | <ScalarProperty Name="Id" ColumnName="Id" /> |
10080 | - <ScalarProperty Name="Title" ColumnName="Title" /> | |
11158 | + <ScalarProperty Name="StateName" ColumnName="StateName" /> | |
10081 | 11159 | </ComplexTypeMapping> |
10082 | 11160 | </ResultMapping> |
10083 | 11161 | </FunctionImportMapping> |
10084 | - <FunctionImportMapping FunctionImportName="usp_GetSiteById" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteById"> | |
11162 | + <FunctionImportMapping FunctionImportName="usp_EC_GetSecurityQuestionList" FunctionName="AIADatabaseV5Model.Store.usp_EC_GetSecurityQuestionList"> | |
10085 | 11163 | <ResultMapping> |
10086 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteById_Result"> | |
11164 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_EC_GetSecurityQuestionList_Result"> | |
10087 | 11165 | <ScalarProperty Name="Id" ColumnName="Id" /> |
10088 | - <ScalarProperty Name="SiteIp" ColumnName="SiteIp" /> | |
10089 | 11166 | <ScalarProperty Name="Title" ColumnName="Title" /> |
10090 | - <ScalarProperty Name="SiteIPTo" ColumnName="SiteIPTo" /> | |
10091 | - <ScalarProperty Name="SiteMasterIPTo" ColumnName="SiteMasterIPTo" /> | |
10092 | - <ScalarProperty Name="Address1" ColumnName="Address1" /> | |
10093 | - <ScalarProperty Name="Address2" ColumnName="Address2" /> | |
10094 | - <ScalarProperty Name="Zip" ColumnName="Zip" /> | |
10095 | - <ScalarProperty Name="Phone" ColumnName="Phone" /> | |
10096 | - <ScalarProperty Name="City" ColumnName="City" /> | |
10097 | - <ScalarProperty Name="StateId" ColumnName="StateId" /> | |
10098 | - <ScalarProperty Name="CountryId" ColumnName="CountryId" /> | |
10099 | - <ScalarProperty Name="IsMaster" ColumnName="IsMaster" /> | |
10100 | - <ScalarProperty Name="IsActive" ColumnName="IsActive" /> | |
10101 | - <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
10102 | - <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
10103 | - <ScalarProperty Name="InstituteName" ColumnName="InstituteName" /> | |
10104 | - <ScalarProperty Name="Department" ColumnName="Department" /> | |
10105 | - <ScalarProperty Name="UserId" ColumnName="UserId" /> | |
10106 | - <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
10107 | - <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
10108 | 11167 | </ComplexTypeMapping> |
10109 | 11168 | </ResultMapping> |
10110 | 11169 | </FunctionImportMapping> |
10111 | - <FunctionImportMapping FunctionImportName="usp_InsertUpdateSiteAccount" FunctionName="AIADatabaseV5Model.Store.usp_InsertUpdateSiteAccount" /> | |
10112 | - <FunctionImportMapping FunctionImportName="usp_UpdateLicenseBasicSettings" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseBasicSettings" /> | |
10113 | - <FunctionImportMapping FunctionImportName="usp_UpdateLicenseModestySettings" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseModestySettings" /> | |
10114 | - <FunctionImportMapping FunctionImportName="usp_UpdateLicenseModuleStatus" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseModuleStatus" /> | |
10115 | - <FunctionImportMapping FunctionImportName="usp_InsertDeleteUserManageRights" FunctionName="AIADatabaseV5Model.Store.usp_InsertDeleteUserManageRights" /> | |
10116 | - <FunctionImportMapping FunctionImportName="usp_DeleteLicenseUserGroup" FunctionName="AIADatabaseV5Model.Store.usp_DeleteLicenseUserGroup" /> | |
10117 | - <FunctionImportMapping FunctionImportName="usp_GetLicenseUserGroups" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseUserGroups"> | |
11170 | + <FunctionImportMapping FunctionImportName="usp_GetCancelledLicenses" FunctionName="AIADatabaseV5Model.Store.usp_GetCancelledLicenses"> | |
10118 | 11171 | <ResultMapping> |
10119 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseUserGroups_Result"> | |
10120 | - <ScalarProperty Name="Id" ColumnName="Id" /> | |
10121 | - <ScalarProperty Name="Title" ColumnName="Title" /> | |
10122 | - <ScalarProperty Name="LicenseId" ColumnName="LicenseId" /> | |
10123 | - <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
10124 | - <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
10125 | - <ScalarProperty Name="IsActive" ColumnName="IsActive" /> | |
10126 | - <ScalarProperty Name="TotalUsers" ColumnName="TotalUsers" /> | |
11172 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetCancelledLicenses_Result"> | |
11173 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11174 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
11175 | + <ScalarProperty Name="LicenseeName" ColumnName="LicenseeName" /> | |
11176 | + <ScalarProperty Name="LicenseType" ColumnName="LicenseType" /> | |
11177 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11178 | + <ScalarProperty Name="AccountType" ColumnName="AccountType" /> | |
11179 | + <ScalarProperty Name="Edition" ColumnName="Edition" /> | |
11180 | + <ScalarProperty Name="StartDate" ColumnName="StartDate" /> | |
11181 | + <ScalarProperty Name="EndDate" ColumnName="EndDate" /> | |
11182 | + <ScalarProperty Name="LicenseCreationDate" ColumnName="LicenseCreationDate" /> | |
11183 | + <ScalarProperty Name="SubscriptionPrice" ColumnName="SubscriptionPrice" /> | |
11184 | + <ScalarProperty Name="CardNumber" ColumnName="CardNumber" /> | |
10127 | 11185 | </ComplexTypeMapping> |
10128 | 11186 | </ResultMapping> |
10129 | 11187 | </FunctionImportMapping> |
10130 | - <FunctionImportMapping FunctionImportName="usp_InsertUpdateLicenseUserGroup" FunctionName="AIADatabaseV5Model.Store.usp_InsertUpdateLicenseUserGroup" /> | |
10131 | - <FunctionImportMapping FunctionImportName="usp_UpdateLicenseUserGroupUsers" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseUserGroupUsers" /> | |
10132 | - <FunctionImportMapping FunctionImportName="usp_GetlicensesList" FunctionName="AIADatabaseV5Model.Store.usp_GetlicensesList"> | |
11188 | + <FunctionImportMapping FunctionImportName="usp_GetCustomerSummary" FunctionName="AIADatabaseV5Model.Store.usp_GetCustomerSummary"> | |
10133 | 11189 | <ResultMapping> |
10134 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetlicensesList_Result"> | |
10135 | - <ScalarProperty Name="LicenseId" ColumnName="LicenseId" /> | |
11190 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetCustomerSummary_Result"> | |
11191 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
10136 | 11192 | <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> |
11193 | + <ScalarProperty Name="LicenseeName" ColumnName="LicenseeName" /> | |
10137 | 11194 | <ScalarProperty Name="LicenseType" ColumnName="LicenseType" /> |
10138 | 11195 | <ScalarProperty Name="AccountType" ColumnName="AccountType" /> |
10139 | - <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11196 | + <ScalarProperty Name="Edition" ColumnName="Edition" /> | |
11197 | + <ScalarProperty Name="Email" ColumnName="Email" /> | |
11198 | + <ScalarProperty Name="StartDate" ColumnName="StartDate" /> | |
11199 | + <ScalarProperty Name="EndDate" ColumnName="EndDate" /> | |
11200 | + <ScalarProperty Name="LicenseStatus" ColumnName="LicenseStatus" /> | |
11201 | + <ScalarProperty Name="Price" ColumnName="Price" /> | |
11202 | + <ScalarProperty Name="LicenseZip" ColumnName="LicenseZip" /> | |
10140 | 11203 | <ScalarProperty Name="LicenseState" ColumnName="LicenseState" /> |
10141 | 11204 | <ScalarProperty Name="LicenseCountry" ColumnName="LicenseCountry" /> |
10142 | - <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
11205 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11206 | + <ScalarProperty Name="LicenseCreationDate" ColumnName="LicenseCreationDate" /> | |
10143 | 11207 | <ScalarProperty Name="CardNumber" ColumnName="CardNumber" /> |
10144 | - <ScalarProperty Name="ProductKey" ColumnName="ProductKey" /> | |
10145 | - <ScalarProperty Name="ClientAdmin" ColumnName="ClientAdmin" /> | |
11208 | + </ComplexTypeMapping> | |
11209 | + </ResultMapping> | |
11210 | + </FunctionImportMapping> | |
11211 | + <FunctionImportMapping FunctionImportName="usp_GetDiscountReport" FunctionName="AIADatabaseV5Model.Store.usp_GetDiscountReport"> | |
11212 | + <ResultMapping> | |
11213 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetDiscountReport_Result"> | |
11214 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11215 | + <ScalarProperty Name="DiscountCode" ColumnName="DiscountCode" /> | |
11216 | + <ScalarProperty Name="Percentage" ColumnName="Percentage" /> | |
11217 | + <ScalarProperty Name="StartDate" ColumnName="StartDate" /> | |
11218 | + <ScalarProperty Name="EndDate" ColumnName="EndDate" /> | |
11219 | + <ScalarProperty Name="DiscountStatus" ColumnName="DiscountStatus" /> | |
11220 | + <ScalarProperty Name="TotalLicenses" ColumnName="TotalLicenses" /> | |
11221 | + </ComplexTypeMapping> | |
11222 | + </ResultMapping> | |
11223 | + </FunctionImportMapping> | |
11224 | + <FunctionImportMapping FunctionImportName="usp_GetExpiringLicenses" FunctionName="AIADatabaseV5Model.Store.usp_GetExpiringLicenses"> | |
11225 | + <ResultMapping> | |
11226 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetExpiringLicenses_Result"> | |
11227 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11228 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
10146 | 11229 | <ScalarProperty Name="LicenseeName" ColumnName="LicenseeName" /> |
10147 | - <ScalarProperty Name="ContactAddress" ColumnName="ContactAddress" /> | |
10148 | - <ScalarProperty Name="EntryDate" ColumnName="EntryDate" /> | |
10149 | - <ScalarProperty Name="LicenseStatus" ColumnName="LicenseStatus" /> | |
10150 | - <ScalarProperty Name="ModifyDate" ColumnName="ModifyDate" /> | |
11230 | + <ScalarProperty Name="LicenseType" ColumnName="LicenseType" /> | |
11231 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11232 | + <ScalarProperty Name="Edition" ColumnName="Edition" /> | |
10151 | 11233 | <ScalarProperty Name="StartDate" ColumnName="StartDate" /> |
10152 | - <ScalarProperty Name="RenewDate" ColumnName="RenewDate" /> | |
10153 | 11234 | <ScalarProperty Name="EndDate" ColumnName="EndDate" /> |
10154 | - <ScalarProperty Name="NoofImages" ColumnName="NoofImages" /> | |
11235 | + <ScalarProperty Name="LicenseCreationDate" ColumnName="LicenseCreationDate" /> | |
11236 | + <ScalarProperty Name="SubscriptionPrice" ColumnName="SubscriptionPrice" /> | |
11237 | + <ScalarProperty Name="AccountType" ColumnName="AccountType" /> | |
11238 | + <ScalarProperty Name="DaysRemaining" ColumnName="DaysRemaining" /> | |
11239 | + <ScalarProperty Name="CardNumber" ColumnName="CardNumber" /> | |
10155 | 11240 | </ComplexTypeMapping> |
10156 | 11241 | </ResultMapping> |
10157 | 11242 | </FunctionImportMapping> |
10158 | - <FunctionImportMapping FunctionImportName="GetSearchUserList1" FunctionName="AIADatabaseV5Model.Store.GetSearchUserList"> | |
11243 | + <FunctionImportMapping FunctionImportName="usp_GetExportedImageDetails" FunctionName="AIADatabaseV5Model.Store.usp_GetExportedImageDetails"> | |
10159 | 11244 | <ResultMapping> |
10160 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSearchUserList1_Result"> | |
10161 | - <ScalarProperty Name="Id" ColumnName="Id" /> | |
11245 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetExportedImageDetails_Result"> | |
11246 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11247 | + <ScalarProperty Name="LicenseId" ColumnName="LicenseId" /> | |
11248 | + <ScalarProperty Name="ExportedDate" ColumnName="ExportedDate" /> | |
11249 | + <ScalarProperty Name="ImageName" ColumnName="ImageName" /> | |
11250 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
11251 | + <ScalarProperty Name="OriginalFileName" ColumnName="OriginalFileName" /> | |
11252 | + <ScalarProperty Name="Title" ColumnName="Title" /> | |
11253 | + <ScalarProperty Name="ModuleName" ColumnName="ModuleName" /> | |
11254 | + <ScalarProperty Name="ExportLimit" ColumnName="ExportLimit" /> | |
11255 | + <ScalarProperty Name="UserName" ColumnName="UserName" /> | |
11256 | + <ScalarProperty Name="imageCount" ColumnName="imageCount" /> | |
11257 | + </ComplexTypeMapping> | |
11258 | + </ResultMapping> | |
11259 | + </FunctionImportMapping> | |
11260 | + <FunctionImportMapping FunctionImportName="usp_GetNetAdSummaryReport" FunctionName="AIADatabaseV5Model.Store.usp_GetNetAdSummaryReport"> | |
11261 | + <ResultMapping> | |
11262 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetNetAdSummaryReport_Result"> | |
11263 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11264 | + <ScalarProperty Name="LicenseType" ColumnName="LicenseType" /> | |
11265 | + <ScalarProperty Name="AccountType" ColumnName="AccountType" /> | |
11266 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11267 | + <ScalarProperty Name="LicenseCreationDate" ColumnName="LicenseCreationDate" /> | |
11268 | + <ScalarProperty Name="ActiveSubscription" ColumnName="ActiveSubscription" /> | |
11269 | + <ScalarProperty Name="RenewSubscription" ColumnName="RenewSubscription" /> | |
11270 | + <ScalarProperty Name="InActiveSubscription" ColumnName="InActiveSubscription" /> | |
11271 | + <ScalarProperty Name="NetAdSubscription" ColumnName="NetAdSubscription" /> | |
11272 | + </ComplexTypeMapping> | |
11273 | + </ResultMapping> | |
11274 | + </FunctionImportMapping> | |
11275 | + <FunctionImportMapping FunctionImportName="usp_GetSiteLicenseUsageReport" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteLicenseUsageReport"> | |
11276 | + <ResultMapping> | |
11277 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteLicenseUsageReport_Result"> | |
11278 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11279 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
11280 | + <ScalarProperty Name="EditionTitle" ColumnName="EditionTitle" /> | |
11281 | + <ScalarProperty Name="ReferalUrl" ColumnName="ReferalUrl" /> | |
11282 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11283 | + <ScalarProperty Name="LicenseCreationDate" ColumnName="LicenseCreationDate" /> | |
11284 | + <ScalarProperty Name="TotalLogins" ColumnName="TotalLogins" /> | |
11285 | + <ScalarProperty Name="LastLogin" ColumnName="LastLogin" /> | |
11286 | + </ComplexTypeMapping> | |
11287 | + </ResultMapping> | |
11288 | + </FunctionImportMapping> | |
11289 | + <FunctionImportMapping FunctionImportName="usp_GetUsageReport" FunctionName="AIADatabaseV5Model.Store.usp_GetUsageReport"> | |
11290 | + <ResultMapping> | |
11291 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetUsageReport_Result"> | |
11292 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11293 | + <ScalarProperty Name="LoginId" ColumnName="LoginId" /> | |
10162 | 11294 | <ScalarProperty Name="FirstName" ColumnName="FirstName" /> |
10163 | 11295 | <ScalarProperty Name="LastName" ColumnName="LastName" /> |
10164 | - <ScalarProperty Name="LoginId" ColumnName="LoginId" /> | |
10165 | - <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
10166 | - <ScalarProperty Name="UserTypeTitle" ColumnName="UserTypeTitle" /> | |
10167 | - <ScalarProperty Name="Password" ColumnName="Password" /> | |
10168 | - <ScalarProperty Name="CreationDate" ColumnName="CreationDate" /> | |
10169 | - <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" /> | |
10170 | 11296 | <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> |
10171 | - <ScalarProperty Name="AccountTypeTitle" ColumnName="AccountTypeTitle" /> | |
10172 | - <ScalarProperty Name="EditionType" ColumnName="EditionType" /> | |
10173 | - <ScalarProperty Name="UserStatus" ColumnName="UserStatus" /> | |
10174 | - <ScalarProperty Name="UserTypeId" ColumnName="UserTypeId" /> | |
10175 | - <ScalarProperty Name="EditionTypeId" ColumnName="EditionTypeId" /> | |
11297 | + <ScalarProperty Name="CardNumber" ColumnName="CardNumber" /> | |
11298 | + <ScalarProperty Name="UserType" ColumnName="UserType" /> | |
11299 | + <ScalarProperty Name="LicenseCreationDate" ColumnName="LicenseCreationDate" /> | |
11300 | + <ScalarProperty Name="LicenseZip" ColumnName="LicenseZip" /> | |
11301 | + <ScalarProperty Name="LicenseState" ColumnName="LicenseState" /> | |
11302 | + <ScalarProperty Name="LicenseCountry" ColumnName="LicenseCountry" /> | |
11303 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11304 | + <ScalarProperty Name="TotalLogins" ColumnName="TotalLogins" /> | |
11305 | + <ScalarProperty Name="LastLogin" ColumnName="LastLogin" /> | |
10176 | 11306 | </ComplexTypeMapping> |
10177 | 11307 | </ResultMapping> |
10178 | 11308 | </FunctionImportMapping> |
10179 | - <FunctionImportMapping FunctionImportName="GetSearchUsers" FunctionName="AIADatabaseV5Model.Store.GetSearchUsers"> | |
11309 | + <FunctionImportMapping FunctionImportName="usp_GetSearchUsers" FunctionName="AIADatabaseV5Model.Store.usp_GetSearchUsers"> | |
10180 | 11310 | <ResultMapping> |
10181 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSearchUsers_Result"> | |
10182 | - <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11311 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSearchUsers_Result"> | |
11312 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
10183 | 11313 | <ScalarProperty Name="Id" ColumnName="Id" /> |
10184 | 11314 | <ScalarProperty Name="FirstName" ColumnName="FirstName" /> |
10185 | 11315 | <ScalarProperty Name="LastName" ColumnName="LastName" /> |
... | ... | @@ -10198,33 +11328,60 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]</Definin |
10198 | 11328 | </ComplexTypeMapping> |
10199 | 11329 | </ResultMapping> |
10200 | 11330 | </FunctionImportMapping> |
10201 | - <FunctionImportMapping FunctionImportName="usp_CheckAccountNoExists" FunctionName="AIADatabaseV5Model.Store.usp_CheckAccountNoExists" /> | |
10202 | - <FunctionImportMapping FunctionImportName="usp_GetLicenseUserGroupUsers" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseUserGroupUsers"> | |
11331 | + <FunctionImportMapping FunctionImportName="usp_GetSiteLicenseUsageReports" FunctionName="AIADatabaseV5Model.Store.usp_GetSiteLicenseUsageReports"> | |
10203 | 11332 | <ResultMapping> |
10204 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseUserGroupUsers_Result"> | |
10205 | - <ScalarProperty Name="RowNo" ColumnName="RowNo" /> | |
11333 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSiteLicenseUsageReports_Result"> | |
11334 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
11335 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
11336 | + <ScalarProperty Name="EditionTitle" ColumnName="EditionTitle" /> | |
11337 | + <ScalarProperty Name="ReferalUrl" ColumnName="ReferalUrl" /> | |
11338 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11339 | + <ScalarProperty Name="LicenseCreationDate" ColumnName="LicenseCreationDate" /> | |
11340 | + <ScalarProperty Name="TotalLogins" ColumnName="TotalLogins" /> | |
11341 | + <ScalarProperty Name="LastLogin" ColumnName="LastLogin" /> | |
11342 | + </ComplexTypeMapping> | |
11343 | + </ResultMapping> | |
11344 | + </FunctionImportMapping> | |
11345 | + <FunctionImportMapping FunctionImportName="usp_GetUserTyeByAccountNumber" FunctionName="AIADatabaseV5Model.Store.usp_GetUserTyeByAccountNumber"> | |
11346 | + <ResultMapping> | |
11347 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetUserTyeByAccountNumber_Result"> | |
10206 | 11348 | <ScalarProperty Name="Id" ColumnName="Id" /> |
10207 | - <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
10208 | - <ScalarProperty Name="LastName" ColumnName="LastName" /> | |
10209 | - <ScalarProperty Name="LoginId" ColumnName="LoginId" /> | |
10210 | - <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
10211 | 11349 | <ScalarProperty Name="Title" ColumnName="Title" /> |
10212 | - <ScalarProperty Name="InGroup" ColumnName="InGroup" /> | |
10213 | 11350 | </ComplexTypeMapping> |
10214 | 11351 | </ResultMapping> |
10215 | 11352 | </FunctionImportMapping> |
10216 | - <FunctionImportMapping FunctionImportName="usp_InsertResellerLicenseAccount" FunctionName="AIADatabaseV5Model.Store.usp_InsertResellerLicenseAccount"> | |
11353 | + <FunctionImportMapping FunctionImportName="usp_GetSubscribedLicenses" FunctionName="AIADatabaseV5Model.Store.usp_GetSubscribedLicenses"> | |
10217 | 11354 | <ResultMapping> |
10218 | - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_InsertResellerLicenseAccount_Result"> | |
10219 | - <ScalarProperty Name="SPStatus" ColumnName="SPStatus" /> | |
11355 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSubscribedLicenses_Result"> | |
11356 | + <ScalarProperty Name="RowNum" ColumnName="RowNum" /> | |
10220 | 11357 | <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> |
11358 | + <ScalarProperty Name="LicenseeName" ColumnName="LicenseeName" /> | |
11359 | + <ScalarProperty Name="LicenseType" ColumnName="LicenseType" /> | |
11360 | + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> | |
11361 | + <ScalarProperty Name="AccountType" ColumnName="AccountType" /> | |
11362 | + <ScalarProperty Name="Edition" ColumnName="Edition" /> | |
11363 | + <ScalarProperty Name="StartDate" ColumnName="StartDate" /> | |
11364 | + <ScalarProperty Name="EndDate" ColumnName="EndDate" /> | |
11365 | + <ScalarProperty Name="LicenseCreationDate" ColumnName="LicenseCreationDate" /> | |
11366 | + <ScalarProperty Name="SubscriptionPrice" ColumnName="SubscriptionPrice" /> | |
11367 | + <ScalarProperty Name="CardNumber" ColumnName="CardNumber" /> | |
11368 | + </ComplexTypeMapping> | |
11369 | + </ResultMapping> | |
11370 | + </FunctionImportMapping> | |
11371 | + <FunctionImportMapping FunctionImportName="usp_GetBlockedUserByAccNoAndType" FunctionName="AIADatabaseV5Model.Store.usp_GetBlockedUserByAccNoAndType"> | |
11372 | + <ResultMapping> | |
11373 | + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetBlockedUserByAccNoAndType_Result"> | |
11374 | + <ScalarProperty Name="Id" ColumnName="Id" /> | |
11375 | + <ScalarProperty Name="FirstName" ColumnName="FirstName" /> | |
11376 | + <ScalarProperty Name="LastName" ColumnName="LastName" /> | |
10221 | 11377 | <ScalarProperty Name="LoginId" ColumnName="LoginId" /> |
10222 | 11378 | <ScalarProperty Name="Password" ColumnName="Password" /> |
11379 | + <ScalarProperty Name="EmailId" ColumnName="EmailId" /> | |
11380 | + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" /> | |
11381 | + <ScalarProperty Name="LoginTime" ColumnName="LoginTime" /> | |
10223 | 11382 | </ComplexTypeMapping> |
10224 | 11383 | </ResultMapping> |
10225 | 11384 | </FunctionImportMapping> |
10226 | - <FunctionImportMapping FunctionImportName="usp_CheckDuplicateLicenseUserGroup" FunctionName="AIADatabaseV5Model.Store.usp_CheckDuplicateLicenseUserGroup" /> | |
10227 | - <FunctionImportMapping FunctionImportName="usp_CheckSubscriptionForLicense" FunctionName="AIADatabaseV5Model.Store.usp_CheckSubscriptionForLicense" /> | |
10228 | 11385 | </EntityContainerMapping> |
10229 | 11386 | </Mapping> |
10230 | 11387 | </edmx:Mappings> | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_EC_GetAccountTypeList_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_EC_GetAccountTypeList_Result | |
15 | + { | |
16 | + public byte Id { get; set; } | |
17 | + public string Title { get; set; } | |
18 | + } | |
19 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_EC_GetCountryList_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_EC_GetCountryList_Result | |
15 | + { | |
16 | + public int Id { get; set; } | |
17 | + public string CountryName { get; set; } | |
18 | + } | |
19 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_EC_GetSecurityQuestionList_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_EC_GetSecurityQuestionList_Result | |
15 | + { | |
16 | + public byte Id { get; set; } | |
17 | + public string Title { get; set; } | |
18 | + } | |
19 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_EC_GetStateList_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_EC_GetStateList_Result | |
15 | + { | |
16 | + public int Id { get; set; } | |
17 | + public string StateName { get; set; } | |
18 | + } | |
19 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetBlockedUserByAccNoAndType_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetBlockedUserByAccNoAndType_Result | |
15 | + { | |
16 | + public int Id { get; set; } | |
17 | + public string FirstName { get; set; } | |
18 | + public string LastName { get; set; } | |
19 | + public string LoginId { get; set; } | |
20 | + public string Password { get; set; } | |
21 | + public string EmailId { get; set; } | |
22 | + public string AccountNumber { get; set; } | |
23 | + public Nullable<System.DateTime> LoginTime { get; set; } | |
24 | + } | |
25 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetCancelledLicenses_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetCancelledLicenses_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string AccountNumber { get; set; } | |
18 | + public string LicenseeName { get; set; } | |
19 | + public string LicenseType { get; set; } | |
20 | + public string InstitutionName { get; set; } | |
21 | + public string AccountType { get; set; } | |
22 | + public string Edition { get; set; } | |
23 | + public string StartDate { get; set; } | |
24 | + public string EndDate { get; set; } | |
25 | + public string LicenseCreationDate { get; set; } | |
26 | + public Nullable<decimal> SubscriptionPrice { get; set; } | |
27 | + public Nullable<int> CardNumber { get; set; } | |
28 | + } | |
29 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetCustomerSummary_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetCustomerSummary_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string AccountNumber { get; set; } | |
18 | + public string LicenseeName { get; set; } | |
19 | + public string LicenseType { get; set; } | |
20 | + public string AccountType { get; set; } | |
21 | + public string Edition { get; set; } | |
22 | + public string Email { get; set; } | |
23 | + public string StartDate { get; set; } | |
24 | + public string EndDate { get; set; } | |
25 | + public string LicenseStatus { get; set; } | |
26 | + public Nullable<decimal> Price { get; set; } | |
27 | + public string LicenseZip { get; set; } | |
28 | + public string LicenseState { get; set; } | |
29 | + public string LicenseCountry { get; set; } | |
30 | + public string InstitutionName { get; set; } | |
31 | + public string LicenseCreationDate { get; set; } | |
32 | + public Nullable<int> CardNumber { get; set; } | |
33 | + } | |
34 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetDiscountCodes_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetDiscountCodes_Result | |
15 | + { | |
16 | + public int Id { get; set; } | |
17 | + public string DiscountCode { get; set; } | |
18 | + public decimal Percentage { get; set; } | |
19 | + public string StartDate { get; set; } | |
20 | + public string EndDate { get; set; } | |
21 | + public string Status { get; set; } | |
22 | + } | |
23 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetDiscountReport_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetDiscountReport_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string DiscountCode { get; set; } | |
18 | + public decimal Percentage { get; set; } | |
19 | + public string StartDate { get; set; } | |
20 | + public string EndDate { get; set; } | |
21 | + public string DiscountStatus { get; set; } | |
22 | + public Nullable<int> TotalLicenses { get; set; } | |
23 | + } | |
24 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetExpiringLicenses_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetExpiringLicenses_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string AccountNumber { get; set; } | |
18 | + public string LicenseeName { get; set; } | |
19 | + public string LicenseType { get; set; } | |
20 | + public string InstitutionName { get; set; } | |
21 | + public string Edition { get; set; } | |
22 | + public string StartDate { get; set; } | |
23 | + public string EndDate { get; set; } | |
24 | + public string LicenseCreationDate { get; set; } | |
25 | + public Nullable<decimal> SubscriptionPrice { get; set; } | |
26 | + public string AccountType { get; set; } | |
27 | + public Nullable<int> DaysRemaining { get; set; } | |
28 | + public Nullable<int> CardNumber { get; set; } | |
29 | + } | |
30 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetExportedImageDetails_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetExportedImageDetails_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public int LicenseId { get; set; } | |
18 | + public System.DateTime ExportedDate { get; set; } | |
19 | + public string ImageName { get; set; } | |
20 | + public string AccountNumber { get; set; } | |
21 | + public string OriginalFileName { get; set; } | |
22 | + public string Title { get; set; } | |
23 | + public string ModuleName { get; set; } | |
24 | + public Nullable<int> ExportLimit { get; set; } | |
25 | + public string UserName { get; set; } | |
26 | + public Nullable<int> imageCount { get; set; } | |
27 | + } | |
28 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetModuleStatusByLicenseId_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetModuleStatusByLicenseId_Result | |
15 | + { | |
16 | + public int Id { get; set; } | |
17 | + public string Title { get; set; } | |
18 | + public bool Status { get; set; } | |
19 | + } | |
20 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetNetAdSummaryReport_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetNetAdSummaryReport_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string LicenseType { get; set; } | |
18 | + public string AccountType { get; set; } | |
19 | + public string InstitutionName { get; set; } | |
20 | + public string LicenseCreationDate { get; set; } | |
21 | + public Nullable<int> ActiveSubscription { get; set; } | |
22 | + public Nullable<int> RenewSubscription { get; set; } | |
23 | + public Nullable<int> InActiveSubscription { get; set; } | |
24 | + public Nullable<int> NetAdSubscription { get; set; } | |
25 | + } | |
26 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSearchUsers_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetSearchUsers_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public Nullable<int> Id { get; set; } | |
18 | + public string FirstName { get; set; } | |
19 | + public string LastName { get; set; } | |
20 | + public string LoginId { get; set; } | |
21 | + public string EmailId { get; set; } | |
22 | + public string UserTypeTitle { get; set; } | |
23 | + public string Password { get; set; } | |
24 | + public Nullable<System.DateTime> CreationDate { get; set; } | |
25 | + public Nullable<System.DateTime> ModifiedDate { get; set; } | |
26 | + public string AccountNumber { get; set; } | |
27 | + public string AccountTypeTitle { get; set; } | |
28 | + public string EditionType { get; set; } | |
29 | + public string UserStatus { get; set; } | |
30 | + public Nullable<int> UserTypeId { get; set; } | |
31 | + public Nullable<int> EditionTypeId { get; set; } | |
32 | + } | |
33 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteAccountAdmin_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetSiteAccountAdmin_Result | |
15 | + { | |
16 | + public int Id { get; set; } | |
17 | + public string Password { get; set; } | |
18 | + public string LoginId { get; set; } | |
19 | + public string FirstName { get; set; } | |
20 | + public byte UserTypeId { get; set; } | |
21 | + public string LastName { get; set; } | |
22 | + public string EmailId { get; set; } | |
23 | + public Nullable<bool> IsActive { get; set; } | |
24 | + public Nullable<byte> SecurityQuestionId { get; set; } | |
25 | + public string SecurityAnswer { get; set; } | |
26 | + public Nullable<int> CreatorId { get; set; } | |
27 | + public System.DateTime CreationDate { get; set; } | |
28 | + public Nullable<int> ModifierId { get; set; } | |
29 | + public Nullable<System.DateTime> ModifiedDate { get; set; } | |
30 | + public Nullable<System.DateTime> DeactivationDate { get; set; } | |
31 | + } | |
32 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteAccountSites_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetSiteAccountSites_Result | |
15 | + { | |
16 | + public int Id { get; set; } | |
17 | + public string SiteIp { get; set; } | |
18 | + public string Title { get; set; } | |
19 | + public string SiteIPTo { get; set; } | |
20 | + public string SiteMasterIPTo { get; set; } | |
21 | + public string CreationDate { get; set; } | |
22 | + public string ModifiedDate { get; set; } | |
23 | + public string InstituteName { get; set; } | |
24 | + public string Department { get; set; } | |
25 | + public int UserId { get; set; } | |
26 | + public string FirstName { get; set; } | |
27 | + public string EmailId { get; set; } | |
28 | + } | |
29 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteAccoutDetail_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetSiteAccoutDetail_Result | |
15 | + { | |
16 | + public int Id { get; set; } | |
17 | + public string SiteIp { get; set; } | |
18 | + public string Title { get; set; } | |
19 | + public string SiteIPTo { get; set; } | |
20 | + public string SiteMasterIPTo { get; set; } | |
21 | + public string CreationDate { get; set; } | |
22 | + public string ModifiedDate { get; set; } | |
23 | + public string InstituteName { get; set; } | |
24 | + public string Department { get; set; } | |
25 | + public int UserId { get; set; } | |
26 | + public string FirstName { get; set; } | |
27 | + public string EmailId { get; set; } | |
28 | + } | |
29 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteLicenseUsageReport_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetSiteLicenseUsageReport_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string AccountNumber { get; set; } | |
18 | + public string EditionTitle { get; set; } | |
19 | + public string ReferalUrl { get; set; } | |
20 | + public string InstitutionName { get; set; } | |
21 | + public string LicenseCreationDate { get; set; } | |
22 | + public Nullable<int> TotalLogins { get; set; } | |
23 | + public string LastLogin { get; set; } | |
24 | + } | |
25 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteLicenseUsageReports_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetSiteLicenseUsageReports_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string AccountNumber { get; set; } | |
18 | + public string EditionTitle { get; set; } | |
19 | + public string ReferalUrl { get; set; } | |
20 | + public string InstitutionName { get; set; } | |
21 | + public string LicenseCreationDate { get; set; } | |
22 | + public Nullable<int> TotalLogins { get; set; } | |
23 | + public string LastLogin { get; set; } | |
24 | + } | |
25 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSubscribedLicenses_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetSubscribedLicenses_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string AccountNumber { get; set; } | |
18 | + public string LicenseeName { get; set; } | |
19 | + public string LicenseType { get; set; } | |
20 | + public string InstitutionName { get; set; } | |
21 | + public string AccountType { get; set; } | |
22 | + public string Edition { get; set; } | |
23 | + public string StartDate { get; set; } | |
24 | + public string EndDate { get; set; } | |
25 | + public string LicenseCreationDate { get; set; } | |
26 | + public Nullable<decimal> SubscriptionPrice { get; set; } | |
27 | + public Nullable<int> CardNumber { get; set; } | |
28 | + } | |
29 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsageReport_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetUsageReport_Result | |
15 | + { | |
16 | + public Nullable<long> RowNum { get; set; } | |
17 | + public string LoginId { get; set; } | |
18 | + public string FirstName { get; set; } | |
19 | + public string LastName { get; set; } | |
20 | + public string AccountNumber { get; set; } | |
21 | + public Nullable<int> CardNumber { get; set; } | |
22 | + public string UserType { get; set; } | |
23 | + public string LicenseCreationDate { get; set; } | |
24 | + public string LicenseZip { get; set; } | |
25 | + public string LicenseState { get; set; } | |
26 | + public string LicenseCountry { get; set; } | |
27 | + public string InstitutionName { get; set; } | |
28 | + public Nullable<int> TotalLogins { get; set; } | |
29 | + public string LastLogin { get; set; } | |
30 | + } | |
31 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUserTyeByAccountNumber_Result.cs
0 → 100644
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated from a template. | |
4 | +// | |
5 | +// Manual changes to this file may cause unexpected behavior in your application. | |
6 | +// Manual changes to this file will be overwritten if the code is regenerated. | |
7 | +// </auto-generated> | |
8 | +//------------------------------------------------------------------------------ | |
9 | + | |
10 | +namespace AIAHTML5.ADMIN.API.Entity | |
11 | +{ | |
12 | + using System; | |
13 | + | |
14 | + public partial class usp_GetUserTyeByAccountNumber_Result | |
15 | + { | |
16 | + public Nullable<byte> Id { get; set; } | |
17 | + public string Title { get; set; } | |
18 | + } | |
19 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/AccountModel.cs
... | ... | @@ -19,7 +19,7 @@ namespace AIAHTML5.ADMIN.API.Models |
19 | 19 | AccountTypeEntityModel AccountTypeModelObj = new AccountTypeEntityModel(); |
20 | 20 | try |
21 | 21 | { |
22 | - var result = dbContext.EC_GetAccountTypeList().ToList(); | |
22 | + var result = dbContext.usp_EC_GetAccountTypeList().ToList(); | |
23 | 23 | if (result.Count > 0) |
24 | 24 | { |
25 | 25 | foreach (var item in result) | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/CommonModel.cs
... | ... | @@ -18,7 +18,7 @@ namespace AIAHTML5.ADMIN.API.Models |
18 | 18 | CountryModel CountryModelObj = new CountryModel(); |
19 | 19 | try |
20 | 20 | { |
21 | - var result = dbContext.EC_GetCountryList().ToList(); | |
21 | + var result = dbContext.usp_EC_GetCountryList().ToList(); | |
22 | 22 | if (result.Count > 0) |
23 | 23 | { |
24 | 24 | foreach (var item in result) |
... | ... | @@ -47,7 +47,7 @@ namespace AIAHTML5.ADMIN.API.Models |
47 | 47 | StateModel StateModelObj = new StateModel(); |
48 | 48 | try |
49 | 49 | { |
50 | - var result = dbContext.EC_GetStateList().ToList(); | |
50 | + var result = dbContext.usp_EC_GetStateList().ToList(); | |
51 | 51 | if (result.Count > 0) |
52 | 52 | { |
53 | 53 | foreach (var item in result) |
... | ... | @@ -75,7 +75,7 @@ namespace AIAHTML5.ADMIN.API.Models |
75 | 75 | SecurityQuestionModel SecurityQuestionObj = new SecurityQuestionModel(); |
76 | 76 | try |
77 | 77 | { |
78 | - var result = dbContext.EC_GetSecurityQuestionList().ToList(); | |
78 | + var result = dbContext.usp_EC_GetSecurityQuestionList().ToList(); | |
79 | 79 | if (result.Count > 0) |
80 | 80 | { |
81 | 81 | foreach (var item in result) | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/DiscountCodeModel.cs
... | ... | @@ -23,7 +23,7 @@ namespace AIAHTML5.ADMIN.API.Models |
23 | 23 | recordCount = 0; |
24 | 24 | try |
25 | 25 | { |
26 | - var result = dbContext.GetDiscountCodes(discountCode, startDate.ToString("MM/dd/yyyy"), endDate.ToString("MM/dd/yyyy"), pageNo, pageLength, spRecordCount).ToList(); | |
26 | + var result = dbContext.usp_GetDiscountCodes(discountCode, startDate.ToString("MM/dd/yyyy"), endDate.ToString("MM/dd/yyyy"), pageNo, pageLength, spRecordCount).ToList(); | |
27 | 27 | if (result.Count > 0) |
28 | 28 | { |
29 | 29 | foreach (var item in result) |
... | ... | @@ -49,7 +49,7 @@ namespace AIAHTML5.ADMIN.API.Models |
49 | 49 | { |
50 | 50 | try |
51 | 51 | { |
52 | - var result = dbContext.InsertNewDiscount(discountCodeModel.Percentage, discountCodeModel.StartDate.ToString("MM/dd/yyyy"), | |
52 | + var result = dbContext.usp_InsertNewDiscount(discountCodeModel.Percentage, discountCodeModel.StartDate.ToString("MM/dd/yyyy"), | |
53 | 53 | discountCodeModel.EndDate.ToString("MM/dd/yyyy"), discountCodeModel.DiscountCode); |
54 | 54 | if (result.Count() > 0) |
55 | 55 | { |
... | ... | @@ -70,7 +70,7 @@ namespace AIAHTML5.ADMIN.API.Models |
70 | 70 | { |
71 | 71 | try |
72 | 72 | { |
73 | - var result = dbContext.UpdateDiscount(discountCodeModel.Id, discountCodeModel.Percentage, discountCodeModel.StartDate.ToString("MM/dd/yyyy"), | |
73 | + var result = dbContext.usp_UpdateDiscount(discountCodeModel.Id, discountCodeModel.Percentage, discountCodeModel.StartDate.ToString("MM/dd/yyyy"), | |
74 | 74 | discountCodeModel.EndDate.ToString("MM/dd/yyyy"), (byte?)(discountCodeModel.IsActive == true ? 1 : 0), discountCodeModel.DiscountCode); |
75 | 75 | if (result.Count() > 0) |
76 | 76 | { | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/LicenseModel.cs
... | ... | @@ -181,7 +181,7 @@ namespace AIAHTML5.ADMIN.API.Models |
181 | 181 | recordCount = 0; |
182 | 182 | try |
183 | 183 | { |
184 | - var result = dbContext.GetSiteAccoutDetail(AccountNo, pageNo, pageLength, spRecordCount).ToList(); | |
184 | + var result = dbContext.usp_GetSiteAccountSites(AccountNo, pageNo, pageLength, spRecordCount).ToList(); | |
185 | 185 | if (result.Count > 0) |
186 | 186 | { |
187 | 187 | foreach (var item in result) |
... | ... | @@ -198,7 +198,10 @@ namespace AIAHTML5.ADMIN.API.Models |
198 | 198 | SiteModelObj.SiteUserFirstName = item.FirstName; |
199 | 199 | SiteModelObj.Title = item.Title; |
200 | 200 | SiteModelObj.CreationDate = DateTime.ParseExact(item.CreationDate, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture); |
201 | - SiteModelObj.ModifiedDate = DateTime.ParseExact(item.ModifiedDate, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture); | |
201 | + if (!string.IsNullOrEmpty(item.ModifiedDate)) | |
202 | + { | |
203 | + SiteModelObj.ModifiedDate = DateTime.ParseExact(item.ModifiedDate, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture); | |
204 | + } | |
202 | 205 | LicenseSiteList.Add(SiteModelObj); |
203 | 206 | } |
204 | 207 | } |
... | ... | @@ -239,7 +242,7 @@ namespace AIAHTML5.ADMIN.API.Models |
239 | 242 | switch (licenseModel.LicenseTypeId) |
240 | 243 | { |
241 | 244 | case 1: |
242 | - var result = dbContext.InsertNewLicenseAccount(licenseModel.AccountNumber, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, | |
245 | + var result = dbContext.usp_InsertNewLicenseAccount(licenseModel.AccountNumber, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, | |
243 | 246 | licenseModel.LicenseTypeId, licenseModel.AccountTypeId, licenseModel.InstitutionName, licenseModel.Address1, licenseModel.Address2, |
244 | 247 | licenseModel.City, licenseModel.Zip, licenseModel.StateId, licenseModel.CountryId, licenseModel.Phone, licenseModel.EmailId, |
245 | 248 | licenseModel.TotalLogins, licenseModel.SubscriptionStartDate.ToString("MM/dd/yyyy"), licenseModel.SubscriptionEndDate.ToString("MM/dd/yyyy"), |
... | ... | @@ -251,7 +254,7 @@ namespace AIAHTML5.ADMIN.API.Models |
251 | 254 | } |
252 | 255 | break; |
253 | 256 | case 2: |
254 | - result = dbContext.InsertSingleLicenseAccount(licenseModel.AccountNumber, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, licenseModel.AccountTypeId, | |
257 | + result = dbContext.usp_InsertSingleLicenseAccount(licenseModel.AccountNumber, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, licenseModel.AccountTypeId, | |
255 | 258 | licenseModel.InstitutionName, licenseModel.Address1, licenseModel.Address2, licenseModel.City, licenseModel.Zip, |
256 | 259 | licenseModel.StateId, licenseModel.CountryId, licenseModel.Phone, licenseModel.EmailId, licenseModel.TotalLogins, |
257 | 260 | licenseModel.SubscriptionStartDate.ToString("MM/dd/yyyy"), licenseModel.SubscriptionEndDate.ToString("MM/dd/yyyy"), |
... | ... | @@ -263,7 +266,7 @@ namespace AIAHTML5.ADMIN.API.Models |
263 | 266 | } |
264 | 267 | break; |
265 | 268 | case 3: |
266 | - result = dbContext.InsertNewLicenseAccount(licenseModel.AccountNumber, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, | |
269 | + result = dbContext.usp_InsertNewLicenseAccount(licenseModel.AccountNumber, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, | |
267 | 270 | licenseModel.LicenseTypeId, licenseModel.AccountTypeId, licenseModel.InstitutionName, licenseModel.Address1, licenseModel.Address2, |
268 | 271 | licenseModel.City, licenseModel.Zip, licenseModel.StateId, licenseModel.CountryId, licenseModel.Phone, licenseModel.EmailId, |
269 | 272 | licenseModel.TotalLogins, licenseModel.SubscriptionStartDate.ToString("MM/dd/yyyy"), licenseModel.SubscriptionEndDate.ToString("MM/dd/yyyy"), |
... | ... | @@ -286,7 +289,7 @@ namespace AIAHTML5.ADMIN.API.Models |
286 | 289 | } |
287 | 290 | break; |
288 | 291 | case 5: |
289 | - result = dbContext.InsertTestLicenseAccount(licenseModel.AccountNumber, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, | |
292 | + result = dbContext.usp_InsertTestLicenseAccount(licenseModel.AccountNumber, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, | |
290 | 293 | licenseModel.LoginId, licenseModel.Password, licenseModel.EmailId, licenseModel.AccountTypeId, licenseModel.TestLicenseEditionId, |
291 | 294 | licenseModel.Address1, licenseModel.City, licenseModel.Zip, licenseModel.StateId, licenseModel.CountryId, licenseModel.Phone, |
292 | 295 | licenseModel.SubscriptionStartDate.ToString("MM/dd/yyyy"), licenseModel.SubscriptionEndDate.ToString("MM/dd/yyyy"), |
... | ... | @@ -310,7 +313,7 @@ namespace AIAHTML5.ADMIN.API.Models |
310 | 313 | bool status = false; |
311 | 314 | try |
312 | 315 | { |
313 | - var result = dbContext.UpdateLicenseAccount(licenseModel.LicenseId, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, | |
316 | + var result = dbContext.usp_UpdateLicenseAccount(licenseModel.LicenseId, licenseModel.LicenseeFirstName, licenseModel.LicenseeLastName, | |
314 | 317 | licenseModel.LicenseTypeId, licenseModel.AccountTypeId, licenseModel.InstitutionName, licenseModel.Address1, licenseModel.Address2, |
315 | 318 | licenseModel.City, licenseModel.Zip, licenseModel.StateId, licenseModel.CountryId, licenseModel.Phone, licenseModel.EmailId, |
316 | 319 | (byte)(licenseModel.IsActive == false ? 0 : 1), licenseModel.TotalLogins, (byte)(licenseModel.IsRenew == false ? 0 : 1), |
... | ... | @@ -333,7 +336,7 @@ namespace AIAHTML5.ADMIN.API.Models |
333 | 336 | { |
334 | 337 | try |
335 | 338 | { |
336 | - var spStatus = dbContext.DeleteLicense(LicenseId); | |
339 | + var spStatus = dbContext.usp_DeleteLicense(LicenseId); | |
337 | 340 | if (spStatus.Count() > 0) |
338 | 341 | { |
339 | 342 | return true; |
... | ... | @@ -389,7 +392,7 @@ namespace AIAHTML5.ADMIN.API.Models |
389 | 392 | Tuple<int, bool, string> LicenseModuleStatusObj; |
390 | 393 | try |
391 | 394 | { |
392 | - var result = dbContext.GetModuleStatusByLicenseId(LicenseId).ToList(); | |
395 | + var result = dbContext.usp_GetModuleStatusByLicenseId(LicenseId).ToList(); | |
393 | 396 | if (result.Count > 0) |
394 | 397 | { |
395 | 398 | foreach (var item in result) |
... | ... | @@ -430,6 +433,25 @@ namespace AIAHTML5.ADMIN.API.Models |
430 | 433 | return false; |
431 | 434 | } |
432 | 435 | } |
436 | + public static List<Tuple<int, string, string>> GetLicenseSiteAdmin(AIADatabaseV5Entities dbContext, string AccountNo) | |
437 | + { | |
438 | + List<Tuple<int, string, string>> LicenseSiteAdminList = new List<Tuple<int, string, string>>(); | |
439 | + Tuple<int, string, string> SiteAdmin; | |
440 | + try | |
441 | + { | |
442 | + var result = dbContext.usp_GetSiteAccountAdmin(AccountNo).ToList(); | |
443 | + if (result.Count > 0) | |
444 | + { | |
445 | + foreach (var item in result) | |
446 | + { | |
447 | + SiteAdmin = new Tuple<int, string, string>(item.Id, item.FirstName + " " + item.LastName, item.EmailId); | |
448 | + LicenseSiteAdminList.Add(SiteAdmin); | |
449 | + } | |
450 | + } | |
451 | + } | |
452 | + catch (Exception ex) { } | |
453 | + return LicenseSiteAdminList; | |
454 | + } | |
433 | 455 | } |
434 | 456 | |
435 | 457 | public class LicenseTypeModel | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/SharedModel.cs
... | ... | @@ -25,7 +25,7 @@ namespace AIAHTML5.ADMIN.API.Models |
25 | 25 | AccountTypeModel AccountTypeModelObj = new AccountTypeModel(); |
26 | 26 | try |
27 | 27 | { |
28 | - var result = dbContext.EC_GetAccountTypeList().ToList(); | |
28 | + var result = dbContext.usp_EC_GetAccountTypeList().ToList(); | |
29 | 29 | if (result.Count > 0) |
30 | 30 | { |
31 | 31 | foreach (var item in result) | ... | ... |
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/UserModel.cs
... | ... | @@ -35,7 +35,7 @@ namespace AIAHTML5.ADMIN.API.Models |
35 | 35 | var spStatus = new System.Data.Objects.ObjectParameter("Status", 0); |
36 | 36 | try |
37 | 37 | { |
38 | - dbContext.UpdateUserProfile(intUserID, strFirstName, strLastName, strEmailID, spStatus); | |
38 | + dbContext.usp_UpdateUserProfile(intUserID, strFirstName, strLastName, strEmailID, spStatus); | |
39 | 39 | if (spStatus.Value.ToString() == "1") |
40 | 40 | { |
41 | 41 | return true; |
... | ... | @@ -55,7 +55,7 @@ namespace AIAHTML5.ADMIN.API.Models |
55 | 55 | var spStatus = new System.Data.Objects.ObjectParameter("Status", 0); |
56 | 56 | try |
57 | 57 | { |
58 | - dbContext.UpdateAiaUserPassword(intUserID, newPassword, spStatus); | |
58 | + dbContext.usp_UpdateAiaUserPassword(intUserID, newPassword, spStatus); | |
59 | 59 | return (bool)spStatus.Value; |
60 | 60 | } |
61 | 61 | catch (Exception ex) | ... | ... |
400-SOURCECODE/Admin/src/app/app.component.html
... | ... | @@ -29,7 +29,15 @@ |
29 | 29 | |
30 | 30 | <div id="navbar" class="navbar-collapse collapse"> |
31 | 31 | <ul class="nav navbar-nav toperMenu-spaceleft"> |
32 | - <li class="dropdown"> | |
32 | + <li *ngFor="let item of objMenu | callback:menustaus" class="dropdown"> | |
33 | + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{item.HeaderMenuName}}<span class="caret"></span></a> | |
34 | + <ul class="dropdown-menu"> | |
35 | + <li *ngFor="let item1 of item.SubMenu"> | |
36 | + <a *ngIf="item1.SubMenuStatus=='True'" [routerLink]="item1.SubMenuUrl">{{item1.SubMenuName}}</a> | |
37 | + </li> | |
38 | + </ul> | |
39 | + </li> | |
40 | + <!--<li class="dropdown"> | |
33 | 41 | <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Profile<span class="caret"></span></a> |
34 | 42 | <ul class="dropdown-menu"> |
35 | 43 | <li><a [routerLink]="['updateuserprofile']">Update Profile</a></li> |
... | ... | @@ -37,13 +45,13 @@ |
37 | 45 | <li><a [routerLink]="['changeuserpassword']">Change Password</a></li> |
38 | 46 | |
39 | 47 | <li><a [routerLink]="['changeuserid']">Change User ID</a></li> |
40 | - <li><!--<a href="admin-change-user-id.html">Change User ID</a>--></li> | |
48 | + | |
41 | 49 | </ul> |
42 | 50 | </li> |
43 | 51 | <li class="dropdown"> |
44 | 52 | <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Licenses<span class="caret"></span></a> |
45 | 53 | <ul class="dropdown-menu"> |
46 | - <!--<li><a [routerlink]="['managediscountcode']">Search License</a></li>--> | |
54 | + | |
47 | 55 | <li><a [routerLink]="['searchlicense']">Search License</a></li> |
48 | 56 | <li><a [routerLink]="['addlicense']">Add New License</a></li> |
49 | 57 | </ul> |
... | ... | @@ -85,14 +93,14 @@ |
85 | 93 | </ul> |
86 | 94 | </li> |
87 | 95 | <li class="dropdown"> |
88 | - <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Profile<span class="caret"></span></a> | |
96 | + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Settings<span class="caret"></span></a> | |
89 | 97 | <ul class="dropdown-menu"> |
90 | 98 | <li><a [routerLink]="['editlicensebasicsettings']">View/Update Profile</a></li> |
91 | 99 | <li><a [routerLink]="['licensemodestysettings']">Manage Modesty Settings</a></li> |
92 | 100 | <li><a [routerLink]="['licensemodulesettings']">Manage Module</a></li> |
93 | 101 | </ul> |
94 | - </li> | |
95 | - <li><a href="/" (click)="Product()">Product</a></li> | |
102 | + </li>--> | |
103 | + <li><a href="/" (click)="Product()">Product</a></li> | |
96 | 104 | </ul> |
97 | 105 | <!--logout--> |
98 | 106 | <div class="wel-brog"> |
... | ... | @@ -102,8 +110,8 @@ |
102 | 110 | </ul> |
103 | 111 | </div> |
104 | 112 | <div class="btn-group pull-right hidden-sm mar-top17 mob2"> |
105 | - <button type="button" class="btn btn-primary dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | |
106 | - Welcome Maribel Brogden <!--<span class="caret"></span>--> | |
113 | + <button id="btndisplayname" type="button" class="btn btn-primary dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | |
114 | + {{global.DisplayName}} <!--<span class="caret"></span>--> | |
107 | 115 | </button> |
108 | 116 | <!--<ul class="dropdown-menu"> |
109 | 117 | <li><a href="#"><strong>Date:</strong> 11/21/2016</a></li> | ... | ... |
400-SOURCECODE/Admin/src/app/app.component.ts
... | ... | @@ -6,7 +6,10 @@ import { LicenseService } from './components/LicenseEntity/license.service'; |
6 | 6 | import { ReportService } from './components/Reports/report.service'; |
7 | 7 | //import { MyAuthService } from './shared/my-auth.service'; |
8 | 8 | import { GlobalService } from './Shared/global'; |
9 | -import { Router } from '@angular/router'; | |
9 | +import { Router, NavigationEnd } from '@angular/router'; | |
10 | +//import { HttpClient } from '@angular/common/http'; | |
11 | +//import { HttpErrorResponse } from '@angular/common/http'; | |
12 | +//import { Observable } from 'rxjs/Observable'; | |
10 | 13 | @Component({ |
11 | 14 | selector: 'app-component', |
12 | 15 | templateUrl: '../app/app.component.html', |
... | ... | @@ -14,10 +17,27 @@ import { Router } from '@angular/router'; |
14 | 17 | }) |
15 | 18 | |
16 | 19 | export class AppComponent implements OnInit { |
17 | - | |
18 | - constructor(private userservice: UserService, private global: GlobalService, private router: Router) { } | |
19 | 20 | |
20 | - ngOnInit(): void { } | |
21 | + public obj: any; | |
22 | + public objMenu: any; | |
23 | + public menustaus: string; | |
24 | + public submenustaus: string; | |
25 | + | |
26 | + constructor(private userservice: UserService, public global: GlobalService, private router: Router | |
27 | + ) { } | |
28 | + ngOnInit(): void { | |
29 | + this.menustaus = "True"; | |
30 | + this.global.getJSON().subscribe(data => { | |
31 | + this.obj = data["AdminSections"] | |
32 | + for (let i = 0; i < 7; i++) { | |
33 | + | |
34 | + if (this.obj[i].Id == this.global.UserType) { | |
35 | + this.objMenu = this.obj[i].HeaderMenu; | |
36 | + } | |
37 | + } | |
38 | + }, error => console.log(error)); | |
39 | + this.router.navigate(['/updateuserprofile']); | |
40 | + } | |
21 | 41 | logout() { |
22 | 42 | localStorage.removeItem('loggedInUserDetails'); |
23 | 43 | window.location.href = this.global.LiveURL; | ... | ... |
400-SOURCECODE/Admin/src/app/app.module.ts
1 | - | |
2 | - | |
3 | 1 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
4 | 2 | import { BrowserModule } from '@angular/platform-browser'; |
5 | 3 | import { NgModule } from '@angular/core'; |
... | ... | @@ -48,6 +46,8 @@ import { ContenteditableModelDirective } from './shared/contenteditabledirective |
48 | 46 | import { LoadingService } from './shared/loading.service'; |
49 | 47 | import { PagerComponent } from './shared/Pager/pager.component'; |
50 | 48 | import { NumberOnlyDirective } from './shared/numberonlydirective'; |
49 | +import { MyFilterPipe } from './shared/my-filter.pipe'; | |
50 | +import { BsDropdownModule } from 'ngx-bootstrap'; | |
51 | 51 | //import { MyAuthService } from './shared/my-auth.service'; |
52 | 52 | //import { AngularFireAuth } from 'angularfire2/auth'; |
53 | 53 | //import { FirebaseApp, AngularFireModule } from 'angularfire2'; |
... | ... | @@ -72,11 +72,13 @@ import { NumberOnlyDirective } from './shared/numberonlydirective'; |
72 | 72 | SubscriptionCancellationReport, NetAdSubscriptionReport, |
73 | 73 | SiteLicenseUsageReport, DiscountCodeReport, ImageExportReport, |
74 | 74 | EditLicenseBasicSettings, LicenseModestySettings, |
75 | - LicenseModuleSettings, SiteLicenseAccount, UserGroup, PagerComponent, NumberOnlyDirective | |
75 | + LicenseModuleSettings, SiteLicenseAccount, UserGroup, PagerComponent, NumberOnlyDirective, | |
76 | + //filter | |
77 | + MyFilterPipe | |
76 | 78 | ], |
77 | 79 | imports: [ |
78 | 80 | BrowserModule, AppRoutingModule, HttpClientModule, FormsModule, ReactiveFormsModule, HttpModule, Ng2Bs3ModalModule, |
79 | - BsDatepickerModule.forRoot(), ModalModule.forRoot()//ModalModule.forRoot() | |
81 | + BsDatepickerModule.forRoot(), ModalModule.forRoot(), BsDropdownModule.forRoot()//ModalModule.forRoot() | |
80 | 82 | // , AngularFireModule.initializeApp(firebaseConfig), |
81 | 83 | ], |
82 | 84 | providers: [GlobalService, ConfirmService, BsModalService, LoadingService, CsvService, |
... | ... | @@ -89,7 +91,7 @@ import { NumberOnlyDirective } from './shared/numberonlydirective'; |
89 | 91 | // useClass: MyInterceptor, |
90 | 92 | // multi: true |
91 | 93 | //} |
92 | - { provide: APP_BASE_HREF, useValue: '/Admin-UI' } | |
94 | + { provide: APP_BASE_HREF, useValue: '/Admin' } | |
93 | 95 | //{ provide: APP_BASE_HREF, useValue: '/' } |
94 | 96 | |
95 | 97 | ], | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.html
... | ... | @@ -76,7 +76,7 @@ |
76 | 76 | <tbody> |
77 | 77 | <tr *ngFor="let item of this.insertUpdateLicenseFrm.controls['editionLoginArr'].value; let i = index"> |
78 | 78 | <td align="center"> |
79 | - <input type="checkbox" (change)="onChange(item, $event.target.checked)" [checked]="item.Login"> | |
79 | + <input type="checkbox" (change)="onChange(item, $event.target.checked)" [checked]="item.Checked"> | |
80 | 80 | </td> |
81 | 81 | <td>{{item.Title}}</td> |
82 | 82 | <td [style.visibility]="(this.insertUpdateLicenseFrm.controls['licenseTypeId'].value != 3) ? 'visible' : 'hidden'"><input type="text" maxlength="2" style="width: 100px;" contenteditable="true" [(contenteditableModel)]="item.Login" (blur)="OnLoginBlur()" NumberOnly></td> |
... | ... | @@ -232,9 +232,9 @@ |
232 | 232 | <div class="form-group marginTop5"> |
233 | 233 | <label for="State" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">State (only U.S.) <span class="red">*</span> :</label> |
234 | 234 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
235 | - <select class="form-control input-sm " id="State" formControlName="stateId"> | |
235 | + <select class="form-control input-sm " id="State" formControlName="stateId" (change)="OnStateChange($event.target)"> | |
236 | 236 | <option value="0">Select</option> |
237 | - <option *ngFor="let item of lstState" value="{{item.Id}}"> | |
237 | + <option *ngFor="let item of lstState" value="{{item.Id}}" (change)="OnStateChange($event.target)"> | |
238 | 238 | {{item.StateName}} |
239 | 239 | </option> |
240 | 240 | </select> |
... | ... | @@ -245,9 +245,9 @@ |
245 | 245 | <div class="form-group marginTop5"> |
246 | 246 | <label for="Country" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Country <span class="red">*</span> :</label> |
247 | 247 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
248 | - <select class="form-control input-sm" id="Country" formControlName="countryId"> | |
248 | + <select class="form-control input-sm" id="Country" formControlName="countryId" (change)="OnCountryChange($event.target)"> | |
249 | 249 | <option value="0">Select</option> |
250 | - <option *ngFor="let item of lstCountry" value="{{item.Id}}"> | |
250 | + <option *ngFor="let item of lstCountry" value="{{item.Id}}" (change)="OnCountryChange($event.target)"> | |
251 | 251 | {{item.CountryName}} |
252 | 252 | </option> |
253 | 253 | </select> | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts
... | ... | @@ -126,12 +126,16 @@ export class AddLicense implements OnInit { |
126 | 126 | |
127 | 127 | onChange(item: any, isChecked: boolean) { |
128 | 128 | if (isChecked) { |
129 | - if (this.license.LicenseTypeId == 3) { | |
129 | + if(this.insertUpdateLicenseFrm.controls['licenseTypeId'].value == 3){ | |
130 | + item.Checked = 1; | |
131 | + } | |
132 | + else{ | |
130 | 133 | item.Login = 1; |
131 | 134 | } |
132 | 135 | } |
133 | 136 | else { |
134 | - item.Login = 0; | |
137 | + item.Checked = 0; | |
138 | + item.Login = 0; | |
135 | 139 | } |
136 | 140 | this.OnLoginBlur(); |
137 | 141 | } |
... | ... | @@ -297,7 +301,15 @@ export class AddLicense implements OnInit { |
297 | 301 | else { |
298 | 302 | this.insertUpdateLicenseFrm.controls['isActive'].setValue('false'); |
299 | 303 | } |
300 | - | |
304 | + this.insertUpdateLicenseFrm.controls['phone'].clearValidators(); | |
305 | + if(this.lstCountry.find(C => C.Id == this.license.CountryId).CountryName != "United States"){ | |
306 | + this.insertUpdateLicenseFrm.controls['phone'].setValidators([Validators.required]); | |
307 | + } | |
308 | + else{ | |
309 | + this.insertUpdateLicenseFrm.controls['phone'].setValidators([Validators.required, Validators.pattern('^([0-9]{3})-([0-9]{3})-([0-9]{4})$')]); | |
310 | + } | |
311 | + this.insertUpdateLicenseFrm.controls['phone'].updateValueAndValidity(); | |
312 | + | |
301 | 313 | if (this.license.EditionLogins == null) return; |
302 | 314 | var TempArr = this.license.EditionLogins.split('|'); |
303 | 315 | this.lstEditionLogins = new Array(); |
... | ... | @@ -308,12 +320,12 @@ export class AddLicense implements OnInit { |
308 | 320 | TempArr.forEach(elm => { |
309 | 321 | var TempInnerArr = elm.split('-'); |
310 | 322 | if (TempInnerArr[0] == element.Id) { |
311 | - this.lstEditionLogins.push({ Id: element.Id, Title: element.Title, Login: parseInt(TempInnerArr[1]) }); | |
323 | + this.lstEditionLogins.push({ Id: element.Id, Title: element.Title, Login: parseInt(TempInnerArr[1]), Checked: 1 }); | |
312 | 324 | Check = true; |
313 | 325 | } |
314 | 326 | }); |
315 | 327 | if (!Check) { |
316 | - this.lstEditionLogins.push({ Id: element.Id, Title: element.Title, Login: 0 }); | |
328 | + this.lstEditionLogins.push({ Id: element.Id, Title: element.Title, Login: 0, Checked: 0 }); | |
317 | 329 | } |
318 | 330 | } |
319 | 331 | } |
... | ... | @@ -322,12 +334,12 @@ export class AddLicense implements OnInit { |
322 | 334 | TempArr.forEach(elm => { |
323 | 335 | var TempInnerArr = elm.split('-'); |
324 | 336 | if (TempInnerArr[0] == element.Id) { |
325 | - this.lstEditionLogins.push({ Id: element.Id, Title: element.Title, Login: parseInt(TempInnerArr[1]) }); | |
337 | + this.lstEditionLogins.push({ Id: element.Id, Title: element.Title, Login: parseInt(TempInnerArr[1]), Checked: 1 }); | |
326 | 338 | Check = true; |
327 | 339 | } |
328 | 340 | }); |
329 | 341 | if (!Check) { |
330 | - this.lstEditionLogins.push({ Id: element.Id, Title: element.Title, Login: 0 }); | |
342 | + this.lstEditionLogins.push({ Id: element.Id, Title: element.Title, Login: 0, Checked: 0 }); | |
331 | 343 | } |
332 | 344 | } |
333 | 345 | }); |
... | ... | @@ -359,7 +371,14 @@ export class AddLicense implements OnInit { |
359 | 371 | this.totalLogins = 0; |
360 | 372 | this.insertUpdateLicenseFrm.controls['editionLoginArr'].value.forEach(element => { |
361 | 373 | if (!isNaN(parseInt(element.Login))) { |
362 | - this.totalLogins += parseInt(element.Login); | |
374 | + if(this.insertUpdateLicenseFrm.controls['licenseTypeId'].value == 3){ | |
375 | + if(element.Checked == 1){ | |
376 | + this.totalLogins += 1; | |
377 | + } | |
378 | + } | |
379 | + else{ | |
380 | + this.totalLogins += parseInt(element.Login); | |
381 | + } | |
363 | 382 | } |
364 | 383 | }); |
365 | 384 | this.insertUpdateLicenseFrm.controls['totalLogins'].setValue(this.totalLogins); |
... | ... | @@ -450,9 +469,20 @@ export class AddLicense implements OnInit { |
450 | 469 | this.alerts += '<span>Subscription start date must be lower than subscription renew date</span>'; |
451 | 470 | } |
452 | 471 | this.editionLoginsText = ''; |
453 | - this.insertUpdateLicenseFrm.controls['editionLoginArr'].value.forEach(element => { | |
454 | - this.editionLoginsText += element.Id.toString() + '-' + element.Login + '|'; | |
455 | - }); | |
472 | + if(this.insertUpdateLicenseFrm.controls['licenseTypeId'].value == 3){ | |
473 | + this.insertUpdateLicenseFrm.controls['editionLoginArr'].value.forEach(element => { | |
474 | + if(element.Checked == 1){ | |
475 | + this.editionLoginsText += element.Id.toString() + '-' + element.Login + '|'; | |
476 | + } | |
477 | + }); | |
478 | + } | |
479 | + else{ | |
480 | + this.insertUpdateLicenseFrm.controls['editionLoginArr'].value.forEach(element => { | |
481 | + if(element.Login > 0){ | |
482 | + this.editionLoginsText += element.Id.toString() + '-' + element.Login + '|'; | |
483 | + } | |
484 | + }); | |
485 | + } | |
456 | 486 | if (this.editionLoginsText != '') { |
457 | 487 | this.editionLoginsText = this.editionLoginsText.substr(0, this.editionLoginsText.length - 1); |
458 | 488 | } |
... | ... | @@ -497,4 +527,48 @@ export class AddLicense implements OnInit { |
497 | 527 | }); |
498 | 528 | } |
499 | 529 | |
530 | + OnCountryChange(element: any){ | |
531 | + if(element.innerText != ''){ | |
532 | + | |
533 | + } | |
534 | + else{ | |
535 | + this.license.CountryId = parseInt(element.value); | |
536 | + if(this.lstCountry.find(C => C.Id == this.license.CountryId).CountryName != "United States"){ | |
537 | + this.license.StateId = this.lstState.find(C => C.StateName == "Other").Id; | |
538 | + this.insertUpdateLicenseFrm.controls['stateId'].setValue(this.license.StateId); | |
539 | + this.insertUpdateLicenseFrm.controls['phone'].clearValidators(); | |
540 | + this.insertUpdateLicenseFrm.controls['phone'].setValidators([Validators.required]); | |
541 | + } | |
542 | + else{ | |
543 | + this.license.StateId = 0; | |
544 | + this.insertUpdateLicenseFrm.controls['stateId'].setValue(this.license.StateId); | |
545 | + this.insertUpdateLicenseFrm.controls['phone'].clearValidators(); | |
546 | + this.insertUpdateLicenseFrm.controls['phone'].setValidators([Validators.required, Validators.pattern('^([0-9]{3})-([0-9]{3})-([0-9]{4})$')]); | |
547 | + } | |
548 | + this.insertUpdateLicenseFrm.controls['phone'].updateValueAndValidity(); | |
549 | + } | |
550 | + } | |
551 | + | |
552 | + OnStateChange(element: any){ | |
553 | + if(element.innerText != ''){ | |
554 | + | |
555 | + } | |
556 | + else{ | |
557 | + this.license.StateId = parseInt(element.value); | |
558 | + if(this.lstState.find(C => C.Id == this.license.StateId).StateName != "Other"){ | |
559 | + this.license.CountryId = this.lstCountry.find(C => C.CountryName == "United States").Id; | |
560 | + this.insertUpdateLicenseFrm.controls['countryId'].setValue(this.license.CountryId); | |
561 | + this.insertUpdateLicenseFrm.controls['phone'].clearValidators(); | |
562 | + this.insertUpdateLicenseFrm.controls['phone'].setValidators([Validators.required, Validators.pattern('^([0-9]{3})-([0-9]{3})-([0-9]{4})$')]); | |
563 | + } | |
564 | + else{ | |
565 | + this.license.CountryId = 0; | |
566 | + this.insertUpdateLicenseFrm.controls['countryId'].setValue(this.license.CountryId); | |
567 | + this.insertUpdateLicenseFrm.controls['phone'].clearValidators(); | |
568 | + this.insertUpdateLicenseFrm.controls['phone'].setValidators([Validators.required]); | |
569 | + } | |
570 | + this.insertUpdateLicenseFrm.controls['phone'].updateValueAndValidity(); | |
571 | + } | |
572 | + } | |
573 | + | |
500 | 574 | } | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/editlicensebasicsettings.component.html
... | ... | @@ -43,14 +43,21 @@ |
43 | 43 | |
44 | 44 | <div class="form-group"> |
45 | 45 | <label for="inputEmail3" class="col-sm-4 control-label">Account Number :</label> |
46 | - <div class="col-sm-7"> | |
47 | - <select class="form-control input-sm" id="LicenseId" formControlName="licenseId" (change)="AccountNumberChanged($event.target.value)"> | |
48 | - <option value="0">Select</option> | |
49 | - <option *ngFor="let item of lstAccountNumbers" value="{{item.m_Item1}}"> | |
50 | - {{item.m_Item2}} | |
51 | - </option> | |
52 | - </select> | |
53 | - </div> | |
46 | + <div class="col-sm-7" dropdown (isOpenChange)="onOpenChange($event)"> | |
47 | + <button id="button-basic" dropdownToggle type="button" class="btn btn-primary dropdown-toggle col-sm-12 col-xs-12" | |
48 | + aria-controls="dropdown-basic" style="height: 30px;"> | |
49 | + <span class="pull-left" style="margin-top: -1px;">{{accountDropDownText}}</span> | |
50 | + <span class="caret pull-right" style="margin-top: 6px;"></span> | |
51 | + </button> | |
52 | + <ul id="dropdown-basic" *dropdownMenu class="dropdown-menu" role="menu" aria-labelledby="button-basic" style="overflow: scroll; height: 200px;" (scroll)="onScroll($event)"> | |
53 | + <li role="menuitem"> | |
54 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(0, 'Select')">Select</a> | |
55 | + </li> | |
56 | + <li role="menuitem" *ngFor="let item of tempLstAccountNumbers"> | |
57 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(item.m_Item1, item.m_Item2)">{{item.m_Item2}}</a> | |
58 | + </li> | |
59 | + </ul> | |
60 | + </div> | |
54 | 61 | </div> |
55 | 62 | |
56 | 63 | <div class="form-group"> | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/editlicensebasicsettings.component.ts
... | ... | @@ -18,6 +18,7 @@ import { ConfirmService } from '../../Shared/Confirm/confirm.service'; |
18 | 18 | export class EditLicenseBasicSettings implements OnInit { |
19 | 19 | |
20 | 20 | lstAccountNumbers: any; |
21 | + tempLstAccountNumbers: any; | |
21 | 22 | lstCountry: any; |
22 | 23 | lstState: any; |
23 | 24 | license: License; |
... | ... | @@ -28,6 +29,9 @@ export class EditLicenseBasicSettings implements OnInit { |
28 | 29 | modalRef: BsModalRef; |
29 | 30 | ConvertedPhoneno: string; |
30 | 31 | MinusCharater: number; |
32 | + accountDropDownText: string; | |
33 | + loopIdx: number; | |
34 | + | |
31 | 35 | constructor(private licenseService: LicenseService, |
32 | 36 | private globalService: GlobalService, private router: Router, |
33 | 37 | private activeRoute: ActivatedRoute, private fb: FormBuilder, |
... | ... | @@ -37,6 +41,8 @@ export class EditLicenseBasicSettings implements OnInit { |
37 | 41 | { |
38 | 42 | this.license = new License(); |
39 | 43 | this.alerts = ''; |
44 | + this.accountDropDownText = 'Select'; | |
45 | + this.loopIdx = 0; | |
40 | 46 | this.updateLicenseBasicSettingsFrm = this.fb.group({ |
41 | 47 | licenseId: [0], |
42 | 48 | accountNumber: ['', Validators.required], |
... | ... | @@ -73,11 +79,21 @@ export class EditLicenseBasicSettings implements OnInit { |
73 | 79 | |
74 | 80 | GetLicenseAccounts() { |
75 | 81 | this.licenseService.GetLicenseAccounts(0) |
76 | - .subscribe(st => { this.lstAccountNumbers = st; console.log(this.lstAccountNumbers); }, error => this.error = <any>error); | |
82 | + .subscribe(st => { | |
83 | + this.lstAccountNumbers = st; | |
84 | + this.tempLstAccountNumbers = []; | |
85 | + this.loopIdx = 0; | |
86 | + for (var i = 0; i < 1000; i++) { | |
87 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
88 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
89 | + this.loopIdx++; | |
90 | + } | |
91 | + } | |
92 | + }, | |
93 | + error => this.error = <any>error); | |
77 | 94 | } |
78 | 95 | |
79 | 96 | GetLicenseById() { |
80 | - debugger; | |
81 | 97 | if(this.license.LicenseId != 0) |
82 | 98 | { |
83 | 99 | this.licenseService.GetLicenseById(this.license.LicenseId) |
... | ... | @@ -126,19 +142,42 @@ export class EditLicenseBasicSettings implements OnInit { |
126 | 142 | } |
127 | 143 | } |
128 | 144 | |
129 | - AccountNumberChanged(LicenseId: number) { | |
130 | - debugger; | |
131 | - if (LicenseId == 0) { | |
132 | - this.updateLicenseBasicSettingsFrm.reset(); | |
133 | - this.updateLicenseBasicSettingsFrm.controls['licenseId'].setValue(0); | |
134 | - this.updateLicenseBasicSettingsFrm.controls['countryId'].setValue(0); | |
135 | - this.updateLicenseBasicSettingsFrm.controls['stateId'].setValue(0); | |
136 | - return; | |
137 | - } | |
138 | - this.license.LicenseId = LicenseId; | |
139 | - this.GetLicenseById(); | |
145 | + AccountNumberChanged(LicenseId: number, SelectText: string){ | |
146 | + this.accountDropDownText = SelectText; | |
147 | + if (LicenseId == 0) { | |
148 | + this.updateLicenseBasicSettingsFrm.reset(); | |
149 | + this.updateLicenseBasicSettingsFrm.controls['licenseId'].setValue(0); | |
150 | + this.updateLicenseBasicSettingsFrm.controls['countryId'].setValue(0); | |
151 | + this.updateLicenseBasicSettingsFrm.controls['stateId'].setValue(0); | |
152 | + return; | |
153 | + } | |
154 | + this.license.LicenseId = LicenseId; | |
155 | + this.GetLicenseById(); | |
156 | + } | |
157 | + | |
158 | + onScroll($event){ | |
159 | + if($event.target.scrollTop >= ($event.target.scrollHeight/2)){ | |
160 | + for (var i = 0; i < 5000; i++) { | |
161 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
162 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
163 | + this.loopIdx++; | |
164 | + } | |
165 | + } | |
166 | + } | |
140 | 167 | } |
141 | 168 | |
169 | + onOpenChange(data: boolean): void { | |
170 | + if(!data){ | |
171 | + this.loopIdx = 0; | |
172 | + this.tempLstAccountNumbers = []; | |
173 | + for (var i = 0; i < 1000; i++) { | |
174 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
175 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
176 | + this.loopIdx++; | |
177 | + } | |
178 | + } | |
179 | + } | |
180 | + } | |
142 | 181 | |
143 | 182 | AfterUpdateData(data, template) { |
144 | 183 | if (data.Status == "false") { | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/license.service.ts
... | ... | @@ -103,6 +103,12 @@ export class LicenseService{ |
103 | 103 | .catch((res: Response) => this.handleError(res)); |
104 | 104 | } |
105 | 105 | |
106 | + GetLicenseSiteAdmin(accountNo: string) { | |
107 | + return this.http.get(this.commonService.resourceBaseUrl + "License/LicenseSiteAdmin?AccountNo=" + accountNo) | |
108 | + .map(this.extractData) | |
109 | + .catch((res: Response) => this.handleError(res)); | |
110 | + } | |
111 | + | |
106 | 112 | GetLicenseModestySettings(licenseId: number, buildingLevelId: number) { |
107 | 113 | return this.http.get(this.commonService.resourceBaseUrl + "License/LicenseModestySettings?LicenseId=" + licenseId + "&BuildingLevelId=" + buildingLevelId) |
108 | 114 | .map(this.extractData) | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/licensemodestysettings.component.html
... | ... | @@ -44,14 +44,21 @@ |
44 | 44 | <div class="form-group marginTop5"> |
45 | 45 | <label for="Account Number" class="col-sm-6 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Account Number :</label> |
46 | 46 | </div> |
47 | - <div class="col-sm-6 col-lg-6 padd-left0 padd-right0"> | |
48 | - <select class="form-control input-sm" id="AccountNumber" (change)="AccountNumberChanged($event.target.value)"> | |
49 | - <option value="0">Select</option> | |
50 | - <option *ngFor="let item of lstAccountNumbers" value="{{item.m_Item1}}"> | |
51 | - {{item.m_Item2}} | |
52 | - </option> | |
53 | - </select> | |
54 | - </div> | |
47 | + <div class="col-sm-6 col-lg-6 padd-left0 padd-right0" dropdown (isOpenChange)="onOpenChange($event)"> | |
48 | + <button id="button-basic" dropdownToggle type="button" class="btn btn-primary dropdown-toggle col-sm-12 col-xs-12" | |
49 | + aria-controls="dropdown-basic" style="height: 30px;"> | |
50 | + <span class="pull-left" style="margin-top: -1px;">{{accountDropDownText}}</span> | |
51 | + <span class="caret pull-right" style="margin-top: 6px;"></span> | |
52 | + </button> | |
53 | + <ul id="dropdown-basic" *dropdownMenu class="dropdown-menu" role="menu" aria-labelledby="button-basic" style="overflow: scroll; height: 200px;" (scroll)="onScroll($event)"> | |
54 | + <li role="menuitem"> | |
55 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(0, 'Select')">Select</a> | |
56 | + </li> | |
57 | + <li role="menuitem" *ngFor="let item of tempLstAccountNumbers"> | |
58 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(item.m_Item1, item.m_Item2)">{{item.m_Item2}}</a> | |
59 | + </li> | |
60 | + </ul> | |
61 | + </div> | |
55 | 62 | </div> |
56 | 63 | </div> |
57 | 64 | </div> | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/licensemodestysettings.component.ts
... | ... | @@ -18,6 +18,7 @@ import { ConfirmService } from '../../Shared/Confirm/confirm.service'; |
18 | 18 | export class LicenseModestySettings implements OnInit { |
19 | 19 | |
20 | 20 | lstAccountNumbers: any; |
21 | + tempLstAccountNumbers: any; | |
21 | 22 | lstLicenseSites: any; |
22 | 23 | lstLicenseEditionModesty: any; |
23 | 24 | license: License; |
... | ... | @@ -29,6 +30,8 @@ export class LicenseModestySettings implements OnInit { |
29 | 30 | modalRef: BsModalRef; |
30 | 31 | selectedSiteId: number = 0; |
31 | 32 | isBuildingLevel: boolean = false; |
33 | + accountDropDownText: string; | |
34 | + loopIdx: number; | |
32 | 35 | |
33 | 36 | constructor(private licenseService: LicenseService, private globalService: GlobalService, private router: Router, private activeRoute: ActivatedRoute, private fb: FormBuilder, |
34 | 37 | private modalService: BsModalService, private _confirmService: ConfirmService) { } |
... | ... | @@ -38,6 +41,8 @@ export class LicenseModestySettings implements OnInit { |
38 | 41 | this.license = new License(); |
39 | 42 | this.license.LicenseId = 0; |
40 | 43 | this.alerts = ''; |
44 | + this.accountDropDownText = 'Select'; | |
45 | + this.loopIdx = 0; | |
41 | 46 | this.updateModestySettingsFrm = this.fb.group({ |
42 | 47 | licenseId: [0], |
43 | 48 | accountNumber: ['', Validators.required], |
... | ... | @@ -53,7 +58,17 @@ export class LicenseModestySettings implements OnInit { |
53 | 58 | |
54 | 59 | GetLicenseAccounts() { |
55 | 60 | this.licenseService.GetLicenseAccounts(0) |
56 | - .subscribe(st => { this.lstAccountNumbers = st; }, error => this.error = <any>error); | |
61 | + .subscribe(st => { | |
62 | + this.lstAccountNumbers = st; | |
63 | + this.tempLstAccountNumbers = []; | |
64 | + this.loopIdx = 0; | |
65 | + for (var i = 0; i < 1000; i++) { | |
66 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
67 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
68 | + this.loopIdx++; | |
69 | + } | |
70 | + } | |
71 | + }, error => this.error = <any>error); | |
57 | 72 | } |
58 | 73 | |
59 | 74 | ShowModestyorSites(template: TemplateRef<any>) { |
... | ... | @@ -64,7 +79,7 @@ export class LicenseModestySettings implements OnInit { |
64 | 79 | this.GetLicenseEditionModesty(); |
65 | 80 | } |
66 | 81 | else{ |
67 | - this.licenseService.GetLicenseSites(this.license.AccountNumber, 1, 1) | |
82 | + this.licenseService.GetLicenseSites(this.license.AccountNumber, 1, 1000) | |
68 | 83 | .subscribe(st => { |
69 | 84 | this.lstLicenseSites = st.LicenseSiteList; |
70 | 85 | if(this.lstLicenseSites.length == 0){ |
... | ... | @@ -105,7 +120,8 @@ export class LicenseModestySettings implements OnInit { |
105 | 120 | } |
106 | 121 | } |
107 | 122 | |
108 | - AccountNumberChanged(LicenseId: number){ | |
123 | + AccountNumberChanged(LicenseId: number, SelectText: string){ | |
124 | + this.accountDropDownText = SelectText; | |
109 | 125 | this.license.LicenseId = LicenseId; |
110 | 126 | this.lstLicenseEditionModesty = null; |
111 | 127 | this.lstLicenseSites = null; |
... | ... | @@ -114,6 +130,30 @@ export class LicenseModestySettings implements OnInit { |
114 | 130 | this.GetLicenseById(); |
115 | 131 | } |
116 | 132 | |
133 | + onScroll($event){ | |
134 | + if($event.target.scrollTop >= ($event.target.scrollHeight/2)){ | |
135 | + for (var i = 0; i < 5000; i++) { | |
136 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
137 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
138 | + this.loopIdx++; | |
139 | + } | |
140 | + } | |
141 | + } | |
142 | + } | |
143 | + | |
144 | + onOpenChange(data: boolean): void { | |
145 | + if(!data){ | |
146 | + this.loopIdx = 0; | |
147 | + this.tempLstAccountNumbers = []; | |
148 | + for (var i = 0; i < 1000; i++) { | |
149 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
150 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
151 | + this.loopIdx++; | |
152 | + } | |
153 | + } | |
154 | + } | |
155 | + } | |
156 | + | |
117 | 157 | AfterUpdateData(data, template) { |
118 | 158 | if (data.Status == "false") { |
119 | 159 | this.alerts = "<span>License modesty settings update unsuccessfull.</span>"; | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/licensemodulesettings.component.html
... | ... | @@ -32,13 +32,20 @@ |
32 | 32 | <div class="form-group marginTop5"> |
33 | 33 | <label for="Account Number" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Account Number :</label> |
34 | 34 | </div> |
35 | - <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> | |
36 | - <select class="form-control input-sm" id="AccountNumber" (change)="AccountNumberChanged($event.target.value)"> | |
37 | - <option value="0">Select</option> | |
38 | - <option *ngFor="let item of lstAccountNumbers" value="{{item.m_Item1}}"> | |
39 | - {{item.m_Item2}} | |
40 | - </option> | |
41 | - </select> | |
35 | + <div class="col-sm-12 col-lg-6 padd-left0 padd-right0" dropdown (isOpenChange)="onOpenChange($event)"> | |
36 | + <button id="button-basic" dropdownToggle type="button" class="btn btn-primary dropdown-toggle" | |
37 | + aria-controls="dropdown-basic" style="width: 200px; height: 30px;"> | |
38 | + <span class="pull-left" style="margin-top: -1px;">{{accountDropDownText}}</span> | |
39 | + <span class="caret pull-right" style="margin-top: 6px;"></span> | |
40 | + </button> | |
41 | + <ul id="dropdown-basic" *dropdownMenu class="dropdown-menu" role="menu" aria-labelledby="button-basic" style="overflow: scroll; height: 200px;" (scroll)="onScroll($event)"> | |
42 | + <li role="menuitem"> | |
43 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(0, 'Select')">Select</a> | |
44 | + </li> | |
45 | + <li role="menuitem" *ngFor="let item of tempLstAccountNumbers"> | |
46 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(item.m_Item1, item.m_Item2)">{{item.m_Item2}}</a> | |
47 | + </li> | |
48 | + </ul> | |
42 | 49 | </div> |
43 | 50 | </div> |
44 | 51 | </div> | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/licensemodulesettings.component.ts
... | ... | @@ -18,6 +18,7 @@ import { ConfirmService } from '../../Shared/Confirm/confirm.service'; |
18 | 18 | export class LicenseModuleSettings implements OnInit { |
19 | 19 | |
20 | 20 | lstAccountNumbers: any; |
21 | + tempLstAccountNumbers: any; | |
21 | 22 | lstModuleStatus: any; |
22 | 23 | license: License; |
23 | 24 | updateModuleSettingsFrm: FormGroup; |
... | ... | @@ -25,6 +26,8 @@ export class LicenseModuleSettings implements OnInit { |
25 | 26 | alerts: string; |
26 | 27 | modalAlerts: string; |
27 | 28 | modalRef: BsModalRef; |
29 | + accountDropDownText: string; | |
30 | + loopIdx: number; | |
28 | 31 | |
29 | 32 | constructor(private licenseService: LicenseService, |
30 | 33 | private globalService: GlobalService, |
... | ... | @@ -36,6 +39,8 @@ export class LicenseModuleSettings implements OnInit { |
36 | 39 | this.license = new License(); |
37 | 40 | this.license.LicenseId = 0; |
38 | 41 | this.alerts = ''; |
42 | + this.accountDropDownText = 'Select'; | |
43 | + this.loopIdx = 0; | |
39 | 44 | this.updateModuleSettingsFrm = this.fb.group({ |
40 | 45 | licenseId: [0], |
41 | 46 | accountNumber: [''], |
... | ... | @@ -50,7 +55,17 @@ export class LicenseModuleSettings implements OnInit { |
50 | 55 | |
51 | 56 | GetLicenseAccounts() { |
52 | 57 | this.licenseService.GetLicenseAccounts(0) |
53 | - .subscribe(st => { this.lstAccountNumbers = st; }, error => this.error = <any>error); | |
58 | + .subscribe(st => { | |
59 | + this.lstAccountNumbers = st; | |
60 | + this.tempLstAccountNumbers = []; | |
61 | + this.loopIdx = 0; | |
62 | + for (var i = 0; i < 1000; i++) { | |
63 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
64 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
65 | + this.loopIdx++; | |
66 | + } | |
67 | + } | |
68 | + }, error => this.error = <any>error); | |
54 | 69 | } |
55 | 70 | |
56 | 71 | GetLicenseModulesStatus() { |
... | ... | @@ -75,12 +90,37 @@ export class LicenseModuleSettings implements OnInit { |
75 | 90 | } |
76 | 91 | } |
77 | 92 | |
78 | - AccountNumberChanged(LicenseId: number){ | |
93 | + AccountNumberChanged(LicenseId: number, SelectText: string){ | |
94 | + this.accountDropDownText = SelectText; | |
79 | 95 | this.license.LicenseId = LicenseId; |
80 | 96 | this.lstModuleStatus = null; |
81 | 97 | this.GetLicenseById(); |
82 | 98 | } |
83 | 99 | |
100 | + onScroll($event){ | |
101 | + if($event.target.scrollTop >= ($event.target.scrollHeight/2)){ | |
102 | + for (var i = 0; i < 5000; i++) { | |
103 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
104 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
105 | + this.loopIdx++; | |
106 | + } | |
107 | + } | |
108 | + } | |
109 | + } | |
110 | + | |
111 | + onOpenChange(data: boolean): void { | |
112 | + if(!data){ | |
113 | + this.loopIdx = 0; | |
114 | + this.tempLstAccountNumbers = []; | |
115 | + for (var i = 0; i < 1000; i++) { | |
116 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
117 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
118 | + this.loopIdx++; | |
119 | + } | |
120 | + } | |
121 | + } | |
122 | + } | |
123 | + | |
84 | 124 | AfterUpdateData(data, template) { |
85 | 125 | if (data.Status == "false") { |
86 | 126 | this.alerts = "<span>License module status update unsuccessfull</span>"; | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/sitelicenseaccount.component.html
... | ... | @@ -91,6 +91,9 @@ |
91 | 91 | </tr> |
92 | 92 | </thead> |
93 | 93 | <tbody> |
94 | + <tr *ngIf="NoRecord !== ''"> | |
95 | + <td colspan="9" style="color: red;text-align: center;"><b><span [innerHTML]="NoRecord"></span></b></td> | |
96 | + </tr> | |
94 | 97 | <tr *ngFor="let item of lstLicenseSites; let i = index" (click)="SetClickedRow(i, item)" [class.active]="i == selectedRow" |
95 | 98 | [class.inactive]="i != selectedRow"> |
96 | 99 | <td style="width: 200px; text-align: center;"> |
... | ... | @@ -110,7 +113,7 @@ |
110 | 113 | <admin-pager [recordCount]="recordCount" [pageNo]="pageNo" [pageLength]="pageLength" (pagerEvent)="GetLicenseSites($event)"></admin-pager> |
111 | 114 | <div class="row"> |
112 | 115 | <div class="col-sm-12 marginTop20 text-center"> |
113 | - <button class="btn btn-primary btn-sm" type="button" (click)="AddLicenseSite()" [disabled]="selectedRow==-1"><i class="fa fa-plus-circle"></i> Add</button> | |
116 | + <button class="btn btn-primary btn-sm" type="button" (click)="AddLicenseSite()" [disabled]="license.LicenseId==0"><i class="fa fa-plus-circle"></i> Add</button> | |
114 | 117 | <button class="btn btn-primary btn-sm" type="button" (click)="EditLicenseSite()" [disabled]="selectedRow==-1"><i class="fa fa-edit"></i> Edit</button> |
115 | 118 | <button class="btn btn-primary btn-sm" type="button" (click)="openModal(template)" [disabled]="selectedRow==-1"><i class="fa fa-trash"></i> Delete</button> |
116 | 119 | </div> |
... | ... | @@ -286,7 +289,7 @@ |
286 | 289 | <div class="form-group marginTop5"> |
287 | 290 | <label for="State" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">State(only U.S.) <span class="red">*</span> :</label> |
288 | 291 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
289 | - <select class="form-control input-sm " id="State" formControlName="stateId"> | |
292 | + <select class="form-control input-sm " id="State" formControlName="stateId" (change)="OnStateChange($event.target)"> | |
290 | 293 | <option value="0">Select</option> |
291 | 294 | <option *ngFor="let item of lstState" value="{{item.Id}}"> |
292 | 295 | {{item.StateName}} |
... | ... | @@ -308,7 +311,7 @@ |
308 | 311 | <label for="Country" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Country <span class="red">*</span> :</label> |
309 | 312 | </div> |
310 | 313 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
311 | - <select class="form-control input-sm " id="State" formControlName="countryId"> | |
314 | + <select class="form-control input-sm " id="State" formControlName="countryId" (change)="OnCountryChange($event.target)"> | |
312 | 315 | <option value="0">Select</option> |
313 | 316 | <option *ngFor="let item of lstCountry" value="{{item.Id}}"> |
314 | 317 | {{item.CountryName}} |
... | ... | @@ -333,9 +336,12 @@ |
333 | 336 | <label for="Phone" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Phone <span class="red">*</span> :</label> |
334 | 337 | </div> |
335 | 338 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
336 | - <input type="phone" class="form-control input-sm" id="Phone" formControlName="phone" maxlength="30"> | |
337 | - <div *ngIf="insertUpdateSiteLicenseFrm.controls.phone.hasError('required') && insertUpdateSiteLicenseFrm.controls.phone.dirty" class="alert alert-danger" style="padding: 2px; margin-bottom: 2px;">Phone is required</div> | |
338 | - </div> | |
339 | + <input type="phone" class="form-control input-sm" id="Phone" formControlName="phone" maxlength="30"> | |
340 | + <!--<div *ngIf="insertUpdateSiteLicenseFrm.controls.phone.hasError('required') && insertUpdateSiteLicenseFrm.controls.phone.dirty" class="alert alert-danger" style="padding: 2px; margin-bottom: 2px;">Phone is required</div>--> | |
341 | + <span class="help-block">(xxx-xxx-xxxx)</span> | |
342 | + <div *ngIf="insertUpdateSiteLicenseFrm.controls.phone.hasError('required') && insertUpdateSiteLicenseFrm.controls.phone.dirty" class="alert alert-danger" style="padding: 2px; margin-bottom: 2px;">Phone is required</div> | |
343 | + <div *ngIf="insertUpdateSiteLicenseFrm.controls.phone.hasError('pattern') && insertUpdateSiteLicenseFrm.controls.phone.dirty" class="alert alert-danger" style="padding: 2px; margin-bottom: 2px;">Phone is invalid</div> | |
344 | + </div> | |
339 | 345 | </div> |
340 | 346 | |
341 | 347 | <div class="col-sm-12"> |
... | ... | @@ -343,7 +349,7 @@ |
343 | 349 | <label for="ClientAdmin" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Client Admin <span class="red">*</span> :</label> |
344 | 350 | </div> |
345 | 351 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
346 | - <select class="form-control input-sm" id="ClientAdmin" formControlName="clientAdminId"> | |
352 | + <select class="form-control input-sm" id="ClientAdmin" formControlName="clientAdminId" (change)="ClientAdminChanged($event.target.value)"> | |
347 | 353 | <option value="0">Select</option> |
348 | 354 | <option *ngFor="let item of lstClientAdmin" value="{{item.Id}}"> |
349 | 355 | {{item.Name}} | ... | ... |
400-SOURCECODE/Admin/src/app/components/LicenseEntity/sitelicenseaccount.component.ts
... | ... | @@ -45,7 +45,8 @@ export class SiteLicenseAccount implements OnInit { |
45 | 45 | recordCount: number; |
46 | 46 | pageNo: number; |
47 | 47 | pageLength: number; |
48 | - | |
48 | + lstLicenseSiteAdmin: any; | |
49 | + | |
49 | 50 | constructor(private licenseService: LicenseService, |
50 | 51 | private router: Router, private activeRoute: ActivatedRoute, |
51 | 52 | private fb: FormBuilder, private modalService: BsModalService, |
... | ... | @@ -74,7 +75,8 @@ export class SiteLicenseAccount implements OnInit { |
74 | 75 | countryId: [0, Validators.min(1)], |
75 | 76 | stateId: [0, Validators.min(1)], |
76 | 77 | zip: ['', Validators.required], |
77 | - phone: ['', Validators.required], | |
78 | + phone: ['', [Validators.required, Validators.pattern('^([0-9]{3})-([0-9]{3})-([0-9]{4})$')]], | |
79 | + //phone: ['', Validators.required], | |
78 | 80 | clientAdminId: [0, Validators.min(1)], |
79 | 81 | clientAdminEmail: [{value: '', disabled: true}, Validators.email], |
80 | 82 | isActive: [0], |
... | ... | @@ -108,7 +110,7 @@ export class SiteLicenseAccount implements OnInit { |
108 | 110 | this.selectedId = -1; |
109 | 111 | this.pageNo = 1; |
110 | 112 | this.pageLength = 10; |
111 | - this.NoRecord = this.global.NoRecords; | |
113 | + this.NoRecord = ''; | |
112 | 114 | this.recordCount = 0; |
113 | 115 | this.pagerComponent = new PagerComponent(); |
114 | 116 | |
... | ... | @@ -135,19 +137,13 @@ export class SiteLicenseAccount implements OnInit { |
135 | 137 | BindFormFields(data){ |
136 | 138 | this.recordCount = data.RecordCount; |
137 | 139 | this.lstLicenseSites = data.LicenseSiteList; |
138 | - if(this.selectedRow > -1){ | |
139 | - this.selectedId = this.lstLicenseSites[this.selectedRow].siteId; | |
140 | - this.SetClickedRow(this.selectedRow, this.lstLicenseSites[this.selectedRow]); | |
140 | + if(this.recordCount > 0){ | |
141 | + if(this.selectedRow > -1){ | |
142 | + this.selectedId = this.lstLicenseSites[this.selectedRow].siteId; | |
143 | + this.SetClickedRow(this.selectedRow, this.lstLicenseSites[this.selectedRow]); | |
144 | + } | |
141 | 145 | } |
142 | - this.insertUpdateSiteLicenseFrm.controls['clientAdminId'].setValue(this.lstLicenseSites[0].SiteUserId); | |
143 | - this.insertUpdateSiteLicenseFrm.controls['clientAdminEmail'].setValue(this.lstLicenseSites[0].SiteUserEmailId); | |
144 | - var tempArr = []; | |
145 | - tempArr.push( | |
146 | - { | |
147 | - "Id": this.lstLicenseSites[0].SiteUserId, | |
148 | - "Name": this.lstLicenseSites[0].SiteUserFirstName | |
149 | - }); | |
150 | - this.lstClientAdmin = tempArr; | |
146 | + this.GetLicenseSiteAdmin(); | |
151 | 147 | if (this.lstLicenseSites.length > 0) { |
152 | 148 | this.NoRecord = ''; |
153 | 149 | this._loadingService.HideLoading("global-loading"); |
... | ... | @@ -158,6 +154,21 @@ export class SiteLicenseAccount implements OnInit { |
158 | 154 | } |
159 | 155 | } |
160 | 156 | |
157 | + BindAdminFormFields(data){ | |
158 | + this.lstLicenseSiteAdmin = data.LicenseSiteAdminList; | |
159 | + this.insertUpdateSiteLicenseFrm.controls['clientAdminId'].setValue(0); | |
160 | + this.insertUpdateSiteLicenseFrm.controls['clientAdminEmail'].setValue(''); | |
161 | + var tempArr = []; | |
162 | + this.lstLicenseSiteAdmin.forEach(element => { | |
163 | + tempArr.push({ | |
164 | + "Id": element.m_Item1, | |
165 | + "Name": element.m_Item2, | |
166 | + "Email": element.m_Item3 | |
167 | + }); | |
168 | + }); | |
169 | + this.lstClientAdmin = tempArr; | |
170 | + } | |
171 | + | |
161 | 172 | GetLicenseAccounts() { |
162 | 173 | this.licenseService.GetLicenseAccounts(3) |
163 | 174 | .subscribe(st => { this.lstAccountNumbers = st; }, error => this.error = <any>error); |
... | ... | @@ -167,12 +178,22 @@ export class SiteLicenseAccount implements OnInit { |
167 | 178 | this.selectedRow = -1; |
168 | 179 | this.license.LicenseId = LicenseId; |
169 | 180 | this.lstLicenseSites = null; |
181 | + this.NoRecord = ''; | |
170 | 182 | if(this.license.LicenseId == 0){ |
171 | 183 | return; |
172 | 184 | } |
173 | 185 | this.GetLicenseById(); |
174 | 186 | } |
175 | 187 | |
188 | + ClientAdminChanged(UserId: number){ | |
189 | + if(UserId == 0){ | |
190 | + this.insertUpdateSiteLicenseFrm.controls['clientAdminEmail'].setValue(''); | |
191 | + return; | |
192 | + } | |
193 | + let tempmail = this.lstLicenseSiteAdmin.find(elm => elm.m_Item1 == UserId).m_Item3; | |
194 | + this.insertUpdateSiteLicenseFrm.controls['clientAdminEmail'].setValue(tempmail); | |
195 | + } | |
196 | + | |
176 | 197 | GetCountry() { |
177 | 198 | this.licenseService.GetCountry() |
178 | 199 | .subscribe(y => { this.lstCountry = y; }, error => this.error = <any>error); |
... | ... | @@ -205,7 +226,8 @@ export class SiteLicenseAccount implements OnInit { |
205 | 226 | this.insertUpdateSiteLicenseFrm.controls['isMaster'].setValue(this.licenseSite.IsMaster); |
206 | 227 | this.insertUpdateSiteLicenseFrm.controls['creationDate'].setValue(this.licenseSite.CreationDate); |
207 | 228 | this.insertUpdateSiteLicenseFrm.controls['modifiedDate'].setValue(this.licenseSite.ModifiedDate); |
208 | - this.insertUpdateSiteLicenseFrm.controls['clientAdminId'].setValue(this.lstLicenseSites[0].SiteUserId); | |
229 | + this.insertUpdateSiteLicenseFrm.controls['clientAdminId'].setValue(this.licenseSite.SiteUserId); | |
230 | + this.insertUpdateSiteLicenseFrm.controls['clientAdminEmail'].setValue(this.licenseSite.SiteUserEmailId); | |
209 | 231 | this.GetSiteAccountEditions(); |
210 | 232 | }, error => this.error = <any>error); |
211 | 233 | } |
... | ... | @@ -239,6 +261,11 @@ export class SiteLicenseAccount implements OnInit { |
239 | 261 | .subscribe(x => { this.BindFormFields(x) }, error => this.error = error); |
240 | 262 | } |
241 | 263 | |
264 | + GetLicenseSiteAdmin() { | |
265 | + this.licenseService.GetLicenseSiteAdmin(this.license.AccountNumber) | |
266 | + .subscribe(x => { this.BindAdminFormFields(x) }, error => this.error = error); | |
267 | + } | |
268 | + | |
242 | 269 | SearchRecords() { |
243 | 270 | this.selectedRow = -1; |
244 | 271 | this.selectedId = -1; |
... | ... | @@ -318,7 +345,7 @@ export class SiteLicenseAccount implements OnInit { |
318 | 345 | // this.modalRef = this.modalService.show(template); |
319 | 346 | } |
320 | 347 | } |
321 | - | |
348 | + | |
322 | 349 | InsertUpdateSiteAccount(template: TemplateRef<any>) { |
323 | 350 | this.alerts = ''; |
324 | 351 | var obj = this.insertUpdateSiteLicenseFrm.value; |
... | ... | @@ -377,8 +404,50 @@ export class SiteLicenseAccount implements OnInit { |
377 | 404 | this.insertUpdateSiteLicenseFrm.controls['creationDate'].setValue(''); |
378 | 405 | this.insertUpdateSiteLicenseFrm.controls['modifiedDate'].setValue(''); |
379 | 406 | this.insertUpdateSiteLicenseFrm.controls['clientAdminId'].setValue(0); |
380 | -} | |
381 | - | |
407 | + this.insertUpdateSiteLicenseFrm.controls['clientAdminEmail'].setValue(''); | |
408 | + } | |
409 | + OnCountryChange(element: any) { | |
410 | + if (element.innerText != '') { | |
411 | + | |
412 | + } | |
413 | + else { | |
414 | + this.license.CountryId = parseInt(element.value); | |
415 | + if (this.lstCountry.find(C => C.Id == this.license.CountryId).CountryName != "United States") { | |
416 | + this.license.StateId = this.lstState.find(C => C.StateName == "Other").Id; | |
417 | + this.insertUpdateSiteLicenseFrm.controls['stateId'].setValue(this.license.StateId); | |
418 | + this.insertUpdateSiteLicenseFrm.controls['phone'].clearValidators(); | |
419 | + this.insertUpdateSiteLicenseFrm.controls['phone'].setValidators([Validators.required]); | |
420 | + } | |
421 | + else { | |
422 | + this.license.StateId = 0; | |
423 | + this.insertUpdateSiteLicenseFrm.controls['stateId'].setValue(this.license.StateId); | |
424 | + this.insertUpdateSiteLicenseFrm.controls['phone'].clearValidators(); | |
425 | + this.insertUpdateSiteLicenseFrm.controls['phone'].setValidators([Validators.required, Validators.pattern('^([0-9]{3})-([0-9]{3})-([0-9]{4})$')]); | |
426 | + } | |
427 | + this.insertUpdateSiteLicenseFrm.controls['phone'].updateValueAndValidity(); | |
428 | + } | |
429 | + } | |
430 | + OnStateChange(element: any) { | |
431 | + if (element.innerText != '') { | |
432 | + | |
433 | + } | |
434 | + else { | |
435 | + this.license.StateId = parseInt(element.value); | |
436 | + if (this.lstState.find(C => C.Id == this.license.StateId).StateName != "Other") { | |
437 | + this.license.CountryId = this.lstCountry.find(C => C.CountryName == "United States").Id; | |
438 | + this.insertUpdateSiteLicenseFrm.controls['countryId'].setValue(this.license.CountryId); | |
439 | + this.insertUpdateSiteLicenseFrm.controls['phone'].clearValidators(); | |
440 | + this.insertUpdateSiteLicenseFrm.controls['phone'].setValidators([Validators.required, Validators.pattern('^([0-9]{3})-([0-9]{3})-([0-9]{4})$')]); | |
441 | + } | |
442 | + else { | |
443 | + this.license.CountryId = 0; | |
444 | + this.insertUpdateSiteLicenseFrm.controls['countryId'].setValue(this.license.CountryId); | |
445 | + this.insertUpdateSiteLicenseFrm.controls['phone'].clearValidators(); | |
446 | + this.insertUpdateSiteLicenseFrm.controls['phone'].setValidators([Validators.required]); | |
447 | + } | |
448 | + this.insertUpdateSiteLicenseFrm.controls['phone'].updateValueAndValidity(); | |
449 | + } | |
450 | + } | |
382 | 451 | EditLicenseSite(template: TemplateRef<any>){ |
383 | 452 | this.mode = 'Edit'; |
384 | 453 | this.topPos = '100px'; | ... | ... |
400-SOURCECODE/Admin/src/app/components/Reports/discountcodereport.component.ts
... | ... | @@ -177,7 +177,7 @@ export class DiscountCodeReport implements OnInit { |
177 | 177 | |
178 | 178 | ExportService(data: any) { |
179 | 179 | this._loadingService.HideLoading("global-loading"); |
180 | - this.global.ExportToCSV(data, "DiscountReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
180 | + this.global.ExportToCSV(data.DiscountReportList, "DiscountReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
181 | 181 | |
182 | 182 | } |
183 | 183 | } | ... | ... |
400-SOURCECODE/Admin/src/app/components/Reports/expiringsubscriptionreport.component.ts
... | ... | @@ -103,7 +103,7 @@ export class ExpiringSubscriptionReport implements OnInit, AfterViewChecked { |
103 | 103 | { width: 350, align: 'Center' }, |
104 | 104 | { width: 500, align: 'Center' }, |
105 | 105 | { width: 130, align: 'Center' }, |
106 | - { width: 120, align: 'center' }, | |
106 | + { width: 150, align: 'center' }, | |
107 | 107 | { width: 280, align: 'Center' }, |
108 | 108 | { width: 180, align: 'center' }, |
109 | 109 | { width: 200, align: 'center' }, |
... | ... | @@ -179,7 +179,7 @@ export class ExpiringSubscriptionReport implements OnInit, AfterViewChecked { |
179 | 179 | } |
180 | 180 | ExportService(data: any) { |
181 | 181 | this._loadingService.HideLoading("global-loading"); |
182 | - this.global.ExportToCSV(data, "ExpiringSubscriptionReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
182 | + this.global.ExportToCSV(data.ExpiringSubscription, "ExpiringSubscriptionReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
183 | 183 | |
184 | 184 | } |
185 | 185 | //compareTwoDates() { | ... | ... |
400-SOURCECODE/Admin/src/app/components/Reports/imageexportreport.component.ts
... | ... | @@ -159,7 +159,7 @@ export class ImageExportReport implements OnInit { |
159 | 159 | |
160 | 160 | ExportService(data: any) { |
161 | 161 | this._loadingService.HideLoading("global-loading"); |
162 | - this.global.ExportToCSV(data, "ImageExportReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
162 | + this.global.ExportToCSV(data.ImageExportList, "ImageExportReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
163 | 163 | |
164 | 164 | } |
165 | 165 | ... | ... |
400-SOURCECODE/Admin/src/app/components/Reports/netadsubscriptionreport.component.html
... | ... | @@ -131,7 +131,8 @@ |
131 | 131 | <td>{{item.LicenseType}}</td> |
132 | 132 | <td>{{item.AccountType}}</td> |
133 | 133 | <td>{{item.InstitutionName}}</td> |
134 | - <td>{{item.LicenseCreationDate}}</td> | |
134 | + | |
135 | + <td>{{item.LicenseCreationDate=='01/01/9999'?'':item.LicenseCreationDate| date: 'MM/dd/yyyy'}}</td> | |
135 | 136 | <td>{{item.ActiveSubscription}}</td> |
136 | 137 | <td>{{item.RenewSubscription}}</td> |
137 | 138 | <td>{{item.InActiveSubscription}}</td> | ... | ... |
400-SOURCECODE/Admin/src/app/components/Reports/netadsubscriptionreport.component.ts
... | ... | @@ -162,7 +162,7 @@ export class NetAdSubscriptionReport implements OnInit { |
162 | 162 | |
163 | 163 | ExportService(data: any) { |
164 | 164 | this._loadingService.HideLoading("global-loading"); |
165 | - this.global.ExportToCSV(data, "NetAdSummaryReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
165 | + this.global.ExportToCSV(data.NetAdSubscriptionList, "NetAdSummaryReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
166 | 166 | |
167 | 167 | } |
168 | 168 | } | ... | ... |
400-SOURCECODE/Admin/src/app/components/Reports/sitelicenseusagereport.component.ts
... | ... | @@ -161,7 +161,7 @@ export class SiteLicenseUsageReport implements OnInit { |
161 | 161 | } |
162 | 162 | ExportService(data: any) { |
163 | 163 | this._loadingService.HideLoading("global-loading"); |
164 | - this.global.ExportToCSV(data, "SiteLicenseUsageReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
164 | + this.global.ExportToCSV(data.SiteLicenseUsageList, "SiteLicenseUsageReport-" + this.date.getDay() + "-" + this.date.getMonth() + "-" + this.date.getSeconds()) | |
165 | 165 | |
166 | 166 | } |
167 | 167 | } | ... | ... |
400-SOURCECODE/Admin/src/app/components/SubscriptionPrice/subscriptionprice.component.ts
... | ... | @@ -40,6 +40,7 @@ NoRecord: string; |
40 | 40 | recordCount: number; |
41 | 41 | pageNo: number; |
42 | 42 | pageLength: number; |
43 | +RecordDeleted: number[]; | |
43 | 44 | |
44 | 45 | constructor(private subscriptionPriceService: SubscriptionPriceService, private router: Router, |
45 | 46 | private fb: FormBuilder, private modalService: BsModalService, private global: GlobalService, |
... | ... | @@ -62,11 +63,11 @@ pageLength: number; |
62 | 63 | }); |
63 | 64 | $('#fixed_hdr2').fxdHdrCol({ |
64 | 65 | fixedCols: 0, |
65 | - width: "80%", | |
66 | + width: "100%", | |
66 | 67 | height: 300, |
67 | 68 | colModal: [ |
68 | 69 | { width: 150, align: 'center' }, |
69 | - { width: 400, align: 'center' }, | |
70 | + { width: 490, align: 'center' }, | |
70 | 71 | { width: 200, align: 'Center' }, |
71 | 72 | { width: 200, align: 'Center' }, |
72 | 73 | { width: 200, align: 'Center' }, |
... | ... | @@ -143,21 +144,27 @@ pageLength: number; |
143 | 144 | AfterInsertData(data, template) { |
144 | 145 | if (data.Status == "false") { |
145 | 146 | // this.alerts = "<span>Subscription price save unsuccessfull</span>"; |
146 | - this._confirmService.activate("Subscription prices insert unsuccessfull", "alertMsg"); | |
147 | + this.modalAlerts = "<p>Subscription insert unsuccessfull</p>"; | |
148 | + this.modalRef = this.modalService.show(template); | |
149 | + // this._confirmService.activate("Subscription insert unsuccessfull", "alertMsg"); | |
147 | 150 | } else { |
148 | - this.modalAlerts = "<p>Subscription price saved successfully</p>"; | |
151 | + this._confirmService.activate("Subscription saved successfull", "alertMsg"); | |
152 | + //this.modalAlerts = "<p>Subscriptions saved successfully</p>"; | |
149 | 153 | this.CancelAdd(); |
150 | - this.modalRef = this.modalService.show(template); | |
154 | + //this.modalRef = this.modalService.show(template); | |
151 | 155 | } |
152 | 156 | } |
153 | 157 | |
154 | 158 | AfterUpdateData(data, template) { |
155 | - if (data.Status == "false") { | |
159 | + if (data.Status == "false") { | |
160 | + this.modalAlerts = "<p>Subscription prices update unsuccessfull</p>"; | |
161 | + this.modalRef = this.modalService.show(template); | |
156 | 162 | //this.alerts = "<span>Subscription prices update unsuccessfull</span>\n"; |
157 | - this._confirmService.activate("Subscription prices update unsuccessfull", "alertMsg"); | |
163 | + //this._confirmService.activate("Subscription prices update unsuccessfull", "alertMsg"); | |
158 | 164 | } else { |
159 | - this.modalAlerts = "<p>Subscription prices updated successfully</p>"; | |
160 | - this.modalRef = this.modalService.show(template); | |
165 | + this._confirmService.activate("Subscriptions updated successfully", "alertMsg"); | |
166 | + //this.modalAlerts = "<p>Subscriptions updated successfully</p>"; | |
167 | + //this.modalRef = this.modalService.show(template); | |
161 | 168 | } |
162 | 169 | } |
163 | 170 | |
... | ... | @@ -209,15 +216,64 @@ pageLength: number; |
209 | 216 | this.modalRef.hide(); |
210 | 217 | console.log(this.checkedRecords); |
211 | 218 | this.alerts = ''; |
219 | + var deletedSubscriptions = ''; | |
220 | + var unDeletedSubscriptions = ''; | |
221 | + let cnt = 0; | |
212 | 222 | if(this.alerts == ''){ |
213 | - var obj = this.checkedRecords.filter(C => C > 0); | |
214 | - return this.subscriptionPriceService.DeleteSubscriptionPrices(obj) | |
223 | + this.RecordDeleted = []; | |
224 | + this.checkedRecords.filter(C => C > 0).forEach(element => { | |
225 | + this.subscriptionPriceService.CheckSubscriptionPlanForLicense(element) | |
215 | 226 | .subscribe( |
216 | - data => (this.AfterDeleteData(data, template)), | |
227 | + data => { | |
228 | + if (data == "True") { | |
229 | + cnt++; | |
230 | + unDeletedSubscriptions += this.subscriptionPrices.find(C => C.Id == element).Title + ", "; | |
231 | + if(cnt == this.checkedRecords.filter(C => C > 0).length) | |
232 | + { | |
233 | + this.modalAlerts = ''; | |
234 | + if(deletedSubscriptions != ''){ | |
235 | + this.modalAlerts = "<p>Subscription prices " + deletedSubscriptions.substr(0, deletedSubscriptions.length - 2) + " deleted successfully</p>"; | |
236 | + } | |
237 | + if(unDeletedSubscriptions != ''){ | |
238 | + this.modalAlerts += "<p>Subscription prices " + unDeletedSubscriptions.substr(0, unDeletedSubscriptions.length - 2) + " are already mapped to licenses and cannot be deleted.</p>"; | |
239 | + } | |
240 | + this.modalRef = this.modalService.show(template); | |
241 | + this.SearchRecords(this.selectedEditionId); | |
242 | + } | |
243 | + } | |
244 | + else{ | |
245 | + this.subscriptionPriceService.DeleteSubscriptionPrice(element) | |
246 | + .subscribe( | |
247 | + data => { | |
248 | + if (data == "True") { | |
249 | + cnt++; | |
250 | + deletedSubscriptions += this.subscriptionPrices.find(C => C.Id == element).Title + ", "; | |
251 | + } | |
252 | + if(cnt == this.checkedRecords.filter(C => C > 0).length) | |
253 | + { | |
254 | + this.modalAlerts = ''; | |
255 | + if(deletedSubscriptions != ''){ | |
256 | + this.modalAlerts = "<p>Subscription prices " + deletedSubscriptions.substr(0, deletedSubscriptions.length - 2) + " deleted successfully</p>"; | |
257 | + } | |
258 | + if(unDeletedSubscriptions != ''){ | |
259 | + this.modalAlerts += "<p>Subscription prices " + unDeletedSubscriptions.substr(0, unDeletedSubscriptions.length - 2) + " are already mapped to licenses and cannot be deleted.</p>"; | |
260 | + } | |
261 | + this.modalRef = this.modalService.show(template); | |
262 | + this.SearchRecords(this.selectedEditionId); | |
263 | + } | |
264 | + }, | |
265 | + error => { | |
266 | + this.error = <any>error; | |
267 | + this.alerts = "<span>" + this.error + "</span>"; | |
268 | + }) | |
269 | + } | |
270 | + }, | |
217 | 271 | error => { |
218 | 272 | this.error = <any>error; |
219 | 273 | this.alerts = "<span>" + this.error + "</span>"; |
220 | 274 | }); |
275 | + }); | |
276 | + | |
221 | 277 | } |
222 | 278 | } |
223 | 279 | ... | ... |
400-SOURCECODE/Admin/src/app/components/SubscriptionPrice/subscriptionprice.service.ts
... | ... | @@ -47,15 +47,21 @@ export class SubscriptionPriceService { |
47 | 47 | .catch((res: Response) => this.handleError(res)); |
48 | 48 | } |
49 | 49 | |
50 | - DeleteSubscriptionPrices(obj: any) { | |
50 | + DeleteSubscriptionPrice(obj: any) { | |
51 | 51 | //let options = new RequestOptions({ headers: this.headers }); |
52 | - var subscriptionPriceIds = obj; | |
53 | - console.log(subscriptionPriceIds); | |
54 | - var headers = new Headers({ | |
52 | + console.log(obj); | |
53 | + let subscriptionPriceId = obj; | |
54 | + let headers = new Headers({ | |
55 | 55 | 'Content-Type': 'application/json' |
56 | 56 | }); |
57 | - return this.http.post(this.commonService.resourceBaseUrl + "SubscriptionPrice/DeleteSubscriptionPrices", | |
58 | - subscriptionPriceIds, {headers: headers}) | |
57 | + return this.http.get(this.commonService.resourceBaseUrl + "SubscriptionPrice/DeleteSubscriptionPrice?subscriptionPriceId=" + subscriptionPriceId) | |
58 | + .map(this.extractData) | |
59 | + .catch((res: Response) => this.handleError(res)); | |
60 | + } | |
61 | + CheckSubscriptionPlanForLicense(obj: any) { | |
62 | + //let options = new RequestOptions({ headers: this.headers }); | |
63 | + console.log(obj); | |
64 | + return this.http.get(this.commonService.resourceBaseUrl + "SubscriptionPrice/CheckSubscriptionPlanForLicense?subscriptionPriceId=" + obj) | |
59 | 65 | .map(this.extractData) |
60 | 66 | .catch((res: Response) => this.handleError(res)); |
61 | 67 | } | ... | ... |
400-SOURCECODE/Admin/src/app/components/UserEntity/adduser.component.html
... | ... | @@ -69,13 +69,28 @@ |
69 | 69 | </div> |
70 | 70 | <div class="form-group"> |
71 | 71 | <label for="inputEmail3" class="col-sm-4 control-label">Account Number <span class="red">*</span> :</label> |
72 | - <div class="col-sm-7"> | |
72 | + <!--<div class="col-sm-7"> | |
73 | 73 | <select class="form-control input-sm" id="AccountNumber" (change)="BindUserTypeAndProductEdition($event)" [formControl]="adduserFrm.controls['AccountNumberId']"> |
74 | - <option value="0">Select</option> | |
74 | + <option value="0">Select</option>--> | |
75 | 75 | <!--<option value="noption" disabled>Selected option</option>--> |
76 | - <option *ngFor="let AccountNumberEntity of AccountNumberList" value="{{AccountNumberEntity.Id}}">{{ AccountNumberEntity.AccountNumber }}</option> | |
76 | + <!--<option *ngFor="let AccountNumberEntity of AccountNumberList" value="{{AccountNumberEntity.Id}}">{{ AccountNumberEntity.AccountNumber }}</option> | |
77 | 77 | </select> |
78 | - </div> | |
78 | + </div>--> | |
79 | + <div class="col-sm-7" dropdown (isOpenChange)="onOpenChange($event)"> | |
80 | + <button id="button-basic" dropdownToggle type="button" class="btn btn-primary dropdown-toggle col-sm-12 col-xs-12" | |
81 | + aria-controls="dropdown-basic" style="height: 30px;"> | |
82 | + <span class="pull-left" style="margin-top: -1px;">{{accountDropDownText}}</span> | |
83 | + <span class="caret pull-right" style="margin-top: 6px;"></span> | |
84 | + </button> | |
85 | + <ul id="dropdown-basic" *dropdownMenu class="dropdown-menu" role="menu" aria-labelledby="button-basic" style="overflow: scroll; height: 200px;" (scroll)="onScroll($event)"> | |
86 | + <li role="menuitem"> | |
87 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(0, 'Select')">Select</a> | |
88 | + </li> | |
89 | + <li role="menuitem" *ngFor="let item of tempLstAccountNumbers"> | |
90 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(item.Id, item.AccountNumber)">{{item.AccountNumber}}</a> | |
91 | + </li> | |
92 | + </ul> | |
93 | + </div> | |
79 | 94 | </div> |
80 | 95 | <div class="form-group"> |
81 | 96 | <label for="inputEmail3" class="col-sm-4 control-label">User Type <span class="red">*</span> :</label> | ... | ... |
400-SOURCECODE/Admin/src/app/components/UserEntity/adduser.component.ts
... | ... | @@ -29,8 +29,11 @@ export class AddUser implements OnInit { |
29 | 29 | emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"; |
30 | 30 | public UserTypeList: any; |
31 | 31 | public AccountNumberList: any; |
32 | + tempLstAccountNumbers: any; | |
32 | 33 | public ProductEditionList: any; |
33 | 34 | modalTitle: string; |
35 | + accountDropDownText: string; | |
36 | + loopIdx: number; | |
34 | 37 | //@ViewChild("profileModal") |
35 | 38 | //profileModal: ModalComponent; |
36 | 39 | //errorMessage: any; |
... | ... | @@ -42,6 +45,8 @@ export class AddUser implements OnInit { |
42 | 45 | |
43 | 46 | this.user = new User(); |
44 | 47 | this.alerts = ''; |
48 | + this.accountDropDownText = 'Select'; | |
49 | + this.loopIdx = 0; | |
45 | 50 | //this.userservice.GetUserById(this.UserId); |
46 | 51 | this.adduserFrm = this.fb.group({ |
47 | 52 | id: [''], |
... | ... | @@ -74,20 +79,61 @@ export class AddUser implements OnInit { |
74 | 79 | }).subscribe(x => { this.UserTypeList = x; }, error => this.error = <any>error); |
75 | 80 | } |
76 | 81 | GetAccountNumber() { |
77 | - | |
78 | 82 | this.userservice.GetAccountNumber() |
79 | - .subscribe(x => { console.log(x); this.AccountNumberList=x }, error => this.error = <any>error); | |
83 | + .subscribe(x => { | |
84 | + this.AccountNumberList=x ; | |
85 | + this.tempLstAccountNumbers = []; | |
86 | + this.loopIdx = 0; | |
87 | + for (var i = 0; i < 1000; i++) { | |
88 | + if(this.loopIdx < this.AccountNumberList.length){ | |
89 | + this.tempLstAccountNumbers.push(this.AccountNumberList[this.loopIdx]); | |
90 | + this.loopIdx++; | |
91 | + } | |
92 | + } | |
93 | + }, | |
94 | + error => this.error = <any>error); | |
80 | 95 | } |
96 | + | |
81 | 97 | GetProductEdition() { |
82 | 98 | this.userservice.GetProductEdition({ |
83 | 99 | AccountNumberId: this.adduserFrm.controls['AccountNumberId'].value}) |
84 | 100 | .subscribe(x => { console.log(x); this.ProductEditionList=x }, error => this.error = <any>error); |
85 | 101 | } |
86 | - BindUserTypeAndProductEdition(deviceValue) { | |
87 | - | |
102 | + //BindUserTypeAndProductEdition(deviceValue) { | |
103 | + //this.GetUserTypeByLicenseId(); | |
104 | + //this.GetProductEdition(); | |
105 | + //} | |
106 | + AccountNumberChanged(LicenseId: number, SelectText: string){ | |
107 | + this.accountDropDownText = SelectText; | |
108 | + this.adduserFrm.controls['AccountNumberId'].setValue(LicenseId); | |
88 | 109 | this.GetUserTypeByLicenseId(); |
89 | 110 | this.GetProductEdition(); |
90 | 111 | } |
112 | + | |
113 | + onScroll($event){ | |
114 | + if($event.target.scrollTop >= ($event.target.scrollHeight/2)){ | |
115 | + for (var i = 0; i < 5000; i++) { | |
116 | + if(this.loopIdx < this.AccountNumberList.length){ | |
117 | + this.tempLstAccountNumbers.push(this.AccountNumberList[this.loopIdx]); | |
118 | + this.loopIdx++; | |
119 | + } | |
120 | + } | |
121 | + } | |
122 | +} | |
123 | + | |
124 | +onOpenChange(data: boolean): void { | |
125 | + if(!data){ | |
126 | + this.loopIdx = 0; | |
127 | + this.tempLstAccountNumbers = []; | |
128 | + for (var i = 0; i < 1000; i++) { | |
129 | + if(this.loopIdx < this.AccountNumberList.length){ | |
130 | + this.tempLstAccountNumbers.push(this.AccountNumberList[this.loopIdx]); | |
131 | + this.loopIdx++; | |
132 | + } | |
133 | + } | |
134 | + } | |
135 | +} | |
136 | + | |
91 | 137 | public AddUser(this) { |
92 | 138 | this.alerts = ''; |
93 | 139 | if (this.adduserFrm.value.UserName == '') { |
... | ... | @@ -108,7 +154,7 @@ export class AddUser implements OnInit { |
108 | 154 | if (this.adduserFrm.value.LastName == '') { |
109 | 155 | this.alerts += '</br><span>Last Name is required.</span>'; |
110 | 156 | } |
111 | - if (this.adduserFrm.value.newPassword != this.adduserFrm.value.confirmPassword) { | |
157 | + if (this.adduserFrm.value.Password != this.adduserFrm.value.ConfirmPassword) { | |
112 | 158 | this.alerts += '</br><span>Password and confirm password must be same</span>'; |
113 | 159 | } |
114 | 160 | if (this.adduserFrm.value.AccountNumberId == '0') { | ... | ... |
400-SOURCECODE/Admin/src/app/components/UserEntity/changeuserpassword.component.ts
... | ... | @@ -24,6 +24,7 @@ user: User; |
24 | 24 | changeUserPasswordFrm: FormGroup; |
25 | 25 | error: any; |
26 | 26 | alerts: string; |
27 | + oldPassworduser: string=""; | |
27 | 28 | |
28 | 29 | constructor(private _loadingService: LoadingService,private changeUserPasswordService: UserService, private router: Router, private fb: FormBuilder, private _confirmService: ConfirmService) { } |
29 | 30 | |
... | ... | @@ -52,6 +53,11 @@ alerts: string; |
52 | 53 | } |
53 | 54 | public onFormSubmit() { |
54 | 55 | this.alerts = ''; |
56 | + if (this.oldPassworduser != '') { | |
57 | + if (this.oldPassworduser == this.changeUserPasswordFrm.value.oldPassword) { | |
58 | + this.alerts += '</br><span>Old password is invalid.</span>'; | |
59 | + } | |
60 | + } | |
55 | 61 | if ((this.changeUserPasswordFrm.value.oldPassword)=='') |
56 | 62 | { |
57 | 63 | this.alerts = '<span>Old password is required.</span>'; |
... | ... | @@ -89,14 +95,16 @@ alerts: string; |
89 | 95 | } else { |
90 | 96 | this._confirmService.activate("Password changed successfully.", "alertMsg"); |
91 | 97 | //this.alerts = "<span>Password changed successfully</span>"; |
92 | - } | |
98 | + this.oldPassworduser = this.changeUserPasswordFrm.value.oldPassword; | |
99 | + } | |
100 | + | |
93 | 101 | } |
94 | 102 | |
95 | 103 | BindFormFields(data){ |
96 | 104 | this.user = data[0]; |
97 | 105 | this.changeUserPasswordFrm.controls['userId'].setValue(this.user.Id); |
98 | 106 | this.changeUserPasswordFrm.controls['loginId'].setValue(this.user.LoginId); |
99 | - | |
107 | + | |
100 | 108 | } |
101 | 109 | |
102 | 110 | ResetFormFields(){ | ... | ... |
400-SOURCECODE/Admin/src/app/components/UserEntity/updateuserprofile.component.ts
... | ... | @@ -5,7 +5,7 @@ import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms' |
5 | 5 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
6 | 6 | import { User } from '../UserEntity/datamodel'; |
7 | 7 | import { Http, Response } from '@angular/http'; |
8 | -//import { Global } from '../../Shared/global'; | |
8 | +import { GlobalService } from '../../Shared/global'; | |
9 | 9 | //import { DBOperation } from 'S'; |
10 | 10 | import { Observable } from 'rxjs/Observable'; |
11 | 11 | import { ConfirmService } from '../../Shared/Confirm/confirm.service'; |
... | ... | @@ -38,7 +38,7 @@ export class UpdateUserProfile implements OnInit { |
38 | 38 | //profileModal: ModalComponent; |
39 | 39 | //errorMessage: any; |
40 | 40 | constructor(private _loadingService: LoadingService,private userservice: UserService, private router: Router, private fb: FormBuilder, private http: Http, |
41 | - private _confirmService: ConfirmService | |
41 | + private _confirmService: ConfirmService, private global: GlobalService | |
42 | 42 | ) { } |
43 | 43 | |
44 | 44 | ngOnInit(): void { |
... | ... | @@ -97,7 +97,7 @@ export class UpdateUserProfile implements OnInit { |
97 | 97 | } |
98 | 98 | } |
99 | 99 | AfterInsertData(data) { |
100 | - //debugger; | |
100 | + debugger; | |
101 | 101 | if (data.Status == "False") { |
102 | 102 | // this._confirmService.activate(data.ResponseMessage, "alertMsg"); |
103 | 103 | //setTimeout(() => this.amCode.nativeElement.focus(), 0); |
... | ... | @@ -105,9 +105,16 @@ export class UpdateUserProfile implements OnInit { |
105 | 105 | return false; |
106 | 106 | } else { |
107 | 107 | this.status = true; |
108 | - | |
108 | + this.user = this.userFrm.value; | |
109 | + var loggedInUser = JSON.parse(localStorage.getItem("loggedInUserDetails")); | |
110 | + loggedInUser.FirstName = this.userFrm.value.firstName; | |
111 | + loggedInUser.LastName = this.userFrm.value.lastName; | |
112 | + localStorage.setItem("loggedInUserDetails", JSON.stringify(loggedInUser)); | |
113 | + this.global.DisplayName = loggedInUser.FirstName + " " + loggedInUser.LastName; | |
114 | + this._confirmService.activate("User Profile Updated Successfully.", "alertMsg"); | |
115 | + // window.location.href = this.global.LiveURL; | |
109 | 116 | |
110 | - this._confirmService.activate("User Profile Updated Successfully.", "alertMsg"); | |
117 | + | |
111 | 118 | //this.profileModal.open(); |
112 | 119 | // this.submitted = false; |
113 | 120 | // this.GetAllAcctMgr(); | ... | ... |
400-SOURCECODE/Admin/src/app/components/UserEntity/user.service.ts
... | ... | @@ -14,7 +14,7 @@ export class UserService { |
14 | 14 | constructor(private http: Http, private commonService: GlobalService ) { } |
15 | 15 | //////////Get User Detail/////////////// |
16 | 16 | GetUserById() { |
17 | - debugger; | |
17 | + | |
18 | 18 | return this.http.get(this.commonService.resourceBaseUrl + "User/GetUserProfile/"+this.commonService.UserId) |
19 | 19 | .map(this.extractData) |
20 | 20 | .catch((res: Response) => this.handleError(res));; |
... | ... | @@ -119,7 +119,7 @@ export class UserService { |
119 | 119 | |
120 | 120 | /// Add User Entity/// |
121 | 121 | GetUserTypeByLicenseType(obj: any) { |
122 | - debugger; | |
122 | + | |
123 | 123 | return this.http.get(this.commonService.resourceBaseUrl + "User/GetUserTypebyLicenseId?UserTypeId=" + this.commonService.UserType + "&LicenseId=" + obj.AccountNumberId) |
124 | 124 | .map(this.extractData) |
125 | 125 | .catch((res: Response) => this.handleError(res)); |
... | ... | @@ -222,16 +222,22 @@ export class UserService { |
222 | 222 | .map(this.extractData) |
223 | 223 | .catch((res: Response) => this.handleError(res)); |
224 | 224 | } |
225 | + | |
226 | + CheckDuplicateLicenseUserGroup(LicenseId: number, Title: string) { | |
227 | + return this.http.get(this.commonService.resourceBaseUrl + "UserGroup/CheckDuplicateLicenseUserGroup?LicenseId=" + LicenseId + "&Title=" + Title). | |
228 | + map(this.extractData) | |
229 | + .catch((res: Response) => this.handleError(res)); | |
230 | + } | |
225 | 231 | ///// End |
226 | 232 | |
227 | 233 | extractData(res: Response) { |
228 | - debugger; | |
234 | + | |
229 | 235 | |
230 | 236 | let body = res.json(); |
231 | 237 | return body; |
232 | 238 | } |
233 | 239 | handleError(error: any) { |
234 | - debugger; | |
240 | + | |
235 | 241 | // In a real world app, we might use a remote logging infrastructure |
236 | 242 | // We'd also dig deeper into the error to get a better message |
237 | 243 | let errMsg = (error.message) ? error.message : | ... | ... |
400-SOURCECODE/Admin/src/app/components/UserEntity/usergroup.component.html
... | ... | @@ -51,12 +51,27 @@ |
51 | 51 | <div class="col-sm-12"> |
52 | 52 | <div class="form-group marginTop5"> |
53 | 53 | <label for="AccountNumber" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Account Number :</label> |
54 | - <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> | |
54 | + <!--<div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> | |
55 | 55 | <select #accountvalue class="form-control input-sm " id="AccountNumber" (change)="AccountNumberChanged($event.target.value, $event)"> |
56 | 56 | <option value="0">Select</option> |
57 | 57 | <option *ngFor="let item of lstAccountNumbers;" value="{{item.m_Item1}}">{{item.m_Item2}}</option> |
58 | 58 | </select> |
59 | - </div> | |
59 | + </div>--> | |
60 | + <div class="col-sm-12 col-lg-6 padd-left0 padd-right0" dropdown (isOpenChange)="onOpenChange($event)"> | |
61 | + <button id="button-basic" dropdownToggle type="button" class="btn btn-primary dropdown-toggle col-sm-12 col-xs-12" | |
62 | + aria-controls="dropdown-basic" style="height: 30px;"> | |
63 | + <span class="pull-left" style="margin-top: -1px;">{{accountDropDownText}}</span> | |
64 | + <span class="caret pull-right" style="margin-top: 6px;"></span> | |
65 | + </button> | |
66 | + <ul id="dropdown-basic" *dropdownMenu class="dropdown-menu" role="menu" aria-labelledby="button-basic" style="overflow: scroll; height: 200px;" (scroll)="onScroll($event)"> | |
67 | + <li role="menuitem"> | |
68 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(0, 'Select')">Select</a> | |
69 | + </li> | |
70 | + <li role="menuitem" *ngFor="let item of tempLstAccountNumbers"> | |
71 | + <a class="dropdown-item" href="#" (click)="AccountNumberChanged(item.m_Item1, item.m_Item2)">{{item.m_Item2}}</a> | |
72 | + </li> | |
73 | + </ul> | |
74 | + </div> | |
60 | 75 | </div> |
61 | 76 | </div> |
62 | 77 | </div> |
... | ... | @@ -68,7 +83,7 @@ |
68 | 83 | <label for="New Group" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">New Group :</label> |
69 | 84 | </div> |
70 | 85 | <div class="col-sm-12 col-lg-6 padd-left0"> |
71 | - <input type="text" #title class="form-control input-sm" id="new-group" maxlength="100"> | |
86 | + <input type="text" #title class="form-control input-sm" id="new-group" maxlength="100" value="{{userGroupName}}"> | |
72 | 87 | </div> |
73 | 88 | </div> |
74 | 89 | </div> |
... | ... | @@ -82,7 +97,7 @@ |
82 | 97 | </div> |
83 | 98 | <div class="col-sm-12 col-lg-2 padd-left0 padd-right0 mar-left6 mobile_1"> |
84 | 99 | <button class="btn btn-primary btn-sm" type="button" (click)="InsertLicenseUserGroup(title.value, templatesuccess)" |
85 | - [disabled]="accountvalue.value==0"> | |
100 | + [disabled]="license.LicenseId==0"> | |
86 | 101 | <i class="fa fa-plus-circle"></i> Add |
87 | 102 | </button> |
88 | 103 | </div> | ... | ... |
400-SOURCECODE/Admin/src/app/components/UserEntity/usergroup.component.ts
... | ... | @@ -21,6 +21,7 @@ declare var $: any; |
21 | 21 | export class UserGroup implements OnInit, AfterViewChecked { |
22 | 22 | |
23 | 23 | lstAccountNumbers: any; |
24 | + tempLstAccountNumbers: any; | |
24 | 25 | lstLicenseUserGroups: any; |
25 | 26 | licenseUserGroup: any; |
26 | 27 | lstLicenseUserGroupUsers: any; |
... | ... | @@ -46,6 +47,10 @@ export class UserGroup implements OnInit, AfterViewChecked { |
46 | 47 | recordCountUser: number; |
47 | 48 | pageNoUser: number; |
48 | 49 | pageLengthUser: number; |
50 | + accountDropDownText: string; | |
51 | + loopIdx: number; | |
52 | + userGroupName: string; | |
53 | + | |
49 | 54 | constructor(private userService: UserService, private router: Router, |
50 | 55 | private activeRoute: ActivatedRoute, private fb: FormBuilder, private modalService: BsModalService, |
51 | 56 | private _confirmService: ConfirmService, private global: GlobalService, private _loadingService: LoadingService) { } |
... | ... | @@ -56,6 +61,9 @@ export class UserGroup implements OnInit, AfterViewChecked { |
56 | 61 | this.divClass = 'col-sm-12'; |
57 | 62 | this.license = new License(); |
58 | 63 | this.alerts = ''; |
64 | + this.accountDropDownText = 'Select'; | |
65 | + this.loopIdx = 0; | |
66 | + this.userGroupName = ''; | |
59 | 67 | this.NoRecord = this.global.NoRecords; |
60 | 68 | this._loadingService.ShowLoading("global-loading"); |
61 | 69 | this.recordCount = 0; |
... | ... | @@ -130,8 +138,19 @@ export class UserGroup implements OnInit, AfterViewChecked { |
130 | 138 | } |
131 | 139 | |
132 | 140 | GetLicenseAccounts() { |
133 | - this.userService.GetLicenseAccounts(0) | |
134 | - .subscribe(st => { this.lstAccountNumbers = st; }, error => this.error = <any>error); | |
141 | + this.userService.GetLicenseAccounts(1) | |
142 | + .subscribe(st => { | |
143 | + this.lstAccountNumbers = st; | |
144 | + this.tempLstAccountNumbers = []; | |
145 | + this.loopIdx = 0; | |
146 | + for (var i = 0; i < 1000; i++) { | |
147 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
148 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
149 | + this.loopIdx++; | |
150 | + } | |
151 | + } | |
152 | + }, | |
153 | + error => this.error = <any>error); | |
135 | 154 | } |
136 | 155 | |
137 | 156 | GetLicenseUserGroups(evt: any) { |
... | ... | @@ -143,9 +162,11 @@ export class UserGroup implements OnInit, AfterViewChecked { |
143 | 162 | this.userService.GetLicenseUserGroups(this.license.LicenseId, this.pageNo, this.pageLength) |
144 | 163 | .subscribe(st => { this.BindFormFields(st); }, error => this.error = <any>error); |
145 | 164 | } |
165 | + | |
146 | 166 | SearchRecords() { |
147 | 167 | this.GetLicenseUserGroups('1, ' + this.pageLength); |
148 | 168 | } |
169 | + | |
149 | 170 | GetLicenseUserGroupUsers(evt: any) { |
150 | 171 | this.alerts = ''; |
151 | 172 | this._loadingService.ShowLoading("global-loading"); |
... | ... | @@ -159,18 +180,46 @@ export class UserGroup implements OnInit, AfterViewChecked { |
159 | 180 | this.userService.GetLicenseUserGroupUsers(this.license.LicenseId, this.selectedId, AllUsers, this.pageNoUser, this.pageLengthUser) |
160 | 181 | .subscribe(st => { this.BindUserFormFields(st); }, error => this.error = <any>error); |
161 | 182 | } |
183 | + | |
162 | 184 | SearchUserRecords() { |
163 | 185 | this.GetLicenseUserGroupUsers('1, ' + this.pageLengthUser); |
164 | 186 | } |
165 | 187 | |
166 | - AccountNumberChanged(LicenseId: number, evt: any) { | |
188 | + AccountNumberChanged(LicenseId: number, SelectText: string) { | |
189 | + this.accountDropDownText = SelectText; | |
190 | + this.license.LicenseId = LicenseId; | |
167 | 191 | this.selectedRow = -1; |
168 | 192 | this.selectedId = -1; |
169 | - this.license.LicenseId = LicenseId; | |
170 | 193 | this.lstLicenseUserGroups = null; |
194 | + this.updateUserGroupFrm.controls['userGroupName'].setValue(''); | |
195 | + this.userGroupName = ''; | |
171 | 196 | this.SearchRecords(); |
172 | 197 | } |
173 | 198 | |
199 | + onScroll($event){ | |
200 | + if($event.target.scrollTop >= ($event.target.scrollHeight/2)){ | |
201 | + for (var i = 0; i < 5000; i++) { | |
202 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
203 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
204 | + this.loopIdx++; | |
205 | + } | |
206 | + } | |
207 | + } | |
208 | +} | |
209 | + | |
210 | +onOpenChange(data: boolean): void { | |
211 | + if(!data){ | |
212 | + this.loopIdx = 0; | |
213 | + this.tempLstAccountNumbers = []; | |
214 | + for (var i = 0; i < 1000; i++) { | |
215 | + if(this.loopIdx < this.lstAccountNumbers.length){ | |
216 | + this.tempLstAccountNumbers.push(this.lstAccountNumbers[this.loopIdx]); | |
217 | + this.loopIdx++; | |
218 | + } | |
219 | + } | |
220 | + } | |
221 | +} | |
222 | + | |
174 | 223 | AfterDeleteData(data, template) { |
175 | 224 | if (data.Status == "false") { |
176 | 225 | this.alerts = "<span>License user group delete unsuccessfull</span>"; |
... | ... | @@ -178,6 +227,8 @@ export class UserGroup implements OnInit, AfterViewChecked { |
178 | 227 | this._confirmService.activate("License user group deleted successfully.", "alertMsg"); |
179 | 228 | // this.modalAlerts = "<p>License user group deleted successfully</p>"; |
180 | 229 | //this.modalRef = this.modalService.show(template); |
230 | + this.selectedRow = -1; | |
231 | + this.selectedId = -1; | |
181 | 232 | this.SearchRecords(); |
182 | 233 | } |
183 | 234 | } |
... | ... | @@ -216,11 +267,21 @@ export class UserGroup implements OnInit, AfterViewChecked { |
216 | 267 | 'modifiedDate': new Date() |
217 | 268 | }; |
218 | 269 | if (this.alerts == '') { |
219 | - return this.userService.InsertUpdateLicenseUserGroup(obj) | |
270 | + this.userService.CheckDuplicateLicenseUserGroup(this.license.LicenseId, title) | |
220 | 271 | .subscribe( |
221 | - n => (this.AfterInsertData(n, template)), | |
272 | + data => { | |
273 | + if(data == "True"){ | |
274 | + this.alerts = "<span>User group name already exists. Enter a different name.</span>"; | |
275 | + } | |
276 | + else{ | |
277 | + this.userService.InsertUpdateLicenseUserGroup(obj) | |
278 | + .subscribe( | |
279 | + n => (this.AfterInsertData(n, template)), | |
280 | + error => this.error = <any>error); | |
281 | + } | |
282 | + }, | |
222 | 283 | error => this.error = <any>error); |
223 | - } | |
284 | + } | |
224 | 285 | } |
225 | 286 | |
226 | 287 | UpdateLicenseUserGroup(template: TemplateRef<any>) { |
... | ... | @@ -234,12 +295,33 @@ export class UserGroup implements OnInit, AfterViewChecked { |
234 | 295 | 'modifiedDate': this.licenseUserGroup.ModifiedDate |
235 | 296 | }; |
236 | 297 | if (this.alerts == '') { |
237 | - return this.userService.InsertUpdateLicenseUserGroup(obj) | |
238 | - .subscribe( | |
239 | - n => ( | |
240 | - this.UpdateLicenseUserGroupUsers(template) | |
241 | - ), | |
242 | - error => this.error = <any>error); | |
298 | + if(this.licenseUserGroup.Title.toString().toLowerCase().trim() != obj.title.toString().toLowerCase().trim()) | |
299 | + { | |
300 | + this.userService.CheckDuplicateLicenseUserGroup(this.license.LicenseId, this.updateUserGroupFrm.controls['userGroupName'].value) | |
301 | + .subscribe( | |
302 | + data => { | |
303 | + if(data == "True"){ | |
304 | + this.alerts = "<span>User group name already exists. Enter a different name.</span>"; | |
305 | + } | |
306 | + else{ | |
307 | + this.userService.InsertUpdateLicenseUserGroup(obj) | |
308 | + .subscribe( | |
309 | + n => ( | |
310 | + this.UpdateLicenseUserGroupUsers(template) | |
311 | + ), | |
312 | + error => this.error = <any>error); | |
313 | + } | |
314 | + }, | |
315 | + error => this.error = <any>error); | |
316 | + } | |
317 | + else{ | |
318 | + this.userService.InsertUpdateLicenseUserGroup(obj) | |
319 | + .subscribe( | |
320 | + n => ( | |
321 | + this.UpdateLicenseUserGroupUsers(template) | |
322 | + ), | |
323 | + error => this.error = <any>error); | |
324 | + } | |
243 | 325 | } |
244 | 326 | } |
245 | 327 | ... | ... |
400-SOURCECODE/Admin/src/app/components/UserEntity/users.component.ts
... | ... | @@ -130,7 +130,7 @@ export class UsersList implements OnInit, AfterViewChecked { |
130 | 130 | { width: 350, align: 'Center' }, |
131 | 131 | { width: 200, align: 'Center' }, |
132 | 132 | { width: 130, align: 'Center' }, |
133 | - { width: 120, align: 'center' }, | |
133 | + { width: 140, align: 'center' }, | |
134 | 134 | { width: 280, align: 'Center' }, |
135 | 135 | { width: 180, align: 'center' }, |
136 | 136 | { width: 200, align: 'center' }, |
... | ... | @@ -219,6 +219,8 @@ export class UsersList implements OnInit, AfterViewChecked { |
219 | 219 | } |
220 | 220 | SearchUserList(evt: any) |
221 | 221 | { |
222 | + this.NoRecord = ''; | |
223 | + debugger; | |
222 | 224 | this._loadingService.ShowLoading("global-loading"); |
223 | 225 | var tempArr = evt.split(','); |
224 | 226 | this.pageNo = parseInt(tempArr[0]); |
... | ... | @@ -254,6 +256,7 @@ export class UsersList implements OnInit, AfterViewChecked { |
254 | 256 | } |
255 | 257 | } |
256 | 258 | CancelEditUser() { |
259 | + this.SearchUserList('1, ' + this.pageLength); | |
257 | 260 | this.Mode = 'Manage'; |
258 | 261 | this.modalTitle = 'LIST USER'; |
259 | 262 | this.topPos = '2000px'; | ... | ... |
400-SOURCECODE/Admin/src/app/shared/global.ts
1 | 1 | import { CsvService } from "angular2-json2csv"; |
2 | 2 | import { Injectable, Inject } from '@angular/core'; |
3 | +import { Observable } from 'rxjs/Observable'; | |
4 | +import { Http, Response } from '@angular/http'; | |
5 | + | |
3 | 6 | @Injectable() |
4 | 7 | export class GlobalService { |
5 | 8 | userUrl: string = ""; |
... | ... | @@ -13,9 +16,11 @@ export class GlobalService { |
13 | 16 | UserType: number =0; |
14 | 17 | AccountType: number = 0; |
15 | 18 | loggedInUser: any; |
19 | + DisplayName: string = ""; | |
16 | 20 | NoRecords: string; |
17 | 21 | ValidationMsg: string; |
18 | - constructor(private csvService:CsvService) { | |
22 | + error; | |
23 | + constructor(private csvService: CsvService, private http: Http) { | |
19 | 24 | this.hostURL = "http://192.168.84.242:97/"; |
20 | 25 | this.LiveAPIURL = "http://beta.interactiveanatomy.com/API/Adminapi/"; |
21 | 26 | this.QAAPIURL = "http://qa.beta.interactiveanatomy.com/API/Adminapi/"; |
... | ... | @@ -23,11 +28,14 @@ export class GlobalService { |
23 | 28 | //this.resourceBaseUrl = this.hostURL; |
24 | 29 | //this.resourceBaseUrl = this.LiveAPIURL; |
25 | 30 | this.resourceBaseUrl = this.QAAPIURL; |
26 | - if (this.resourceBaseUrl == "http://192.168.84.242:97/") { | |
27 | - localStorage.setItem('loggedInUserDetails', JSON.stringify( | |
28 | - { | |
29 | - "Id": 1, "FirstName": "Maribel", "LastName": "sfsfsfsfsfsfs", "EmailId": "ravi.vishwakarma@ebix.com", "LoginId": "superadmin", "Password": "ebix@2016", "SecurityQuestionId": 1, "SecurityAnswer": "boxer", "CreatorId": 1, "CreationDate": "2009-03-02T00:00:00", "DeactivationDate": null, "ModifierId": 1, "ModifiedDate": "2017-01-24T02:03:19", "UserType": "Super Admin", "UserTypeId": 1, "IsActive": true, "IsCorrectPassword": false, "IncorrectLoginAttemptCount": 0, "IsBlocked": false, "LicenseId": 0, "EditionId": 0, "LoginFailureCauseId": 0, "Modules": [{ "slug": "da-view-list", "name": "Dissectible Anatomy", "id": 1 }, { "slug": "tile-view-list", "name": "Atlas Anatomy", "id": 2 }, { "slug": "3d-anatomy-list", "name": "3D Anatomy", "id": 3 }, { "slug": "clinical-illustrations", "name": "Clinical Illustrations", "id": 4 }, { "slug": "clinical-animations", "name": "Clinical Animations", "id": 5 }, { "slug": "Link/encyclopedia", "name": "Encyclopedia", "id": 6 }, { "slug": "curriculum-builder", "name": "Curriculum Builder", "id": 7 }, { "slug": "anatomy-test", "name": "Anatomy Test", "id": 8 }, { "slug": "Link/IP-10", "name": "IP 10", "id": 9 }, { "slug": "lab-exercises", "name": "Lab Exercises", "id": 10 }, { "slug": "Link/indepth-reports", "name": "In-Depth Reports", "id": 11 }, { "slug": "Link/complementary-and-alternate-medicine", "name": "CAM", "id": 12 }, { "slug": "ADAM-images", "name": "A.D.A.M. Images", "id": 13 }, { "slug": "Link/bodyguide", "name": "Body Guide", "id": 14 }, { "slug": "Link/health-navigator", "name": "Symptom Navigator", "id": 15 }, { "slug": "Link/wellness-tools", "name": "The Wellness Tools", "id": 16 }, { "slug": "Link/aod", "name": "A.D.A.M. OnDemand", "id": 1017 }], "LicenseInfo": null, "LicenseSubscriptions": null, "IsSubscriptionExpired": false, "SubscriptionExpirationDate": null, "TermsAndConditionsTitle": null, "TermsAndConditionsText": null | |
30 | - })); | |
31 | + if (this.resourceBaseUrl == "http://192.168.84.242:97/") { | |
32 | + | |
33 | + localStorage.setItem('loggedInUserDetails', JSON.stringify( | |
34 | + { | |
35 | + "Id": 1, "FirstName": "Maribel", "LastName": "sfsfsfsfsfsfs", "EmailId": "ravi.vishwakarma@ebix.com", "LoginId": "superadmin", "Password": "ebix@2016", "SecurityQuestionId": 1, "SecurityAnswer": "boxer", "CreatorId": 1, "CreationDate": "2009-03-02T00:00:00", "DeactivationDate": null, "ModifierId": 1, "ModifiedDate": "2017-01-24T02:03:19", "UserType": "Super Admin", "UserTypeId": 1, "IsActive": true, "IsCorrectPassword": false, "IncorrectLoginAttemptCount": 0, "IsBlocked": false, "LicenseId": 0, "EditionId": 0, "LoginFailureCauseId": 0, "Modules": [{ "slug": "da-view-list", "name": "Dissectible Anatomy", "id": 1 }, { "slug": "tile-view-list", "name": "Atlas Anatomy", "id": 2 }, { "slug": "3d-anatomy-list", "name": "3D Anatomy", "id": 3 }, { "slug": "clinical-illustrations", "name": "Clinical Illustrations", "id": 4 }, { "slug": "clinical-animations", "name": "Clinical Animations", "id": 5 }, { "slug": "Link/encyclopedia", "name": "Encyclopedia", "id": 6 }, { "slug": "curriculum-builder", "name": "Curriculum Builder", "id": 7 }, { "slug": "anatomy-test", "name": "Anatomy Test", "id": 8 }, { "slug": "Link/IP-10", "name": "IP 10", "id": 9 }, { "slug": "lab-exercises", "name": "Lab Exercises", "id": 10 }, { "slug": "Link/indepth-reports", "name": "In-Depth Reports", "id": 11 }, { "slug": "Link/complementary-and-alternate-medicine", "name": "CAM", "id": 12 }, { "slug": "ADAM-images", "name": "A.D.A.M. Images", "id": 13 }, { "slug": "Link/bodyguide", "name": "Body Guide", "id": 14 }, { "slug": "Link/health-navigator", "name": "Symptom Navigator", "id": 15 }, { "slug": "Link/wellness-tools", "name": "The Wellness Tools", "id": 16 }, { "slug": "Link/aod", "name": "A.D.A.M. OnDemand", "id": 1017 }], "LicenseInfo": null, "LicenseSubscriptions": null, "IsSubscriptionExpired": false, "SubscriptionExpirationDate": null, "TermsAndConditionsTitle": null, "TermsAndConditionsText": null | |
36 | + })); | |
37 | + | |
38 | + //this.LiveURL = this.LocalURL+"/Admin"; | |
31 | 39 | } |
32 | 40 | else if (this.resourceBaseUrl == "http://beta.interactiveanatomy.com/API/Adminapi/") { |
33 | 41 | this.LiveURL = "http://beta.interactiveanatomy.com"; |
... | ... | @@ -38,6 +46,7 @@ export class GlobalService { |
38 | 46 | this.loggedInUser = JSON.parse(localStorage.getItem("loggedInUserDetails")); |
39 | 47 | this.UserId = this.loggedInUser.Id; |
40 | 48 | this.UserType = this.loggedInUser.UserTypeId; |
49 | + this.DisplayName = this.loggedInUser.FirstName + " " + this.loggedInUser.LastName; | |
41 | 50 | this.NoRecords = 'No records founds.'; |
42 | 51 | } |
43 | 52 | compareTwoDates(todate: string, fromdate: string) { |
... | ... | @@ -53,5 +62,19 @@ export class GlobalService { |
53 | 62 | ExportToCSV(data: any, FileName: string) { |
54 | 63 | this.csvService.download(data, FileName); |
55 | 64 | } |
65 | + // Read Json File for Menu | |
66 | + public getJSON() { | |
67 | + | |
68 | + let apiUrl = './assets/data/Menu.json'; | |
69 | + return this.http.get(apiUrl) | |
70 | + .map((response: Response) => { | |
71 | + const data = response.json(); | |
72 | + return data; | |
73 | + }); | |
74 | + } | |
56 | 75 | |
57 | 76 | } |
77 | + | |
78 | + | |
79 | + | |
80 | + | ... | ... |
400-SOURCECODE/Admin/src/app/shared/my-filter.pipe.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var DBOperation; | |
4 | +(function (DBOperation) { | |
5 | + DBOperation[DBOperation["create"] = 1] = "create"; | |
6 | + DBOperation[DBOperation["update"] = 2] = "update"; | |
7 | + DBOperation[DBOperation["delete"] = 3] = "delete"; | |
8 | +})(DBOperation = exports.DBOperation || (exports.DBOperation = {})); | |
9 | +//# sourceMappingURL=enum.js.map | |
0 | 10 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/src/app/shared/my-filter.pipe.js.map
0 → 100644
400-SOURCECODE/Admin/src/app/shared/my-filter.pipe.ts
0 → 100644
1 | +import { Pipe, PipeTransform, Injectable, Inject } from '@angular/core'; | |
2 | +@Pipe({ | |
3 | + name: 'callback', | |
4 | + pure: false | |
5 | +}) | |
6 | +@Injectable() | |
7 | +export class MyFilterPipe implements PipeTransform { | |
8 | + | |
9 | + transform(items: any[], searchText: string): any[] { | |
10 | + | |
11 | + if (!items) return []; | |
12 | + if (!searchText) return items; | |
13 | + searchText = searchText.toLowerCase(); | |
14 | + | |
15 | + return items.filter(it => { | |
16 | + //alert(JSON.stringify(it)); | |
17 | + if (it.HeaderMenuStatus.toLowerCase() == searchText) { | |
18 | + return it; | |
19 | + } | |
20 | + }); | |
21 | + } | |
22 | +} | ... | ... |
400-SOURCECODE/Admin/src/assets/data/Menu.json
0 → 100644
1 | +{ | |
2 | + "AdminSections": [ | |
3 | + { | |
4 | + "Id": "1", | |
5 | + "UserType": "Super Admin", | |
6 | + "HeaderMenu": [ | |
7 | + { | |
8 | + "HeaderMenuId": "100", | |
9 | + "HeaderMenuName": "Profile", | |
10 | + "HeaderMenuStatus": "True", | |
11 | + "SubMenu": [ | |
12 | + { | |
13 | + "SubMenuId": "200", | |
14 | + "SubMenuName": "Update Profile", | |
15 | + "SubMenuUrl": "updateuserprofile", | |
16 | + "SubMenuStatus": "True" | |
17 | + }, | |
18 | + { | |
19 | + "SubMenuId": "201", | |
20 | + "SubMenuName": "Change Password", | |
21 | + "SubMenuUrl": "changeuserpassword", | |
22 | + "SubMenuStatus": "True" | |
23 | + }, | |
24 | + { | |
25 | + "SubMenuId": "202", | |
26 | + "SubMenuName": "Change User ID", | |
27 | + "SubMenuUrl": "changeuserid", | |
28 | + "SubMenuStatus": "True" | |
29 | + } | |
30 | + ] | |
31 | + }, | |
32 | + { | |
33 | + "HeaderMenuId": "101", | |
34 | + "HeaderMenuName": "Licenses", | |
35 | + "HeaderMenuStatus": "True", | |
36 | + "SubMenu": [ | |
37 | + { | |
38 | + "SubMenuId": "203", | |
39 | + "SubMenuName": "Search License", | |
40 | + "SubMenuUrl": "searchlicense", | |
41 | + "SubMenuStatus": "True" | |
42 | + }, | |
43 | + { | |
44 | + "SubMenuId": "204", | |
45 | + "SubMenuName": "Add New License", | |
46 | + "SubMenuUrl": "addlicense", | |
47 | + "SubMenuStatus": "True" | |
48 | + } | |
49 | + | |
50 | + ] | |
51 | + }, | |
52 | + { | |
53 | + "HeaderMenuId": "102", | |
54 | + "HeaderMenuName": "Product Features", | |
55 | + "HeaderMenuStatus": "True", | |
56 | + "SubMenu": [ | |
57 | + { | |
58 | + "SubMenuId": "205", | |
59 | + "SubMenuName": "Manage Discount Code", | |
60 | + "SubMenuUrl": "managediscountcode", | |
61 | + "SubMenuStatus": "True" | |
62 | + }, | |
63 | + { | |
64 | + "SubMenuId": "206", | |
65 | + "SubMenuName": "Subscription Price", | |
66 | + "SubMenuUrl": "subscriptionprice", | |
67 | + "SubMenuStatus": "True" | |
68 | + } | |
69 | + | |
70 | + ] | |
71 | + }, | |
72 | + { | |
73 | + "HeaderMenuId": "103", | |
74 | + "HeaderMenuName": "Users", | |
75 | + "HeaderMenuStatus": "True", | |
76 | + "SubMenu": [ | |
77 | + { | |
78 | + "SubMenuId": "207", | |
79 | + "SubMenuName": "List User", | |
80 | + "SubMenuUrl": "users", | |
81 | + "SubMenuStatus": "True" | |
82 | + }, | |
83 | + { | |
84 | + "SubMenuId": "208", | |
85 | + "SubMenuName": "Add User", | |
86 | + "SubMenuUrl": "adduser", | |
87 | + "SubMenuStatus": "True" | |
88 | + }, | |
89 | + { | |
90 | + "SubMenuId": "209", | |
91 | + "SubMenuName": "Unblock User", | |
92 | + "SubMenuUrl": "unblockuser", | |
93 | + "SubMenuStatus": "True" | |
94 | + }, | |
95 | + { | |
96 | + "SubMenuId": "210", | |
97 | + "SubMenuName": "User Group", | |
98 | + "SubMenuUrl": "usergroup", | |
99 | + "SubMenuStatus": "True" | |
100 | + } | |
101 | + | |
102 | + ] | |
103 | + }, | |
104 | + { | |
105 | + "HeaderMenuId": "104", | |
106 | + "HeaderMenuName": "Reports", | |
107 | + "HeaderMenuStatus": "True", | |
108 | + "SubMenu": [ | |
109 | + { | |
110 | + "SubMenuId": "211", | |
111 | + "SubMenuName": "Usage Report", | |
112 | + "SubMenuUrl": "usagereport", | |
113 | + "SubMenuStatus": "True" | |
114 | + }, | |
115 | + { | |
116 | + "SubMenuId": "212", | |
117 | + "SubMenuName": "Customer Summary Report", | |
118 | + "SubMenuUrl": "customersummaryreport", | |
119 | + "SubMenuStatus": "True" | |
120 | + }, | |
121 | + { | |
122 | + "SubMenuId": "213", | |
123 | + "SubMenuName": "Expiring Subscription Report", | |
124 | + "SubMenuUrl": "expiringsubscriptionreport", | |
125 | + "SubMenuStatus": "True" | |
126 | + }, | |
127 | + { | |
128 | + "SubMenuId": "214", | |
129 | + "SubMenuName": "New Subscription Report", | |
130 | + "SubMenuUrl": "subscriptionreport", | |
131 | + "SubMenuStatus": "True" | |
132 | + }, | |
133 | + { | |
134 | + "SubMenuId": "215", | |
135 | + "SubMenuName": "Subscription Cancellation Report", | |
136 | + "SubMenuUrl": "subscriptioncancellationreport", | |
137 | + "SubMenuStatus": "True" | |
138 | + }, | |
139 | + { | |
140 | + "SubMenuId": "216", | |
141 | + "SubMenuName": "Net AD Subscription Report", | |
142 | + "SubMenuUrl": "netadsubscriptionreport", | |
143 | + "SubMenuStatus": "True" | |
144 | + }, | |
145 | + { | |
146 | + "SubMenuId": "217", | |
147 | + "SubMenuName": "Site License Usage Report", | |
148 | + "SubMenuUrl": "sitelicenseusagereport", | |
149 | + "SubMenuStatus": "True" | |
150 | + }, | |
151 | + { | |
152 | + "SubMenuId": "218", | |
153 | + "SubMenuName": "Discount Code Report", | |
154 | + "SubMenuUrl": "discountcodereport", | |
155 | + "SubMenuStatus": "True" | |
156 | + }, | |
157 | + { | |
158 | + "SubMenuId": "219", | |
159 | + "SubMenuName": "Image Export Report", | |
160 | + "SubMenuUrl": "imageexportreport", | |
161 | + "SubMenuStatus": "True" | |
162 | + } | |
163 | + | |
164 | + ] | |
165 | + }, | |
166 | + { | |
167 | + "HeaderMenuId": "105", | |
168 | + "HeaderMenuName": "Site Account", | |
169 | + "HeaderMenuStatus": "True", | |
170 | + "SubMenu": [ | |
171 | + { | |
172 | + "SubMenuId": "220", | |
173 | + "SubMenuName": "Add Building Level Account", | |
174 | + "SubMenuUrl": "sitelicenseaccount", | |
175 | + "SubMenuStatus": "True" | |
176 | + } | |
177 | + | |
178 | + ] | |
179 | + }, | |
180 | + { | |
181 | + "HeaderMenuId": "106", | |
182 | + "HeaderMenuName": "Settings", | |
183 | + "HeaderMenuStatus": "True", | |
184 | + "SubMenu": [ | |
185 | + { | |
186 | + "SubMenuId": "221", | |
187 | + "SubMenuName": "View-Update Profile", | |
188 | + "SubMenuUrl": "editlicensebasicsettings", | |
189 | + "SubMenuStatus": "True" | |
190 | + }, | |
191 | + { | |
192 | + "SubMenuId": "222", | |
193 | + "SubMenuName": "Manage Modesty Settings", | |
194 | + "SubMenuUrl": "licensemodestysettings", | |
195 | + "SubMenuStatus": "True" | |
196 | + }, | |
197 | + { | |
198 | + "SubMenuId": "223", | |
199 | + "SubMenuName": "Manage Module", | |
200 | + "SubMenuUrl": "licensemodulesettings", | |
201 | + "SubMenuStatus": "True" | |
202 | + } | |
203 | + | |
204 | + ] | |
205 | + } | |
206 | + | |
207 | + | |
208 | + ] | |
209 | + }, | |
210 | + { | |
211 | + "Id": "2", | |
212 | + "UserType": "General Admin", | |
213 | + "HeaderMenu": [ | |
214 | + { | |
215 | + "HeaderMenuId": "100", | |
216 | + "HeaderMenuName": "Profile", | |
217 | + "HeaderMenuStatus": "True", | |
218 | + "SubMenu": [ | |
219 | + { | |
220 | + "SubMenuId": "200", | |
221 | + "SubMenuName": "Update Profile", | |
222 | + "SubMenuUrl": "updateuserprofile", | |
223 | + "SubMenuStatus": "True" | |
224 | + }, | |
225 | + { | |
226 | + "SubMenuId": "201", | |
227 | + "SubMenuName": "Change Password", | |
228 | + "SubMenuUrl": "changeuserpassword", | |
229 | + "SubMenuStatus": "True" | |
230 | + }, | |
231 | + { | |
232 | + "SubMenuId": "202", | |
233 | + "SubMenuName": "Change User ID", | |
234 | + "SubMenuUrl": "changeuserid", | |
235 | + "SubMenuStatus": "True" | |
236 | + } | |
237 | + ] | |
238 | + }, | |
239 | + { | |
240 | + "HeaderMenuId": "101", | |
241 | + "HeaderMenuName": "Licenses", | |
242 | + "HeaderMenuStatus": "True", | |
243 | + "SubMenu": [ | |
244 | + { | |
245 | + "SubMenuId": "203", | |
246 | + "SubMenuName": "Search License", | |
247 | + "SubMenuUrl": "searchlicense", | |
248 | + "SubMenuStatus": "True" | |
249 | + }, | |
250 | + { | |
251 | + "SubMenuId": "204", | |
252 | + "SubMenuName": "Add New License", | |
253 | + "SubMenuUrl": "addlicense", | |
254 | + "SubMenuStatus": "True" | |
255 | + } | |
256 | + | |
257 | + ] | |
258 | + }, | |
259 | + { | |
260 | + "HeaderMenuId": "102", | |
261 | + "HeaderMenuName": "Product Features", | |
262 | + "HeaderMenuStatus": "True", | |
263 | + "SubMenu": [ | |
264 | + { | |
265 | + "SubMenuId": "205", | |
266 | + "SubMenuName": "Manage Discount Code", | |
267 | + "SubMenuUrl": "managediscountcode", | |
268 | + "SubMenuStatus": "True" | |
269 | + }, | |
270 | + { | |
271 | + "SubMenuId": "206", | |
272 | + "SubMenuName": "Subscription Price", | |
273 | + "SubMenuUrl": "subscriptionprice", | |
274 | + "SubMenuStatus": "True" | |
275 | + } | |
276 | + | |
277 | + ] | |
278 | + }, | |
279 | + { | |
280 | + "HeaderMenuId": "103", | |
281 | + "HeaderMenuName": "Users", | |
282 | + "HeaderMenuStatus": "True", | |
283 | + "SubMenu": [ | |
284 | + { | |
285 | + "SubMenuId": "207", | |
286 | + "SubMenuName": "List User", | |
287 | + "SubMenuUrl": "users", | |
288 | + "SubMenuStatus": "True" | |
289 | + }, | |
290 | + { | |
291 | + "SubMenuId": "208", | |
292 | + "SubMenuName": "Add User", | |
293 | + "SubMenuUrl": "adduser", | |
294 | + "SubMenuStatus": "True" | |
295 | + }, | |
296 | + { | |
297 | + "SubMenuId": "209", | |
298 | + "SubMenuName": "Unblock User", | |
299 | + "SubMenuUrl": "unblockuser", | |
300 | + "SubMenuStatus": "True" | |
301 | + }, | |
302 | + { | |
303 | + "SubMenuId": "210", | |
304 | + "SubMenuName": "User Group", | |
305 | + "SubMenuUrl": "usergroup", | |
306 | + "SubMenuStatus": "True" | |
307 | + } | |
308 | + | |
309 | + ] | |
310 | + }, | |
311 | + { | |
312 | + "HeaderMenuId": "104", | |
313 | + "HeaderMenuName": "Reports", | |
314 | + "HeaderMenuStatus": "True", | |
315 | + "SubMenu": [ | |
316 | + { | |
317 | + "SubMenuId": "211", | |
318 | + "SubMenuName": "Usage Report", | |
319 | + "SubMenuUrl": "usagereport", | |
320 | + "SubMenuStatus": "True" | |
321 | + }, | |
322 | + { | |
323 | + "SubMenuId": "212", | |
324 | + "SubMenuName": "Customer Summary Report", | |
325 | + "SubMenuUrl": "customersummaryreport", | |
326 | + "SubMenuStatus": "True" | |
327 | + }, | |
328 | + { | |
329 | + "SubMenuId": "213", | |
330 | + "SubMenuName": "Expiring Subscription Report", | |
331 | + "SubMenuUrl": "expiringsubscriptionreport", | |
332 | + "SubMenuStatus": "True" | |
333 | + }, | |
334 | + { | |
335 | + "SubMenuId": "214", | |
336 | + "SubMenuName": "New Subscription Report", | |
337 | + "SubMenuUrl": "subscriptionreport", | |
338 | + "SubMenuStatus": "True" | |
339 | + }, | |
340 | + { | |
341 | + "SubMenuId": "215", | |
342 | + "SubMenuName": "Subscription Cancellation Report", | |
343 | + "SubMenuUrl": "subscriptioncancellationreport", | |
344 | + "SubMenuStatus": "True" | |
345 | + }, | |
346 | + { | |
347 | + "SubMenuId": "216", | |
348 | + "SubMenuName": "Net AD Subscription Report", | |
349 | + "SubMenuUrl": "netadsubscriptionreport", | |
350 | + "SubMenuStatus": "True" | |
351 | + }, | |
352 | + { | |
353 | + "SubMenuId": "217", | |
354 | + "SubMenuName": "Site License Usage Report", | |
355 | + "SubMenuUrl": "sitelicenseusagereport", | |
356 | + "SubMenuStatus": "True" | |
357 | + }, | |
358 | + { | |
359 | + "SubMenuId": "218", | |
360 | + "SubMenuName": "Discount Code Report", | |
361 | + "SubMenuUrl": "discountcodereport", | |
362 | + "SubMenuStatus": "True" | |
363 | + }, | |
364 | + { | |
365 | + "SubMenuId": "219", | |
366 | + "SubMenuName": "Image Export Report", | |
367 | + "SubMenuUrl": "imageexportreport", | |
368 | + "SubMenuStatus": "True" | |
369 | + } | |
370 | + | |
371 | + ] | |
372 | + }, | |
373 | + { | |
374 | + "HeaderMenuId": "105", | |
375 | + "HeaderMenuName": "Site Account", | |
376 | + "HeaderMenuStatus": "True", | |
377 | + "SubMenu": [ | |
378 | + { | |
379 | + "SubMenuId": "220", | |
380 | + "SubMenuName": "Add Building Level Account", | |
381 | + "SubMenuUrl": "sitelicenseaccount", | |
382 | + "SubMenuStatus": "True" | |
383 | + } | |
384 | + | |
385 | + ] | |
386 | + }, | |
387 | + { | |
388 | + "HeaderMenuId": "106", | |
389 | + "HeaderMenuName": "Settings", | |
390 | + "HeaderMenuStatus": "True", | |
391 | + "SubMenu": [ | |
392 | + { | |
393 | + "SubMenuId": "221", | |
394 | + "SubMenuName": "View-Update Profile", | |
395 | + "SubMenuUrl": "editlicensebasicsettings", | |
396 | + "SubMenuStatus": "True" | |
397 | + }, | |
398 | + { | |
399 | + "SubMenuId": "222", | |
400 | + "SubMenuName": "Manage Modesty Settings", | |
401 | + "SubMenuUrl": "licensemodestysettings", | |
402 | + "SubMenuStatus": "True" | |
403 | + }, | |
404 | + { | |
405 | + "SubMenuId": "223", | |
406 | + "SubMenuName": "Manage Module", | |
407 | + "SubMenuUrl": "licensemodulesettings", | |
408 | + "SubMenuStatus": "True" | |
409 | + } | |
410 | + | |
411 | + ] | |
412 | + } | |
413 | + | |
414 | + | |
415 | + ] | |
416 | + }, | |
417 | + { | |
418 | + "Id": "4", | |
419 | + "UserType": "Client Admin", | |
420 | + "HeaderMenu": [ | |
421 | + { | |
422 | + "HeaderMenuId": "100", | |
423 | + "HeaderMenuName": "Profile", | |
424 | + "HeaderMenuStatus": "True", | |
425 | + "SubMenu": [ | |
426 | + { | |
427 | + "SubMenuId": "200", | |
428 | + "SubMenuName": "Update Profile", | |
429 | + "SubMenuUrl": "updateuserprofile", | |
430 | + "SubMenuStatus": "True" | |
431 | + }, | |
432 | + { | |
433 | + "SubMenuId": "201", | |
434 | + "SubMenuName": "Change Password", | |
435 | + "SubMenuUrl": "changeuserpassword", | |
436 | + "SubMenuStatus": "True" | |
437 | + }, | |
438 | + { | |
439 | + "SubMenuId": "202", | |
440 | + "SubMenuName": "Change User ID", | |
441 | + "SubMenuUrl": "changeuserid", | |
442 | + "SubMenuStatus": "True" | |
443 | + } | |
444 | + ] | |
445 | + }, | |
446 | + { | |
447 | + "HeaderMenuId": "101", | |
448 | + "HeaderMenuName": "Licenses", | |
449 | + "HeaderMenuStatus": "False", | |
450 | + "SubMenu": [ | |
451 | + { | |
452 | + "SubMenuId": "203", | |
453 | + "SubMenuName": "Search License", | |
454 | + "SubMenuUrl": "searchlicense", | |
455 | + "SubMenuStatus": "False" | |
456 | + }, | |
457 | + { | |
458 | + "SubMenuId": "204", | |
459 | + "SubMenuName": "Add New License", | |
460 | + "SubMenuUrl": "addlicense", | |
461 | + "SubMenuStatus": "False" | |
462 | + } | |
463 | + | |
464 | + ] | |
465 | + }, | |
466 | + { | |
467 | + "HeaderMenuId": "102", | |
468 | + "HeaderMenuName": "Product Features", | |
469 | + "HeaderMenuStatus": "False", | |
470 | + "SubMenu": [ | |
471 | + { | |
472 | + "SubMenuId": "205", | |
473 | + "SubMenuName": "Manage Discount Code", | |
474 | + "SubMenuUrl": "managediscountcode", | |
475 | + "SubMenuStatus": "False" | |
476 | + }, | |
477 | + { | |
478 | + "SubMenuId": "206", | |
479 | + "SubMenuName": "Subscription Price", | |
480 | + "SubMenuUrl": "subscriptionprice", | |
481 | + "SubMenuStatus": "False" | |
482 | + } | |
483 | + | |
484 | + ] | |
485 | + }, | |
486 | + { | |
487 | + "HeaderMenuId": "103", | |
488 | + "HeaderMenuName": "Users", | |
489 | + "HeaderMenuStatus": "True", | |
490 | + "SubMenu": [ | |
491 | + { | |
492 | + "SubMenuId": "207", | |
493 | + "SubMenuName": "List User", | |
494 | + "SubMenuUrl": "users", | |
495 | + "SubMenuStatus": "True" | |
496 | + }, | |
497 | + { | |
498 | + "SubMenuId": "208", | |
499 | + "SubMenuName": "Add User", | |
500 | + "SubMenuUrl": "adduser", | |
501 | + "SubMenuStatus": "True" | |
502 | + }, | |
503 | + { | |
504 | + "SubMenuId": "209", | |
505 | + "SubMenuName": "Unblock User", | |
506 | + "SubMenuUrl": "unblockuser", | |
507 | + "SubMenuStatus": "True" | |
508 | + }, | |
509 | + { | |
510 | + "SubMenuId": "210", | |
511 | + "SubMenuName": "User Group", | |
512 | + "SubMenuUrl": "usergroup", | |
513 | + "SubMenuStatus": "True" | |
514 | + } | |
515 | + | |
516 | + ] | |
517 | + }, | |
518 | + { | |
519 | + "HeaderMenuId": "104", | |
520 | + "HeaderMenuName": "Reports", | |
521 | + "HeaderMenuStatus": "True", | |
522 | + "SubMenu": [ | |
523 | + { | |
524 | + "SubMenuId": "211", | |
525 | + "SubMenuName": "Usage Report", | |
526 | + "SubMenuUrl": "usagereport", | |
527 | + "SubMenuStatus": "True" | |
528 | + }, | |
529 | + { | |
530 | + "SubMenuId": "212", | |
531 | + "SubMenuName": "Customer Summary Report", | |
532 | + "SubMenuUrl": "customersummaryreport", | |
533 | + "SubMenuStatus": "False" | |
534 | + }, | |
535 | + { | |
536 | + "SubMenuId": "213", | |
537 | + "SubMenuName": "Expiring Subscription Report", | |
538 | + "SubMenuUrl": "expiringsubscriptionreport", | |
539 | + "SubMenuStatus": "False" | |
540 | + }, | |
541 | + { | |
542 | + "SubMenuId": "214", | |
543 | + "SubMenuName": "New Subscription Report", | |
544 | + "SubMenuUrl": "subscriptionreport", | |
545 | + "SubMenuStatus": "False" | |
546 | + }, | |
547 | + { | |
548 | + "SubMenuId": "215", | |
549 | + "SubMenuName": "Subscription Cancellation Report", | |
550 | + "SubMenuUrl": "subscriptioncancellationreport", | |
551 | + "SubMenuStatus": "False" | |
552 | + }, | |
553 | + { | |
554 | + "SubMenuId": "216", | |
555 | + "SubMenuName": "Net AD Subscription Report", | |
556 | + "SubMenuUrl": "netadsubscriptionreport", | |
557 | + "SubMenuStatus": "False" | |
558 | + }, | |
559 | + { | |
560 | + "SubMenuId": "217", | |
561 | + "SubMenuName": "Site License Usage Report", | |
562 | + "SubMenuUrl": "sitelicenseusagereport", | |
563 | + "SubMenuStatus": "True" | |
564 | + }, | |
565 | + { | |
566 | + "SubMenuId": "218", | |
567 | + "SubMenuName": "Discount Code Report", | |
568 | + "SubMenuUrl": "discountcodereport", | |
569 | + "SubMenuStatus": "False" | |
570 | + }, | |
571 | + { | |
572 | + "SubMenuId": "219", | |
573 | + "SubMenuName": "Image Export Report", | |
574 | + "SubMenuUrl": "imageexportreport", | |
575 | + "SubMenuStatus": "False" | |
576 | + } | |
577 | + | |
578 | + ] | |
579 | + }, | |
580 | + { | |
581 | + "HeaderMenuId": "105", | |
582 | + "HeaderMenuName": "Site Account", | |
583 | + "HeaderMenuStatus": "False", | |
584 | + "SubMenu": [ | |
585 | + { | |
586 | + "SubMenuId": "220", | |
587 | + "SubMenuName": "Add Building Level Account", | |
588 | + "SubMenuUrl": "sitelicenseaccount", | |
589 | + "SubMenuStatus": "False" | |
590 | + } | |
591 | + | |
592 | + ] | |
593 | + }, | |
594 | + { | |
595 | + "HeaderMenuId": "106", | |
596 | + "HeaderMenuName": "Settings", | |
597 | + "HeaderMenuStatus": "True", | |
598 | + "SubMenu": [ | |
599 | + { | |
600 | + "SubMenuId": "221", | |
601 | + "SubMenuName": "View-Update Profile", | |
602 | + "SubMenuUrl": "editlicensebasicsettings", | |
603 | + "SubMenuStatus": "True" | |
604 | + }, | |
605 | + { | |
606 | + "SubMenuId": "222", | |
607 | + "SubMenuName": "Manage Modesty Settings", | |
608 | + "SubMenuUrl": "licensemodestysettings", | |
609 | + "SubMenuStatus": "True" | |
610 | + }, | |
611 | + { | |
612 | + "SubMenuId": "223", | |
613 | + "SubMenuName": "Manage Module", | |
614 | + "SubMenuUrl": "licensemodulesettings", | |
615 | + "SubMenuStatus": "False" | |
616 | + } | |
617 | + | |
618 | + ] | |
619 | + } | |
620 | + | |
621 | + | |
622 | + ] | |
623 | + }, | |
624 | + | |
625 | + { | |
626 | + "Id": "3", | |
627 | + "UserType": "District Admin", | |
628 | + "HeaderMenu": [ | |
629 | + { | |
630 | + "HeaderMenuId": "100", | |
631 | + "HeaderMenuName": "Profile", | |
632 | + "HeaderMenuStatus": "True", | |
633 | + "SubMenu": [ | |
634 | + { | |
635 | + "SubMenuId": "200", | |
636 | + "SubMenuName": "Update Profile", | |
637 | + "SubMenuUrl": "updateuserprofile", | |
638 | + "SubMenuStatus": "True" | |
639 | + }, | |
640 | + { | |
641 | + "SubMenuId": "201", | |
642 | + "SubMenuName": "Change Password", | |
643 | + "SubMenuUrl": "changeuserpassword", | |
644 | + "SubMenuStatus": "True" | |
645 | + }, | |
646 | + { | |
647 | + "SubMenuId": "202", | |
648 | + "SubMenuName": "Change User ID", | |
649 | + "SubMenuUrl": "changeuserid", | |
650 | + "SubMenuStatus": "True" | |
651 | + } | |
652 | + ] | |
653 | + }, | |
654 | + { | |
655 | + "HeaderMenuId": "101", | |
656 | + "HeaderMenuName": "Licenses", | |
657 | + "HeaderMenuStatus": "False", | |
658 | + "SubMenu": [ | |
659 | + { | |
660 | + "SubMenuId": "203", | |
661 | + "SubMenuName": "Search License", | |
662 | + "SubMenuUrl": "searchlicense", | |
663 | + "SubMenuStatus": "False" | |
664 | + }, | |
665 | + { | |
666 | + "SubMenuId": "204", | |
667 | + "SubMenuName": "Add New License", | |
668 | + "SubMenuUrl": "addlicense", | |
669 | + "SubMenuStatus": "False" | |
670 | + } | |
671 | + | |
672 | + ] | |
673 | + }, | |
674 | + { | |
675 | + "HeaderMenuId": "102", | |
676 | + "HeaderMenuName": "Product Features", | |
677 | + "HeaderMenuStatus": "False", | |
678 | + "SubMenu": [ | |
679 | + { | |
680 | + "SubMenuId": "205", | |
681 | + "SubMenuName": "Manage Discount Code", | |
682 | + "SubMenuUrl": "managediscountcode", | |
683 | + "SubMenuStatus": "False" | |
684 | + }, | |
685 | + { | |
686 | + "SubMenuId": "206", | |
687 | + "SubMenuName": "Subscription Price", | |
688 | + "SubMenuUrl": "subscriptionprice", | |
689 | + "SubMenuStatus": "False" | |
690 | + } | |
691 | + | |
692 | + ] | |
693 | + }, | |
694 | + { | |
695 | + "HeaderMenuId": "103", | |
696 | + "HeaderMenuName": "Users", | |
697 | + "HeaderMenuStatus": "True", | |
698 | + "SubMenu": [ | |
699 | + { | |
700 | + "SubMenuId": "207", | |
701 | + "SubMenuName": "List User", | |
702 | + "SubMenuUrl": "users", | |
703 | + "SubMenuStatus": "True" | |
704 | + }, | |
705 | + { | |
706 | + "SubMenuId": "208", | |
707 | + "SubMenuName": "Add User", | |
708 | + "SubMenuUrl": "adduser", | |
709 | + "SubMenuStatus": "True" | |
710 | + }, | |
711 | + { | |
712 | + "SubMenuId": "209", | |
713 | + "SubMenuName": "Unblock User", | |
714 | + "SubMenuUrl": "unblockuser", | |
715 | + "SubMenuStatus": "True" | |
716 | + }, | |
717 | + { | |
718 | + "SubMenuId": "210", | |
719 | + "SubMenuName": "User Group", | |
720 | + "SubMenuUrl": "usergroup", | |
721 | + "SubMenuStatus": "False" | |
722 | + } | |
723 | + | |
724 | + ] | |
725 | + }, | |
726 | + { | |
727 | + "HeaderMenuId": "104", | |
728 | + "HeaderMenuName": "Reports", | |
729 | + "HeaderMenuStatus": "True", | |
730 | + "SubMenu": [ | |
731 | + { | |
732 | + "SubMenuId": "211", | |
733 | + "SubMenuName": "Usage Report", | |
734 | + "SubMenuUrl": "usagereport", | |
735 | + "SubMenuStatus": "True" | |
736 | + }, | |
737 | + { | |
738 | + "SubMenuId": "212", | |
739 | + "SubMenuName": "Customer Summary Report", | |
740 | + "SubMenuUrl": "customersummaryreport", | |
741 | + "SubMenuStatus": "False" | |
742 | + }, | |
743 | + { | |
744 | + "SubMenuId": "213", | |
745 | + "SubMenuName": "Expiring Subscription Report", | |
746 | + "SubMenuUrl": "expiringsubscriptionreport", | |
747 | + "SubMenuStatus": "False" | |
748 | + }, | |
749 | + { | |
750 | + "SubMenuId": "214", | |
751 | + "SubMenuName": "New Subscription Report", | |
752 | + "SubMenuUrl": "subscriptionreport", | |
753 | + "SubMenuStatus": "False" | |
754 | + }, | |
755 | + { | |
756 | + "SubMenuId": "215", | |
757 | + "SubMenuName": "Subscription Cancellation Report", | |
758 | + "SubMenuUrl": "subscriptioncancellationreport", | |
759 | + "SubMenuStatus": "False" | |
760 | + }, | |
761 | + { | |
762 | + "SubMenuId": "216", | |
763 | + "SubMenuName": "Net AD Subscription Report", | |
764 | + "SubMenuUrl": "netadsubscriptionreport", | |
765 | + "SubMenuStatus": "False" | |
766 | + }, | |
767 | + { | |
768 | + "SubMenuId": "217", | |
769 | + "SubMenuName": "Site License Usage Report", | |
770 | + "SubMenuUrl": "sitelicenseusagereport", | |
771 | + "SubMenuStatus": "False" | |
772 | + }, | |
773 | + { | |
774 | + "SubMenuId": "218", | |
775 | + "SubMenuName": "Discount Code Report", | |
776 | + "SubMenuUrl": "discountcodereport", | |
777 | + "SubMenuStatus": "False" | |
778 | + }, | |
779 | + { | |
780 | + "SubMenuId": "219", | |
781 | + "SubMenuName": "Image Export Report", | |
782 | + "SubMenuUrl": "imageexportreport", | |
783 | + "SubMenuStatus": "False" | |
784 | + } | |
785 | + | |
786 | + ] | |
787 | + }, | |
788 | + { | |
789 | + "HeaderMenuId": "105", | |
790 | + "HeaderMenuName": "Site Account", | |
791 | + "HeaderMenuStatus": "True", | |
792 | + "SubMenu": [ | |
793 | + { | |
794 | + "SubMenuId": "220", | |
795 | + "SubMenuName": "Add Building Level Account", | |
796 | + "SubMenuUrl": "sitelicenseaccount", | |
797 | + "SubMenuStatus": "True" | |
798 | + } | |
799 | + | |
800 | + ] | |
801 | + }, | |
802 | + { | |
803 | + "HeaderMenuId": "106", | |
804 | + "HeaderMenuName": "Settings", | |
805 | + "HeaderMenuStatus": "True", | |
806 | + "SubMenu": [ | |
807 | + { | |
808 | + "SubMenuId": "221", | |
809 | + "SubMenuName": "View-Update Profile", | |
810 | + "SubMenuUrl": "editlicensebasicsettings", | |
811 | + "SubMenuStatus": "True" | |
812 | + }, | |
813 | + { | |
814 | + "SubMenuId": "222", | |
815 | + "SubMenuName": "Manage Modesty Settings", | |
816 | + "SubMenuUrl": "licensemodestysettings", | |
817 | + "SubMenuStatus": "True" | |
818 | + }, | |
819 | + { | |
820 | + "SubMenuId": "223", | |
821 | + "SubMenuName": "Manage Module", | |
822 | + "SubMenuUrl": "licensemodulesettings", | |
823 | + "SubMenuStatus": "False" | |
824 | + } | |
825 | + | |
826 | + ] | |
827 | + } | |
828 | + | |
829 | + | |
830 | + ] | |
831 | + }, | |
832 | + { | |
833 | + "Id": "5", | |
834 | + "UserType": "Single User", | |
835 | + "HeaderMenu": [ | |
836 | + { | |
837 | + "HeaderMenuId": "100", | |
838 | + "HeaderMenuName": "Profile", | |
839 | + "HeaderMenuStatus": "True", | |
840 | + "SubMenu": [ | |
841 | + { | |
842 | + "SubMenuId": "200", | |
843 | + "SubMenuName": "Update Profile", | |
844 | + "SubMenuUrl": "updateuserprofile", | |
845 | + "SubMenuStatus": "True" | |
846 | + }, | |
847 | + { | |
848 | + "SubMenuId": "201", | |
849 | + "SubMenuName": "Change Password", | |
850 | + "SubMenuUrl": "changeuserpassword", | |
851 | + "SubMenuStatus": "True" | |
852 | + }, | |
853 | + { | |
854 | + "SubMenuId": "202", | |
855 | + "SubMenuName": "Change User ID", | |
856 | + "SubMenuUrl": "changeuserid", | |
857 | + "SubMenuStatus": "True" | |
858 | + } | |
859 | + ] | |
860 | + }, | |
861 | + { | |
862 | + "HeaderMenuId": "101", | |
863 | + "HeaderMenuName": "Licenses", | |
864 | + "HeaderMenuStatus": "False", | |
865 | + "SubMenu": [ | |
866 | + { | |
867 | + "SubMenuId": "203", | |
868 | + "SubMenuName": "Search License", | |
869 | + "SubMenuUrl": "searchlicense", | |
870 | + "SubMenuStatus": "False" | |
871 | + }, | |
872 | + { | |
873 | + "SubMenuId": "204", | |
874 | + "SubMenuName": "Add New License", | |
875 | + "SubMenuUrl": "addlicense", | |
876 | + "SubMenuStatus": "False" | |
877 | + } | |
878 | + | |
879 | + ] | |
880 | + }, | |
881 | + { | |
882 | + "HeaderMenuId": "102", | |
883 | + "HeaderMenuName": "Product Features", | |
884 | + "HeaderMenuStatus": "False", | |
885 | + "SubMenu": [ | |
886 | + { | |
887 | + "SubMenuId": "205", | |
888 | + "SubMenuName": "Manage Discount Code", | |
889 | + "SubMenuUrl": "managediscountcode", | |
890 | + "SubMenuStatus": "False" | |
891 | + }, | |
892 | + { | |
893 | + "SubMenuId": "206", | |
894 | + "SubMenuName": "Subscription Price", | |
895 | + "SubMenuUrl": "subscriptionprice", | |
896 | + "SubMenuStatus": "False" | |
897 | + } | |
898 | + | |
899 | + ] | |
900 | + }, | |
901 | + { | |
902 | + "HeaderMenuId": "103", | |
903 | + "HeaderMenuName": "Users", | |
904 | + "HeaderMenuStatus": "False", | |
905 | + "SubMenu": [ | |
906 | + { | |
907 | + "SubMenuId": "207", | |
908 | + "SubMenuName": "List User", | |
909 | + "SubMenuUrl": "users", | |
910 | + "SubMenuStatus": "False" | |
911 | + }, | |
912 | + { | |
913 | + "SubMenuId": "208", | |
914 | + "SubMenuName": "Add User", | |
915 | + "SubMenuUrl": "adduser", | |
916 | + "SubMenuStatus": "True" | |
917 | + }, | |
918 | + { | |
919 | + "SubMenuId": "209", | |
920 | + "SubMenuName": "Unblock User", | |
921 | + "SubMenuUrl": "unblockuser", | |
922 | + "SubMenuStatus": "False" | |
923 | + }, | |
924 | + { | |
925 | + "SubMenuId": "210", | |
926 | + "SubMenuName": "User Group", | |
927 | + "SubMenuUrl": "usergroup", | |
928 | + "SubMenuStatus": "False" | |
929 | + } | |
930 | + | |
931 | + ] | |
932 | + }, | |
933 | + { | |
934 | + "HeaderMenuId": "104", | |
935 | + "HeaderMenuName": "Reports", | |
936 | + "HeaderMenuStatus": "False", | |
937 | + "SubMenu": [ | |
938 | + { | |
939 | + "SubMenuId": "211", | |
940 | + "SubMenuName": "Usage Report", | |
941 | + "SubMenuUrl": "usagereport", | |
942 | + "SubMenuStatus": "False" | |
943 | + }, | |
944 | + { | |
945 | + "SubMenuId": "212", | |
946 | + "SubMenuName": "Customer Summary Report", | |
947 | + "SubMenuUrl": "customersummaryreport", | |
948 | + "SubMenuStatus": "False" | |
949 | + }, | |
950 | + { | |
951 | + "SubMenuId": "213", | |
952 | + "SubMenuName": "Expiring Subscription Report", | |
953 | + "SubMenuUrl": "expiringsubscriptionreport", | |
954 | + "SubMenuStatus": "False" | |
955 | + }, | |
956 | + { | |
957 | + "SubMenuId": "214", | |
958 | + "SubMenuName": "New Subscription Report", | |
959 | + "SubMenuUrl": "subscriptionreport", | |
960 | + "SubMenuStatus": "False" | |
961 | + }, | |
962 | + { | |
963 | + "SubMenuId": "215", | |
964 | + "SubMenuName": "Subscription Cancellation Report", | |
965 | + "SubMenuUrl": "subscriptioncancellationreport", | |
966 | + "SubMenuStatus": "False" | |
967 | + }, | |
968 | + { | |
969 | + "SubMenuId": "216", | |
970 | + "SubMenuName": "Net AD Subscription Report", | |
971 | + "SubMenuUrl": "netadsubscriptionreport", | |
972 | + "SubMenuStatus": "False" | |
973 | + }, | |
974 | + { | |
975 | + "SubMenuId": "217", | |
976 | + "SubMenuName": "Site License Usage Report", | |
977 | + "SubMenuUrl": "sitelicenseusagereport", | |
978 | + "SubMenuStatus": "False" | |
979 | + }, | |
980 | + { | |
981 | + "SubMenuId": "218", | |
982 | + "SubMenuName": "Discount Code Report", | |
983 | + "SubMenuUrl": "discountcodereport", | |
984 | + "SubMenuStatus": "False" | |
985 | + }, | |
986 | + { | |
987 | + "SubMenuId": "219", | |
988 | + "SubMenuName": "Image Export Report", | |
989 | + "SubMenuUrl": "imageexportreport", | |
990 | + "SubMenuStatus": "False" | |
991 | + } | |
992 | + | |
993 | + ] | |
994 | + }, | |
995 | + { | |
996 | + "HeaderMenuId": "105", | |
997 | + "HeaderMenuName": "Site Account", | |
998 | + "HeaderMenuStatus": "False", | |
999 | + "SubMenu": [ | |
1000 | + { | |
1001 | + "SubMenuId": "220", | |
1002 | + "SubMenuName": "Add Building Level Account", | |
1003 | + "SubMenuUrl": "sitelicenseaccount", | |
1004 | + "SubMenuStatus": "False" | |
1005 | + } | |
1006 | + | |
1007 | + ] | |
1008 | + }, | |
1009 | + { | |
1010 | + "HeaderMenuId": "106", | |
1011 | + "HeaderMenuName": "Settings", | |
1012 | + "HeaderMenuStatus": "False", | |
1013 | + "SubMenu": [ | |
1014 | + { | |
1015 | + "SubMenuId": "221", | |
1016 | + "SubMenuName": "View-Update Profile", | |
1017 | + "SubMenuUrl": "editlicensebasicsettings", | |
1018 | + "SubMenuStatus": "False" | |
1019 | + }, | |
1020 | + { | |
1021 | + "SubMenuId": "222", | |
1022 | + "SubMenuName": "Manage Modesty Settings", | |
1023 | + "SubMenuUrl": "licensemodestysettings", | |
1024 | + "SubMenuStatus": "False" | |
1025 | + }, | |
1026 | + { | |
1027 | + "SubMenuId": "223", | |
1028 | + "SubMenuName": "Manage Module", | |
1029 | + "SubMenuUrl": "licensemodulesettings", | |
1030 | + "SubMenuStatus": "False" | |
1031 | + } | |
1032 | + | |
1033 | + ] | |
1034 | + } | |
1035 | + | |
1036 | + | |
1037 | + ] | |
1038 | + }, | |
1039 | + { | |
1040 | + "Id": "6", | |
1041 | + "UserType": "Concurrent User", | |
1042 | + "HeaderMenu": [ | |
1043 | + { | |
1044 | + "HeaderMenuId": "100", | |
1045 | + "HeaderMenuName": "Profile", | |
1046 | + "HeaderMenuStatus": "True", | |
1047 | + "SubMenu": [ | |
1048 | + { | |
1049 | + "SubMenuId": "200", | |
1050 | + "SubMenuName": "Update Profile", | |
1051 | + "SubMenuUrl": "updateuserprofile", | |
1052 | + "SubMenuStatus": "True" | |
1053 | + }, | |
1054 | + { | |
1055 | + "SubMenuId": "201", | |
1056 | + "SubMenuName": "Change Password", | |
1057 | + "SubMenuUrl": "changeuserpassword", | |
1058 | + "SubMenuStatus": "True" | |
1059 | + }, | |
1060 | + { | |
1061 | + "SubMenuId": "202", | |
1062 | + "SubMenuName": "Change User ID", | |
1063 | + "SubMenuUrl": "changeuserid", | |
1064 | + "SubMenuStatus": "True" | |
1065 | + } | |
1066 | + ] | |
1067 | + }, | |
1068 | + { | |
1069 | + "HeaderMenuId": "101", | |
1070 | + "HeaderMenuName": "Licenses", | |
1071 | + "HeaderMenuStatus": "False", | |
1072 | + "SubMenu": [ | |
1073 | + { | |
1074 | + "SubMenuId": "203", | |
1075 | + "SubMenuName": "Search License", | |
1076 | + "SubMenuUrl": "searchlicense", | |
1077 | + "SubMenuStatus": "False" | |
1078 | + }, | |
1079 | + { | |
1080 | + "SubMenuId": "204", | |
1081 | + "SubMenuName": "Add New License", | |
1082 | + "SubMenuUrl": "addlicense", | |
1083 | + "SubMenuStatus": "False" | |
1084 | + } | |
1085 | + | |
1086 | + ] | |
1087 | + }, | |
1088 | + { | |
1089 | + "HeaderMenuId": "102", | |
1090 | + "HeaderMenuName": "Product Features", | |
1091 | + "HeaderMenuStatus": "False", | |
1092 | + "SubMenu": [ | |
1093 | + { | |
1094 | + "SubMenuId": "205", | |
1095 | + "SubMenuName": "Manage Discount Code", | |
1096 | + "SubMenuUrl": "managediscountcode", | |
1097 | + "SubMenuStatus": "False" | |
1098 | + }, | |
1099 | + { | |
1100 | + "SubMenuId": "206", | |
1101 | + "SubMenuName": "Subscription Price", | |
1102 | + "SubMenuUrl": "subscriptionprice", | |
1103 | + "SubMenuStatus": "False" | |
1104 | + } | |
1105 | + | |
1106 | + ] | |
1107 | + }, | |
1108 | + { | |
1109 | + "HeaderMenuId": "103", | |
1110 | + "HeaderMenuName": "Users", | |
1111 | + "HeaderMenuStatus": "False", | |
1112 | + "SubMenu": [ | |
1113 | + { | |
1114 | + "SubMenuId": "207", | |
1115 | + "SubMenuName": "List User", | |
1116 | + "SubMenuUrl": "users", | |
1117 | + "SubMenuStatus": "False" | |
1118 | + }, | |
1119 | + { | |
1120 | + "SubMenuId": "208", | |
1121 | + "SubMenuName": "Add User", | |
1122 | + "SubMenuUrl": "adduser", | |
1123 | + "SubMenuStatus": "True" | |
1124 | + }, | |
1125 | + { | |
1126 | + "SubMenuId": "209", | |
1127 | + "SubMenuName": "Unblock User", | |
1128 | + "SubMenuUrl": "unblockuser", | |
1129 | + "SubMenuStatus": "False" | |
1130 | + }, | |
1131 | + { | |
1132 | + "SubMenuId": "210", | |
1133 | + "SubMenuName": "User Group", | |
1134 | + "SubMenuUrl": "usergroup", | |
1135 | + "SubMenuStatus": "False" | |
1136 | + } | |
1137 | + | |
1138 | + ] | |
1139 | + }, | |
1140 | + { | |
1141 | + "HeaderMenuId": "104", | |
1142 | + "HeaderMenuName": "Reports", | |
1143 | + "HeaderMenuStatus": "False", | |
1144 | + "SubMenu": [ | |
1145 | + { | |
1146 | + "SubMenuId": "211", | |
1147 | + "SubMenuName": "Usage Report", | |
1148 | + "SubMenuUrl": "usagereport", | |
1149 | + "SubMenuStatus": "False" | |
1150 | + }, | |
1151 | + { | |
1152 | + "SubMenuId": "212", | |
1153 | + "SubMenuName": "Customer Summary Report", | |
1154 | + "SubMenuUrl": "customersummaryreport", | |
1155 | + "SubMenuStatus": "False" | |
1156 | + }, | |
1157 | + { | |
1158 | + "SubMenuId": "213", | |
1159 | + "SubMenuName": "Expiring Subscription Report", | |
1160 | + "SubMenuUrl": "expiringsubscriptionreport", | |
1161 | + "SubMenuStatus": "False" | |
1162 | + }, | |
1163 | + { | |
1164 | + "SubMenuId": "214", | |
1165 | + "SubMenuName": "New Subscription Report", | |
1166 | + "SubMenuUrl": "subscriptionreport", | |
1167 | + "SubMenuStatus": "False" | |
1168 | + }, | |
1169 | + { | |
1170 | + "SubMenuId": "215", | |
1171 | + "SubMenuName": "Subscription Cancellation Report", | |
1172 | + "SubMenuUrl": "subscriptioncancellationreport", | |
1173 | + "SubMenuStatus": "False" | |
1174 | + }, | |
1175 | + { | |
1176 | + "SubMenuId": "216", | |
1177 | + "SubMenuName": "Net AD Subscription Report", | |
1178 | + "SubMenuUrl": "netadsubscriptionreport", | |
1179 | + "SubMenuStatus": "False" | |
1180 | + }, | |
1181 | + { | |
1182 | + "SubMenuId": "217", | |
1183 | + "SubMenuName": "Site License Usage Report", | |
1184 | + "SubMenuUrl": "sitelicenseusagereport", | |
1185 | + "SubMenuStatus": "False" | |
1186 | + }, | |
1187 | + { | |
1188 | + "SubMenuId": "218", | |
1189 | + "SubMenuName": "Discount Code Report", | |
1190 | + "SubMenuUrl": "discountcodereport", | |
1191 | + "SubMenuStatus": "False" | |
1192 | + }, | |
1193 | + { | |
1194 | + "SubMenuId": "219", | |
1195 | + "SubMenuName": "Image Export Report", | |
1196 | + "SubMenuUrl": "imageexportreport", | |
1197 | + "SubMenuStatus": "False" | |
1198 | + } | |
1199 | + | |
1200 | + ] | |
1201 | + }, | |
1202 | + { | |
1203 | + "HeaderMenuId": "105", | |
1204 | + "HeaderMenuName": "Site Account", | |
1205 | + "HeaderMenuStatus": "False", | |
1206 | + "SubMenu": [ | |
1207 | + { | |
1208 | + "SubMenuId": "220", | |
1209 | + "SubMenuName": "Add Building Level Account", | |
1210 | + "SubMenuUrl": "sitelicenseaccount", | |
1211 | + "SubMenuStatus": "False" | |
1212 | + } | |
1213 | + | |
1214 | + ] | |
1215 | + }, | |
1216 | + { | |
1217 | + "HeaderMenuId": "106", | |
1218 | + "HeaderMenuName": "Settings", | |
1219 | + "HeaderMenuStatus": "False", | |
1220 | + "SubMenu": [ | |
1221 | + { | |
1222 | + "SubMenuId": "221", | |
1223 | + "SubMenuName": "View-Update Profile", | |
1224 | + "SubMenuUrl": "editlicensebasicsettings", | |
1225 | + "SubMenuStatus": "False" | |
1226 | + }, | |
1227 | + { | |
1228 | + "SubMenuId": "222", | |
1229 | + "SubMenuName": "Manage Modesty Settings", | |
1230 | + "SubMenuUrl": "licensemodestysettings", | |
1231 | + "SubMenuStatus": "False" | |
1232 | + }, | |
1233 | + { | |
1234 | + "SubMenuId": "223", | |
1235 | + "SubMenuName": "Manage Module", | |
1236 | + "SubMenuUrl": "licensemodulesettings", | |
1237 | + "SubMenuStatus": "False" | |
1238 | + } | |
1239 | + | |
1240 | + ] | |
1241 | + } | |
1242 | + | |
1243 | + | |
1244 | + ] | |
1245 | + }, | |
1246 | + { | |
1247 | + "Id": "7", | |
1248 | + "UserType": "Reseller- General Admin", | |
1249 | + "HeaderMenu": [ | |
1250 | + { | |
1251 | + "HeaderMenuId": "100", | |
1252 | + "HeaderMenuName": "Profile", | |
1253 | + "HeaderMenuStatus": "True", | |
1254 | + "SubMenu": [ | |
1255 | + { | |
1256 | + "SubMenuId": "200", | |
1257 | + "SubMenuName": "Update Profile", | |
1258 | + "SubMenuUrl": "updateuserprofile", | |
1259 | + "SubMenuStatus": "True" | |
1260 | + }, | |
1261 | + { | |
1262 | + "SubMenuId": "201", | |
1263 | + "SubMenuName": "Change Password", | |
1264 | + "SubMenuUrl": "changeuserpassword", | |
1265 | + "SubMenuStatus": "True" | |
1266 | + }, | |
1267 | + { | |
1268 | + "SubMenuId": "202", | |
1269 | + "SubMenuName": "Change User ID", | |
1270 | + "SubMenuUrl": "changeuserid", | |
1271 | + "SubMenuStatus": "True" | |
1272 | + } | |
1273 | + ] | |
1274 | + }, | |
1275 | + { | |
1276 | + "HeaderMenuId": "101", | |
1277 | + "HeaderMenuName": "Licenses", | |
1278 | + "HeaderMenuStatus": "True", | |
1279 | + "SubMenu": [ | |
1280 | + { | |
1281 | + "SubMenuId": "203", | |
1282 | + "SubMenuName": "Search License", | |
1283 | + "SubMenuUrl": "searchlicense", | |
1284 | + "SubMenuStatus": "True" | |
1285 | + }, | |
1286 | + { | |
1287 | + "SubMenuId": "204", | |
1288 | + "SubMenuName": "Add New License", | |
1289 | + "SubMenuUrl": "addlicense", | |
1290 | + "SubMenuStatus": "True" | |
1291 | + } | |
1292 | + | |
1293 | + ] | |
1294 | + }, | |
1295 | + { | |
1296 | + "HeaderMenuId": "102", | |
1297 | + "HeaderMenuName": "Product Features", | |
1298 | + "HeaderMenuStatus": "True", | |
1299 | + "SubMenu": [ | |
1300 | + { | |
1301 | + "SubMenuId": "205", | |
1302 | + "SubMenuName": "Manage Discount Code", | |
1303 | + "SubMenuUrl": "managediscountcode", | |
1304 | + "SubMenuStatus": "True" | |
1305 | + }, | |
1306 | + { | |
1307 | + "SubMenuId": "206", | |
1308 | + "SubMenuName": "Subscription Price", | |
1309 | + "SubMenuUrl": "subscriptionprice", | |
1310 | + "SubMenuStatus": "True" | |
1311 | + } | |
1312 | + | |
1313 | + ] | |
1314 | + }, | |
1315 | + { | |
1316 | + "HeaderMenuId": "103", | |
1317 | + "HeaderMenuName": "Users", | |
1318 | + "HeaderMenuStatus": "True", | |
1319 | + "SubMenu": [ | |
1320 | + { | |
1321 | + "SubMenuId": "207", | |
1322 | + "SubMenuName": "List User", | |
1323 | + "SubMenuUrl": "users", | |
1324 | + "SubMenuStatus": "True" | |
1325 | + }, | |
1326 | + { | |
1327 | + "SubMenuId": "208", | |
1328 | + "SubMenuName": "Add User", | |
1329 | + "SubMenuUrl": "adduser", | |
1330 | + "SubMenuStatus": "True" | |
1331 | + }, | |
1332 | + { | |
1333 | + "SubMenuId": "209", | |
1334 | + "SubMenuName": "Unblock User", | |
1335 | + "SubMenuUrl": "unblockuser", | |
1336 | + "SubMenuStatus": "True" | |
1337 | + }, | |
1338 | + { | |
1339 | + "SubMenuId": "210", | |
1340 | + "SubMenuName": "User Group", | |
1341 | + "SubMenuUrl": "usergroup", | |
1342 | + "SubMenuStatus": "True" | |
1343 | + } | |
1344 | + | |
1345 | + ] | |
1346 | + }, | |
1347 | + { | |
1348 | + "HeaderMenuId": "104", | |
1349 | + "HeaderMenuName": "Reports", | |
1350 | + "HeaderMenuStatus": "True", | |
1351 | + "SubMenu": [ | |
1352 | + { | |
1353 | + "SubMenuId": "211", | |
1354 | + "SubMenuName": "Usage Report", | |
1355 | + "SubMenuUrl": "usagereport", | |
1356 | + "SubMenuStatus": "True" | |
1357 | + }, | |
1358 | + { | |
1359 | + "SubMenuId": "212", | |
1360 | + "SubMenuName": "Customer Summary Report", | |
1361 | + "SubMenuUrl": "customersummaryreport", | |
1362 | + "SubMenuStatus": "True" | |
1363 | + }, | |
1364 | + { | |
1365 | + "SubMenuId": "213", | |
1366 | + "SubMenuName": "Expiring Subscription Report", | |
1367 | + "SubMenuUrl": "expiringsubscriptionreport", | |
1368 | + "SubMenuStatus": "True" | |
1369 | + }, | |
1370 | + { | |
1371 | + "SubMenuId": "214", | |
1372 | + "SubMenuName": "New Subscription Report", | |
1373 | + "SubMenuUrl": "subscriptionreport", | |
1374 | + "SubMenuStatus": "True" | |
1375 | + }, | |
1376 | + { | |
1377 | + "SubMenuId": "215", | |
1378 | + "SubMenuName": "Subscription Cancellation Report", | |
1379 | + "SubMenuUrl": "subscriptioncancellationreport", | |
1380 | + "SubMenuStatus": "True" | |
1381 | + }, | |
1382 | + { | |
1383 | + "SubMenuId": "216", | |
1384 | + "SubMenuName": "Net AD Subscription Report", | |
1385 | + "SubMenuUrl": "netadsubscriptionreport", | |
1386 | + "SubMenuStatus": "True" | |
1387 | + }, | |
1388 | + { | |
1389 | + "SubMenuId": "217", | |
1390 | + "SubMenuName": "Site License Usage Report", | |
1391 | + "SubMenuUrl": "sitelicenseusagereport", | |
1392 | + "SubMenuStatus": "True" | |
1393 | + }, | |
1394 | + { | |
1395 | + "SubMenuId": "218", | |
1396 | + "SubMenuName": "Discount Code Report", | |
1397 | + "SubMenuUrl": "discountcodereport", | |
1398 | + "SubMenuStatus": "False" | |
1399 | + }, | |
1400 | + { | |
1401 | + "SubMenuId": "219", | |
1402 | + "SubMenuName": "Image Export Report", | |
1403 | + "SubMenuUrl": "imageexportreport", | |
1404 | + "SubMenuStatus": "False" | |
1405 | + } | |
1406 | + | |
1407 | + ] | |
1408 | + }, | |
1409 | + { | |
1410 | + "HeaderMenuId": "105", | |
1411 | + "HeaderMenuName": "Site Account", | |
1412 | + "HeaderMenuStatus": "True", | |
1413 | + "SubMenu": [ | |
1414 | + { | |
1415 | + "SubMenuId": "220", | |
1416 | + "SubMenuName": "Add Building Level Account", | |
1417 | + "SubMenuUrl": "sitelicenseaccount", | |
1418 | + "SubMenuStatus": "True" | |
1419 | + } | |
1420 | + | |
1421 | + ] | |
1422 | + }, | |
1423 | + { | |
1424 | + "HeaderMenuId": "106", | |
1425 | + "HeaderMenuName": "Settings", | |
1426 | + "HeaderMenuStatus": "True", | |
1427 | + "SubMenu": [ | |
1428 | + { | |
1429 | + "SubMenuId": "221", | |
1430 | + "SubMenuName": "View-Update Profile", | |
1431 | + "SubMenuUrl": "editlicensebasicsettings", | |
1432 | + "SubMenuStatus": "True" | |
1433 | + }, | |
1434 | + { | |
1435 | + "SubMenuId": "222", | |
1436 | + "SubMenuName": "Manage Modesty Settings", | |
1437 | + "SubMenuUrl": "licensemodestysettings", | |
1438 | + "SubMenuStatus": "True" | |
1439 | + }, | |
1440 | + { | |
1441 | + "SubMenuId": "223", | |
1442 | + "SubMenuName": "Manage Module", | |
1443 | + "SubMenuUrl": "licensemodulesettings", | |
1444 | + "SubMenuStatus": "False" | |
1445 | + } | |
1446 | + | |
1447 | + ] | |
1448 | + } | |
1449 | + | |
1450 | + | |
1451 | + ] | |
1452 | + } | |
1453 | + ] | |
1454 | +} | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_DeleteLicense.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_DeleteLicense]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_DeleteLicense] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_DeleteLicense] | |
6 | + @iLicenseId int | |
7 | +AS | |
8 | +BEGIN | |
9 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
10 | + -- interfering with SELECT statements. | |
11 | + SET NOCOUNT ON; | |
12 | + BEGIN TRY | |
13 | + BEGIN TRANSACTION | |
14 | + DECLARE @iLicenseTypeId TINYINT | |
15 | + DECLARE @cGetDetail CURSOR | |
16 | + DECLARE @iSiteId INT | |
17 | + DECLARE @iUserId INT | |
18 | + DECLARE @sErrorStatus CHAR(2) | |
19 | + | |
20 | + SET @sErrorStatus = 'ok' | |
21 | + SET @iLicenseTypeId = (SELECT LicenseTypeId FROM License WHERE Id = @iLicenseId) | |
22 | + | |
23 | + -- check if license is site license | |
24 | + IF @iLicenseTypeId = 3 | |
25 | + BEGIN | |
26 | + -- delete records from tables which store information about building level account | |
27 | + SET @cGetDetail = CURSOR FAST_FORWARD FOR SELECT SiteId FROM SiteToLicenseEdition WHERE LicenseEditionId IN (SELECT Id FROM LicenseToEdition WHERE LicenseId = @iLicenseId) | |
28 | + OPEN @cGetDetail | |
29 | + FETCH NEXT FROM @cGetDetail INTO @iSiteId | |
30 | + WHILE @@FETCH_STATUS = 0 | |
31 | + BEGIN | |
32 | + DELETE FROM AIAUserToSite WHERE SiteId = @iSiteId | |
33 | + DELETE FROM SiteToLicenseEdition WHERE SiteId = @iSiteId | |
34 | + DELETE FROM Site WHERE Id = @iSiteId | |
35 | + | |
36 | + FETCH NEXT FROM @cGetDetail INTO @iSiteId | |
37 | + END | |
38 | + CLOSE @cGetDetail | |
39 | + END | |
40 | + -- delete records from tables which store information about user | |
41 | + SET @cGetDetail = CURSOR FAST_FORWARD FOR SELECT Userid FROM AIAUserToLicenseEdition WHERE LicenseEditionId IN (SELECT Id FROM LicenseToEdition WHERE LicenseId = @iLicenseId) | |
42 | + OPEN @cGetDetail | |
43 | + FETCH NEXT FROM @cGetDetail INTO @iUserId | |
44 | + WHILE @@FETCH_STATUS = 0 | |
45 | + BEGIN | |
46 | + DELETE FROM AIAUserToLicenseEdition WHERE Userid = @iUserId | |
47 | + DELETE FROM LoginDetail WHERE UserId = @iUserId | |
48 | + DELETE FROM SessionManager WHERE UserId = @iUserId | |
49 | + DELETE FROM IncorrectLoginAttempts WHERE UserId = @iUserId | |
50 | + DELETE FROM UserGroupToAIAUser WHERE UserId = @iUserId | |
51 | + DELETE FROM AIAUser WHERE Id = @iUserId | |
52 | + | |
53 | + FETCH NEXT FROM @cGetDetail INTO @iUserId | |
54 | + END | |
55 | + CLOSE @cGetDetail | |
56 | + -- delete records from tables which store information about the license | |
57 | + DELETE FROM UserGroup WHERE LicenseId = @iLicenseId | |
58 | + DELETE FROM LicenseToEdition WHERE LicenseId = @iLicenseId | |
59 | + DELETE FROM SingleUserDetail WHERE LicenseId = @iLicenseId | |
60 | + DELETE FROM LicenseSubscriptionDetail WHERE LicenseId = @iLicenseId | |
61 | + DELETE FROM License WHERE Id = @iLicenseId | |
62 | + | |
63 | + COMMIT TRANSACTION | |
64 | + SELECT @sErrorStatus as SPStatus | |
65 | + END TRY | |
66 | + BEGIN CATCH | |
67 | + IF @@TRANCOUNT > 0 | |
68 | + ROLLBACK TRANSACTION | |
69 | + SELECT Error_Message() as SPStatus | |
70 | + END CATCH | |
71 | + | |
72 | +END | |
73 | + | |
74 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_EC_GetAccountTypeList.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_EC_GetAccountTypeList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_EC_GetAccountTypeList] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_EC_GetAccountTypeList] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | +AS | |
8 | +BEGIN | |
9 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
10 | + -- interfering with SELECT statements. | |
11 | + SET NOCOUNT ON; | |
12 | + | |
13 | + -- Insert statements for procedure here | |
14 | +select Id,Title | |
15 | +from AccountType where IsActive=1 | |
16 | + | |
17 | +END | |
18 | + | |
19 | + | |
20 | + | |
21 | + | |
22 | + | |
23 | + | |
24 | + | |
25 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_EC_GetCountryList.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_EC_GetCountryList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_EC_GetCountryList] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_EC_GetCountryList] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | +AS | |
8 | +BEGIN | |
9 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
10 | + -- interfering with SELECT statements. | |
11 | + SET NOCOUNT ON; | |
12 | + | |
13 | +SELECT Id, CountryName | |
14 | +FROM Country | |
15 | +ORDER BY (case CountryCode when 'US' THEN 0 ELSE Id END) | |
16 | + | |
17 | +END | |
18 | + | |
19 | + | |
20 | + | |
21 | + | |
22 | + | |
23 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_EC_GetSecurityQuestionList.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_EC_GetSecurityQuestionList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_EC_GetSecurityQuestionList] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_EC_GetSecurityQuestionList] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | +AS | |
8 | +BEGIN | |
9 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
10 | + -- interfering with SELECT statements. | |
11 | + SET NOCOUNT ON; | |
12 | + | |
13 | + -- Insert statements for procedure here | |
14 | +select Id,Title | |
15 | +from SecurityQuestion | |
16 | + | |
17 | +END | |
18 | + | |
19 | + | |
20 | + | |
21 | + | |
22 | + | |
23 | + | |
24 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_EC_GetStateList.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_EC_GetStateList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_EC_GetStateList] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_EC_GetStateList] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | +AS | |
8 | +BEGIN | |
9 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
10 | + -- interfering with SELECT statements. | |
11 | + SET NOCOUNT ON; | |
12 | + | |
13 | + -- Insert statements for procedure here | |
14 | +select Id,StateName | |
15 | +from State | |
16 | + | |
17 | +END | |
18 | + | |
19 | + | |
20 | + | |
21 | + | |
22 | + | |
23 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetBlockedUserByAccNoAndType.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetBlockedUserByAccNoAndType]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetBlockedUserByAccNoAndType] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetBlockedUserByAccNoAndType] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @iUserTypeId tinyint, @iLicenseId int | |
8 | +AS | |
9 | +BEGIN | |
10 | + -- returns the metadata | |
11 | + IF 1=0 BEGIN | |
12 | + SET FMTONLY OFF | |
13 | + END | |
14 | + SELECT DISTINCT | |
15 | + AIAUser.Id, | |
16 | + AIAUser.FirstName, | |
17 | + AIAUser.LastName, | |
18 | + AIAUser.LoginId, | |
19 | + AIAUser.Password, | |
20 | + AIAUser.EmailId, | |
21 | + ISNULL(License.AccountNumber,'') AccountNumber, | |
22 | + IncorrectLoginAttempts.LoginTime | |
23 | + FROM | |
24 | + IncorrectLoginAttempts | |
25 | + INNER JOIN AIAUser ON IncorrectLoginAttempts.UserId = AIAUser.Id | |
26 | + INNER JOIN UserType ON AIAUser.UserTypeId = UserType.Id | |
27 | + LEFT JOIN AIAUserToLicenseEdition ON AIAUser.Id = AIAUserToLicenseEdition.UserId | |
28 | + LEFT JOIN LicenseToEdition ON AIAUserToLicenseEdition.LicenseEditionId = LicenseToEdition.Id | |
29 | + LEFT JOIN License ON LicenseToEdition.LicenseId = License.Id | |
30 | + WHERE | |
31 | + IncorrectLoginAttempts.CntIncorrectLogins >= 5 | |
32 | + AND UserType.Priority >= (SELECT UserType.Priority FROM UserType WHERE UserType.Id=@iUserTypeId) | |
33 | + AND ((@iLicenseId =0) OR (License.Id = @iLicenseId)) | |
34 | + AND License.IsActive = 1 | |
35 | +END | |
36 | + | |
37 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetCancelledLicenses.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetCancelledLicenses]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetCancelledLicenses] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetCancelledLicenses] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sFromDate varchar(20), @sToDate varchar(20), @iStartPrice numeric(14,2), @iEndPrice numeric(14,2), @iLicenseTypeId tinyint, | |
8 | + @iAccountTypeId tinyint , @sZip varchar(20) = '', @iStateId int, @iCountryId int,@pageNo int, @pageLength int, @recordCount int out | |
9 | +AS | |
10 | +BEGIN | |
11 | + | |
12 | + IF 1=0 BEGIN | |
13 | + SET FMTONLY OFF | |
14 | + END | |
15 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
16 | + SET NOCOUNT ON; | |
17 | + DECLARE @dtFromDate DATETIME | |
18 | + DECLARE @dtToDate DATETIME | |
19 | + DECLARE @cGetLicenseID CURSOR | |
20 | + DECLARE @iLicenseId INT | |
21 | + DECLARE @iLicenseSubscriptionDetail INT | |
22 | + DECLARE @sAccountNumber VARCHAR(50) | |
23 | + DECLARE @sLicenseeName VARCHAR(100) | |
24 | + DECLARE @sLicenseType VARCHAR(50) | |
25 | + DECLARE @sInstitutionName VARCHAR(100) | |
26 | + DECLARE @dtStartDate DATETIME | |
27 | + DECLARE @dtEndDate DATETIME | |
28 | + DECLARE @dtLicenseCreationDate DATETIME | |
29 | + DECLARE @mSubscriptionPrice MONEY | |
30 | + DECLARE @sAccountType VARCHAR(50) | |
31 | + DECLARE @sEdition VARCHAR(200) | |
32 | + DECLARE @iCardNumber INT | |
33 | + | |
34 | + | |
35 | + -- convert the datatype of fromdate & todate parameter to datetime | |
36 | + SELECT @dtFromDate = CONVERT(DATETIME,@sFromDate) | |
37 | + SELECT @dtToDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sToDate))) | |
38 | + | |
39 | + -- create a temporary table to store the desired results of cancelled licenses on the basis of parameter | |
40 | + CREATE TABLE #CancelledLicenseReport | |
41 | + ( | |
42 | + AccountNumber VARCHAR(50), | |
43 | + LicenseeName VARCHAR(100), | |
44 | + LicenseType VARCHAR(50), | |
45 | + InstitutionName VARCHAR(100), | |
46 | + Edition VARCHAR(200), | |
47 | + ValidFrom DATETIME, | |
48 | + ValidThrough DATETIME, | |
49 | + LicenseCreationDate DATETIME, | |
50 | + Price MONEY, | |
51 | + AccountType VARCHAR(50), | |
52 | + CardNumber INT | |
53 | + ) | |
54 | + | |
55 | + -- define the forward only, read-only cursor | |
56 | + SET @cGetLicenseID = CURSOR FAST_FORWARD | |
57 | + FOR | |
58 | + SELECT LicenseSubscriptionDetail.LicenseId, MAX(LicenseSubscriptionDetail.Id) | |
59 | + FROM LicenseSubscriptionDetail | |
60 | + INNER JOIN License ON License.Id = LicenseSubscriptionDetail.LicenseId | |
61 | + WHERE (License.CancellationDate BETWEEN @dtFromDate AND @dtToDate) AND | |
62 | + (TotalAmount >= (CASE WHEN @iStartPrice > 0 THEN @iStartPrice ELSE 0 END)) | |
63 | + AND (TotalAmount <= (CASE WHEN @iEndPrice = 0 THEN 0 WHEN @iEndPrice > 0 THEN @iEndPrice ELSE 9999999999 END)) | |
64 | + GROUP BY LicenseSubscriptionDetail.LicenseId | |
65 | + --HAVING (MAX(SubscriptionValidThrough) BETWEEN @dtFromDate AND @dtToDate) | |
66 | + | |
67 | + -- open & fetch the cursor variables into the local variables | |
68 | + OPEN @cGetLicenseID | |
69 | + FETCH NEXT FROM @cGetLicenseID INTO @iLicenseId, @iLicenseSubscriptionDetail | |
70 | + -- start of while loop | |
71 | + WHILE @@FETCH_STATUS = 0 | |
72 | + BEGIN | |
73 | + | |
74 | + SET @sEdition = '' | |
75 | + -- fetch the accountnumber, licenseename, licensetype, startdate, enddate, subscriptionprice, accountype of a license | |
76 | + SELECT @sAccountNumber = AccountNumber, @sLicenseeName = LicenseeName, @sLicenseType = LicenseType, | |
77 | + @sInstitutionName = InstitutionName, | |
78 | + @dtStartDate = SubscriptionValidFrom, @dtEndDate = SubscriptionValidThrough, | |
79 | + @dtLicenseCreationDate = CreationDate, | |
80 | + @mSubscriptionPrice = TotalAmount, @sAccountType = AccountType, @iCardNumber = CardNumber | |
81 | + FROM | |
82 | + ( | |
83 | + SELECT AccountNumber, (LicenseeFirstName+' '+LicenseeLastName) as LicenseeName, | |
84 | + LicenseType.Title as LicenseType, License.InstitutionName, | |
85 | + AccountType.Title as AccountType, LicenseSubscriptionDetail.TotalAmount, | |
86 | + LicenseSubscriptionDetail.SubscriptionValidFrom, LicenseSubscriptionDetail.SubscriptionValidThrough, | |
87 | + License.CreationDate, | |
88 | + DATEDIFF(dd,GETDATE(),License.CancellationDate) as DaysRemaining, (CASE WHEN License.CardNumber > 0 THEN License.CardNumber END) as CardNumber | |
89 | + FROM License | |
90 | + INNER JOIN LicenseType ON License.LicenseTypeId = LicenseType.Id | |
91 | + INNER JOIN AccountType ON License.AccountTypeId = AccountType.Id | |
92 | + INNER JOIN State ON License.StateId = State.Id | |
93 | + INNER JOIN Country ON License.CountryId = Country.Id | |
94 | + INNER JOIN LicenseSubscriptionDetail ON License.Id = LicenseSubscriptionDetail.LicenseId | |
95 | + WHERE License.IsActive = 0 | |
96 | + AND License.LicenseTypeId = (CASE WHEN @iLicenseTypeId > 0 THEN @iLicenseTypeId ELSE License.LicenseTypeId END) | |
97 | + AND License.AccountTypeId = (CASE WHEN @iAccountTypeId > 0 THEN @iAccountTypeId ELSE License.AccountTypeId END) | |
98 | + AND State.Id = (CASE WHEN @iStateId > 0 THEN @iStateId ELSE State.Id END) | |
99 | + AND Country.Id = (CASE WHEN @iCountryId > 0 THEN @iCountryId ELSE Country.Id END) | |
100 | + AND License.Zip = (CASE WHEN LEN(@sZip)>0 THEN @sZip ELSE License.Zip END) | |
101 | + AND LicenseSubscriptionDetail.Id = @iLicenseSubscriptionDetail | |
102 | + AND License.LicenseTypeId <> 5 | |
103 | + ) t1 | |
104 | + | |
105 | + -- check whether the above query returns any row | |
106 | + IF @@Rowcount > 0 | |
107 | + BEGIN | |
108 | + -- fetch all the editions mapped as a string with a license | |
109 | + SELECT @sEdition = Edition.Title + '; ' + @sEdition | |
110 | + FROM LicenseToEdition INNER JOIN Edition | |
111 | + ON LicenseToEdition.EditionId = Edition.Id | |
112 | + WHERE LicenseToEdition.LicenseId = @iLicenseId | |
113 | + -- remove the trailing comma-separator from the edition-string | |
114 | + --AMI SET @sEdition = SUBSTRING(@sEdition,1,LEN(@sEdition)-1); | |
115 | + IF LEN(@sEdition)> 1 | |
116 | + -- remove the trailing comma-separator from the edition-string | |
117 | + SET @sEdition = SUBSTRING(@sEdition,1,LEN(@sEdition)-1) | |
118 | + ELSE | |
119 | + SET @sEdition = @sEdition | |
120 | + | |
121 | + -- insert into the temporary table | |
122 | + INSERT INTO #CancelledLicenseReport | |
123 | + (AccountNumber,LicenseeName,LicenseType,InstitutionName,Edition,ValidFrom,ValidThrough,LicenseCreationDate,Price,AccountType,CardNumber) | |
124 | + VALUES(@sAccountNumber,@sLicenseeName,@sLicenseType,@sInstitutionName,@sEdition,@dtStartDate,@dtEndDate,@dtLicenseCreationDate,@mSubscriptionPrice,@sAccountType,@iCardNumber) | |
125 | + END | |
126 | + -- fetch the next record from cursor | |
127 | + FETCH NEXT FROM @cGetLicenseID INTO @iLicenseId,@iLicenseSubscriptionDetail | |
128 | + -- end of while loop | |
129 | + END | |
130 | + -- close the cursor to free up resources | |
131 | + CLOSE @cGetLicenseID | |
132 | + DEALLOCATE @cGetLicenseID | |
133 | + | |
134 | + -- Selecting the desired result from temporary table | |
135 | + --SELECT AccountNumber, LicenseeName, LicenseType,InstitutionName,AccountType, Edition, CONVERT(VARCHAR,ValidFrom,101) as StartDate, | |
136 | + -- CONVERT(VARCHAR,ValidThrough,101) as EndDate,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice, CardNumber | |
137 | + --FROM #CancelledLicenseReport ORDER BY AccountNumber | |
138 | + | |
139 | + | |
140 | + SELECT RowNum, AccountNumber, LicenseeName, LicenseType,InstitutionName,AccountType, Edition, StartDate, | |
141 | + EndDate,LicenseCreationDate,SubscriptionPrice, CardNumber | |
142 | + from ( | |
143 | + SELECT ROW_NUMBER() OVER (ORDER BY AccountNumber) AS RowNum, AccountNumber, LicenseeName, LicenseType,InstitutionName,AccountType, Edition, CONVERT(VARCHAR,ValidFrom,101) as StartDate, | |
144 | + CONVERT(VARCHAR,ValidThrough,101) as EndDate,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice, CardNumber | |
145 | + FROM #CancelledLicenseReport) as Tempt | |
146 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo | |
147 | + ORDER BY AccountNumber | |
148 | + | |
149 | + --Calculate total number of records | |
150 | + select @recordCount = count(ResultTable.AccountNumber) | |
151 | + from ( | |
152 | + SELECT AccountNumber, LicenseeName, LicenseType,InstitutionName,AccountType, Edition, CONVERT(VARCHAR,ValidFrom,101) as StartDate, | |
153 | + CONVERT(VARCHAR,ValidThrough,101) as EndDate,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice, CardNumber | |
154 | + FROM #CancelledLicenseReport) as ResultTable | |
155 | + | |
156 | + | |
157 | + -- Dropping the temporary table | |
158 | + DROP TABLE #CancelledLicenseReport | |
159 | +END | |
160 | + | |
161 | + | |
162 | + | |
163 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetCustomerSummary.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetCustomerSummary]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetCustomerSummary] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetCustomerSummary] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sAccoutNumber varchar(50)='', @sLicenseeFullName varchar(100)='', @iStartPrice numeric(14,2), @iEndPrice numeric(14,2), | |
8 | + @iLicenseType tinyint, @iAccountType tinyint, @sZip varchar(20) = '', @iState int, | |
9 | + @iCountry int,@pageNo int, @pageLength int, @recordCount int out | |
10 | +AS | |
11 | +BEGIN | |
12 | + IF 1=0 BEGIN | |
13 | + SET FMTONLY OFF | |
14 | + END | |
15 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
16 | + SET NOCOUNT ON | |
17 | + DECLARE @cGetLicenseDetails CURSOR | |
18 | + DECLARE @iLicenseId INT | |
19 | + DECLARE @sAccountNumber VARCHAR(50) | |
20 | + DECLARE @sLicenseeName VARCHAR(100) | |
21 | + DECLARE @iLicenseTypeId TINYINT | |
22 | + DECLARE @sLicenseType VARCHAR(50) | |
23 | + DECLARE @dtStartDate DATETIME | |
24 | + DECLARE @dtEndDate DATETIME | |
25 | + DECLARE @sAccountType VARCHAR(50) | |
26 | + DECLARE @iAccountTypeId TINYINT | |
27 | + DECLARE @sLicenseStatus VARCHAR(8) | |
28 | + DECLARE @sEdition VARCHAR(200) | |
29 | + DECLARE @bExists bit | |
30 | + DECLARE @sLicenseState VARCHAR(50) | |
31 | + DECLARE @sLicenseZip VARCHAR(20) | |
32 | + DECLARE @sLicenseCountry VARCHAR(50) | |
33 | + DECLARE @sInstitutionName VARCHAR(100) | |
34 | + DECLARE @dtLicenseCreationDate DATETIME | |
35 | + DECLARE @mSubscriptionPrice MONEY | |
36 | + DECLARE @iLicenseSubscriptionId INT | |
37 | + DECLARE @sEmailId VARCHAR(100) | |
38 | + DECLARE @iCardNumber INT | |
39 | + | |
40 | + -- create a temporary table to store the desired results of licenses on the basis of parameter | |
41 | + CREATE TABLE #CustomerReport | |
42 | + ( | |
43 | + AccountNumber VARCHAR(50), | |
44 | + LicenseeName VARCHAR(100), | |
45 | + LicenseType VARCHAR(50), | |
46 | + Edition VARCHAR(200), | |
47 | + Email VARCHAR(100), | |
48 | + ValidFrom DATETIME, | |
49 | + ValidThrough DATETIME, | |
50 | + AccountType VARCHAR(50), | |
51 | + LicenseStatus VARCHAR(8), | |
52 | + Price MONEY, | |
53 | + LicenseState VARCHAR(50), | |
54 | + LicenseZip VARCHAR(20), | |
55 | + LicenseCountry VARCHAR(50), | |
56 | + InstitutionName VARCHAR(100), | |
57 | + LicenseCreationDate DATETIME, | |
58 | + CardNumber INT | |
59 | + ) | |
60 | + | |
61 | + SET @sLicenseeFullName = REPLACE(@sLicenseeFullName,' ',' OR ') | |
62 | + | |
63 | + -- define the forward only, read-only cursor | |
64 | + SET @cGetLicenseDetails = CURSOR FAST_FORWARD | |
65 | + FOR | |
66 | + SELECT License.Id, License.AccountNumber, (License.LicenseeFirstName+' '+License.LicenseeLastName), | |
67 | + License.LicenseTypeId, License.AccountTypeId, License.EmailId, | |
68 | + (CASE License.IsActive WHEN 1 THEN 'Active' ELSE 'Inactive' END) as LicenseStatus, | |
69 | + State.StateName, License.Zip, Country.CountryName, | |
70 | + License.InstitutionName,License.CreationDate, | |
71 | + (CASE WHEN License.CardNumber > 0 THEN License.CardNumber END) as CardNumber | |
72 | + FROM License WITH (NOLOCK) | |
73 | + INNER JOIN State WITH (NOLOCK) ON License.StateId = State.Id | |
74 | + INNER JOIN Country WITH (NOLOCK) ON License.CountryId = Country.Id | |
75 | + WHERE | |
76 | + License.AccountNumber = (CASE WHEN LEN(@sAccoutNumber)>0 THEN @sAccoutNumber ELSE License.AccountNumber END) | |
77 | + AND License.LicenseTypeId = (CASE WHEN @iLicenseType > 0 THEN @iLicenseType ELSE License.LicenseTypeId END) | |
78 | + AND License.AccountTypeId = (CASE WHEN @iAccountType > 0 THEN @iAccountType ELSE License.AccountTypeId END) | |
79 | + AND State.Id = (CASE WHEN @iState > 0 THEN @iState ELSE State.Id END) | |
80 | + AND Country.Id = (CASE WHEN @iCountry > 0 THEN @iCountry ELSE Country.Id END) | |
81 | + AND License.Zip = (CASE WHEN LEN(@sZip)>0 THEN @sZip ELSE License.Zip END) | |
82 | + | |
83 | + -- open & fetch the cursor variables into the local variables | |
84 | + OPEN @cGetLicenseDetails | |
85 | + FETCH NEXT FROM @cGetLicenseDetails INTO @iLicenseId, @sAccountNumber, @sLicenseeName, | |
86 | + @iLicenseTypeId, @iAccountTypeId, @sEmailId, @sLicenseStatus, @sLicenseState, @sLicenseZip, @sLicenseCountry,@sInstitutionName,@dtLicenseCreationDate, @iCardNumber | |
87 | + | |
88 | + -- start of while loop | |
89 | + WHILE @@FETCH_STATUS = 0 | |
90 | + BEGIN | |
91 | + | |
92 | + SET @sEdition = '' | |
93 | + SET @bExists = 1 | |
94 | + -- fetch the latest license start/end date of a license on the basis of Subscription Start & End price if any | |
95 | + SELECT @dtStartDate = MAX(LicenseSubscriptionDetail.SubscriptionValidFrom), | |
96 | + @dtEndDate = MAX(LicenseSubscriptionDetail.SubscriptionValidThrough), | |
97 | + @iLicenseSubscriptionId = MAX(LicenseSubscriptionDetail.Id) | |
98 | + FROM LicenseSubscriptionDetail WITH (NOLOCK) | |
99 | + WHERE LicenseSubscriptionDetail.LicenseId = @iLicenseId | |
100 | + AND (TotalAmount >= (CASE WHEN @iStartPrice > 0 THEN @iStartPrice ELSE 0 END)) | |
101 | + AND (TotalAmount <= (CASE WHEN @iEndPrice = 0 THEN 0 WHEN @iEndPrice > 0 THEN @iEndPrice ELSE 9999999999 END)) | |
102 | + GROUP BY LicenseSubscriptionDetail.LicenseId | |
103 | + | |
104 | + | |
105 | + -- check whether the above query returns any row | |
106 | + IF @@Rowcount > 0 | |
107 | + BEGIN | |
108 | + | |
109 | + -- check whether the name of licensse matches the name entered by user | |
110 | + | |
111 | + IF LEN(@sLicenseeFullName) > 0 | |
112 | + BEGIN | |
113 | + SELECT @bExists = 1 | |
114 | + FROM License WITH (NOLOCK) | |
115 | + WHERE Id = @iLicenseId AND (LicenseeFirstName LIKE '%'+@sLicenseeFullName+'%' OR LicenseeLastName LIKE '%'+@sLicenseeFullName+'%') --CONTAINS((LicenseeFirstName,LicenseeLastName) | |
116 | + IF @@Rowcount = 0 | |
117 | + BEGIN | |
118 | + SET @bExists = 0 | |
119 | + END | |
120 | + END | |
121 | + | |
122 | + -- check whether the above query returns any row | |
123 | + IF @bExists = 1 | |
124 | + BEGIN | |
125 | + -- fetch the licensetype of the license | |
126 | + SELECT @sLicenseType = LicenseType.Title FROM LicenseType WITH (NOLOCK) | |
127 | + WHERE LicenseType.Id = @iLicenseTypeId | |
128 | + -- fetch the accounttype of the license | |
129 | + SELECT @sAccountType = AccountType.Title FROM AccountType WITH (NOLOCK) | |
130 | + WHERE AccountType.Id = @iAccountTypeId | |
131 | + | |
132 | + -- fetch all the editions mapped as a string with a license | |
133 | + SELECT @sEdition = Edition.Title + '; ' + @sEdition | |
134 | + FROM LicenseToEdition WITH (NOLOCK) INNER JOIN Edition WITH (NOLOCK) | |
135 | + ON LicenseToEdition.EditionId = Edition.Id | |
136 | + WHERE LicenseToEdition.LicenseId = @iLicenseId | |
137 | + | |
138 | + IF LEN(@sEdition)> 1 | |
139 | + -- remove the trailing comma-separator from the edition-string | |
140 | + SET @sEdition = SUBSTRING(@sEdition,1,LEN(@sEdition)-1) | |
141 | + ELSE | |
142 | + SET @sEdition = @sEdition | |
143 | + | |
144 | + -- fetch the price of the license | |
145 | + SELECT @mSubscriptionPrice = TotalAmount FROM LicenseSubscriptionDetail WITH (NOLOCK) | |
146 | + WHERE Id = @iLicenseSubscriptionId | |
147 | + | |
148 | + -- insert into the temporary table | |
149 | + INSERT INTO #CustomerReport | |
150 | + (AccountNumber, LicenseeName, LicenseType, Edition, Email, ValidFrom, ValidThrough, AccountType, LicenseStatus, Price, LicenseState, LicenseZip, LicenseCountry, InstitutionName, LicenseCreationDate, CardNumber) | |
151 | + VALUES(@sAccountNumber, @sLicenseeName, @sLicenseType, @sEdition, @sEmailId, @dtStartDate, @dtEndDate, @sAccountType, @sLicenseStatus, @mSubscriptionPrice, @sLicenseState, @sLicenseZip, @sLicenseCountry,@sInstitutionName,@dtLicenseCreationDate, @iCardNumber) | |
152 | + END | |
153 | + END | |
154 | + -- fetch the next record from cursor | |
155 | + FETCH NEXT FROM @cGetLicenseDetails INTO @iLicenseId, @sAccountNumber, @sLicenseeName, | |
156 | + @iLicenseTypeId, @iAccountTypeId, @sEmailId, @sLicenseStatus, @sLicenseState, @sLicenseZip, @sLicenseCountry, @sInstitutionName, @dtLicenseCreationDate, @iCardNumber | |
157 | + -- end of while loop | |
158 | + END | |
159 | + -- close the cursor to free up resources | |
160 | + CLOSE @cGetLicenseDetails | |
161 | + DEALLOCATE @cGetLicenseDetails | |
162 | + | |
163 | + -- Selecting the desired result from temporary table | |
164 | + SELECT RowNum, AccountNumber, LicenseeName, LicenseType, AccountType, Edition, Email, StartDate, | |
165 | + EndDate, LicenseStatus, Price, | |
166 | + LicenseZip, LicenseState, LicenseCountry,InstitutionName,LicenseCreationDate , CardNumber | |
167 | + from ( | |
168 | + SELECT ROW_NUMBER() OVER (ORDER BY AccountNumber) AS RowNum, AccountNumber, LicenseeName, LicenseType, AccountType, Edition, Email, CONVERT(VARCHAR,ValidFrom,101) as StartDate, | |
169 | + CONVERT(VARCHAR,ValidThrough,101) as EndDate, LicenseStatus, CONVERT(NUMERIC(14,2),Price) as Price, | |
170 | + LicenseZip, LicenseState, LicenseCountry,InstitutionName, CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate , CardNumber | |
171 | + FROM #CustomerReport WITH (NOLOCK) ) as usr | |
172 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo | |
173 | + ORDER BY AccountNumber | |
174 | + | |
175 | + --Calculate total number of records | |
176 | + select @recordCount = count(ResultTable.AccountNumber) | |
177 | + from ( | |
178 | + SELECT AccountNumber, LicenseeName, LicenseType, AccountType, Edition, Email, CONVERT(VARCHAR,ValidFrom,101) as StartDate, | |
179 | + CONVERT(VARCHAR,ValidThrough,101) as EndDate, LicenseStatus, CONVERT(NUMERIC(14,2),Price) as Price, | |
180 | + LicenseZip, LicenseState, LicenseCountry,InstitutionName, CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate , CardNumber | |
181 | + FROM #CustomerReport WITH (NOLOCK) ) as ResultTable | |
182 | + | |
183 | + -- Dropping the temporary table | |
184 | + DROP TABLE #CustomerReport | |
185 | +END | |
186 | + | |
187 | + | |
188 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetDiscountCodes.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetDiscountCodes]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetDiscountCodes] | |
3 | +GO | |
4 | +CREATE PROCEDURE [dbo].[usp_GetDiscountCodes] | |
5 | + -- Add the parameters for the stored procedure here | |
6 | + @sDiscountCode VARCHAR(255) = '', @sStartDate VARCHAR(20) = '', @sEndDate VARCHAR(20) = '', @pageNo int, @pageLength int, @recordCount int out | |
7 | +AS | |
8 | +BEGIN | |
9 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
10 | + -- interfering with SELECT statements. | |
11 | + SET NOCOUNT ON; | |
12 | + DECLARE @dtStartDate DATETIME, @dtEndDate DATETIME | |
13 | + | |
14 | + -- convert the datatype of startdate & enddate parameter to datetime | |
15 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
16 | + SELECT @dtEndDate = CONVERT(DATETIME,@sEndDate) | |
17 | + | |
18 | + --Get the records on the basis of parameters page length and page number rows | |
19 | + select LD.Id, LD.DiscountCode, LD.Percentage, LD.StartDate, LD.EndDate, LD.Status | |
20 | + from | |
21 | + (Select ROW_NUMBER() OVER (ORDER BY Id) AS RowNo, Id, DiscountCode, Percentage, CONVERT(VARCHAR(10),StartDate,101) as StartDate, | |
22 | + CONVERT(VARCHAR(10),EndDate,101) as EndDate, (CASE IsActive WHEN 1 THEN 'Active' ELSE 'Inactive' END) AS Status | |
23 | + FROM Discount WHERE StartDate >= (CASE WHEN LEN(@sStartDate) > 0 THEN @dtStartDate ELSE StartDate END) | |
24 | + AND EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE EndDate END) | |
25 | + AND DiscountCode like (CASE WHEN LEN(@sDiscountCode) > 0 THEN '%' + @sDiscountCode + '%' ELSE DiscountCode END)) | |
26 | + as LD | |
27 | + where | |
28 | + RowNo > @pageLength * (@pageNo - 1) AND | |
29 | + RowNo <= @pageLength * @pageNo | |
30 | + | |
31 | +--Calculate total number of records | |
32 | +select @recordCount = count(ResultTable.Id) from | |
33 | +(Select Id, DiscountCode, Percentage, CONVERT(VARCHAR(10),StartDate,101) as StartDate, | |
34 | +CONVERT(VARCHAR(10),EndDate,101) as EndDate, (CASE IsActive WHEN 1 THEN 'Active' ELSE 'Inactive' END) AS Status | |
35 | +FROM Discount WHERE StartDate >= (CASE WHEN LEN(@sStartDate) > 0 THEN @dtStartDate ELSE StartDate END) | |
36 | +AND EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE EndDate END) | |
37 | +AND DiscountCode like (CASE WHEN LEN(@sDiscountCode) > 0 THEN '%' + @sDiscountCode + '%' ELSE DiscountCode END)) as ResultTable; | |
38 | + | |
39 | +END | |
40 | + | |
41 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetDiscountReport.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetDiscountReport]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetDiscountReport] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetDiscountReport] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sStartDate VARCHAR(20) = '', @sEndDate VARCHAR(20) = '', @intDiscountID INT, | |
8 | + @sAccoutNumber VARCHAR(16)='', @pageNo int, @pageLength int, @recordCount int out | |
9 | +AS | |
10 | +BEGIN | |
11 | + | |
12 | + IF 1=0 BEGIN | |
13 | + SET FMTONLY OFF | |
14 | + END | |
15 | + | |
16 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
17 | + -- interfering with SELECT statements. | |
18 | + SET NOCOUNT ON; | |
19 | + DECLARE @dtStartDate DATETIME, @dtEndDate DATETIME | |
20 | + | |
21 | + -- convert the datatype of startdate & enddate parameter to datetime | |
22 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
23 | + SELECT @dtEndDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate))) | |
24 | + IF LEN(@sAccoutNumber) > 0 | |
25 | + BEGIN | |
26 | + | |
27 | + Select RowNum, DiscountCode, Percentage, StartDate, EndDate, DiscountStatus, TotalLicenses | |
28 | + from ( | |
29 | + SELECT ROW_NUMBER() OVER (ORDER BY Discount.StartDate) AS RowNum , Discount.DiscountCode, Discount.Percentage, CONVERT(VARCHAR(10),Discount.StartDate,101) as StartDate, | |
30 | + CONVERT(VARCHAR(10),Discount.EndDate,101) as EndDate, | |
31 | + (CASE Discount.IsActive WHEN 1 THEN 'Active' ELSE 'Inactive' END) AS DiscountStatus, | |
32 | + COUNT(DiscountToLicense.LicenseId) AS TotalLicenses | |
33 | + FROM Discount INNER JOIN DiscountToLicense ON Discount.Id = DiscountToLicense.DiscountId | |
34 | + INNER JOIN License ON License.Id = DiscountToLicense.LicenseId | |
35 | + WHERE Discount.StartDate >= (CASE WHEN LEN(@sStartDate) > 0 THEN @dtStartDate ELSE Discount.StartDate END) | |
36 | + AND Discount.EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE Discount.EndDate END) | |
37 | + AND Discount.Id = (CASE WHEN @intDiscountID > 0 THEN @intDiscountID ELSE Discount.Id END) | |
38 | + AND License.AccountNumber = @sAccoutNumber | |
39 | + GROUP BY Discount.DiscountCode, Discount.Percentage, Discount.StartDate, Discount.EndDate, Discount.IsActive) as usr | |
40 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo order by StartDate | |
41 | + | |
42 | + --Calculate total number of records | |
43 | + select @recordCount = count(ResultTable.DiscountCode) from ( | |
44 | + SELECT Discount.DiscountCode, Discount.Percentage, CONVERT(VARCHAR(10),Discount.StartDate,101) as StartDate, | |
45 | + CONVERT(VARCHAR(10),Discount.EndDate,101) as EndDate, | |
46 | + (CASE Discount.IsActive WHEN 1 THEN 'Active' ELSE 'Inactive' END) AS DiscountStatus, | |
47 | + COUNT(DiscountToLicense.LicenseId) AS TotalLicenses | |
48 | + FROM Discount INNER JOIN DiscountToLicense ON Discount.Id = DiscountToLicense.DiscountId | |
49 | + INNER JOIN License ON License.Id = DiscountToLicense.LicenseId | |
50 | + WHERE Discount.StartDate >= (CASE WHEN LEN(@sStartDate) > 0 THEN @dtStartDate ELSE Discount.StartDate END) | |
51 | + AND Discount.EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE Discount.EndDate END) | |
52 | + AND Discount.Id = (CASE WHEN @intDiscountID > 0 THEN @intDiscountID ELSE Discount.Id END) | |
53 | + AND License.AccountNumber = @sAccoutNumber | |
54 | + GROUP BY Discount.DiscountCode, Discount.Percentage, Discount.StartDate, Discount.EndDate, Discount.IsActive) as ResultTable; | |
55 | + | |
56 | + END | |
57 | + ELSE | |
58 | + BEGIN | |
59 | + | |
60 | + Select RowNum, DiscountCode, Percentage, StartDate, EndDate, DiscountStatus, TotalLicenses | |
61 | + from ( | |
62 | + SELECT ROW_NUMBER() OVER (ORDER BY Discount.StartDate) AS RowNum , Discount.DiscountCode, Discount.Percentage, CONVERT(VARCHAR(10),Discount.StartDate,101) as StartDate, | |
63 | + CONVERT(VARCHAR(10),Discount.EndDate,101) as EndDate, | |
64 | + (CASE Discount.IsActive WHEN 1 THEN 'Active' ELSE 'Inactive' END) AS DiscountStatus, | |
65 | + COUNT(DiscountToLicense.LicenseId) AS TotalLicenses | |
66 | + FROM Discount LEFT JOIN DiscountToLicense ON Discount.Id = DiscountToLicense.DiscountId | |
67 | + WHERE Discount.StartDate >= (CASE WHEN LEN(@sStartDate) > 0 THEN @dtStartDate ELSE Discount.StartDate END) | |
68 | + AND Discount.EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE Discount.EndDate END) | |
69 | + AND Discount.Id = (CASE WHEN @intDiscountID > 0 THEN @intDiscountID ELSE Discount.Id END) | |
70 | + GROUP BY Discount.DiscountCode, Discount.Percentage, Discount.StartDate, Discount.EndDate, Discount.IsActive) as usr | |
71 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo order by StartDate | |
72 | + | |
73 | + --Calculate total number of records | |
74 | + select @recordCount = count(ResultTable.DiscountCode) from ( | |
75 | + SELECT Discount.DiscountCode, Discount.Percentage, CONVERT(VARCHAR(10),Discount.StartDate,101) as StartDate, | |
76 | + CONVERT(VARCHAR(10),Discount.EndDate,101) as EndDate, | |
77 | + (CASE Discount.IsActive WHEN 1 THEN 'Active' ELSE 'Inactive' END) AS DiscountStatus, | |
78 | + COUNT(DiscountToLicense.LicenseId) AS TotalLicenses | |
79 | + FROM Discount LEFT JOIN DiscountToLicense ON Discount.Id = DiscountToLicense.DiscountId | |
80 | + WHERE Discount.StartDate >= (CASE WHEN LEN(@sStartDate) > 0 THEN @dtStartDate ELSE Discount.StartDate END) | |
81 | + AND Discount.EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE Discount.EndDate END) | |
82 | + AND Discount.Id = (CASE WHEN @intDiscountID > 0 THEN @intDiscountID ELSE Discount.Id END) | |
83 | + GROUP BY Discount.DiscountCode, Discount.Percentage, Discount.StartDate, Discount.EndDate, Discount.IsActive) as ResultTable; | |
84 | + | |
85 | + END | |
86 | + | |
87 | +END | |
88 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetExpiringLicenses.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetExpiringLicenses]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetExpiringLicenses] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetExpiringLicenses] --'2010-01-01','2020-01-01',0,1,0,0,'',0,0,1,10,0 | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sFromDate varchar(20), @sToDate varchar(20), @iStartPrice numeric(14,2), @iEndPrice numeric(14,2), | |
8 | + @iLicenseTypeId int, @iAccountTypeId int, @sZip varchar(20)=null, @iStateId int, @iCountryId int | |
9 | + ,@pageNo int, @pageLength int, @recordCount int out | |
10 | +AS | |
11 | +BEGIN | |
12 | + | |
13 | + IF 1=0 BEGIN | |
14 | + SET FMTONLY OFF | |
15 | + END | |
16 | + | |
17 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
18 | + SET NOCOUNT ON; | |
19 | + DECLARE @dtFromDate DATETIME | |
20 | + DECLARE @dtToDate DATETIME | |
21 | + DECLARE @cGetLicenseId CURSOR | |
22 | + DECLARE @iLicenseId INT | |
23 | + DECLARE @iLicenseSubscriptionDetail INT | |
24 | + DECLARE @sAccountNumber VARCHAR(50) | |
25 | + DECLARE @sLicenseeName VARCHAR(100) | |
26 | + DECLARE @sLicenseType VARCHAR(50) | |
27 | + DECLARE @sInstitutionName VARCHAR(100) | |
28 | + DECLARE @dtLicenseCreationDate DATETIME | |
29 | + DECLARE @dtStartDate DATETIME | |
30 | + DECLARE @dtEndDate DATETIME | |
31 | + DECLARE @mSubscriptionPrice MONEY | |
32 | + DECLARE @sAccountType VARCHAR(50) | |
33 | + DECLARE @sEdition VARCHAR(200) | |
34 | + DECLARE @iDaysRemaining INT | |
35 | + DECLARE @iCardNumber INT | |
36 | + | |
37 | + -- convert the datatype of fromdate & todate parameter to datetime | |
38 | + SELECT @dtFromDate = CONVERT(DATETIME,@sFromDate) | |
39 | + SELECT @dtToDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sToDate))) | |
40 | + | |
41 | + -- create a temporary table to store the desired results of license which are going to be expire on the basis of parameter | |
42 | + CREATE TABLE #ExpiringLicenseReport | |
43 | + ( | |
44 | + AccountNumber VARCHAR(50), | |
45 | + LicenseeName VARCHAR(100), | |
46 | + LicenseType VARCHAR(50), | |
47 | + InstitutionName VARCHAR(100), | |
48 | + Edition VARCHAR(200), | |
49 | + ValidFrom DATETIME, | |
50 | + ValidThrough DATETIME, | |
51 | + LicenseCreationDate DATETIME, | |
52 | + Price MONEY, | |
53 | + AccountType VARCHAR(50), | |
54 | + DaysRemaining INT, | |
55 | + CardNumber INT | |
56 | + ) | |
57 | + | |
58 | + -- define the forward only, read-only cursor | |
59 | + SET @cGetLicenseId = CURSOR FAST_FORWARD | |
60 | + FOR | |
61 | + SELECT LicenseSubscriptionDetail.LicenseId, MAX(LicenseSubscriptionDetail.Id) | |
62 | + FROM LicenseSubscriptionDetail WHERE | |
63 | + (TotalAmount >= (CASE WHEN @iStartPrice > 0 THEN @iStartPrice ELSE 0 END)) | |
64 | + AND (TotalAmount <= (CASE WHEN @iEndPrice = 0 THEN 0 WHEN @iEndPrice > 0 THEN @iEndPrice ELSE 9999999999 END)) | |
65 | + GROUP BY LicenseSubscriptionDetail.LicenseId | |
66 | + HAVING (MAX(SubscriptionValidThrough) BETWEEN @dtFromDate AND @dtToDate) | |
67 | + | |
68 | + -- open & fetch the cursor variables into the local variables | |
69 | + OPEN @cGetLicenseId | |
70 | + FETCH NEXT FROM @cGetLicenseId INTO @iLicenseId, @iLicenseSubscriptionDetail | |
71 | + -- start of while loop | |
72 | + WHILE @@FETCH_STATUS = 0 | |
73 | + BEGIN | |
74 | + | |
75 | + SET @sEdition = '' | |
76 | + -- fetch the accountnumber, licenseename, licensetype, startdate, enddate, subscriptionprice, accountype & days remaining to expire for a license | |
77 | + SELECT @sAccountNumber = AccountNumber, @sLicenseeName = LicenseeName, @sLicenseType = LicenseType, | |
78 | + @sInstitutionName = InstitutionName, @dtLicenseCreationDate = CreationDate, | |
79 | + @dtStartDate = SubscriptionValidFrom, @dtEndDate = SubscriptionValidThrough, | |
80 | + @mSubscriptionPrice = TotalAmount, @sAccountType = AccountType, @iDaysRemaining = DaysRemaining, @iCardNumber = CardNumber | |
81 | + FROM | |
82 | + ( | |
83 | + SELECT AccountNumber, (LicenseeFirstName+' '+LicenseeLastName) as LicenseeName, | |
84 | + LicenseType.Title as LicenseType, AccountType.Title as AccountType, | |
85 | + License.InstitutionName,License.CreationDate, | |
86 | + LicenseSubscriptionDetail.TotalAmount, | |
87 | + LicenseSubscriptionDetail.SubscriptionValidFrom, LicenseSubscriptionDetail.SubscriptionValidThrough, | |
88 | + DATEDIFF(dd,GETDATE(),LicenseSubscriptionDetail.SubscriptionValidThrough) as DaysRemaining, (CASE WHEN License.CardNumber > 0 THEN License.CardNumber END) as CardNumber | |
89 | + FROM License | |
90 | + INNER JOIN LicenseType ON License.LicenseTypeId = LicenseType.Id | |
91 | + INNER JOIN AccountType ON License.AccountTypeId = AccountType.Id | |
92 | + INNER JOIN LicenseSubscriptionDetail ON License.Id = LicenseSubscriptionDetail.LicenseId | |
93 | + INNER JOIN State ON License.StateId = State.Id | |
94 | + INNER JOIN Country ON License.CountryId = Country.Id | |
95 | + WHERE License.IsActive = 1 | |
96 | + AND License.LicenseTypeId = (CASE WHEN @iLicenseTypeId > 0 THEN @iLicenseTypeId ELSE License.LicenseTypeId END) | |
97 | + AND License.AccountTypeId = (CASE WHEN @iAccountTypeId > 0 THEN @iAccountTypeId ELSE License.AccountTypeId END) | |
98 | + AND State.Id = (CASE WHEN @iStateId > 0 THEN @iStateId ELSE State.Id END) | |
99 | + AND Country.Id = (CASE WHEN @iCountryId > 0 THEN @iCountryId ELSE Country.Id END) | |
100 | + AND (@sZip is NULL or License.Zip = (CASE WHEN LEN(@sZip)>0 THEN @sZip ELSE License.Zip END)) | |
101 | + AND LicenseSubscriptionDetail.Id = @iLicenseSubscriptionDetail | |
102 | + AND License.LicenseTypeId <> 5 | |
103 | + ) t1 | |
104 | + WHERE DaysRemaining>=0 | |
105 | + -- check whether the above query returns any row | |
106 | + IF @@Rowcount > 0 | |
107 | + BEGIN | |
108 | + -- fetch all the editions mapped as a string with a license | |
109 | + SELECT @sEdition = Edition.Title + '; ' + @sEdition | |
110 | + FROM LicenseToEdition INNER JOIN Edition | |
111 | + ON LicenseToEdition.EditionId = Edition.Id | |
112 | + WHERE LicenseToEdition.LicenseId = @iLicenseId | |
113 | + -- remove the trailing comma-separator from the edition-string | |
114 | + SET @sEdition = SUBSTRING(@sEdition,1,LEN(@sEdition)-1); | |
115 | + | |
116 | + -- insert into the temporary table | |
117 | + INSERT INTO #ExpiringLicenseReport | |
118 | + (AccountNumber, LicenseeName, LicenseType,InstitutionName, Edition, ValidFrom, ValidThrough,LicenseCreationDate, Price, AccountType, DaysRemaining,CardNumber) | |
119 | + VALUES(@sAccountNumber,@sLicenseeName,@sLicenseType,@sInstitutionName,@sEdition,@dtStartDate,@dtEndDate,@dtLicenseCreationDate, @mSubscriptionPrice,@sAccountType,@iDaysRemaining,@iCardNumber) | |
120 | + END | |
121 | + -- fetch the next record from cursor | |
122 | + FETCH NEXT FROM @cGetLicenseId INTO @iLicenseId,@iLicenseSubscriptionDetail | |
123 | + -- end of while loop | |
124 | + END | |
125 | + -- close the cursor to free up resources | |
126 | + CLOSE @cGetLicenseId | |
127 | + DEALLOCATE @cGetLicenseId | |
128 | + | |
129 | + -- Selecting the desired result from temporary table | |
130 | + --SELECT AccountNumber,LicenseeName,LicenseType,InstitutionName,Edition, | |
131 | + --CONVERT(VARCHAR,ValidFrom,101) as StartDate,CONVERT(VARCHAR,ValidThrough,101) as EndDate, | |
132 | + --CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, | |
133 | + --CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice,AccountType,DaysRemaining, CardNumber | |
134 | + --FROM #ExpiringLicenseReport ORDER BY AccountNumber | |
135 | + | |
136 | + | |
137 | + SELECT RowNum, AccountNumber,LicenseeName,LicenseType,InstitutionName,Edition, | |
138 | + StartDate,EndDate,LicenseCreationDate,SubscriptionPrice,AccountType,DaysRemaining, CardNumber | |
139 | + from ( | |
140 | + SELECT ROW_NUMBER() OVER (ORDER BY AccountNumber) AS RowNum, AccountNumber,LicenseeName,LicenseType,InstitutionName,Edition, | |
141 | + CONVERT(VARCHAR,ValidFrom,101) as StartDate,CONVERT(VARCHAR,ValidThrough,101) as EndDate, | |
142 | + CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, | |
143 | + CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice,AccountType,DaysRemaining, CardNumber | |
144 | + FROM #ExpiringLicenseReport) as Tempt | |
145 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo | |
146 | + ORDER BY AccountNumber | |
147 | + | |
148 | + --Calculate total number of records | |
149 | + select @recordCount = count(ResultTable.AccountNumber) | |
150 | + from ( | |
151 | + SELECT AccountNumber,LicenseeName,LicenseType,InstitutionName,Edition, | |
152 | + CONVERT(VARCHAR,ValidFrom,101) as StartDate,CONVERT(VARCHAR,ValidThrough,101) as EndDate, | |
153 | + CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, | |
154 | + CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice,AccountType,DaysRemaining, CardNumber | |
155 | + FROM #ExpiringLicenseReport ) as ResultTable | |
156 | + | |
157 | + -- Dropping the temporary table | |
158 | + DROP TABLE #ExpiringLicenseReport | |
159 | +END | |
160 | + | |
161 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetExportedImageDetails.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetExportedImageDetails]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetExportedImageDetails] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetExportedImageDetails] | |
6 | + @sStartDate varchar(20) = '', @sEndDate varchar(20) = '', @sAccoutNumber varchar(50)='', @pageNo int, @pageLength int, @recordCount int out | |
7 | +AS | |
8 | +BEGIN | |
9 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
10 | + -- interfering with SELECT statements. | |
11 | + SET NOCOUNT ON; | |
12 | + | |
13 | + Select RowNum, LicenseId, ExportedDate, ImageName, AccountNumber, OriginalFileName, Title, ModuleName, ExportLimit, UserName, imageCount | |
14 | + from ( | |
15 | + SELECT ROW_NUMBER() OVER (ORDER BY LID.LicenseId) AS RowNum , LID.LicenseId, | |
16 | + LID.ExportedDate, | |
17 | + LID.ImageName, | |
18 | + L.AccountNumber, | |
19 | + LID.OriginalFileName, | |
20 | + LID.Title, | |
21 | + LID.ModuleName, | |
22 | + (SELECT TOP(1) LSD.NoofImages FROM LicenseSubscriptionDetail LSD WHERE LSD.LicenseId = LID.LicenseId order by LSD.SubscriptionValidFrom desc) as ExportLimit, | |
23 | + USR.FirstName + ' '+ USR.LastName as UserName, | |
24 | + (SELECT COUNT(LID1.Id) FROM LicenseImageExportDetail LID1 WHERE LID1.LicenseId = LID.LicenseId group by LID1.LicenseId) as imageCount | |
25 | + FROM | |
26 | + LicenseImageExportDetail LID | |
27 | + LEFT JOIN License L ON LID.LicenseId =L.Id | |
28 | + INNER JOIN AIAUser USR ON LID.UserId = USR.Id | |
29 | + WHERE | |
30 | + ((LEN(@sStartDate)=0) OR (LID.ExportedDate >= (CONVERT(DATETIME,@sStartDate)))) AND | |
31 | + ((LEN(@sEndDate)=0) OR (LID.ExportedDate <= (DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate)))))) AND | |
32 | + ((LEN(@sAccoutNumber)=0) OR (AccountNumber LIKE '%'+@sAccoutNumber+'%'))) as usr | |
33 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo order by LicenseId | |
34 | + | |
35 | + --Calculate total number of records | |
36 | + select @recordCount = count(ResultTable.LicenseId) from ( | |
37 | + SELECT LID.LicenseId, | |
38 | + LID.ExportedDate, | |
39 | + LID.ImageName, | |
40 | + L.AccountNumber, | |
41 | + LID.OriginalFileName, | |
42 | + LID.Title, | |
43 | + LID.ModuleName, | |
44 | + (SELECT TOP(1) LSD.NoofImages FROM LicenseSubscriptionDetail LSD WHERE LSD.LicenseId = LID.LicenseId order by LSD.SubscriptionValidFrom desc) as ExportLimit, | |
45 | + USR.FirstName + ' '+ USR.LastName as UserName, | |
46 | + (SELECT COUNT(LID1.Id) FROM LicenseImageExportDetail LID1 WHERE LID1.LicenseId = LID.LicenseId group by LID1.LicenseId) as imageCount | |
47 | + FROM | |
48 | + LicenseImageExportDetail LID | |
49 | + LEFT JOIN License L ON LID.LicenseId =L.Id | |
50 | + INNER JOIN AIAUser USR ON LID.UserId = USR.Id | |
51 | + WHERE | |
52 | + ((LEN(@sStartDate)=0) OR (LID.ExportedDate >= (CONVERT(DATETIME,@sStartDate)))) AND | |
53 | + ((LEN(@sEndDate)=0) OR (LID.ExportedDate <= (DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate)))))) AND | |
54 | + ((LEN(@sAccoutNumber)=0) OR (AccountNumber LIKE '%'+@sAccoutNumber+'%'))) as ResultTable; | |
55 | + | |
56 | +END | |
57 | + | |
58 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetModuleStatusByLicenseId.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetModuleStatusByLicenseId]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetModuleStatusByLicenseId] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetModuleStatusByLicenseId] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @iLicenseId int | |
8 | +AS | |
9 | +BEGIN | |
10 | + IF 1=0 BEGIN | |
11 | + SET FMTONLY OFF | |
12 | + END | |
13 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
14 | + -- interfering with SELECT statements. | |
15 | + SET NOCOUNT ON; | |
16 | + | |
17 | + -- Insert statements for procedure here | |
18 | + SELECT ResourceModule.Id,ResourceModule.Title,ModuleToLicense.Status | |
19 | + FROM ResourceModule | |
20 | + INNER JOIN ModuleToLicense ON ResourceModule.Id = ModuleToLicense.ModuleId | |
21 | + WHERE ModuleToLicense.LicenseId = @iLicenseId | |
22 | +END | |
23 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetNetAdSummaryReport.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetNetAdSummaryReport]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetNetAdSummaryReport] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetNetAdSummaryReport] --'2015-05-01','2018-05-01',0,0,0,1,100,1000 | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + -- FromDate & ToDate are mandatory | |
8 | + @sFromDate varchar(20), @sToDate varchar(20), @iStartPrice numeric(14,2), @iEndPrice numeric(14,2), @iLicenseTypeId tinyint, | |
9 | + @pageNo int, @pageLength int, @recordCount int out | |
10 | +AS | |
11 | +BEGIN | |
12 | + | |
13 | + IF 1=0 BEGIN | |
14 | + SET FMTONLY OFF | |
15 | + END | |
16 | + | |
17 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
18 | + SET NOCOUNT ON; | |
19 | + DECLARE @dtFromDate DATETIME | |
20 | + DECLARE @dtToDate DATETIME | |
21 | + DECLARE @cGetSummary CURSOR | |
22 | + DECLARE @iLicenseId INT | |
23 | + DECLARE @iLicenseSubscriptioId INT | |
24 | + DECLARE @iActiveSubscription INT | |
25 | + DECLARE @iRenewSubscription INT | |
26 | + DECLARE @iCancelSubscription INT | |
27 | + DECLARE @iNetAdSubscription INT | |
28 | + DECLARE @sLicenseType VARCHAR(50) | |
29 | + DECLARE @sInstitutionname VARCHAR(100) | |
30 | + DECLARE @dtLicenseCreationDate DATETIME | |
31 | + DECLARE @sAccountType VARCHAR(50) | |
32 | + DECLARE @IsActive BIT | |
33 | + DECLARE @sRenew BIT | |
34 | + | |
35 | + -- set the default parameters to 0 | |
36 | + SET @iActiveSubscription = 0 | |
37 | + SET @iRenewSubscription = 0 | |
38 | + SET @iCancelSubscription = 0 | |
39 | + | |
40 | + -- convert the datatype of fromdate & todate parameter to datetime | |
41 | + SELECT @dtFromDate = CONVERT(DATETIME,@sFromDate) | |
42 | + SELECT @dtToDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sToDate))) | |
43 | + | |
44 | + -- create a temporary table to store the first-level of result shown in the netad subscription report on the basis of parameter | |
45 | + CREATE TABLE #NetAdSummaryReport | |
46 | + ( | |
47 | + LicenseType VARCHAR(50), | |
48 | + AccountType VARCHAR(50), | |
49 | + InstitutionName VARCHAR(100), | |
50 | + LicenseCreationDate DATETIME, | |
51 | + IsActive BIT, | |
52 | + IsRenew BIT | |
53 | + ) | |
54 | + CREATE CLUSTERED INDEX IK_NetAdSummaryReport_1 ON #NetAdSummaryReport (LicenseType, AccountType) | |
55 | + CREATE NONCLUSTERED INDEX IK_NetAdSummaryReport_2 ON #NetAdSummaryReport (IsActive) | |
56 | + | |
57 | + -- create a temporary table | |
58 | + CREATE TABLE #NetAdResult | |
59 | + ( | |
60 | + LicenseType VARCHAR(50), | |
61 | + AccountType VARCHAR(50), | |
62 | + InstitutionName VARCHAR(100), | |
63 | + LicenseCreationDate DATETIME, | |
64 | + ActiveSubscription INT, | |
65 | + RenewSubscription INT, | |
66 | + InActiveSubscription INT, | |
67 | + NetAdSubscription INT | |
68 | + ) | |
69 | + | |
70 | + -- define the forward only, read-only cursor | |
71 | + SET @cGetSummary = CURSOR FAST_FORWARD | |
72 | + FOR | |
73 | + SELECT License.Id, LicenseSubscriptionDetail.Id | |
74 | + FROM LicenseSubscriptionDetail | |
75 | + INNER JOIN License ON LicenseSubscriptionDetail.LicenseId = License.Id WHERE | |
76 | + ((License.CancellationDate BETWEEN @dtFromDate AND @dtToDate AND License.IsActive = 0 ) | |
77 | + OR (License.CreationDate BETWEEN @dtFromDate AND @dtToDate ) | |
78 | + OR (RenewalDate BETWEEN @dtFromDate AND @dtToDate)) | |
79 | + AND License.LicenseTypeId = (CASE WHEN @iLicenseTypeId > 0 THEN @iLicenseTypeId ELSE License.LicenseTypeId END) | |
80 | + AND (TotalAmount >= (CASE WHEN @iStartPrice > 0 THEN @iStartPrice ELSE 0 END)) | |
81 | + AND (TotalAmount <= (CASE WHEN @iEndPrice = 0 THEN 0 WHEN @iEndPrice > 0 THEN @iEndPrice ELSE 9999999999 END)) | |
82 | + AND License.LicenseTypeId <> 5 | |
83 | + GROUP BY License.Id, LicenseSubscriptionDetail.Id | |
84 | + | |
85 | + | |
86 | + -- open & fetch the cursor variables into the local variables | |
87 | + OPEN @cGetSummary | |
88 | + FETCH NEXT FROM @cGetSummary INTO @iLicenseId, @iLicenseSubscriptioId | |
89 | + -- start of while loop | |
90 | + WHILE @@FETCH_STATUS = 0 | |
91 | + BEGIN | |
92 | + | |
93 | + -- fetch the licensetype, accountype & the status of a license | |
94 | + SELECT @sLicenseType = LicenseType.Title, @sAccountType = AccountType.Title, | |
95 | + @sInstitutionname = License.InstitutionName, @dtLicenseCreationDate = License.CreationDate, | |
96 | + @IsActive = License.IsActive, | |
97 | + @sRenew = (CASE WHEN LicenseSubscriptionDetail.RenewalDate IS NULL THEN 0 ELSE 1 END) | |
98 | + FROM License | |
99 | + INNER JOIN LicenseType ON License.LicenseTypeId = LicenseType.Id | |
100 | + INNER JOIN AccountType ON License.AccountTypeId = AccountType.Id | |
101 | + INNER JOIN LicenseSubscriptionDetail ON LicenseSubscriptionDetail.LicenseId = License.Id | |
102 | + WHERE License.Id = @iLicenseId | |
103 | + AND LicenseSubscriptionDetail.Id = @iLicenseSubscriptioId | |
104 | + | |
105 | + | |
106 | + -- check whether the above query returns any row | |
107 | + IF @@Rowcount > 0 | |
108 | + BEGIN | |
109 | + | |
110 | + IF @IsActive = 1 | |
111 | + BEGIN | |
112 | + IF @sRenew = 1 | |
113 | + BEGIN | |
114 | + SET @iRenewSubscription = @iRenewSubscription + 1 | |
115 | + END | |
116 | + ELSE | |
117 | + BEGIN | |
118 | + SET @iActiveSubscription = @iActiveSubscription + 1 | |
119 | + END | |
120 | + END | |
121 | + ELSE | |
122 | + BEGIN | |
123 | + IF @sRenew = 1 | |
124 | + BEGIN | |
125 | + SET @iRenewSubscription = @iRenewSubscription + 1 | |
126 | + END | |
127 | + ELSE | |
128 | + BEGIN | |
129 | + SET @iCancelSubscription = @iCancelSubscription + 1 | |
130 | + END | |
131 | + END | |
132 | + | |
133 | + -- insert into the temporary table | |
134 | + INSERT INTO #NetAdSummaryReport | |
135 | + (LicenseType,AccountType,InstitutionName,LicenseCreationDate,IsActive,IsRenew) | |
136 | + VALUES(@sLicenseType,@sAccountType,@sInstitutionname,@dtLicenseCreationDate,@IsActive,@sRenew) | |
137 | + END | |
138 | + -- fetch the next record from cursor | |
139 | + FETCH NEXT FROM @cGetSummary INTO @iLicenseId, @iLicenseSubscriptioId | |
140 | + -- end of while loop | |
141 | + END | |
142 | + -- close the cursor to free up resources | |
143 | + CLOSE @cGetSummary | |
144 | + DEALLOCATE @cGetSummary | |
145 | + | |
146 | + -- Selecting the desired result from temporary table | |
147 | + INSERT INTO #NetAdResult (LicenseType, AccountType,InstitutionName,LicenseCreationDate,ActiveSubscription, RenewSubscription, InActiveSubscription, | |
148 | + NetAdSubscription) | |
149 | + SELECT LicenseType,AccountType,MAX(InstitutionName) as InstitutionName, MAX(LicenseCreationDate) as LicenseCreationDate,(SELECT COUNT(1) FROM #NetAdSummaryReport | |
150 | + WHERE LicenseType = N1.LicenseType AND AccountType = N1.AccountType AND IsActive = 1 AND IsRenew = 0) as ActiveSubscription, | |
151 | + (SELECT COUNT(1) FROM #NetAdSummaryReport | |
152 | + WHERE LicenseType = N1.LicenseType AND AccountType = N1.AccountType AND IsRenew = 1) as RenewSubscription, | |
153 | + (SELECT COUNT(1) FROM #NetAdSummaryReport | |
154 | + WHERE LicenseType = N1.LicenseType AND AccountType = N1.AccountType AND IsActive = 0 AND IsRenew = 0) as InActiveSubscription, | |
155 | + ((SELECT COUNT(1) FROM #NetAdSummaryReport | |
156 | + WHERE LicenseType = N1.LicenseType AND AccountType = N1.AccountType AND IsActive = 1 AND IsRenew = 0) + (SELECT COUNT(1) FROM #NetAdSummaryReport | |
157 | + WHERE LicenseType = N1.LicenseType AND AccountType = N1.AccountType AND IsRenew = 1) - (SELECT COUNT(1) FROM #NetAdSummaryReport | |
158 | + WHERE LicenseType = N1.LicenseType AND AccountType = N1.AccountType AND IsActive = 0)) as NetAdSubscription | |
159 | + FROM #NetAdSummaryReport N1 GROUP BY LicenseType,AccountType | |
160 | + | |
161 | + -- to show the sum of active, renew, cancel & netad subscriptions | |
162 | + if((Select COUNT(*) from #NetAdResult)>0) | |
163 | + begin | |
164 | + INSERT INTO #NetAdResult (LicenseType,LicenseCreationDate, ActiveSubscription, RenewSubscription, InActiveSubscription, | |
165 | + NetAdSubscription) SELECT 'Total','9999-01-01', @iActiveSubscription, @iRenewSubscription, @iCancelSubscription, | |
166 | + (@iActiveSubscription+@iRenewSubscription-@iCancelSubscription) | |
167 | + End | |
168 | + | |
169 | + Select RowNum, LicenseType, AccountType,InstitutionName,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, ActiveSubscription, RenewSubscription, InActiveSubscription, | |
170 | + NetAdSubscription | |
171 | + from ( | |
172 | + SELECT ROW_NUMBER() OVER (ORDER BY LicenseCreationDate Asc) AS RowNum ,LicenseType, AccountType,InstitutionName,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, ActiveSubscription, RenewSubscription, InActiveSubscription, | |
173 | + NetAdSubscription FROM #NetAdResult) as usr | |
174 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo order by LicenseCreationDate desc | |
175 | + | |
176 | + --Calculate total number of records | |
177 | + select @recordCount = count(ResultTable.NetAdSubscription) from (SELECT LicenseType, AccountType,InstitutionName,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, ActiveSubscription, RenewSubscription, InActiveSubscription, | |
178 | + NetAdSubscription FROM #NetAdResult) as ResultTable; | |
179 | + | |
180 | + -- Dropping the temporary tables | |
181 | + DROP TABLE #NetAdSummaryReport | |
182 | + DROP TABLE #NetAdResult | |
183 | +END | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetSearchUsers.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetSearchUsers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetSearchUsers] | |
3 | +GO | |
4 | + | |
5 | +Create PROCEDURE [dbo].[usp_GetSearchUsers]--'','','','',0,0,0,1,10,0 | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sFirstName varchar(100) = '', @sLastName varchar(100) = '', @sEmailId varchar(100) = '', | |
8 | + @sAccoutNumber varchar(100) ='', @iUserTypeId int, @iAccountTypeId int, @iLoginUserType int, | |
9 | + @pageNo int, @pageLength int, @recordCount int out | |
10 | +AS | |
11 | +BEGIN | |
12 | + IF 1=0 BEGIN | |
13 | + SET FMTONLY OFF | |
14 | + END | |
15 | + | |
16 | + DECLARE @SQL NVARCHAR(MAX) | |
17 | + -- create a temporary table to store the desired results of user on the basis of parameter | |
18 | + CREATE TABLE #UserResult | |
19 | + ( | |
20 | + RowNums int IDENTITY PRIMARY KEY, | |
21 | + Id INT, | |
22 | + FirstName VARCHAR(100), | |
23 | + LastName VARCHAR(100), | |
24 | + LoginId VARCHAR(50), | |
25 | + EmailId VARCHAR(50), | |
26 | + UserTypeTitle VARCHAR(50), | |
27 | + Password VARCHAR(50), | |
28 | + CreationDate DATETIME, | |
29 | + ModifiedDate DATETIME, | |
30 | + AccountNumber VARCHAR(50) DEFAULT '', | |
31 | + AccountTypeTitle VARCHAR(50) DEFAULT '', | |
32 | + EditionType VARCHAR(50) DEFAULT '', | |
33 | + UserStatus VARCHAR(8), | |
34 | + UserTypeId INT, | |
35 | + EditionTypeId INT DEFAULT '' | |
36 | + ) | |
37 | + /*SET @sFirstName = REPLACE(@sFirstName,' ',' OR ') | |
38 | + SET @sLastName = REPLACE(@sLastName,' ',' OR ')*/ | |
39 | + SET @SQL = '' | |
40 | + IF LEN(@sAccoutNumber) > 0 OR @iAccountTypeId > 0 | |
41 | + BEGIN | |
42 | + -- fetch account number, state, zip, country of the license to which the user is belonged | |
43 | + | |
44 | + SET @SQL = 'INSERT INTO #UserResult (Id, FirstName, LastName, LoginId, EmailId, UserTypeTitle, Password, CreationDate, | |
45 | + ModifiedDate, AccountNumber, AccountTypeTitle, EditionType, UserStatus, UserTypeId, EditionTypeId) | |
46 | + SELECT AIAUser.Id, ISNULL(AIAUser.FirstName,''''), ISNULL(AIAUser.LastName,''''), AIAUser.LoginId, ISNULL(AIAUser.EmailId,'''') as EmailId, | |
47 | + UserType.Title as UserTypeTitle, AIAUser.Password, AIAUser.CreationDate, ISNULL(AIAUser.ModifiedDate,'''') as ModifiedDate, | |
48 | + ISNULL(License.AccountNumber,'''') as AccountNumber, ISNULL(AccountType.Title,'''') as AccountTypeTitle, | |
49 | + ISNULL(Edition.Title,'''') as EditionType, | |
50 | + (CASE AIAUser.IsActive WHEN 1 THEN ''Active'' ELSE ''Inactive'' END) as UserStatus, | |
51 | + UserType.Id as UserTypeId, ISNULL(Edition.Id,'''') as EditionTypeId | |
52 | + FROM AIAUser | |
53 | + INNER JOIN UserType ON UserType.Id = AIAUser.UserTypeId | |
54 | + INNER JOIN AIAUserToLicenseEdition ON AIAUser.Id = AIAUserToLicenseEdition.UserId | |
55 | + INNER JOIN LicenseToEdition ON AIAUserToLicenseEdition.LicenseEditionId = LicenseToEdition.Id | |
56 | + INNER JOIN License ON LicenseToEdition.LicenseId = License.Id | |
57 | + INNER JOIN AccountType ON AccountType.Id = License.AccountTypeId | |
58 | + INNER JOIN Edition ON Edition.Id = LicenseToEdition.EditionId | |
59 | + WHERE | |
60 | + License.IsActive = 1 | |
61 | + AND UserType.Priority >' +CONVERT(VARCHAR(20),@iLoginUserType) | |
62 | + | |
63 | + IF LEN(@sAccoutNumber)>0 | |
64 | + BEGIN | |
65 | + SET @SQL = @SQL + ' AND License.AccountNumber = '''+@sAccoutNumber+'''' | |
66 | + END | |
67 | + IF @iAccountTypeId > 0 | |
68 | + BEGIN | |
69 | + SET @SQL = @SQL + ' AND License.AccountTypeId = '''+CONVERT(VARCHAR(20),@iAccountTypeId)+'''' | |
70 | + END | |
71 | + IF LEN(@sFirstName)>0 | |
72 | + BEGIN | |
73 | + SET @SQL = @SQL + ' AND (AIAUser.FirstName LIKE ''%'+@sFirstName+'%'')' --CONTAINS(AIAUser.FirstName, '''+@sFirstName+''')' | |
74 | + END | |
75 | + IF LEN(@sLastName)>0 | |
76 | + BEGIN | |
77 | + SET @SQL = @SQL + ' AND (AIAUser.LastName LIKE ''%'+@sLastName+'%'')'--CONTAINS(AIAUser.LastName, '''+@sLastName+''')' | |
78 | + END | |
79 | + IF LEN(@sEmailId)>0 | |
80 | + BEGIN | |
81 | + SET @SQL = @SQL + ' AND AIAUser.EmailId = '''+@sEmailId+'''' | |
82 | + END | |
83 | + IF @iUserTypeId>0 | |
84 | + BEGIN | |
85 | + SET @SQL = @SQL + ' AND AIAUser.UserTypeId = '''+CONVERT(VARCHAR(20),@iUserTypeId)+'''' | |
86 | + END | |
87 | + -- select @SQL | |
88 | + EXEC SP_EXECUTESQL @SQL | |
89 | + | |
90 | + END | |
91 | + ELSE | |
92 | + BEGIN | |
93 | + | |
94 | + SET @SQL = 'INSERT INTO #UserResult (Id, FirstName, LastName, LoginId, EmailId, UserTypeTitle, Password, CreationDate, | |
95 | + ModifiedDate, UserStatus, UserTypeId) | |
96 | + SELECT AIAUser.Id, ISNULL(AIAUser.FirstName,''''), ISNULL(AIAUser.LastName,''''), | |
97 | + AIAUser.LoginId, ISNULL(AIAUser.EmailId,''''), UserType.Title, AIAUser.Password, AIAUser.CreationDate, | |
98 | + ISNULL(AIAUser.ModifiedDate,''''), (CASE AIAUser.IsActive WHEN 1 THEN ''Active'' ELSE ''Inactive'' END), | |
99 | + UserType.Id | |
100 | + FROM AIAUser | |
101 | + INNER JOIN UserType ON UserType.Id = AIAUser.UserTypeId | |
102 | + WHERE UserType.Title in (''General Admin'')' | |
103 | + | |
104 | + IF LEN(@sFirstName)>0 | |
105 | + BEGIN | |
106 | + SET @SQL = @SQL + ' AND (AIAUser.FirstName LIKE ''%'+@sFirstName+'%'')'--CONTAINS(AIAUser.FirstName, '''+@sFirstName+''')' | |
107 | + END | |
108 | + IF LEN(@sLastName)>0 | |
109 | + BEGIN | |
110 | + SET @SQL = @SQL + ' AND (AIAUser.LastName LIKE ''%'+@sLastName+'%'')'--CONTAINS(AIAUser.LastName, '''+@sLastName+''')' | |
111 | + END | |
112 | + IF LEN(@sEmailId)>0 | |
113 | + BEGIN | |
114 | + SET @SQL = @SQL + ' AND AIAUser.EmailId = '''+@sEmailId+'''' | |
115 | + END | |
116 | + IF @iUserTypeId>0 | |
117 | + BEGIN | |
118 | + SET @SQL = @SQL + ' AND AIAUser.UserTypeId = '''+CONVERT(VARCHAR(20),@iUserTypeId)+'''' | |
119 | + END | |
120 | + -- select @SQL | |
121 | + EXEC SP_EXECUTESQL @SQL | |
122 | + | |
123 | + -- fetch account number, state, zip, country of the license to which the user is belonged | |
124 | + SET @SQL = 'INSERT INTO #UserResult (Id, FirstName, LastName, LoginId, EmailId, UserTypeTitle, Password, CreationDate, | |
125 | + ModifiedDate, AccountNumber, AccountTypeTitle, EditionType, UserStatus, UserTypeId, EditionTypeId) | |
126 | + SELECT AIAUser.Id, ISNULL(AIAUser.FirstName,''''), ISNULL(AIAUser.LastName,''''), AIAUser.LoginId, ISNULL(AIAUser.EmailId,''''), | |
127 | + UserType.Title, AIAUser.Password, AIAUser.CreationDate, ISNULL(AIAUser.ModifiedDate,''''), | |
128 | + License.AccountNumber, AccountType.Title, Edition.Title, | |
129 | + (CASE AIAUser.IsActive WHEN 1 THEN ''Active'' ELSE ''Inactive'' END), UserType.Id, Edition.Id | |
130 | + FROM AIAUser | |
131 | + INNER JOIN UserType ON UserType.Id = AIAUser.UserTypeId | |
132 | + INNER JOIN AIAUserToLicenseEdition ON AIAUser.Id = AIAUserToLicenseEdition.UserId | |
133 | + INNER JOIN LicenseToEdition ON AIAUserToLicenseEdition.LicenseEditionId = LicenseToEdition.Id | |
134 | + INNER JOIN License ON LicenseToEdition.LicenseId = License.Id | |
135 | + INNER JOIN AccountType ON AccountType.Id = License.AccountTypeId | |
136 | + INNER JOIN Edition ON Edition.Id = LicenseToEdition.EditionId | |
137 | + WHERE | |
138 | + UserType.Title NOT IN (''Super Admin'',''General Admin'') | |
139 | + AND License.IsActive = 1' | |
140 | + | |
141 | + IF LEN(@sAccoutNumber)>0 | |
142 | + BEGIN | |
143 | + SET @SQL = @SQL + ' AND License.AccountNumber = '''+@sAccoutNumber+'''' | |
144 | + END | |
145 | + IF @iAccountTypeId > 0 | |
146 | + BEGIN | |
147 | + SET @SQL = @SQL + ' AND License.AccountTypeId = '''+CONVERT(VARCHAR(20),@iAccountTypeId)+'''' | |
148 | + END | |
149 | + IF LEN(@sFirstName)>0 | |
150 | + BEGIN | |
151 | + SET @SQL = @SQL + ' AND (AIAUser.FirstName LIKE ''%'+@sFirstName+'%'')'--CONTAINS(AIAUser.FirstName, '''+@sFirstName+''')' | |
152 | + END | |
153 | + IF LEN(@sLastName)>0 | |
154 | + BEGIN | |
155 | + SET @SQL = @SQL + ' AND (AIAUser.LastName LIKE ''%'+@sLastName+'%'')'--CONTAINS(AIAUser.LastName, '''+@sLastName+''')' | |
156 | + END | |
157 | + IF LEN(@sEmailId)>0 | |
158 | + BEGIN | |
159 | + SET @SQL = @SQL + ' AND AIAUser.EmailId = '''+@sEmailId+'''' | |
160 | + END | |
161 | + IF @iUserTypeId>0 | |
162 | + BEGIN | |
163 | + SET @SQL = @SQL + ' AND AIAUser.UserTypeId = '''+CONVERT(VARCHAR(20),@iUserTypeId)+'''' | |
164 | + END | |
165 | + --select @SQL | |
166 | + EXEC SP_EXECUTESQL @SQL | |
167 | + | |
168 | + END | |
169 | + -- Selecting the desired result from temporary table | |
170 | + Select RowNum,Id, FirstName, LastName,LoginId, EmailId,UserTypeTitle, Password, CreationDate, | |
171 | + ModifiedDate, AccountNumber, AccountTypeTitle, EditionType, UserStatus, UserTypeId,EditionTypeId | |
172 | + from ( | |
173 | + SELECT ROW_NUMBER() OVER (ORDER BY Id) AS RowNum ,Id, FirstName, LastName, LoginId, EmailId, UserTypeTitle, Password, CreationDate, | |
174 | + ModifiedDate, AccountNumber, AccountTypeTitle, EditionType, UserStatus, UserTypeId, EditionTypeId FROM #UserResult) as usr | |
175 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo order by Id --RowNum BETWEEN @pageNo AND (@pageNo - 1) * @pageLength | |
176 | +--SELECT RowNum, Id, FirstName, LastName, LoginId, EmailId, UserTypeTitle, Password, CreationDate, | |
177 | +-- ModifiedDate, AccountNumber, AccountTypeTitle, EditionType, UserStatus, UserTypeId, EditionTypeId FROM #UserResult | |
178 | +-- where RowNum > (@pageLength * (@pageNo - 1)) AND (RowNo <= (@pageLength * @pageNo)) order by RowNum | |
179 | + -- order by Id | |
180 | + -- order by Id OFFSET ((@pageNo - 1) * @pageLength) ROWS FETCH NEXT @pageLength ROWS ONLY; | |
181 | + | |
182 | + | |
183 | + | |
184 | + --Calculate total number of records | |
185 | + select @recordCount = count(ResultTable.Id) from (SELECT Id, FirstName, LastName, LoginId, EmailId, UserTypeTitle, Password, CreationDate, | |
186 | + ModifiedDate, AccountNumber, AccountTypeTitle, EditionType, UserStatus, UserTypeId, EditionTypeId FROM #UserResult) as ResultTable; | |
187 | + | |
188 | + -- Dropping the temporary table | |
189 | + DROP TABLE #UserResult | |
190 | +END | |
191 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetSiteAccoutDetail.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetSiteAccoutDetail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetSiteAccoutDetail] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetSiteAccoutDetail] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @strAccountNumber varchar(50)='', @pageNo int, @pageLength int, @recordCount int out | |
8 | + | |
9 | +AS | |
10 | +BEGIN | |
11 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
12 | + -- interfering with SELECT statements. | |
13 | + SET NOCOUNT ON; | |
14 | + | |
15 | + --Get the records on the basis of parameters page length and page number rows | |
16 | + select LD.Id, LD.SiteIp, LD.Title, LD.SiteIPTo, LD.SiteMasterIPTo, LD.CreationDate, LD.ModifiedDate, LD.InstituteName, | |
17 | + LD.Department, LD.UserId, LD.FirstName, LD.EmailId | |
18 | + from | |
19 | + (Select ROW_NUMBER() OVER (ORDER BY Site.Id) AS RowNo, | |
20 | + Site.Id,Site.SiteIp,Site.Title,ISNULL(Site.SiteIPTo,'') as SiteIPTo,ISNULL(Site.SiteMasterIPTo,'') as SiteMasterIPTo, | |
21 | + CONVERT(VARCHAR,Site.CreationDate,101) as CreationDate, | |
22 | + CONVERT(VARCHAR,Site.ModifiedDate,101) as ModifiedDate, | |
23 | + Site.InstituteName,Site.Department, AIAUser.Id as UserId,AIAUser.FirstName,AIAUser.EmailId | |
24 | + From ((Site INNER JOIN AIAUserToSite on Site.Id=AIAUserToSite.SiteId) | |
25 | + INNER JOIN AIAUser on AIAUserToSite.UserId = AIAUser.Id) | |
26 | + Where Site.IsActive=1 and Site.id in | |
27 | + (Select SiteID From SiteToLicenseEdition Where LicenseEditionId in | |
28 | + (Select Id From LicenseToEdition Where LicenseId in | |
29 | + (Select Id From License Where LicenseTypeId=3 and AccountNumber=@strAccountNumber)))) | |
30 | + as LD | |
31 | + where | |
32 | + RowNo > @pageLength * (@pageNo - 1) AND | |
33 | + RowNo <= @pageLength * @pageNo | |
34 | + | |
35 | + --Calculate total number of records | |
36 | + select @recordCount = count(ResultTable.Id) from | |
37 | + (Select Site.Id,Site.SiteIp,Site.Title,ISNULL(Site.SiteIPTo,'') as SiteIPTo,ISNULL(Site.SiteMasterIPTo,'') as SiteMasterIPTo, | |
38 | + CONVERT(VARCHAR,Site.CreationDate,101) as CreationDate, | |
39 | + CONVERT(VARCHAR,Site.ModifiedDate,101) as ModifiedDate, | |
40 | + Site.InstituteName,Site.Department, AIAUser.Id as UserId,AIAUser.FirstName,AIAUser.EmailId | |
41 | + From ((Site INNER JOIN AIAUserToSite on Site.Id=AIAUserToSite.SiteId) | |
42 | + INNER JOIN AIAUser on AIAUserToSite.UserId = AIAUser.Id) | |
43 | + Where Site.IsActive=1 and Site.id in | |
44 | + (Select SiteID From SiteToLicenseEdition Where LicenseEditionId in | |
45 | + (Select Id From LicenseToEdition Where LicenseId in | |
46 | + (Select Id From License Where LicenseTypeId=3 and AccountNumber=@strAccountNumber)))) as ResultTable; | |
47 | + | |
48 | +END | |
49 | + | |
50 | + | |
51 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetSiteLicenseUsageReport.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetSiteLicenseUsageReports]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetSiteLicenseUsageReports] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetSiteLicenseUsageReports] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sFromDate varchar(20), @sToDate varchar(20), @sAccoutNumber varchar(50)='', @iEditionId tinyint = 0, | |
8 | + @pageNo int, @pageLength int, @recordCount int out | |
9 | +AS | |
10 | +BEGIN | |
11 | + IF 1=0 BEGIN | |
12 | + SET FMTONLY OFF | |
13 | + END | |
14 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
15 | + SET NOCOUNT ON | |
16 | + DECLARE @dtFromDate DATETIME | |
17 | + DECLARE @dtToDate DATETIME | |
18 | + | |
19 | + -- convert the datatype of fromdate & todate parameter to datetime | |
20 | + SELECT @dtFromDate = CONVERT(DATETIME,@sFromDate) | |
21 | + SELECT @dtToDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sToDate))) | |
22 | + | |
23 | + Select RowNum,AccountNumber, EditionTitle, ReferalUrl, InstitutionName, LicenseCreationDate,TotalLogins,LastLogin | |
24 | + from ( | |
25 | + SELECT ROW_NUMBER() OVER (ORDER BY UserLoginLog.AccountNumber) AS RowNum , UserLoginLog.AccountNumber, Edition.Title AS EditionTitle, UserLoginLog.ReferalUrl, | |
26 | + (SELECT License.InstitutionName FROM License WHERE License.AccountNumber = UserLoginLog.AccountNumber) as InstitutionName, | |
27 | + (SELECT CONVERT(VARCHAR,License.CreationDate,101) FROM License WHERE License.AccountNumber = UserLoginLog.AccountNumber) as LicenseCreationDate, | |
28 | + COUNT(DISTINCT UserLoginLog.LogDate) AS TotalLogins, | |
29 | + CONVERT(VARCHAR,MAX(UserLoginLog.LogDate),101) AS LastLogin FROM | |
30 | + UserLoginLog INNER JOIN Edition ON UserLoginLog.Edition = CAST(Edition.Id AS NVARCHAR) | |
31 | + WHERE UserLoginLog.FailureId IS NULL | |
32 | + AND UserLoginLog.LogDate BETWEEN @dtFromDate AND @dtToDate | |
33 | + AND UserLoginLog.AccountNumber = (CASE WHEN LEN(@sAccoutNumber) > 0 THEN @sAccoutNumber ELSE UserLoginLog.AccountNumber END) | |
34 | + AND Edition.IsActive = 1 | |
35 | + AND Edition.Id = (CASE WHEN @iEditionId > 0 THEN @iEditionId ELSE Edition.Id END) | |
36 | + GROUP BY UserLoginLog.AccountNumber, Edition.Title, UserLoginLog.ReferalUrl) as usr | |
37 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo order by AccountNumber | |
38 | + | |
39 | + | |
40 | + --Calculate total number of records | |
41 | + select @recordCount = count(ResultTable.AccountNumber) from ( | |
42 | + SELECT UserLoginLog.AccountNumber, Edition.Title AS EditionTitle, UserLoginLog.ReferalUrl, | |
43 | + (SELECT License.InstitutionName FROM License WHERE License.AccountNumber = UserLoginLog.AccountNumber) as InstitutionName, | |
44 | + (SELECT CONVERT(VARCHAR,License.CreationDate,101) FROM License WHERE License.AccountNumber = UserLoginLog.AccountNumber) as LicenseCreationDate, | |
45 | + COUNT(DISTINCT UserLoginLog.LogDate) AS TotalLogins, | |
46 | + CONVERT(VARCHAR,MAX(UserLoginLog.LogDate),101) AS LastLogin FROM | |
47 | + UserLoginLog INNER JOIN Edition ON UserLoginLog.Edition = CAST(Edition.Id AS NVARCHAR) | |
48 | + WHERE UserLoginLog.FailureId IS NULL | |
49 | + AND UserLoginLog.LogDate BETWEEN @dtFromDate AND @dtToDate | |
50 | + AND UserLoginLog.AccountNumber = (CASE WHEN LEN(@sAccoutNumber) > 0 THEN @sAccoutNumber ELSE UserLoginLog.AccountNumber END) | |
51 | + AND Edition.IsActive = 1 | |
52 | + AND Edition.Id = (CASE WHEN @iEditionId > 0 THEN @iEditionId ELSE Edition.Id END) | |
53 | + GROUP BY UserLoginLog.AccountNumber, Edition.Title, UserLoginLog.ReferalUrl) as ResultTable; | |
54 | + | |
55 | +END | |
56 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetSubscribedLicenses.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetSubscribedLicenses]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetSubscribedLicenses] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetSubscribedLicenses] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sFromDate varchar(20), @sToDate varchar(20), @iStartPrice numeric(14,2), @iEndPrice numeric(14,2), @iLicenseTypeId tinyint, | |
8 | + @iAccountTypeId tinyint, @sZip varchar(20) = '', @iStateId int, @iCountryId int,@pageNo int, @pageLength int, @recordCount int out | |
9 | +AS | |
10 | +BEGIN | |
11 | + IF 1=0 BEGIN | |
12 | + SET FMTONLY OFF | |
13 | + END | |
14 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
15 | + SET NOCOUNT ON; | |
16 | + DECLARE @dtFromDate DATETIME | |
17 | + DECLARE @dtToDate DATETIME | |
18 | + DECLARE @cGetLicenseID CURSOR | |
19 | + DECLARE @iLicenseId INT | |
20 | + DECLARE @iLicenseSubscriptionDetail INT | |
21 | + DECLARE @sAccountNumber VARCHAR(50) | |
22 | + DECLARE @sLicenseeName VARCHAR(100) | |
23 | + DECLARE @sLicenseType VARCHAR(50) | |
24 | + DECLARE @sInstitutionName VARCHAR(100) | |
25 | + DECLARE @dtStartDate DATETIME | |
26 | + DECLARE @dtEndDate DATETIME | |
27 | + DECLARE @dtLicenseCreationDate DATETIME | |
28 | + DECLARE @mSubscriptionPrice MONEY | |
29 | + DECLARE @sAccountType VARCHAR(50) | |
30 | + DECLARE @sEdition VARCHAR(200) | |
31 | + DECLARE @iCardNumber INT | |
32 | + | |
33 | + | |
34 | + -- convert the datatype of fromdate & todate parameter to datetime | |
35 | + SELECT @dtFromDate = CONVERT(DATETIME,@sFromDate) | |
36 | + SELECT @dtToDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sToDate))) | |
37 | + | |
38 | + -- create a temporary table to store the desired results of subscribed licenses on the basis of parameter | |
39 | + CREATE TABLE #SubscribedLicenseReport | |
40 | + ( | |
41 | + AccountNumber VARCHAR(50), | |
42 | + LicenseeName VARCHAR(100), | |
43 | + LicenseType VARCHAR(50), | |
44 | + InstitutionName VARCHAR(100), | |
45 | + Edition VARCHAR(200), | |
46 | + ValidFrom DATETIME, | |
47 | + ValidThrough DATETIME, | |
48 | + LicenseCreationDate DATETIME, | |
49 | + Price MONEY, | |
50 | + AccountType varchar(50), | |
51 | + CardNumber INT | |
52 | + ) | |
53 | + | |
54 | + -- define the forward only, read-only cursor | |
55 | + SET @cGetLicenseID = CURSOR FAST_FORWARD | |
56 | + FOR | |
57 | + SELECT LicenseSubscriptionDetail.LicenseId, MAX(LicenseSubscriptionDetail.Id) | |
58 | + FROM LicenseSubscriptionDetail WHERE | |
59 | + (TotalAmount >= (CASE WHEN @iStartPrice > 0 THEN @iStartPrice ELSE 0 END)) | |
60 | + AND (TotalAmount <= (CASE WHEN @iEndPrice = 0 THEN 0 WHEN @iEndPrice > 0 THEN @iEndPrice ELSE 9999999999 END)) | |
61 | + GROUP BY LicenseSubscriptionDetail.LicenseId | |
62 | + HAVING (MAX(SubscriptionValidFrom) BETWEEN @dtFromDate AND @dtToDate) | |
63 | + | |
64 | + -- open & fetch the cursor variables into the local variables | |
65 | + OPEN @cGetLicenseID | |
66 | + FETCH NEXT FROM @cGetLicenseID INTO @iLicenseId, @iLicenseSubscriptionDetail | |
67 | + -- start of while loop | |
68 | + WHILE @@FETCH_STATUS = 0 | |
69 | + BEGIN | |
70 | + | |
71 | + SET @sEdition = '' | |
72 | + | |
73 | + -- fetch the accountnumber, licenseename, licensetype, accountype of a license | |
74 | + SELECT @sAccountNumber = AccountNumber, @sLicenseeName = (LicenseeFirstName+' '+LicenseeLastName), | |
75 | + @sLicenseType = LicenseType.Title, @sAccountType = AccountType.Title, | |
76 | + @iCardNumber = (CASE WHEN License.CardNumber > 0 THEN License.CardNumber END), | |
77 | + @sInstitutionName = License.InstitutionName,@dtLicenseCreationDate = License.CreationDate | |
78 | + FROM License | |
79 | + INNER JOIN LicenseType ON License.LicenseTypeId = LicenseType.Id | |
80 | + INNER JOIN AccountType ON License.AccountTypeId = AccountType.Id | |
81 | + INNER JOIN State ON License.StateId = State.Id | |
82 | + INNER JOIN Country ON License.CountryId = Country.Id | |
83 | + WHERE License.Id = @iLicenseId AND License.IsActive = 1 | |
84 | + AND License.LicenseTypeId = (CASE WHEN @iLicenseTypeId > 0 THEN @iLicenseTypeId ELSE License.LicenseTypeId END) | |
85 | + AND License.AccountTypeId = (CASE WHEN @iAccountTypeId > 0 THEN @iAccountTypeId ELSE License.AccountTypeId END) | |
86 | + AND State.Id = (CASE WHEN @iStateId > 0 THEN @iStateId ELSE State.Id END) | |
87 | + AND Country.Id = (CASE WHEN @iCountryId > 0 THEN @iCountryId ELSE Country.Id END) | |
88 | + AND License.Zip = (CASE WHEN LEN(@sZip)>0 THEN @sZip ELSE License.Zip END) | |
89 | + AND License.LicenseTypeId <> 5 | |
90 | + | |
91 | + -- check whether the above query returns any row | |
92 | + IF @@Rowcount > 0 | |
93 | + BEGIN | |
94 | + -- fetch startdate, enddate, subscriptionprice of a license | |
95 | + SELECT @mSubscriptionPrice = LicenseSubscriptionDetail.TotalAmount, | |
96 | + @dtStartDate = LicenseSubscriptionDetail.SubscriptionValidFrom, | |
97 | + @dtEndDate = LicenseSubscriptionDetail.SubscriptionValidThrough | |
98 | + FROM LicenseSubscriptionDetail | |
99 | + WHERE LicenseSubscriptionDetail.Id = @iLicenseSubscriptionDetail | |
100 | + | |
101 | + -- fetch all the editions mapped as a string with a license | |
102 | + SELECT @sEdition = Edition.Title + '; ' + @sEdition | |
103 | + FROM LicenseToEdition INNER JOIN Edition | |
104 | + ON LicenseToEdition.EditionId = Edition.Id | |
105 | + WHERE LicenseToEdition.LicenseId = @iLicenseId | |
106 | + -- remove the trailing comma-separator from the edition-string | |
107 | + -- AMI SET @sEdition = SUBSTRING(@sEdition,1,LEN(@sEdition)-1); | |
108 | + IF LEN(@sEdition)> 1 | |
109 | + -- remove the trailing comma-separator from the edition-string | |
110 | + SET @sEdition = SUBSTRING(@sEdition,1,LEN(@sEdition)-1) | |
111 | + ELSE | |
112 | + SET @sEdition = @sEdition | |
113 | + | |
114 | + -- insert into the temporary table | |
115 | + INSERT INTO #SubscribedLicenseReport | |
116 | + (AccountNumber, LicenseeName, LicenseType, InstitutionName, Edition, ValidFrom, ValidThrough,LicenseCreationDate, Price, AccountType,CardNumber) | |
117 | + VALUES(@sAccountNumber,@sLicenseeName,@sLicenseType,@sInstitutionName,@sEdition,@dtStartDate,@dtEndDate,@dtLicenseCreationDate,@mSubscriptionPrice,@sAccountType,@iCardNumber) | |
118 | + END | |
119 | + -- fetch the next record from cursor | |
120 | + FETCH NEXT FROM @cGetLicenseID INTO @iLicenseId,@iLicenseSubscriptionDetail | |
121 | + -- end of while loop | |
122 | + END | |
123 | + -- close the cursor to free up resources | |
124 | + CLOSE @cGetLicenseID | |
125 | + DEALLOCATE @cGetLicenseID | |
126 | + | |
127 | + -- Selecting the desired result from temporary table | |
128 | + --SELECT AccountNumber, LicenseeName, LicenseType,InstitutionName, AccountType, Edition, | |
129 | + --CONVERT(VARCHAR,ValidFrom,101) as StartDate, CONVERT(VARCHAR,ValidThrough,101) as EndDate, | |
130 | + --CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, | |
131 | + --CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice,CardNumber | |
132 | + --FROM #SubscribedLicenseReport ORDER BY AccountNumber | |
133 | + | |
134 | + | |
135 | + SELECT RowNum, AccountNumber, LicenseeName, LicenseType,InstitutionName, AccountType, Edition, | |
136 | + StartDate, EndDate, | |
137 | + LicenseCreationDate, | |
138 | + SubscriptionPrice,CardNumber | |
139 | + from ( | |
140 | + SELECT ROW_NUMBER() OVER (ORDER BY AccountNumber) AS RowNum, AccountNumber, LicenseeName, LicenseType,InstitutionName, AccountType, Edition, | |
141 | + CONVERT(VARCHAR,ValidFrom,101) as StartDate, CONVERT(VARCHAR,ValidThrough,101) as EndDate, | |
142 | + CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, | |
143 | + CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice,CardNumber | |
144 | + FROM #SubscribedLicenseReport) as Tempt | |
145 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo | |
146 | + ORDER BY AccountNumber | |
147 | + | |
148 | + select @recordCount = count(ResultTable.AccountNumber) | |
149 | + from ( | |
150 | + SELECT AccountNumber, LicenseeName, LicenseType,InstitutionName, AccountType, Edition, | |
151 | + CONVERT(VARCHAR,ValidFrom,101) as StartDate, CONVERT(VARCHAR,ValidThrough,101) as EndDate, | |
152 | + CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, | |
153 | + CONVERT(NUMERIC(14,2),Price) as SubscriptionPrice,CardNumber | |
154 | + FROM #SubscribedLicenseReport) as ResultTable | |
155 | + | |
156 | + -- Dropping the temporary table | |
157 | + DROP TABLE #SubscribedLicenseReport | |
158 | +END | |
159 | + | |
160 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetUsageReport.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetUsageReport]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetUsageReport] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetUsageReport] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + -- FromDate & ToDate are mandatory parameters | |
8 | + @sFromDate varchar(20), @sToDate varchar(20), @sAccoutNumber varchar(50)='', | |
9 | + @sZip varchar(20) = '', @iState int, @iCountry int, | |
10 | + @pageNo int, @pageLength int, @recordCount int out | |
11 | +AS | |
12 | +BEGIN | |
13 | + IF 1=0 BEGIN | |
14 | + SET FMTONLY OFF | |
15 | + END | |
16 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
17 | + SET NOCOUNT ON | |
18 | + DECLARE @cGetUserDetails CURSOR | |
19 | + DECLARE @iUserId INT | |
20 | + DECLARE @sAccountNumber VARCHAR(50) | |
21 | + DECLARE @iCardNumber INT | |
22 | + DECLARE @sLoginId VARCHAR(50) | |
23 | + DECLARE @sFirstName VARCHAR(100) | |
24 | + DECLARE @sLastName VARCHAR(100) | |
25 | + DECLARE @sUserType VARCHAR(50) | |
26 | + DECLARE @dtFromDate DATETIME | |
27 | + DECLARE @dtToDate DATETIME | |
28 | + DECLARE @dtLicenseCreationDate DATETIME | |
29 | + DECLARE @sLicenseState VARCHAR(50) | |
30 | + DECLARE @sLicenseZip VARCHAR(20) | |
31 | + DECLARE @sLicenseCountry VARCHAR(50) | |
32 | + DECLARE @sInstitutionName VARCHAR(100) | |
33 | + DECLARE @iTotalLogins INT | |
34 | + DECLARE @dtLastLogin DATETIME | |
35 | + | |
36 | + -- convert the datatype of fromdate & todate parameter to datetime | |
37 | + SELECT @dtFromDate = CONVERT(DATETIME,@sFromDate) | |
38 | + SELECT @dtToDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sToDate))) | |
39 | + | |
40 | + -- create a temporary table to store the results of users logged into the system within a particular time period | |
41 | + CREATE TABLE #UsageReport | |
42 | + ( | |
43 | + LoginId VARCHAR(50), | |
44 | + FirstName VARCHAR(100), | |
45 | + LastName VARCHAR(100), | |
46 | + AccountNumber VARCHAR(50), | |
47 | + CardNumber INT, | |
48 | + UserType VARCHAR(50), | |
49 | + LicenseCreationDate DATETIME, | |
50 | + LicenseState VARCHAR(50), | |
51 | + LicenseZip VARCHAR(20), | |
52 | + LicenseCountry VARCHAR(50), | |
53 | + InstitutionName VARCHAR(100), | |
54 | + TotalLogins INT, | |
55 | + LastLoginDate DATETIME | |
56 | + ) | |
57 | + | |
58 | + -- define the forward only, read-only cursor | |
59 | + SET @cGetUserDetails = CURSOR FAST_FORWARD | |
60 | + FOR | |
61 | + SELECT LoginDetail.UserId, COUNT(1) as TotalLogins, MAX(LoginDetail.LoginTime) | |
62 | + FROM LoginDetail WHERE | |
63 | + (LoginTime) BETWEEN @dtFromDate AND @dtToDate | |
64 | + GROUP BY LoginDetail.UserId | |
65 | + | |
66 | + -- open & fetch the cursor variables into the local variables | |
67 | + OPEN @cGetUserDetails | |
68 | + FETCH NEXT FROM @cGetUserDetails INTO @iUserId, @iTotalLogins, @dtLastLogin | |
69 | + -- start of while loop | |
70 | + WHILE @@FETCH_STATUS = 0 | |
71 | + BEGIN | |
72 | + -- fetch account number, state, zip, country of the license to which the user is belonged | |
73 | + SELECT @sAccountNumber = License.AccountNumber, | |
74 | + @dtLicenseCreationDate = License.CreationDate, | |
75 | + @sInstitutionName = License.InstitutionName, | |
76 | + @sLicenseState = State.StateName, | |
77 | + @sLicenseZip = License.Zip, | |
78 | + @sLicenseCountry = Country.CountryName, | |
79 | + @iCardNumber = (CASE WHEN License.CardNumber > 0 THEN License.CardNumber END) | |
80 | + FROM AIAUserToLicenseEdition | |
81 | + INNER JOIN LicenseToEdition ON AIAUserToLicenseEdition.LicenseEditionId = LicenseToEdition.Id | |
82 | + INNER JOIN License ON LicenseToEdition.LicenseId = License.Id | |
83 | + INNER JOIN State ON License.StateId = State.Id | |
84 | + INNER JOIN Country ON License.CountryId = Country.Id | |
85 | + WHERE AIAUserToLicenseEdition.UserId = @iUserId | |
86 | + AND License.IsActive = 1 | |
87 | + AND License.AccountNumber = (CASE WHEN LEN(@sAccoutNumber)>0 THEN @sAccoutNumber ELSE License.AccountNumber END) | |
88 | + AND State.Id = (CASE WHEN @iState > 0 THEN @iState ELSE State.Id END) | |
89 | + AND Country.Id = (CASE WHEN @iCountry > 0 THEN @iCountry ELSE Country.Id END) | |
90 | + AND License.Zip = (CASE WHEN LEN(@sZip)>0 THEN @sZip ELSE License.Zip END) | |
91 | + --AND License.LicenseTypeId <> 5 | |
92 | + --AND License.Country = (CASE WHEN LEN(@sCountry)>0 THEN @sCountry ELSE License.Country END) | |
93 | + | |
94 | + -- check whether the above query returns any row | |
95 | + IF @@Rowcount > 0 | |
96 | + BEGIN | |
97 | + -- fetch loginid, firstname, lastname, usertype of the user | |
98 | + SELECT @sLoginId = AIAUser.LoginId, @sFirstName = AIAUser.Firstname, | |
99 | + @sLastName = AIAUser.LastName, @sUserType = UserType.Title | |
100 | + FROM AIAUser | |
101 | + INNER JOIN UserType ON AIAUser.UserTypeId = UserType.Id | |
102 | + WHERE AIAUser.Id = @iUserId | |
103 | + AND AIAUser.IsActive = 1 | |
104 | + | |
105 | + IF @@Rowcount > 0 | |
106 | + BEGIN | |
107 | + -- insert into the temporary table | |
108 | + INSERT INTO #UsageReport | |
109 | + (LoginId, FirstName, LastName, AccountNumber,CardNumber ,UserType,LicenseCreationDate, LicenseState, LicenseZip, | |
110 | + LicenseCountry,InstitutionName, TotalLogins, LastLoginDate) | |
111 | + VALUES(@sLoginId, @sFirstName, @sLastName, @sAccountNumber, @iCardNumber, @sUserType,@dtLicenseCreationDate, | |
112 | + @sLicenseState, @sLicenseZip, @sLicenseCountry,@sInstitutionName, @iTotalLogins, @dtLastLogin) | |
113 | + END | |
114 | + END | |
115 | + -- fetch the next record from cursor | |
116 | + FETCH NEXT FROM @cGetUserDetails INTO @iUserId, @iTotalLogins, @dtLastLogin | |
117 | + -- end of while loop | |
118 | + END | |
119 | + -- close the cursor to free up resources | |
120 | + CLOSE @cGetUserDetails | |
121 | + DEALLOCATE @cGetUserDetails | |
122 | + | |
123 | + -- Selecting the desired result from temporary table | |
124 | + --SELECT LoginId, FirstName, LastName, AccountNumber, CardNumber,UserType,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, LicenseZip, LicenseState, | |
125 | + --LicenseCountry,InstitutionName, TotalLogins, CONVERT(VARCHAR,LastLoginDate,101) as LastLogin FROM #UsageReport ORDER BY AccountNumber | |
126 | + | |
127 | + Select RowNum,LoginId, FirstName, LastName, AccountNumber, CardNumber,UserType,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, LicenseZip, LicenseState, | |
128 | + LicenseCountry,InstitutionName, TotalLogins, LastLogin | |
129 | + from ( | |
130 | + SELECT ROW_NUMBER() OVER (ORDER BY LoginId) AS RowNum ,LoginId, FirstName, LastName, AccountNumber, CardNumber,UserType,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, LicenseZip, LicenseState, | |
131 | + LicenseCountry,InstitutionName, TotalLogins, CONVERT(VARCHAR,LastLoginDate,101) as LastLogin FROM #UsageReport) as usr | |
132 | + WHERE RowNum > @pageLength * (@pageNo - 1) AND RowNum <= @pageLength * @pageNo order by AccountNumber | |
133 | + | |
134 | + | |
135 | + --Calculate total number of records | |
136 | + select @recordCount = count(ResultTable.LoginId) from (SELECT LoginId, FirstName, LastName, AccountNumber, CardNumber,UserType,CONVERT(VARCHAR,LicenseCreationDate,101) as LicenseCreationDate, LicenseZip, LicenseState, | |
137 | + LicenseCountry,InstitutionName, TotalLogins, CONVERT(VARCHAR,LastLoginDate,101) as LastLogin FROM #UsageReport) as ResultTable; | |
138 | + -- Dropping the temporary table | |
139 | + DROP TABLE #UsageReport | |
140 | +END | |
141 | + | |
142 | + | |
143 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_GetUserTyeByAccountNumber.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetUserTyeByAccountNumber]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_GetUserTyeByAccountNumber] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_GetUserTyeByAccountNumber] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @iUserTypeId tinyint, @iLicenseId int | |
8 | +AS | |
9 | +BEGIN | |
10 | + -- returns the metadata | |
11 | + IF 1=0 BEGIN | |
12 | + SET FMTONLY OFF | |
13 | + END | |
14 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
15 | + -- interfering with SELECT statements. | |
16 | + SET NOCOUNT ON; | |
17 | + DECLARE @sUserType varchar(50) | |
18 | + DECLARE @sLicenseType varchar(50) | |
19 | + -- create a temporary table to store the usertype according to the role and accountnumber | |
20 | + CREATE TABLE #UserTypeToAccountNumber | |
21 | + ( | |
22 | + Id tinyint, | |
23 | + Title varchar(50) | |
24 | + ) | |
25 | + | |
26 | + --SELECT @sUserType = Title FROM UserType WHERE Id = @iUserTypeId | |
27 | + | |
28 | + IF @iLicenseId = 0 | |
29 | + BEGIN | |
30 | + IF @iUserTypeId = 1 | |
31 | + BEGIN | |
32 | + INSERT INTO #UserTypeToAccountNumber SELECT Id, Title FROM UserType WHERE Title = 'General Admin' AND IsActive = 1 | |
33 | + END | |
34 | + END | |
35 | + ELSE | |
36 | + BEGIN | |
37 | + SELECT @sLicenseType = LicenseType.Title FROM License INNER JOIN LicenseType ON LicenseType.Id = License.LicenseTypeId | |
38 | + WHERE License.Id = @iLicenseId | |
39 | + IF @sLicenseType = 'Site License' | |
40 | + BEGIN | |
41 | + INSERT INTO #UserTypeToAccountNumber SELECT Id, Title FROM UserType WHERE Title IN ('Client Admin', 'District Admin') | |
42 | + END | |
43 | + ELSE IF @sLicenseType = 'Concurrent License' | |
44 | + BEGIN | |
45 | + INSERT INTO #UserTypeToAccountNumber SELECT Id, Title FROM UserType WHERE Title IN ('Client Admin', 'Concurrent User') ORDER BY Priority ASC | |
46 | + END | |
47 | + END | |
48 | + SELECT Id,Title FROM #UserTypeToAccountNumber | |
49 | + -- Dropping the temporary table | |
50 | + DROP TABLE #UserTypeToAccountNumber | |
51 | +END | |
52 | + | |
53 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_InsertAIAUser.sql
500-DBDump/AIA-StoredProcedures/dbo.usp_InsertNewDiscount.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_InsertNewDiscount]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_InsertNewDiscount] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_InsertNewDiscount] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @dPercentage DECIMAL(5,2), @sStartDate VARCHAR(20), @sEndDate VARCHAR(20), @sDiscountCode VARCHAR(255)='' | |
8 | +AS | |
9 | +BEGIN | |
10 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
11 | + -- interfering with SELECT statements. | |
12 | + SET NOCOUNT ON; | |
13 | + BEGIN TRY | |
14 | + BEGIN TRANSACTION | |
15 | + DECLARE @iDiscountId INT, @iDiscountExists INT | |
16 | + DECLARE @iActive TINYINT | |
17 | + DECLARE @dtStartDate DATETIME, @dtEndDate DATETIME | |
18 | + DECLARE @sErrorStatus CHAR(2) | |
19 | + | |
20 | + SET @iActive = 1 | |
21 | + SET @sErrorStatus = 'ok' | |
22 | + | |
23 | + -- convert the datatype of startdate & enddate parameter to datetime | |
24 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
25 | + SELECT @dtEndDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate))) | |
26 | + | |
27 | + INSERT INTO Discount (Percentage, StartDate, EndDate, IsActive) | |
28 | + VALUES(@dPercentage, @dtStartDate, @dtEndDate, @iActive) | |
29 | + -- to get the last inserted discount id identity value in the current session | |
30 | + SET @iDiscountId = SCOPE_IDENTITY() | |
31 | + | |
32 | + IF @sDiscountCode = '' | |
33 | + BEGIN | |
34 | + SET @sDiscountCode = 'InteractiveAnatomy'+RIGHT('000'+CAST(@iDiscountId AS VARCHAR(10)), 3) | |
35 | + SET @iDiscountExists = (SELECT Id FROM Discount WHERE DiscountCode = @sDiscountCode) | |
36 | + IF @iDiscountExists > 0 | |
37 | + BEGIN | |
38 | + UPDATE Discount SET IsActive = 0 WHERE Id = @iDiscountExists | |
39 | + END | |
40 | + END | |
41 | + UPDATE Discount SET DiscountCode = @sDiscountCode WHERE Id = @iDiscountId | |
42 | + | |
43 | + COMMIT | |
44 | + SELECT @sErrorStatus as SPStatus | |
45 | + END TRY | |
46 | + BEGIN CATCH | |
47 | + IF @@TRANCOUNT > 0 | |
48 | + ROLLBACK TRANSACTION | |
49 | + SELECT Error_Message() as SPStatus | |
50 | + END CATCH | |
51 | + | |
52 | +END | |
53 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_InsertNewLicenseAccount.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_InsertNewLicenseAccount]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_InsertNewLicenseAccount] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_InsertNewLicenseAccount] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sAccountNumber varchar(50), @sLicenseeFname varchar(50), @sLicenseeLname varchar(50), | |
8 | + @iLicenseTypeId tinyint, @iAccountTypeId tinyint, @sInstitutionName varchar(100)='', @sAddress1 varchar(100)='', | |
9 | + @sAddress2 varchar(100)='', @sCity varchar(50)='', @sZip varchar(20)='', @iStateId int, @iCountryId int, | |
10 | + @sPhone varchar(30) = '', @sEmailId varchar(50), @iTotalLogins int, @sStartDate varchar(20), | |
11 | + @sEndDate varchar(20), @sMasterIP varchar(100) = '', @sEditionList varchar(256), @iPrice numeric(14,2),@sProductKey varchar(50), | |
12 | + @sSiteIPTo varchar(100) = '',@sSiteMasterIPTo varchar(100) = '',@iNoofImages int | |
13 | +AS | |
14 | +BEGIN | |
15 | + | |
16 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
17 | + -- interfering with SELECT statements. | |
18 | + SET NOCOUNT ON; | |
19 | + | |
20 | + BEGIN TRY | |
21 | + BEGIN TRANSACTION | |
22 | + DECLARE @cEditionLogins CURSOR | |
23 | + DECLARE @iLicenseId INT | |
24 | + DECLARE @iSiteId INT | |
25 | + DECLARE @iLicenseEditionId INT | |
26 | + DECLARE @iIsDistrictSiteAccount TINYINT | |
27 | + DECLARE @iActive TINYINT | |
28 | + DECLARE @iIsMasterIP TINYINT | |
29 | + DECLARE @iModesty TINYINT | |
30 | + DECLARE @dtStartDate DATETIME | |
31 | + DECLARE @dtEndDate DATETIME | |
32 | + DECLARE @sErrorStatus CHAR(2) | |
33 | + DECLARE @dtCurrentDate DATETIME | |
34 | + DECLARE @sitem VARCHAR(100) | |
35 | + DECLARE @sRecordDelimiter CHAR(1) | |
36 | + DECLARE @sEditionLoginDelimiter CHAR(1) | |
37 | + DECLARE @sCountryCode VARCHAR(10) | |
38 | + DECLARE @iIsInsEditionSelected TINYINT | |
39 | + DECLARE @iIsLibEditionSelected TINYINT | |
40 | + DECLARE @iIsAcademicLibEditionSelected TINYINT | |
41 | + | |
42 | + -- set the parameters to default values | |
43 | + SET @iActive = 1 | |
44 | + SET @iIsMasterIP = 1 | |
45 | + SET @iIsDistrictSiteAccount = 0 | |
46 | + SET @iModesty = 0 | |
47 | + SET @sRecordDelimiter = '|' | |
48 | + SET @sEditionLoginDelimiter = '-' | |
49 | + SET @dtCurrentDate = getdate() | |
50 | + SET @sErrorStatus = 'ok' | |
51 | + SET @iIsInsEditionSelected = 0; | |
52 | + SET @iIsLibEditionSelected = 0; | |
53 | + SET @iIsAcademicLibEditionSelected = 0; | |
54 | + | |
55 | + IF @iStateId = 0 | |
56 | + BEGIN | |
57 | + SET @iStateId = (SELECT Id FROM State WHERE StateName='Other') | |
58 | + END | |
59 | + -- set the state to Other if the country is Non-US | |
60 | + SET @sCountryCode = (SELECT CountryCode from Country WHERE Id = @iCountryId) | |
61 | + IF @sCountryCode != 'US' | |
62 | + BEGIN | |
63 | + SET @iStateId = (SELECT Id FROM State WHERE StateName='Other') | |
64 | + END | |
65 | + | |
66 | + -- convert the datatype of startdate & enddate parameter to datetime | |
67 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
68 | + SELECT @dtEndDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate))) | |
69 | + | |
70 | + INSERT INTO License(AccountNumber, LicenseeFirstName, LicenseeLastName, LicenseTypeId, AccountTypeId, | |
71 | + InstitutionName, EmailId, Address1, Address2, City, Zip, StateId, CountryId, Phone, TotalLogins, IsActive, | |
72 | + IsDistrictSiteLicense, CreationDate,ProductId) VALUES (@sAccountNumber, @sLicenseeFname, @sLicenseeLname, @iLicenseTypeId, | |
73 | + @iAccountTypeId, @sInstitutionName, @sEmailId, @sAddress1, @sAddress2, @sCity, @sZip, @iStateId, @iCountryId, | |
74 | + @sPhone, @iTotalLogins, @iActive, @iIsDistrictSiteAccount, @dtCurrentDate,@sProductKey) | |
75 | + -- to get the last inserted license id identity value in the current session | |
76 | + SET @iLicenseId = SCOPE_IDENTITY() | |
77 | + | |
78 | + INSERT INTO LicenseSubscriptionDetail(LicenseId, SubscriptionValidFrom, SubscriptionValidThrough, | |
79 | + TotalAmount, AmountPaid,NoofImages) VALUES(@iLicenseId, @dtStartDate, @dtEndDate, @iPrice, @iPrice,@iNoofImages) | |
80 | + | |
81 | + -- check if license is site license | |
82 | + IF @iLicenseTypeId = 3 | |
83 | + BEGIN | |
84 | + INSERT INTO Site (SiteIP, Title, InstituteName, Address1, Address2, City, Zip, Phone, | |
85 | + StateId, CountryId, IsMaster, IsActive, CreationDate, SiteIPTo, SiteMasterIpTo) | |
86 | + VALUES(@sMasterIP, @sMasterIP, @sInstitutionName, @sAddress1, @sAddress2, @sCity, @sZip, @sPhone, | |
87 | + @iStateId, @iCountryId, @iIsMasterIP, @iActive, @dtCurrentDate,@sSiteIPTo, @sSiteMasterIPTo) | |
88 | + -- to get the last inserted site id identity value in the current session | |
89 | + SET @iSiteId = SCOPE_IDENTITY() | |
90 | + END | |
91 | + | |
92 | + SET @cEditionLogins = CURSOR FAST_FORWARD FOR SELECT item FROM dbo.fnSplit(@sEditionList,@sRecordDelimiter) | |
93 | + OPEN @cEditionLogins | |
94 | + FETCH NEXT FROM @cEditionLogins INTO @sitem | |
95 | + WHILE @@FETCH_STATUS = 0 | |
96 | + BEGIN | |
97 | + INSERT INTO LicenseToEdition(LicenseId, EditionId, TotalLogins, IsModesty) | |
98 | + SELECT @iLicenseId, SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1), | |
99 | + SUBSTRING(@sitem,CHARINDEX(@sEditionLoginDelimiter,@sitem)+1,LEN(@sitem)), @iModesty | |
100 | + | |
101 | + -- chekc if selected edition is instructor or library edition | |
102 | + IF SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1) <= 4 | |
103 | + BEGIN | |
104 | + SET @iIsInsEditionSelected = 1; | |
105 | + END | |
106 | + IF SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1) > 4 | |
107 | + BEGIN | |
108 | + SET @iIsLibEditionSelected = 1; | |
109 | + END | |
110 | + IF SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1) = 9 | |
111 | + BEGIN | |
112 | + SET @iIsAcademicLibEditionSelected = 1; | |
113 | + END | |
114 | + | |
115 | + -- check if license is site license | |
116 | + IF @iLicenseTypeId = 3 | |
117 | + BEGIN | |
118 | + -- to get the last inserted licenseedition id identity value in the current session | |
119 | + SET @iLicenseEditionId = SCOPE_IDENTITY() | |
120 | + INSERT INTO SiteToLicenseEdition (SiteId, LicenseEditionId, IsModesty) VALUES (@iSiteId, @iLicenseEditionId, @iModesty) | |
121 | + END | |
122 | + FETCH NEXT FROM @cEditionLogins INTO @sitem | |
123 | + END | |
124 | + | |
125 | + IF @iIsInsEditionSelected = 1 AND @iIsLibEditionSelected = 1 | |
126 | + BEGIN | |
127 | + -- insert All resource module of license | |
128 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id in (8,9,10) then 0 else 1 end as Status FROM ResourceModule WHERE ResourceModule.Id <> 13; | |
129 | + END | |
130 | + ELSE IF @iIsInsEditionSelected = 1 AND @iIsLibEditionSelected = 0 | |
131 | + BEGIN | |
132 | + -- insert All resource module of license | |
133 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id > 7 then 0 else 1 end as Status FROM ResourceModule WHERE ResourceModule.Id <> 13; | |
134 | + END | |
135 | + ELSE IF @iIsInsEditionSelected = 0 AND @iIsLibEditionSelected = 1 | |
136 | + BEGIN | |
137 | + -- insert All resource module of license | |
138 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id < 11 and ResourceModule.id <> 6 then 0 else 1 end as Status FROM ResourceModule WHERE ResourceModule.Id <> 13; | |
139 | + END | |
140 | + | |
141 | + IF @iIsAcademicLibEditionSelected = 1 | |
142 | + BEGIN | |
143 | + -- insert ADAM Image Resouce to license | |
144 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, 1 as Status FROM ResourceModule WHERE ResourceModule.Id = 13; | |
145 | + END | |
146 | + ELSE | |
147 | + BEGIN | |
148 | + -- insert ADAM Image Resouce to license | |
149 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, 0 as Status FROM ResourceModule WHERE ResourceModule.Id = 13; | |
150 | + END | |
151 | + | |
152 | + | |
153 | + COMMIT TRANSACTION | |
154 | + SELECT @sErrorStatus as SPStatus | |
155 | + END TRY | |
156 | + BEGIN CATCH | |
157 | + IF @@TRANCOUNT > 0 | |
158 | + ROLLBACK TRANSACTION | |
159 | + SELECT Error_Message() as SPStatus | |
160 | + END CATCH | |
161 | + | |
162 | +END | |
163 | + | |
164 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_InsertSingleLicenseAccount.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_InsertSingleLicenseAccount]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_InsertSingleLicenseAccount] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_InsertSingleLicenseAccount] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sAccountNumber varchar(50), @sLicenseeFname varchar(50), @sLicenseeLname varchar(50), @iAccountTypeId tinyint, | |
8 | + @sInstitutionName varchar(100)='', @sAddress1 varchar(100)='', @sAddress2 varchar(100)='', @sCity varchar(50)='', | |
9 | + @sZip varchar(20)='', @iStateId int, @iCountryId int, @sPhone varchar(30)='', @sEmailId varchar(50), @iTotalLogins int, | |
10 | + @sStartDate varchar(20), @sEndDate varchar(20), @sEditionList varchar(256), @iPrice numeric(14,2),@sProductKey varchar(50), | |
11 | + @sLoginId varchar(50), @sPassword varchar(50), @iSecurityQuesId tinyint, @sSecurityAnswer varchar(50), @iCreatorId int,@iNoofImages int | |
12 | +AS | |
13 | +BEGIN | |
14 | + | |
15 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
16 | + -- interfering with SELECT statements. | |
17 | + SET NOCOUNT ON; | |
18 | + | |
19 | + BEGIN TRY | |
20 | + BEGIN TRANSACTION | |
21 | + DECLARE @cEditionLogins CURSOR | |
22 | + DECLARE @iLicenseId INT | |
23 | + DECLARE @iSiteId INT | |
24 | + DECLARE @iLicenseEditionId INT | |
25 | + DECLARE @iIsDistrictSiteAccount TINYINT | |
26 | + DECLARE @iLicenseTypeId TINYINT | |
27 | + DECLARE @iUserTypeId TINYINT | |
28 | + DECLARE @iAIAUserId INT | |
29 | + DECLARE @iActive TINYINT | |
30 | + DECLARE @iIsMasterIP TINYINT | |
31 | + DECLARE @iModesty TINYINT | |
32 | + DECLARE @dtStartDate DATETIME | |
33 | + DECLARE @dtEndDate DATETIME | |
34 | + DECLARE @sErrorStatus CHAR(2) | |
35 | + DECLARE @dtCurrentDate DATETIME | |
36 | + DECLARE @sitem VARCHAR(100) | |
37 | + DECLARE @sRecordDelimiter CHAR(1) | |
38 | + DECLARE @sEditionLoginDelimiter CHAR(1) | |
39 | + DECLARE @sCountryCode VARCHAR(10) | |
40 | + DECLARE @iIsInsEditionSelected TINYINT | |
41 | + DECLARE @iIsLibEditionSelected TINYINT | |
42 | + DECLARE @iIsAcademicLibEditionSelected TINYINT | |
43 | + | |
44 | + -- set the parameters to default values | |
45 | + SET @iActive = 1 | |
46 | + SET @iIsDistrictSiteAccount = 0 | |
47 | + SET @iModesty = 0 | |
48 | + SET @sRecordDelimiter = '|' | |
49 | + SET @sEditionLoginDelimiter = '-' | |
50 | + SET @dtCurrentDate = getdate() | |
51 | + SET @sErrorStatus = 'ok' | |
52 | + SET @iIsInsEditionSelected = 0; | |
53 | + SET @iIsLibEditionSelected = 0; | |
54 | + SET @iIsAcademicLibEditionSelected = 0; | |
55 | + | |
56 | + IF @iStateId = 0 | |
57 | + BEGIN | |
58 | + SET @iStateId = (SELECT Id FROM State WHERE StateName='Other') | |
59 | + END | |
60 | + -- set the state to Other if the country is Non-US | |
61 | + SET @sCountryCode = (SELECT CountryCode from Country WHERE Id = @iCountryId) | |
62 | + IF @sCountryCode != 'US' | |
63 | + BEGIN | |
64 | + SET @iStateId = (SELECT Id FROM State WHERE StateName='Other') | |
65 | + END | |
66 | + IF @iSecurityQuesId = 0 | |
67 | + BEGIN | |
68 | + SET @iSecurityQuesId = NULL | |
69 | + END | |
70 | + IF LEN(@sSecurityAnswer) = 0 | |
71 | + BEGIN | |
72 | + SET @sSecurityAnswer = NULL | |
73 | + END | |
74 | + -- convert the datatype of startdate & enddate parameter to datetime | |
75 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
76 | + SELECT @dtEndDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate))) | |
77 | + | |
78 | + -- fetch the licensetypeid of the single license | |
79 | + SELECT @iLicenseTypeId = Id from LicenseType WHERE Title = 'Single License' | |
80 | + -- fetch the usertypeid of the single user | |
81 | + SELECT @iUserTypeId = Id from UserType WHERE Title = 'Single User' | |
82 | + | |
83 | + | |
84 | + INSERT INTO License(AccountNumber, LicenseeFirstName, LicenseeLastName, LicenseTypeId, AccountTypeId, | |
85 | + InstitutionName, EmailId, Address1, Address2, City, Zip, StateId, CountryId, Phone, TotalLogins, IsActive, | |
86 | + IsDistrictSiteLicense, CreationDate,ProductId) VALUES (@sAccountNumber, @sLicenseeFname, @sLicenseeLname, @iLicenseTypeId, | |
87 | + @iAccountTypeId, @sInstitutionName, @sEmailId, @sAddress1, @sAddress2, @sCity, @sZip, @iStateId, @iCountryId, | |
88 | + @sPhone, @iTotalLogins, @iActive, @iIsDistrictSiteAccount, @dtCurrentDate,@sProductKey) | |
89 | + -- to get the last inserted license id identity value in the current session | |
90 | + SET @iLicenseId = SCOPE_IDENTITY() | |
91 | + | |
92 | + INSERT INTO LicenseSubscriptionDetail(LicenseId, SubscriptionValidFrom, SubscriptionValidThrough, | |
93 | + TotalAmount, AmountPaid,NoofImages) VALUES(@iLicenseId, @dtStartDate, @dtEndDate, @iPrice, @iPrice ,@iNoofImages) | |
94 | + | |
95 | + SET @cEditionLogins = CURSOR FAST_FORWARD FOR SELECT item FROM dbo.fnSplit(@sEditionList,@sRecordDelimiter) | |
96 | + OPEN @cEditionLogins | |
97 | + FETCH NEXT FROM @cEditionLogins INTO @sitem | |
98 | + WHILE @@FETCH_STATUS = 0 | |
99 | + BEGIN | |
100 | + INSERT INTO LicenseToEdition(LicenseId, EditionId, TotalLogins, IsModesty) | |
101 | + SELECT @iLicenseId, SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1), | |
102 | + SUBSTRING(@sitem,CHARINDEX(@sEditionLoginDelimiter,@sitem)+1,LEN(@sitem)), @iModesty | |
103 | + | |
104 | + -- chekc if selected edition is instructor or library edition | |
105 | + IF SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1) <= 4 | |
106 | + BEGIN | |
107 | + SET @iIsInsEditionSelected = 1; | |
108 | + END | |
109 | + IF SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1) > 4 | |
110 | + BEGIN | |
111 | + SET @iIsLibEditionSelected = 1; | |
112 | + END | |
113 | + IF SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1) = 9 | |
114 | + BEGIN | |
115 | + SET @iIsAcademicLibEditionSelected = 1; | |
116 | + END | |
117 | + | |
118 | + FETCH NEXT FROM @cEditionLogins INTO @sitem | |
119 | + END | |
120 | + SET @iLicenseEditionId = SCOPE_IDENTITY() | |
121 | + INSERT INTO AIAUser(LoginId, Password, Firstname, Lastname, UserTypeId, EmailId, IsActive, SecurityQuestionId, SecurityAnswer, | |
122 | + CreatorId, CreationDate, ModifierId, ModifiedDate) VALUES(@sLoginId, @sPassword, @sLicenseeFname, @sLicenseeLname, | |
123 | + @iUserTypeId, @sEmailId, @iActive, @iSecurityQuesId, @sSecurityAnswer, @iCreatorId, @dtCurrentDate, @iCreatorId, @dtCurrentDate) | |
124 | + SET @iAIAUserId = SCOPE_IDENTITY() | |
125 | + | |
126 | + INSERT INTO AIAUserToLicenseEdition(UserId, LicenseEditionId) VALUES(@iAIAUserId, @iLicenseEditionId) | |
127 | + | |
128 | + IF @iIsInsEditionSelected = 1 AND @iIsLibEditionSelected = 1 | |
129 | + BEGIN | |
130 | + -- insert All resource module of license | |
131 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id in (8,9,10) then 0 else 1 end as Status FROM ResourceModule WHERE ResourceModule.Id <> 13; | |
132 | + END | |
133 | + ELSE IF @iIsInsEditionSelected = 1 AND @iIsLibEditionSelected = 0 | |
134 | + BEGIN | |
135 | + -- insert All resource module of license | |
136 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id > 7 then 0 else 1 end as Status FROM ResourceModule WHERE ResourceModule.Id <> 13; | |
137 | + END | |
138 | + ELSE IF @iIsInsEditionSelected = 0 AND @iIsLibEditionSelected = 1 | |
139 | + BEGIN | |
140 | + -- insert All resource module of license | |
141 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id < 11 and ResourceModule.id <> 6 then 0 else 1 end as Status FROM ResourceModule WHERE ResourceModule.Id <> 13; | |
142 | + END | |
143 | + | |
144 | + IF @iIsAcademicLibEditionSelected = 1 | |
145 | + BEGIN | |
146 | + -- insert ADAM Image Resouce to license | |
147 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, 1 as Status FROM ResourceModule WHERE ResourceModule.Id = 13; | |
148 | + END | |
149 | + ELSE | |
150 | + BEGIN | |
151 | + -- insert ADAM Image Resouce to license | |
152 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, 0 as Status FROM ResourceModule WHERE ResourceModule.Id = 13; | |
153 | + END | |
154 | + | |
155 | + COMMIT TRANSACTION | |
156 | + SELECT @sErrorStatus as SPStatus | |
157 | + END TRY | |
158 | + BEGIN CATCH | |
159 | + IF @@TRANCOUNT > 0 | |
160 | + ROLLBACK TRANSACTION | |
161 | + SELECT Error_Message() as SPStatus | |
162 | + END CATCH | |
163 | + | |
164 | +END | |
165 | + | |
166 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_InsertTestLicenseAccount.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_InsertTestLicenseAccount]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_InsertTestLicenseAccount] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_InsertTestLicenseAccount] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @sAccountNumber varchar(50), @sLicenseeFname varchar(50), @sLicenseeLname varchar(50), @sLoginId varchar(50), @sPassword varchar(50), | |
8 | + @sEmailId varchar(50), @iAccountTypeId tinyint, @iEditionId tinyint, @sAddress varchar(100)='', @sCity varchar(50)='', | |
9 | + @sZip varchar(20)='', @iStateId int, @iCountryId int, @sPhone varchar(30)='', @sStartDate varchar(20), @sEndDate varchar(20), @iCreatorId int ,@iNoofImages int | |
10 | +AS | |
11 | +BEGIN | |
12 | + | |
13 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
14 | + -- interfering with SELECT statements. | |
15 | + SET NOCOUNT ON; | |
16 | + | |
17 | + BEGIN TRY | |
18 | + BEGIN TRANSACTION | |
19 | + DECLARE @iLicenseId int | |
20 | + DECLARE @iLicenseEditionId int | |
21 | + DECLARE @iAIAUserId int | |
22 | + DECLARE @iLicenseTypeId tinyint | |
23 | + DECLARE @iUserTypeId tinyint | |
24 | + DECLARE @iAmount tinyint | |
25 | + DECLARE @iTotalLogins tinyint | |
26 | + DECLARE @iActive tinyint | |
27 | + DECLARE @iModesty tinyint | |
28 | + DECLARE @dtStartDate datetime | |
29 | + DECLARE @dtEndDate datetime | |
30 | + DECLARE @sErrorStatus char(2) | |
31 | + DECLARE @dtCurrentDate datetime | |
32 | + DECLARE @sCountryCode VARCHAR(10) | |
33 | + | |
34 | + -- set the parameters to default values | |
35 | + SET @iTotalLogins = 1 | |
36 | + SET @iActive = 1 | |
37 | + SET @iAmount = 0 | |
38 | + SET @iModesty = 0 | |
39 | + SET @dtCurrentDate = getdate() | |
40 | + SET @sErrorStatus = 'ok' | |
41 | + | |
42 | + IF @iStateId = 0 | |
43 | + BEGIN | |
44 | + SET @iStateId = (SELECT Id FROM State WHERE StateName='Other') | |
45 | + END | |
46 | + -- set the state to Other if the country is Non-US | |
47 | + SET @sCountryCode = (SELECT CountryCode from Country WHERE Id = @iCountryId) | |
48 | + IF @sCountryCode != 'US' | |
49 | + BEGIN | |
50 | + SET @iStateId = (SELECT Id FROM State WHERE StateName='Other') | |
51 | + END | |
52 | + | |
53 | + -- fetch the licensetypeid of the test account license | |
54 | + SELECT @iLicenseTypeId = Id from LicenseType WHERE Title = 'Test Account License' | |
55 | + -- fetch the usertypeid of the test account user | |
56 | + SELECT @iUserTypeId = Id from UserType WHERE Title = 'Test Account' | |
57 | + | |
58 | + -- convert the datatype of startdate & enddate parameter to datetime | |
59 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
60 | + SELECT @dtEndDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate))) | |
61 | + | |
62 | + INSERT INTO License(AccountNumber, LicenseeFirstName, LicenseeLastName, LicenseTypeId, AccountTypeId, | |
63 | + EmailId, Address1, City, Zip, StateId, CountryId, Phone, TotalLogins, IsActive, IsDistrictSiteLicense, | |
64 | + CreationDate) VALUES (@sAccountNumber, @sLicenseeFname, @sLicenseeLname, @iLicenseTypeId, @iAccountTypeId, | |
65 | + @sEmailId, @sAddress, @sCity, @sZip, @iStateId, @iCountryId, @sPhone, @iTotalLogins, @iActive, 0, @dtCurrentDate ) | |
66 | + -- to get the last inserted identity value in the current session | |
67 | + SET @iLicenseId = SCOPE_IDENTITY() | |
68 | + | |
69 | + INSERT INTO LicenseSubscriptionDetail(LicenseId, SubscriptionValidFrom, SubscriptionValidThrough, | |
70 | + TotalAmount, AmountPaid, AmountPending ,NoofImages) VALUES(@iLicenseId, @dtStartDate, @dtEndDate, @iAmount, @iAmount, @iAmount ,@iNoofImages) | |
71 | + | |
72 | + IF @iEditionId <= 4 | |
73 | + BEGIN | |
74 | + -- insert All resource module of license for Instructor Edition | |
75 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id > 7 then 0 else 1 end as Status FROM ResourceModule; | |
76 | + END | |
77 | + ELSE IF @iEditionId = 8 | |
78 | + BEGIN | |
79 | + -- insert All resource module of license for Library Edition | |
80 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id < 11 and ResourceModule.id <> 6 or ResourceModule.id = 13 then 0 else 1 end as Status FROM ResourceModule; | |
81 | + END | |
82 | + ELSE IF @iEditionId = 9 | |
83 | + BEGIN | |
84 | + -- insert All resource module of license for Library Edition | |
85 | + INSERT INTO ModuleToLicense SELECT @iLicenseId as LicenseId,ResourceModule.Id as ModuleId, CASE when ResourceModule.id < 11 and ResourceModule.id <> 6 then 0 else 1 end as Status FROM ResourceModule; | |
86 | + END | |
87 | + | |
88 | + INSERT INTO LicenseToEdition(LicenseId, EditionId, TotalLogins, IsModesty) | |
89 | + VALUES(@iLicenseId, @iEditionId, @iTotalLogins, @iModesty) | |
90 | + SET @iLicenseEditionId = SCOPE_IDENTITY() | |
91 | + | |
92 | + INSERT INTO AIAUser(LoginId, Password, Firstname, Lastname, UserTypeId, EmailId, IsActive, | |
93 | + CreatorId, CreationDate, ModifierId, ModifiedDate) VALUES(@sLoginId, @sPassword, @sLicenseeFname, @sLicenseeLname, | |
94 | + @iUserTypeId, @sEmailId, @iActive, @iCreatorId, @dtCurrentDate, @iCreatorId, @dtCurrentDate) | |
95 | + SET @iAIAUserId = SCOPE_IDENTITY() | |
96 | + | |
97 | + INSERT INTO AIAUserToLicenseEdition(UserId, LicenseEditionId) VALUES(@iAIAUserId, @iLicenseEditionId) | |
98 | + | |
99 | + COMMIT TRANSACTION | |
100 | + SELECT @sErrorStatus as SPStatus | |
101 | + END TRY | |
102 | + BEGIN CATCH | |
103 | + IF @@TRANCOUNT > 0 | |
104 | + ROLLBACK TRANSACTION | |
105 | + SELECT Error_Message() as SPStatus | |
106 | + END CATCH | |
107 | + | |
108 | +END | |
109 | + | |
110 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_UpdateAiaUserPassword.sql
0 → 100644
1 | + if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_UpdateAiaUserPassword]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_UpdateAiaUserPassword] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_UpdateAiaUserPassword] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @Id int, | |
8 | + @NewPassword VARCHAR(50), | |
9 | + @Status bit out | |
10 | +AS | |
11 | +BEGIN | |
12 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
13 | + -- interfering with SELECT statements. | |
14 | + SET NOCOUNT ON; | |
15 | + | |
16 | + set @Status = 0; | |
17 | + BEGIN TRY | |
18 | + BEGIN TRANSACTION | |
19 | + UPDATE AIAUser SET Password= @NewPassword,ModifiedDate=getdate() where Id = @Id; | |
20 | + COMMIT TRANSACTION | |
21 | + set @Status = 1; | |
22 | + END TRY | |
23 | + BEGIN CATCH | |
24 | + IF @@TRANCOUNT > 0 | |
25 | + ROLLBACK TRANSACTION | |
26 | + END CATCH | |
27 | + | |
28 | +END | |
29 | + | |
30 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_UpdateDiscount.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_UpdateDiscount]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_UpdateDiscount] | |
3 | +GO | |
4 | + | |
5 | +CREATE PROCEDURE [dbo].[usp_UpdateDiscount] | |
6 | + -- Add the parameters for the stored procedure here | |
7 | + @iDiscountId INT, @dPercentage DECIMAL(5,2), @sStartDate VARCHAR(20), @sEndDate VARCHAR(20), @iActive TINYINT, @sDiscountCode VARCHAR(255)='' | |
8 | +AS | |
9 | +BEGIN | |
10 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
11 | + -- interfering with SELECT statements. | |
12 | + SET NOCOUNT ON; | |
13 | + BEGIN TRY | |
14 | + BEGIN TRANSACTION | |
15 | + DECLARE @dtStartDate DATETIME, @dtEndDate DATETIME | |
16 | + DECLARE @sErrorStatus CHAR(2) | |
17 | + | |
18 | + SET @sErrorStatus = 'ok' | |
19 | + | |
20 | + -- convert the datatype of startdate & enddate parameter to datetime | |
21 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
22 | + SELECT @dtEndDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate))) | |
23 | + | |
24 | + UPDATE Discount SET Percentage = @dPercentage, StartDate = @dtStartDate, EndDate = @dtEndDate, | |
25 | + IsActive = @iActive, DiscountCode = @sDiscountCode WHERE Id = @iDiscountId | |
26 | + | |
27 | + COMMIT | |
28 | + SELECT @sErrorStatus as SPStatus | |
29 | + END TRY | |
30 | + BEGIN CATCH | |
31 | + IF @@TRANCOUNT > 0 | |
32 | + ROLLBACK TRANSACTION | |
33 | + SELECT Error_Message() as SPStatus | |
34 | + END CATCH | |
35 | + | |
36 | +END | |
37 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_UpdateLicenseAccount.sql
0 → 100644
1 | + | |
2 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_UpdateLicenseAccount]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
3 | +drop procedure [dbo].[usp_UpdateLicenseAccount] | |
4 | +GO | |
5 | + | |
6 | +CREATE PROCEDURE [dbo].[usp_UpdateLicenseAccount] | |
7 | + -- Add the parameters for the stored procedure here | |
8 | + @iLicenseId int, @sLicenseeFname varchar(50), @sLicenseeLname varchar(50), | |
9 | + @iLicenseTypeId tinyint, @iAccountTypeId tinyint, @sInstitutionName varchar(100)='', @sAddress1 varchar(100)='', | |
10 | + @sAddress2 varchar(100)='', @sCity varchar(50)='', @sZip varchar(20)='', @iStateId int, @iCountryId int, | |
11 | + @sPhone varchar(30) = '', @sEmailId varchar(50), @iIsActive tinyint, @iTotalLogins int = 0, @iIsRennew tinyint, | |
12 | + @sStartDate varchar(20), @sEndDate varchar(20), @sRenewDate varchar(20), @sMasterIP varchar(100) = '', | |
13 | + @sEditionList varchar(256), @iPrice numeric(14,2), @sProductKey varchar(50), @sSiteIPTo varchar(100) = '', @sSiteMasterIPTo varchar(100) = '', | |
14 | + @iNoofImages int | |
15 | +AS | |
16 | +BEGIN | |
17 | + | |
18 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
19 | + -- interfering with SELECT statements. | |
20 | + SET NOCOUNT ON; | |
21 | + | |
22 | + BEGIN TRY | |
23 | + BEGIN TRANSACTION | |
24 | + DECLARE @cEditionLogins CURSOR | |
25 | + DECLARE @iSiteId INT | |
26 | + DECLARE @iLicenseEditionId INT | |
27 | + DECLARE @iModesty TINYINT | |
28 | + DECLARE @dtStartDate DATETIME | |
29 | + DECLARE @dtEndDate DATETIME | |
30 | + DECLARE @dtRenewDate DATETIME | |
31 | + DECLARE @sErrorStatus CHAR(2) | |
32 | + DECLARE @dtCurrentDate DATETIME | |
33 | + DECLARE @sitem VARCHAR(100) | |
34 | + DECLARE @sRecordDelimiter CHAR(1) | |
35 | + DECLARE @sEditionLoginDelimiter CHAR(1) | |
36 | + DECLARE @sPaymentMode VARCHAR(10) | |
37 | + DECLARE @iLicenseSubscriptionId INT | |
38 | + DECLARE @iSubscriptionId SMALLINT | |
39 | + DECLARE @dtCancellationDate DATETIME | |
40 | + DECLARE @iEditionExists TINYINT | |
41 | + DECLARE @sCountryCode VARCHAR(10) | |
42 | + | |
43 | + -- set the parameters to default values | |
44 | + SET @iModesty = 0 | |
45 | + SET @sRecordDelimiter = '|' | |
46 | + SET @sEditionLoginDelimiter = '-' | |
47 | + SET @iSubscriptionId = NULL | |
48 | + SET @dtCancellationDate = NULL | |
49 | + SET @dtCurrentDate = getdate() | |
50 | + SET @sPaymentMode = 'CASH' | |
51 | + SET @sErrorStatus = 'ok' | |
52 | + | |
53 | + IF @iStateId = 0 | |
54 | + BEGIN | |
55 | + SET @iStateId = (SELECT Id FROM State WHERE StateName='Other') | |
56 | + END | |
57 | + | |
58 | + -- set the state to Other if the country is Non-US | |
59 | + SET @sCountryCode = (SELECT CountryCode from Country WHERE Id = @iCountryId) | |
60 | + IF @sCountryCode != 'US' | |
61 | + BEGIN | |
62 | + SET @iStateId = (SELECT Id FROM State WHERE StateName='Other') | |
63 | + END | |
64 | + | |
65 | + -- convert the datatype of startdate & enddate parameter to datetime | |
66 | + SELECT @dtStartDate = CONVERT(DATETIME,@sStartDate) | |
67 | + SELECT @dtRenewDate = CONVERT(DATETIME,@sRenewDate) | |
68 | + SELECT @dtEndDate = DATEADD(ms,-3,DATEADD(DAY,1,CONVERT(DATETIME,@sEndDate))) | |
69 | + -- if user inactive the license then set the cancellation date to current date | |
70 | + IF @iIsActive = 0 | |
71 | + BEGIN | |
72 | + SET @dtCancellationDate = @dtCurrentDate | |
73 | + END | |
74 | + | |
75 | + UPDATE License SET LicenseeFirstName = @sLicenseeFname, LicenseeLastName = @sLicenseeLname, | |
76 | + AccountTypeId = @iAccountTypeId, InstitutionName = @sInstitutionName, EmailId = @sEmailId, | |
77 | + Address1 = @sAddress1, Address2 = @sAddress2, City = @sCity, Zip = @sZip, StateId = @iStateId, | |
78 | + CountryId = @iCountryId, Phone = @sPhone, TotalLogins = @iTotalLogins, IsActive = @iIsActive, | |
79 | + ModifiedDate = @dtCurrentDate, CancellationDate = @dtCancellationDate, ProductId = @sProductKey WHERE Id = @iLicenseId | |
80 | + | |
81 | + SET @iLicenseSubscriptionId = (SELECT MAX(Id) FROM LicenseSubscriptionDetail WHERE LicenseId = @iLicenseId) | |
82 | + -- if the subscription of license is renew | |
83 | + IF @iIsRennew = 1 | |
84 | + BEGIN | |
85 | + -- check if license is single license | |
86 | + IF @iLicenseTypeId = 2 | |
87 | + BEGIN | |
88 | + SET @iSubscriptionId = (SELECT SubscriptionPlanId FROM LicenseSubscriptionDetail WHERE Id = @iLicenseSubscriptionId) | |
89 | + END | |
90 | + INSERT INTO LicenseSubscriptionDetail(LicenseId, SubscriptionPlanId, SubscriptionValidFrom, | |
91 | + SubscriptionValidThrough, RenewalDate, PaymentMode, TotalAmount, AmountPaid,NoofImages) | |
92 | + VALUES(@iLicenseId, @iSubscriptionId, @dtStartDate, @dtEndDate, @dtRenewDate, @sPaymentMode, @iPrice, @iPrice,@iNoofImages) | |
93 | + UPDATE License SET NoOfRenewals = NoOfRenewals + 1 WHERE Id = @iLicenseId | |
94 | + END | |
95 | + ELSE | |
96 | + BEGIN | |
97 | + UPDATE LicenseSubscriptionDetail SET SubscriptionValidFrom = @dtStartDate, | |
98 | + SubscriptionValidThrough = @dtEndDate, TotalAmount = @iPrice, AmountPaid = @iPrice , NoofImages =@iNoofImages | |
99 | + WHERE Id = @iLicenseSubscriptionId | |
100 | + END | |
101 | + | |
102 | + -- check if license is site license | |
103 | + IF @iLicenseTypeId = 3 | |
104 | + BEGIN | |
105 | + | |
106 | + SET @iSiteId = (SELECT DISTINCT Max(Site.Id) FROM LicenseToEdition | |
107 | + INNER JOIN SiteToLicenseEdition ON LicenseToEdition.Id = SiteToLicenseEdition.LicenseEditionId | |
108 | + INNER JOIN Site ON SiteToLicenseEdition.SiteId = Site.Id | |
109 | + WHERE LicenseToEdition.LicenseId=@iLicenseId AND Site.IsMaster=1 AND Site.IsActive=1) | |
110 | + | |
111 | + UPDATE Site SET SiteIP = @sMasterIP, Title = @sMasterIP, ModifiedDate = @dtCurrentDate, | |
112 | + SiteIPTo = @sSiteIPTo, SiteMasterIPTo = @sSiteMasterIPTo | |
113 | + WHERE Id = @iSiteId | |
114 | + END | |
115 | + | |
116 | + SET @cEditionLogins = CURSOR FAST_FORWARD FOR SELECT item FROM dbo.fnSplit(@sEditionList,@sRecordDelimiter) | |
117 | + OPEN @cEditionLogins | |
118 | + FETCH NEXT FROM @cEditionLogins INTO @sitem | |
119 | + WHILE @@FETCH_STATUS = 0 | |
120 | + BEGIN | |
121 | + SET @iEditionExists = (SELECT 1 FROM LicenseToEdition WHERE LicenseId = @iLicenseId AND EditionId = SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1)) | |
122 | + | |
123 | + IF @iEditionExists IS NULL OR @iEditionExists = 0 | |
124 | + BEGIN | |
125 | + INSERT INTO LicenseToEdition(LicenseId, EditionId, TotalLogins, IsModesty) | |
126 | + SELECT @iLicenseId, SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1), | |
127 | + SUBSTRING(@sitem,CHARINDEX(@sEditionLoginDelimiter,@sitem)+1,LEN(@sitem)), @iModesty | |
128 | + -- check if license is site license | |
129 | + IF @iLicenseTypeId = 3 | |
130 | + BEGIN | |
131 | + -- to get the last inserted licenseedition id identity value in the current session | |
132 | + SET @iLicenseEditionId = SCOPE_IDENTITY() | |
133 | + INSERT INTO SiteToLicenseEdition (SiteId, LicenseEditionId, IsModesty) VALUES (@iSiteId, @iLicenseEditionId, @iModesty) | |
134 | + END | |
135 | + END | |
136 | + ELSE | |
137 | + BEGIN | |
138 | + UPDATE LicenseToEdition SET TotalLogins = SUBSTRING(@sitem,CHARINDEX(@sEditionLoginDelimiter,@sitem)+1,LEN(@sitem)) | |
139 | + WHERE LicenseId = @iLicenseId | |
140 | + AND EditionId = SUBSTRING(@sitem,1,CHARINDEX(@sEditionLoginDelimiter,@sitem)-1) | |
141 | + END | |
142 | + FETCH NEXT FROM @cEditionLogins INTO @sitem | |
143 | + END | |
144 | + | |
145 | + COMMIT TRANSACTION | |
146 | + SELECT @sErrorStatus as SPStatus | |
147 | + END TRY | |
148 | + BEGIN CATCH | |
149 | + IF @@TRANCOUNT > 0 | |
150 | + ROLLBACK TRANSACTION | |
151 | + SELECT Error_Message() as SPStatus | |
152 | + END CATCH | |
153 | + | |
154 | +END | |
155 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/dbo.usp_UpdateUserProfile.sql
0 → 100644
1 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_UpdateUserProfile]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
2 | +drop procedure [dbo].[usp_UpdateUserProfile] | |
3 | +GO | |
4 | +CREATE PROCEDURE [dbo].[usp_UpdateUserProfile] | |
5 | + -- Add the parameters for the stored procedure here | |
6 | + @Id int, | |
7 | + @FirstName VARCHAR(100), | |
8 | + @LastName VARCHAR(100), | |
9 | + @EmailId varchar(50), | |
10 | + @Status int out | |
11 | +AS | |
12 | +BEGIN | |
13 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
14 | + -- interfering with SELECT statements. | |
15 | + SET NOCOUNT ON; | |
16 | + | |
17 | + set @Status = 0; | |
18 | + BEGIN TRY | |
19 | + BEGIN TRANSACTION | |
20 | + UPDATE AIAUser SET FirstName= @FirstName, LastName= @LastName, EmailId = @EmailId | |
21 | + where Id = @Id; | |
22 | + COMMIT TRANSACTION | |
23 | + set @Status = 1; | |
24 | + END TRY | |
25 | + BEGIN CATCH | |
26 | + IF @@TRANCOUNT > 0 | |
27 | + ROLLBACK TRANSACTION | |
28 | + END CATCH | |
29 | + | |
30 | +END | |
31 | + | ... | ... |
500-DBDump/AIA-StoredProcedures/usp_GetSiteAccountAdmin.sql
0 → 100644
1 | +USE [AIADatabaseV5] | |
2 | +GO | |
3 | +/****** Object: StoredProcedure [dbo].[usp_GetSiteAccountAdmin] Script Date: 2/1/2018 12:15:55 PM ******/ | |
4 | +SET ANSI_NULLS ON | |
5 | +GO | |
6 | +SET QUOTED_IDENTIFIER ON | |
7 | +GO | |
8 | +-- ============================================= | |
9 | +-- Author: magic | |
10 | +-- Create date: 5/6/2018 | |
11 | +-- Description: Fetch building level accounts client admins for corresponding given Account Number. | |
12 | +-- ============================================= | |
13 | + | |
14 | +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetSiteAccountAdmin]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
15 | +drop procedure [dbo].[usp_GetSiteAccountAdmin] | |
16 | +GO | |
17 | + | |
18 | +CREATE PROCEDURE [dbo].[usp_GetSiteAccountAdmin] | |
19 | + -- Add the parameters for the stored procedure here | |
20 | + @AccountNumber varchar(50)='' | |
21 | + | |
22 | +AS | |
23 | +BEGIN | |
24 | + -- SET NOCOUNT ON added to prevent extra result sets from | |
25 | + -- interfering with SELECT statements. | |
26 | + SET NOCOUNT ON; | |
27 | + | |
28 | + SELECT AIAUser.Id, AIAUser.Password, AIAUser.LoginId, AIAUser.FirstName, AIAUser.UserTypeId, AIAUser.LastName, AIAUser.EmailId, AIAUser.IsActive, | |
29 | + AIAUser.SecurityQuestionId, AIAUser.SecurityAnswer, AIAUser.CreatorId, AIAUser.CreationDate, AIAUser.ModifierId, AIAUser.ModifiedDate, | |
30 | + AIAUser.DeactivationDate | |
31 | + FROM AIAUser | |
32 | + INNER JOIN AIAUserToLicenseEdition ON AIAUser.Id = AIAUserToLicenseEdition.UserId | |
33 | + INNER JOIN LicenseToEdition ON AIAUserToLicenseEdition.LicenseEditionId = LicenseToEdition.Id | |
34 | + INNER JOIN License ON LicenseToEdition.LicenseId = License.Id | |
35 | + WHERE (AIAUser.IsActive = 1) AND (License.AccountNumber = @AccountNumber) AND (AIAUser.UserTypeId = 4); | |
36 | + | |
37 | +END | |
38 | + | |
39 | + | |
40 | + | |
41 | +GO | ... | ... |