Commit e5cdf18d436a38940b5ae4194803f9f623caa4f3

Authored by Gagandeep
1 parent e9497eda

Merge code

Showing 29 changed files with 777 additions and 1445 deletions
400-SOURCECODE/AIAHTML5.ADMIN.API/AIAHTML5.ADMIN.API.csproj
@@ -513,7 +513,10 @@ @@ -513,7 +513,10 @@
513 <Compile Include="Entity\GetSearchTerms_Result.cs"> 513 <Compile Include="Entity\GetSearchTerms_Result.cs">
514 <DependentUpon>AIADBEntity.tt</DependentUpon> 514 <DependentUpon>AIADBEntity.tt</DependentUpon>
515 </Compile> 515 </Compile>
516 - <Compile Include="Entity\GetSearchUserList_Result.cs"> 516 + <Compile Include="Entity\GetSearchUserList1_Result.cs">
  517 + <DependentUpon>AIADBEntity.tt</DependentUpon>
  518 + </Compile>
  519 + <Compile Include="Entity\GetSearchUsers_Result.cs">
517 <DependentUpon>AIADBEntity.tt</DependentUpon> 520 <DependentUpon>AIADBEntity.tt</DependentUpon>
518 </Compile> 521 </Compile>
519 <Compile Include="Entity\GetSiteAccoutDetail_Result.cs"> 522 <Compile Include="Entity\GetSiteAccoutDetail_Result.cs">
@@ -726,7 +729,10 @@ @@ -726,7 +729,10 @@
726 <Compile Include="Entity\usp_GetLicenseModestySettings_Result.cs"> 729 <Compile Include="Entity\usp_GetLicenseModestySettings_Result.cs">
727 <DependentUpon>AIADBEntity.tt</DependentUpon> 730 <DependentUpon>AIADBEntity.tt</DependentUpon>
728 </Compile> 731 </Compile>
729 - <Compile Include="Entity\usp_GetLicenses_Result.cs"> 732 + <Compile Include="Entity\usp_GetlicensesList_Result.cs">
  733 + <DependentUpon>AIADBEntity.tt</DependentUpon>
  734 + </Compile>
  735 + <Compile Include="Entity\usp_Getlicenses_Result.cs">
730 <DependentUpon>AIADBEntity.tt</DependentUpon> 736 <DependentUpon>AIADBEntity.tt</DependentUpon>
731 </Compile> 737 </Compile>
732 <Compile Include="Entity\usp_GetLicenseTypes_Result.cs"> 738 <Compile Include="Entity\usp_GetLicenseTypes_Result.cs">
400-SOURCECODE/AIAHTML5.ADMIN.API/App_Start/WebApiConfig.cs
1 using System; 1 using System;
2 using System.Collections.Generic; 2 using System.Collections.Generic;
  3 +using System.Configuration;
3 using System.Linq; 4 using System.Linq;
4 using System.Web.Http; 5 using System.Web.Http;
5 using System.Web.Http.Cors; 6 using System.Web.Http.Cors;
@@ -15,9 +16,14 @@ namespace AIAHTML5.ADMIN.API @@ -15,9 +16,14 @@ namespace AIAHTML5.ADMIN.API
15 = Newtonsoft.Json.ReferenceLoopHandling.Ignore; 16 = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
16 GlobalConfiguration.Configuration.Formatters 17 GlobalConfiguration.Configuration.Formatters
17 .Remove(GlobalConfiguration.Configuration.Formatters.XmlFormatter); 18 .Remove(GlobalConfiguration.Configuration.Formatters.XmlFormatter);
18 - 19 + string Enablecors = ConfigurationManager.AppSettings["Enablecors"];
  20 + if (Enablecors == "false")
  21 + {
  22 + EnableCorsAttribute cors = new EnableCorsAttribute("http://localhost:4200", "*", "GET,POST");
  23 + config.EnableCors(cors);
  24 + }
19 // Configure cross domain access 25 // Configure cross domain access
20 - config.EnableCors(); 26 +
21 27
22 // Web API routes 28 // Web API routes
23 config.MapHttpAttributeRoutes(); 29 config.MapHttpAttributeRoutes();
400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/LicenseController.cs
@@ -43,14 +43,15 @@ namespace AIAHTML5.ADMIN.API.Controllers @@ -43,14 +43,15 @@ namespace AIAHTML5.ADMIN.API.Controllers
43 [HttpGet] 43 [HttpGet]
44 public HttpResponseMessage GetLicenses(string accountNumber, string licenseeFirstName, string licenseeLastName, byte licenseTypeId, 44 public HttpResponseMessage GetLicenses(string accountNumber, string licenseeFirstName, string licenseeLastName, byte licenseTypeId,
45 string institutionName, int stateId, int countryId, string emailId, DateTime subscriptionStartDate, DateTime subscriptionEndDate, 45 string institutionName, int stateId, int countryId, string emailId, DateTime subscriptionStartDate, DateTime subscriptionEndDate,
46 - bool isActive) 46 + bool isActive, int pageNo, int pageLength)
47 { 47 {
48 List<LicenseModel> LicenseList = new List<LicenseModel>(); 48 List<LicenseModel> LicenseList = new List<LicenseModel>();
  49 + int recordCount = 0;
49 try 50 try
50 { 51 {
51 LicenseList = LicenseModel.GetLicenses(dbContext, accountNumber, licenseeFirstName, licenseeLastName, licenseTypeId, institutionName, 52 LicenseList = LicenseModel.GetLicenses(dbContext, accountNumber, licenseeFirstName, licenseeLastName, licenseTypeId, institutionName,
52 - stateId, countryId, emailId, subscriptionStartDate, subscriptionEndDate, isActive);  
53 - return Request.CreateResponse(HttpStatusCode.OK, LicenseList); 53 + stateId, countryId, emailId, subscriptionStartDate, subscriptionEndDate, isActive, pageNo, pageLength, out recordCount);
  54 + return Request.CreateResponse(HttpStatusCode.OK, new { LicenseList = LicenseList, RecordCount = recordCount });
54 } 55 }
55 catch (Exception ex) 56 catch (Exception ex)
56 { 57 {
@@ -59,6 +60,7 @@ namespace AIAHTML5.ADMIN.API.Controllers @@ -59,6 +60,7 @@ namespace AIAHTML5.ADMIN.API.Controllers
59 } 60 }
60 } 61 }
61 62
  63 +
62 [Route("InsertLicense")] 64 [Route("InsertLicense")]
63 [HttpPost] 65 [HttpPost]
64 public HttpResponseMessage InsertLicense(JObject jsonData) 66 public HttpResponseMessage InsertLicense(JObject jsonData)
400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/ReportController.cs
@@ -22,10 +22,13 @@ namespace AIAHTML5.ADMIN.API.Controllers @@ -22,10 +22,13 @@ namespace AIAHTML5.ADMIN.API.Controllers
22 AIADatabaseV5Entities dbContext = new AIADatabaseV5Entities(); 22 AIADatabaseV5Entities dbContext = new AIADatabaseV5Entities();
23 [Route("GetUsageReport")] 23 [Route("GetUsageReport")]
24 [HttpGet] 24 [HttpGet]
25 - public IHttpActionResult GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, int iState, int iCountry) 25 + public IHttpActionResult GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, int iState, int iCountry, int pageNo, int pageLength)
26 { 26 {
27 - var lstUsageReport = dbContext.GetUsageReport(sFromDate, sToDate, sAccoutNumber, sZip, iState, iCountry).ToList();  
28 - return Ok(lstUsageReport); 27 +
  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();
  30 + return Ok(new { UserUsage = lstUsageReport, RecordCount = spRecordCount.Value });
  31 + //return Ok(lstUsageReport);
29 } 32 }
30 33
31 [Route("GetCustomerSummeryReport")] 34 [Route("GetCustomerSummeryReport")]
@@ -39,7 +42,7 @@ namespace AIAHTML5.ADMIN.API.Controllers @@ -39,7 +42,7 @@ namespace AIAHTML5.ADMIN.API.Controllers
39 42
40 [Route("GetExpiringSubscriptionReport")] 43 [Route("GetExpiringSubscriptionReport")]
41 [HttpGet] 44 [HttpGet]
42 - public IHttpActionResult GetExpiringSubscriptionReport(string sFromDate, string sToDate, Nullable<decimal> iStartPrice, Nullable<decimal> iEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId) 45 + public IHttpActionResult GetExpiringSubscriptionReport(string sFromDate, string sToDate, decimal iStartPrice, decimal iEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId)
43 { 46 {
44 var lstExpiringSubscriptionReport = dbContext.GetExpiringLicenses(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId).ToList(); 47 var lstExpiringSubscriptionReport = dbContext.GetExpiringLicenses(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId).ToList();
45 return Ok(lstExpiringSubscriptionReport); 48 return Ok(lstExpiringSubscriptionReport);
400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs
@@ -142,15 +142,27 @@ namespace AIAHTML5.ADMIN.API.Controllers @@ -142,15 +142,27 @@ namespace AIAHTML5.ADMIN.API.Controllers
142 142
143 [Route("Users")] 143 [Route("Users")]
144 [HttpGet] 144 [HttpGet]
145 - public IHttpActionResult UserList(string firstname, string lastname, string emailid, string accountnumber, string usertypeid, string accounttypeid) 145 + public IHttpActionResult UserList(string firstname, string lastname, string emailid, string accountnumber, string usertypeid, string accounttypeid,
  146 + int pageNo, int pageLength)
146 { 147 {
147 - int UserTypeId = (!string.IsNullOrEmpty(usertypeid) ? Convert.ToInt32(usertypeid) : 0);  
148 - int AccountTypeId = (!string.IsNullOrEmpty(accounttypeid) ? Convert.ToInt32(accounttypeid) : 0);  
149 - dbContext.Configuration.ProxyCreationEnabled = false;  
150 - List<usp_GetSearchUserList_Result> Users = dbContext.usp_GetSearchUserList(firstname, lastname, emailid, accountnumber, UserTypeId, AccountTypeId, 1).ToList();  
151 - return Ok(Users); 148 + try
  149 + {
  150 + int UserTypeId = (!string.IsNullOrEmpty(usertypeid) ? Convert.ToInt32(usertypeid) : 0);
  151 + int AccountTypeId = (!string.IsNullOrEmpty(accounttypeid) ? Convert.ToInt32(accounttypeid) : 0);
  152 + int recordCount = 0;
  153 + dbContext.Configuration.ProxyCreationEnabled = false;
  154 + //var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);
  155 + var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
  156 + //recordCount = (int)spRecordCount.Value;
  157 + List<GetSearchUsers_Result> Users = dbContext.GetSearchUsers(firstname, lastname, emailid, accountnumber, UserTypeId, AccountTypeId, 1,
  158 + pageNo, pageLength, spRecordCount).ToList();
  159 + return Ok(new { UserList = Users, RecordCount = spRecordCount.Value });
  160 + }
  161 + catch(Exception ex)
  162 + {
  163 + return BadRequest();
  164 + }
152 } 165 }
153 -  
154 [Route("UpdateUser")] 166 [Route("UpdateUser")]
155 [HttpPost] 167 [HttpPost]
156 public HttpResponseMessage UpdateUser(JObject jsonUserData) 168 public HttpResponseMessage UpdateUser(JObject jsonUserData)
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.Context.cs
@@ -1466,7 +1466,7 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -1466,7 +1466,7 @@ namespace AIAHTML5.ADMIN.API.Entity
1466 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<GetSearchTerms_Result>("GetSearchTerms"); 1466 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<GetSearchTerms_Result>("GetSearchTerms");
1467 } 1467 }
1468 1468
1469 - public virtual ObjectResult<GetSearchUserList_Result> GetSearchUserList(string sFirstName, string sLastName, string sEmailId, string sAccoutNumber, Nullable<int> iUserTypeId, Nullable<int> iAccountTypeId, Nullable<int> iLoginUserType) 1469 + public virtual int GetSearchUserList(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)
1470 { 1470 {
1471 var sFirstNameParameter = sFirstName != null ? 1471 var sFirstNameParameter = sFirstName != null ?
1472 new ObjectParameter("sFirstName", sFirstName) : 1472 new ObjectParameter("sFirstName", sFirstName) :
@@ -1496,7 +1496,15 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -1496,7 +1496,15 @@ namespace AIAHTML5.ADMIN.API.Entity
1496 new ObjectParameter("iLoginUserType", iLoginUserType) : 1496 new ObjectParameter("iLoginUserType", iLoginUserType) :
1497 new ObjectParameter("iLoginUserType", typeof(int)); 1497 new ObjectParameter("iLoginUserType", typeof(int));
1498 1498
1499 - return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<GetSearchUserList_Result>("GetSearchUserList", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter); 1499 + var pageNoParameter = pageNo.HasValue ?
  1500 + new ObjectParameter("pageNo", pageNo) :
  1501 + new ObjectParameter("pageNo", typeof(int));
  1502 +
  1503 + var pageLengthParameter = pageLength.HasValue ?
  1504 + new ObjectParameter("pageLength", pageLength) :
  1505 + new ObjectParameter("pageLength", typeof(int));
  1506 +
  1507 + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("GetSearchUserList", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter, pageNoParameter, pageLengthParameter, recordCount);
1500 } 1508 }
1501 1509
1502 public virtual ObjectResult<GetSiteAccoutDetail_Result> GetSiteAccoutDetail(string strAccountNumber) 1510 public virtual ObjectResult<GetSiteAccoutDetail_Result> GetSiteAccoutDetail(string strAccountNumber)
@@ -1630,7 +1638,7 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -1630,7 +1638,7 @@ namespace AIAHTML5.ADMIN.API.Entity
1630 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<int>>("GetTotalLoginsByLicenseEditionId", licenseEditionIdParameter); 1638 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<int>>("GetTotalLoginsByLicenseEditionId", licenseEditionIdParameter);
1631 } 1639 }
1632 1640
1633 - public virtual ObjectResult<GetUsageReport_Result> GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable<int> iState, Nullable<int> iCountry) 1641 + public virtual ObjectResult<GetUsageReport_Result> GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable<int> iState, Nullable<int> iCountry, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount)
1634 { 1642 {
1635 var sFromDateParameter = sFromDate != null ? 1643 var sFromDateParameter = sFromDate != null ?
1636 new ObjectParameter("sFromDate", sFromDate) : 1644 new ObjectParameter("sFromDate", sFromDate) :
@@ -1656,7 +1664,15 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -1656,7 +1664,15 @@ namespace AIAHTML5.ADMIN.API.Entity
1656 new ObjectParameter("iCountry", iCountry) : 1664 new ObjectParameter("iCountry", iCountry) :
1657 new ObjectParameter("iCountry", typeof(int)); 1665 new ObjectParameter("iCountry", typeof(int));
1658 1666
1659 - return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<GetUsageReport_Result>("GetUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, sZipParameter, iStateParameter, iCountryParameter); 1667 + var pageNoParameter = pageNo.HasValue ?
  1668 + new ObjectParameter("pageNo", pageNo) :
  1669 + new ObjectParameter("pageNo", typeof(int));
  1670 +
  1671 + var pageLengthParameter = pageLength.HasValue ?
  1672 + new ObjectParameter("pageLength", pageLength) :
  1673 + new ObjectParameter("pageLength", typeof(int));
  1674 +
  1675 + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<GetUsageReport_Result>("GetUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, sZipParameter, iStateParameter, iCountryParameter, pageNoParameter, pageLengthParameter, recordCount);
1660 } 1676 }
1661 1677
1662 public virtual ObjectResult<GetUsageReport_OLD_PROC_Result> GetUsageReport_OLD_PROC(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable<int> iState, Nullable<int> iCountry) 1678 public virtual ObjectResult<GetUsageReport_OLD_PROC_Result> GetUsageReport_OLD_PROC(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable<int> iState, Nullable<int> iCountry)
@@ -3159,55 +3175,6 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -3159,55 +3175,6 @@ namespace AIAHTML5.ADMIN.API.Entity
3159 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetLicenseById_Result>("usp_GetLicenseById", idParameter); 3175 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetLicenseById_Result>("usp_GetLicenseById", idParameter);
3160 } 3176 }
3161 3177
3162 - public virtual ObjectResult<usp_GetLicenses_Result> usp_GetLicenses(string sStartDate, string sEndDate, string sAccoutNumber, string sLicenseeFirstName, string sLicenseeLastName, Nullable<byte> iLicenseTypeId, string sInstituteName, string sEmail, Nullable<int> iStateId, Nullable<int> iCountryId, Nullable<bool> bisActive)  
3163 - {  
3164 - var sStartDateParameter = sStartDate != null ?  
3165 - new ObjectParameter("sStartDate", sStartDate) :  
3166 - new ObjectParameter("sStartDate", typeof(string));  
3167 -  
3168 - var sEndDateParameter = sEndDate != null ?  
3169 - new ObjectParameter("sEndDate", sEndDate) :  
3170 - new ObjectParameter("sEndDate", typeof(string));  
3171 -  
3172 - var sAccoutNumberParameter = sAccoutNumber != null ?  
3173 - new ObjectParameter("sAccoutNumber", sAccoutNumber) :  
3174 - new ObjectParameter("sAccoutNumber", typeof(string));  
3175 -  
3176 - var sLicenseeFirstNameParameter = sLicenseeFirstName != null ?  
3177 - new ObjectParameter("sLicenseeFirstName", sLicenseeFirstName) :  
3178 - new ObjectParameter("sLicenseeFirstName", typeof(string));  
3179 -  
3180 - var sLicenseeLastNameParameter = sLicenseeLastName != null ?  
3181 - new ObjectParameter("sLicenseeLastName", sLicenseeLastName) :  
3182 - new ObjectParameter("sLicenseeLastName", typeof(string));  
3183 -  
3184 - var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ?  
3185 - new ObjectParameter("iLicenseTypeId", iLicenseTypeId) :  
3186 - new ObjectParameter("iLicenseTypeId", typeof(byte));  
3187 -  
3188 - var sInstituteNameParameter = sInstituteName != null ?  
3189 - new ObjectParameter("sInstituteName", sInstituteName) :  
3190 - new ObjectParameter("sInstituteName", typeof(string));  
3191 -  
3192 - var sEmailParameter = sEmail != null ?  
3193 - new ObjectParameter("sEmail", sEmail) :  
3194 - new ObjectParameter("sEmail", typeof(string));  
3195 -  
3196 - var iStateIdParameter = iStateId.HasValue ?  
3197 - new ObjectParameter("iStateId", iStateId) :  
3198 - new ObjectParameter("iStateId", typeof(int));  
3199 -  
3200 - var iCountryIdParameter = iCountryId.HasValue ?  
3201 - new ObjectParameter("iCountryId", iCountryId) :  
3202 - new ObjectParameter("iCountryId", typeof(int));  
3203 -  
3204 - var bisActiveParameter = bisActive.HasValue ?  
3205 - new ObjectParameter("bisActive", bisActive) :  
3206 - new ObjectParameter("bisActive", typeof(bool));  
3207 -  
3208 - return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetLicenses_Result>("usp_GetLicenses", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, sLicenseeFirstNameParameter, sLicenseeLastNameParameter, iLicenseTypeIdParameter, sInstituteNameParameter, sEmailParameter, iStateIdParameter, iCountryIdParameter, bisActiveParameter);  
3209 - }  
3210 -  
3211 public virtual ObjectResult<usp_GetLicenseTypes_Result> usp_GetLicenseTypes() 3178 public virtual ObjectResult<usp_GetLicenseTypes_Result> usp_GetLicenseTypes()
3212 { 3179 {
3213 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetLicenseTypes_Result>("usp_GetLicenseTypes"); 3180 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetLicenseTypes_Result>("usp_GetLicenseTypes");
@@ -3530,5 +3497,201 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -3530,5 +3497,201 @@ namespace AIAHTML5.ADMIN.API.Entity
3530 3497
3531 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_UpdateLicenseUserGroupUsers", userGroupIdParameter, userIdsParameter, status); 3498 return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_UpdateLicenseUserGroupUsers", userGroupIdParameter, userIdsParameter, status);
3532 } 3499 }
  3500 +
  3501 + public virtual ObjectResult<usp_Getlicenses_Result> usp_Getlicenses(string sStartDate, string sEndDate, string sAccoutNumber, string sLicenseeFirstName, string sLicenseeLastName, Nullable<byte> iLicenseTypeId, string sInstituteName, string sEmail, Nullable<int> iStateId, Nullable<int> iCountryId, Nullable<bool> bisActive, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount)
  3502 + {
  3503 + var sStartDateParameter = sStartDate != null ?
  3504 + new ObjectParameter("sStartDate", sStartDate) :
  3505 + new ObjectParameter("sStartDate", typeof(string));
  3506 +
  3507 + var sEndDateParameter = sEndDate != null ?
  3508 + new ObjectParameter("sEndDate", sEndDate) :
  3509 + new ObjectParameter("sEndDate", typeof(string));
  3510 +
  3511 + var sAccoutNumberParameter = sAccoutNumber != null ?
  3512 + new ObjectParameter("sAccoutNumber", sAccoutNumber) :
  3513 + new ObjectParameter("sAccoutNumber", typeof(string));
  3514 +
  3515 + var sLicenseeFirstNameParameter = sLicenseeFirstName != null ?
  3516 + new ObjectParameter("sLicenseeFirstName", sLicenseeFirstName) :
  3517 + new ObjectParameter("sLicenseeFirstName", typeof(string));
  3518 +
  3519 + var sLicenseeLastNameParameter = sLicenseeLastName != null ?
  3520 + new ObjectParameter("sLicenseeLastName", sLicenseeLastName) :
  3521 + new ObjectParameter("sLicenseeLastName", typeof(string));
  3522 +
  3523 + var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ?
  3524 + new ObjectParameter("iLicenseTypeId", iLicenseTypeId) :
  3525 + new ObjectParameter("iLicenseTypeId", typeof(byte));
  3526 +
  3527 + var sInstituteNameParameter = sInstituteName != null ?
  3528 + new ObjectParameter("sInstituteName", sInstituteName) :
  3529 + new ObjectParameter("sInstituteName", typeof(string));
  3530 +
  3531 + var sEmailParameter = sEmail != null ?
  3532 + new ObjectParameter("sEmail", sEmail) :
  3533 + new ObjectParameter("sEmail", typeof(string));
  3534 +
  3535 + var iStateIdParameter = iStateId.HasValue ?
  3536 + new ObjectParameter("iStateId", iStateId) :
  3537 + new ObjectParameter("iStateId", typeof(int));
  3538 +
  3539 + var iCountryIdParameter = iCountryId.HasValue ?
  3540 + new ObjectParameter("iCountryId", iCountryId) :
  3541 + new ObjectParameter("iCountryId", typeof(int));
  3542 +
  3543 + var bisActiveParameter = bisActive.HasValue ?
  3544 + new ObjectParameter("bisActive", bisActive) :
  3545 + new ObjectParameter("bisActive", typeof(bool));
  3546 +
  3547 + var pageNoParameter = pageNo.HasValue ?
  3548 + new ObjectParameter("pageNo", pageNo) :
  3549 + new ObjectParameter("pageNo", typeof(int));
  3550 +
  3551 + var pageLengthParameter = pageLength.HasValue ?
  3552 + new ObjectParameter("pageLength", pageLength) :
  3553 + new ObjectParameter("pageLength", typeof(int));
  3554 +
  3555 + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_Getlicenses_Result>("usp_Getlicenses", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, sLicenseeFirstNameParameter, sLicenseeLastNameParameter, iLicenseTypeIdParameter, sInstituteNameParameter, sEmailParameter, iStateIdParameter, iCountryIdParameter, bisActiveParameter, pageNoParameter, pageLengthParameter, recordCount);
  3556 + }
  3557 +
  3558 + public virtual ObjectResult<usp_GetlicensesList_Result> usp_GetlicensesList(string sStartDate, string sEndDate, string sAccoutNumber, string sLicenseeFirstName, string sLicenseeLastName, Nullable<byte> iLicenseTypeId, string sInstituteName, string sEmail, Nullable<int> iStateId, Nullable<int> iCountryId, Nullable<bool> bisActive, Nullable<int> pageNo, Nullable<int> pageLength, ObjectParameter recordCount)
  3559 + {
  3560 + var sStartDateParameter = sStartDate != null ?
  3561 + new ObjectParameter("sStartDate", sStartDate) :
  3562 + new ObjectParameter("sStartDate", typeof(string));
  3563 +
  3564 + var sEndDateParameter = sEndDate != null ?
  3565 + new ObjectParameter("sEndDate", sEndDate) :
  3566 + new ObjectParameter("sEndDate", typeof(string));
  3567 +
  3568 + var sAccoutNumberParameter = sAccoutNumber != null ?
  3569 + new ObjectParameter("sAccoutNumber", sAccoutNumber) :
  3570 + new ObjectParameter("sAccoutNumber", typeof(string));
  3571 +
  3572 + var sLicenseeFirstNameParameter = sLicenseeFirstName != null ?
  3573 + new ObjectParameter("sLicenseeFirstName", sLicenseeFirstName) :
  3574 + new ObjectParameter("sLicenseeFirstName", typeof(string));
  3575 +
  3576 + var sLicenseeLastNameParameter = sLicenseeLastName != null ?
  3577 + new ObjectParameter("sLicenseeLastName", sLicenseeLastName) :
  3578 + new ObjectParameter("sLicenseeLastName", typeof(string));
  3579 +
  3580 + var iLicenseTypeIdParameter = iLicenseTypeId.HasValue ?
  3581 + new ObjectParameter("iLicenseTypeId", iLicenseTypeId) :
  3582 + new ObjectParameter("iLicenseTypeId", typeof(byte));
  3583 +
  3584 + var sInstituteNameParameter = sInstituteName != null ?
  3585 + new ObjectParameter("sInstituteName", sInstituteName) :
  3586 + new ObjectParameter("sInstituteName", typeof(string));
  3587 +
  3588 + var sEmailParameter = sEmail != null ?
  3589 + new ObjectParameter("sEmail", sEmail) :
  3590 + new ObjectParameter("sEmail", typeof(string));
  3591 +
  3592 + var iStateIdParameter = iStateId.HasValue ?
  3593 + new ObjectParameter("iStateId", iStateId) :
  3594 + new ObjectParameter("iStateId", typeof(int));
  3595 +
  3596 + var iCountryIdParameter = iCountryId.HasValue ?
  3597 + new ObjectParameter("iCountryId", iCountryId) :
  3598 + new ObjectParameter("iCountryId", typeof(int));
  3599 +
  3600 + var bisActiveParameter = bisActive.HasValue ?
  3601 + new ObjectParameter("bisActive", bisActive) :
  3602 + new ObjectParameter("bisActive", typeof(bool));
  3603 +
  3604 + var pageNoParameter = pageNo.HasValue ?
  3605 + new ObjectParameter("pageNo", pageNo) :
  3606 + new ObjectParameter("pageNo", typeof(int));
  3607 +
  3608 + var pageLengthParameter = pageLength.HasValue ?
  3609 + new ObjectParameter("pageLength", pageLength) :
  3610 + new ObjectParameter("pageLength", typeof(int));
  3611 +
  3612 + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<usp_GetlicensesList_Result>("usp_GetlicensesList", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, sLicenseeFirstNameParameter, sLicenseeLastNameParameter, iLicenseTypeIdParameter, sInstituteNameParameter, sEmailParameter, iStateIdParameter, iCountryIdParameter, bisActiveParameter, pageNoParameter, pageLengthParameter, recordCount);
  3613 + }
  3614 +
  3615 + public virtual ObjectResult<GetSearchUserList1_Result> GetSearchUserList1(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)
  3616 + {
  3617 + var sFirstNameParameter = sFirstName != null ?
  3618 + new ObjectParameter("sFirstName", sFirstName) :
  3619 + new ObjectParameter("sFirstName", typeof(string));
  3620 +
  3621 + var sLastNameParameter = sLastName != null ?
  3622 + new ObjectParameter("sLastName", sLastName) :
  3623 + new ObjectParameter("sLastName", typeof(string));
  3624 +
  3625 + var sEmailIdParameter = sEmailId != null ?
  3626 + new ObjectParameter("sEmailId", sEmailId) :
  3627 + new ObjectParameter("sEmailId", typeof(string));
  3628 +
  3629 + var sAccoutNumberParameter = sAccoutNumber != null ?
  3630 + new ObjectParameter("sAccoutNumber", sAccoutNumber) :
  3631 + new ObjectParameter("sAccoutNumber", typeof(string));
  3632 +
  3633 + var iUserTypeIdParameter = iUserTypeId.HasValue ?
  3634 + new ObjectParameter("iUserTypeId", iUserTypeId) :
  3635 + new ObjectParameter("iUserTypeId", typeof(int));
  3636 +
  3637 + var iAccountTypeIdParameter = iAccountTypeId.HasValue ?
  3638 + new ObjectParameter("iAccountTypeId", iAccountTypeId) :
  3639 + new ObjectParameter("iAccountTypeId", typeof(int));
  3640 +
  3641 + var iLoginUserTypeParameter = iLoginUserType.HasValue ?
  3642 + new ObjectParameter("iLoginUserType", iLoginUserType) :
  3643 + new ObjectParameter("iLoginUserType", typeof(int));
  3644 +
  3645 + var pageNoParameter = pageNo.HasValue ?
  3646 + new ObjectParameter("pageNo", pageNo) :
  3647 + new ObjectParameter("pageNo", typeof(int));
  3648 +
  3649 + var pageLengthParameter = pageLength.HasValue ?
  3650 + new ObjectParameter("pageLength", pageLength) :
  3651 + new ObjectParameter("pageLength", typeof(int));
  3652 +
  3653 + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<GetSearchUserList1_Result>("GetSearchUserList1", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter, pageNoParameter, pageLengthParameter, recordCount);
  3654 + }
  3655 +
  3656 + public virtual ObjectResult<GetSearchUsers_Result> 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)
  3657 + {
  3658 + var sFirstNameParameter = sFirstName != null ?
  3659 + new ObjectParameter("sFirstName", sFirstName) :
  3660 + new ObjectParameter("sFirstName", typeof(string));
  3661 +
  3662 + var sLastNameParameter = sLastName != null ?
  3663 + new ObjectParameter("sLastName", sLastName) :
  3664 + new ObjectParameter("sLastName", typeof(string));
  3665 +
  3666 + var sEmailIdParameter = sEmailId != null ?
  3667 + new ObjectParameter("sEmailId", sEmailId) :
  3668 + new ObjectParameter("sEmailId", typeof(string));
  3669 +
  3670 + var sAccoutNumberParameter = sAccoutNumber != null ?
  3671 + new ObjectParameter("sAccoutNumber", sAccoutNumber) :
  3672 + new ObjectParameter("sAccoutNumber", typeof(string));
  3673 +
  3674 + var iUserTypeIdParameter = iUserTypeId.HasValue ?
  3675 + new ObjectParameter("iUserTypeId", iUserTypeId) :
  3676 + new ObjectParameter("iUserTypeId", typeof(int));
  3677 +
  3678 + var iAccountTypeIdParameter = iAccountTypeId.HasValue ?
  3679 + new ObjectParameter("iAccountTypeId", iAccountTypeId) :
  3680 + new ObjectParameter("iAccountTypeId", typeof(int));
  3681 +
  3682 + var iLoginUserTypeParameter = iLoginUserType.HasValue ?
  3683 + new ObjectParameter("iLoginUserType", iLoginUserType) :
  3684 + new ObjectParameter("iLoginUserType", typeof(int));
  3685 +
  3686 + var pageNoParameter = pageNo.HasValue ?
  3687 + new ObjectParameter("pageNo", pageNo) :
  3688 + new ObjectParameter("pageNo", typeof(int));
  3689 +
  3690 + var pageLengthParameter = pageLength.HasValue ?
  3691 + new ObjectParameter("pageLength", pageLength) :
  3692 + new ObjectParameter("pageLength", typeof(int));
  3693 +
  3694 + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<GetSearchUsers_Result>("GetSearchUsers", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter, pageNoParameter, pageLengthParameter, recordCount);
  3695 + }
3533 } 3696 }
3534 } 3697 }
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx
@@ -2178,9 +2178,6 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does @@ -2178,9 +2178,6 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does
2178 <Parameter Name="sLicenseAccount" Type="varchar" Mode="In" /> 2178 <Parameter Name="sLicenseAccount" Type="varchar" Mode="In" />
2179 <Parameter Name="iEditionId" Type="int" Mode="In" /> 2179 <Parameter Name="iEditionId" Type="int" Mode="In" />
2180 </Function> 2180 </Function>
2181 - <Function Name="GetLicenseIdByUserId" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">  
2182 - <Parameter Name="iUserId" Type="int" Mode="In" />  
2183 - </Function>  
2184 <Function Name="GetLicenseIdEditionIdByUserId" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> 2181 <Function Name="GetLicenseIdEditionIdByUserId" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
2185 <Parameter Name="iUserId" Type="int" Mode="In" /> 2182 <Parameter Name="iUserId" Type="int" Mode="In" />
2186 </Function> 2183 </Function>
@@ -2228,6 +2225,21 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does @@ -2228,6 +2225,21 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does
2228 <Parameter Name="iUserTypeId" Type="int" Mode="In" /> 2225 <Parameter Name="iUserTypeId" Type="int" Mode="In" />
2229 <Parameter Name="iAccountTypeId" Type="int" Mode="In" /> 2226 <Parameter Name="iAccountTypeId" Type="int" Mode="In" />
2230 <Parameter Name="iLoginUserType" Type="int" Mode="In" /> 2227 <Parameter Name="iLoginUserType" Type="int" Mode="In" />
  2228 + <Parameter Name="pageNo" Type="int" Mode="In" />
  2229 + <Parameter Name="pageLength" Type="int" Mode="In" />
  2230 + <Parameter Name="recordCount" Type="int" Mode="InOut" />
  2231 + </Function>
  2232 + <Function Name="GetSearchUsers" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  2233 + <Parameter Name="sFirstName" Type="varchar" Mode="In" />
  2234 + <Parameter Name="sLastName" Type="varchar" Mode="In" />
  2235 + <Parameter Name="sEmailId" Type="varchar" Mode="In" />
  2236 + <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" />
  2237 + <Parameter Name="iUserTypeId" Type="int" Mode="In" />
  2238 + <Parameter Name="iAccountTypeId" Type="int" Mode="In" />
  2239 + <Parameter Name="iLoginUserType" Type="int" Mode="In" />
  2240 + <Parameter Name="pageNo" Type="int" Mode="In" />
  2241 + <Parameter Name="pageLength" Type="int" Mode="In" />
  2242 + <Parameter Name="recordCount" Type="int" Mode="InOut" />
2231 </Function> 2243 </Function>
2232 <Function Name="GetSiteAccoutDetail" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> 2244 <Function Name="GetSiteAccoutDetail" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
2233 <Parameter Name="strAccountNumber" Type="varchar" Mode="In" /> 2245 <Parameter Name="strAccountNumber" Type="varchar" Mode="In" />
@@ -2273,6 +2285,9 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does @@ -2273,6 +2285,9 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does
2273 <Parameter Name="sZip" Type="varchar" Mode="In" /> 2285 <Parameter Name="sZip" Type="varchar" Mode="In" />
2274 <Parameter Name="iState" Type="int" Mode="In" /> 2286 <Parameter Name="iState" Type="int" Mode="In" />
2275 <Parameter Name="iCountry" Type="int" Mode="In" /> 2287 <Parameter Name="iCountry" Type="int" Mode="In" />
  2288 + <Parameter Name="pageNo" Type="int" Mode="In" />
  2289 + <Parameter Name="pageLength" Type="int" Mode="In" />
  2290 + <Parameter Name="recordCount" Type="int" Mode="InOut" />
2276 </Function> 2291 </Function>
2277 <Function Name="GetUsageReport_OLD_PROC" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> 2292 <Function Name="GetUsageReport_OLD_PROC" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
2278 <Parameter Name="sFromDate" Type="varchar" Mode="In" /> 2293 <Parameter Name="sFromDate" Type="varchar" Mode="In" />
@@ -2644,7 +2659,7 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does @@ -2644,7 +2659,7 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does
2644 <Parameter Name="iLicenseId" Type="int" Mode="In" /> 2659 <Parameter Name="iLicenseId" Type="int" Mode="In" />
2645 <Parameter Name="iBuildingLevelId" Type="int" Mode="In" /> 2660 <Parameter Name="iBuildingLevelId" Type="int" Mode="In" />
2646 </Function> 2661 </Function>
2647 - <Function Name="usp_GetLicenses" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> 2662 + <Function Name="usp_GetlicensesList" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
2648 <Parameter Name="sStartDate" Type="varchar" Mode="In" /> 2663 <Parameter Name="sStartDate" Type="varchar" Mode="In" />
2649 <Parameter Name="sEndDate" Type="varchar" Mode="In" /> 2664 <Parameter Name="sEndDate" Type="varchar" Mode="In" />
2650 <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" /> 2665 <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" />
@@ -2656,6 +2671,9 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does @@ -2656,6 +2671,9 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does
2656 <Parameter Name="iStateId" Type="int" Mode="In" /> 2671 <Parameter Name="iStateId" Type="int" Mode="In" />
2657 <Parameter Name="iCountryId" Type="int" Mode="In" /> 2672 <Parameter Name="iCountryId" Type="int" Mode="In" />
2658 <Parameter Name="bisActive" Type="bit" Mode="In" /> 2673 <Parameter Name="bisActive" Type="bit" Mode="In" />
  2674 + <Parameter Name="pageNo" Type="int" Mode="In" />
  2675 + <Parameter Name="pageLength" Type="int" Mode="In" />
  2676 + <Parameter Name="recordCount" Type="int" Mode="InOut" />
2659 </Function> 2677 </Function>
2660 <Function Name="usp_GetLicenseTypes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> 2678 <Function Name="usp_GetLicenseTypes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
2661 <Function Name="usp_GetLicenseUserGroups" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> 2679 <Function Name="usp_GetLicenseUserGroups" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
@@ -2668,15 +2686,6 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does @@ -2668,15 +2686,6 @@ warning 6002: The table/view &#39;AIADatabaseV5.dbo.VocabTermNumberToSystemMap&#39; does
2668 <Function Name="usp_GetProductEditionByLicense" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> 2686 <Function Name="usp_GetProductEditionByLicense" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
2669 <Parameter Name="iLicenseId" Type="int" Mode="In" /> 2687 <Parameter Name="iLicenseId" Type="int" Mode="In" />
2670 </Function> 2688 </Function>
2671 - <Function Name="usp_GetSearchUserList" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">  
2672 - <Parameter Name="sFirstName" Type="varchar" Mode="In" />  
2673 - <Parameter Name="sLastName" Type="varchar" Mode="In" />  
2674 - <Parameter Name="sEmailId" Type="varchar" Mode="In" />  
2675 - <Parameter Name="sAccoutNumber" Type="varchar" Mode="In" />  
2676 - <Parameter Name="iUserTypeId" Type="int" Mode="In" />  
2677 - <Parameter Name="iAccountTypeId" Type="int" Mode="In" />  
2678 - <Parameter Name="iLoginUserType" Type="int" Mode="In" />  
2679 - </Function>  
2680 <Function Name="usp_GetSiteAccountEditions" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> 2689 <Function Name="usp_GetSiteAccountEditions" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
2681 <Parameter Name="SiteId" Type="int" Mode="In" /> 2690 <Parameter Name="SiteId" Type="int" Mode="In" />
2682 <Parameter Name="LicenseId" Type="int" Mode="In" /> 2691 <Parameter Name="LicenseId" Type="int" Mode="In" />
@@ -5843,7 +5852,7 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -5843,7 +5852,7 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
5843 </FunctionImport> 5852 </FunctionImport>
5844 <FunctionImport Name="GetSearchDetails" ReturnType="Collection(AIADatabaseV5Model.GetSearchDetails_Result)" /> 5853 <FunctionImport Name="GetSearchDetails" ReturnType="Collection(AIADatabaseV5Model.GetSearchDetails_Result)" />
5845 <FunctionImport Name="GetSearchTerms" ReturnType="Collection(AIADatabaseV5Model.GetSearchTerms_Result)" /> 5854 <FunctionImport Name="GetSearchTerms" ReturnType="Collection(AIADatabaseV5Model.GetSearchTerms_Result)" />
5846 - <FunctionImport Name="GetSearchUserList" ReturnType="Collection(AIADatabaseV5Model.GetSearchUserList_Result)"> 5855 + <FunctionImport Name="GetSearchUserList">
5847 <Parameter Name="sFirstName" Mode="In" Type="String" /> 5856 <Parameter Name="sFirstName" Mode="In" Type="String" />
5848 <Parameter Name="sLastName" Mode="In" Type="String" /> 5857 <Parameter Name="sLastName" Mode="In" Type="String" />
5849 <Parameter Name="sEmailId" Mode="In" Type="String" /> 5858 <Parameter Name="sEmailId" Mode="In" Type="String" />
@@ -5851,6 +5860,9 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -5851,6 +5860,9 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
5851 <Parameter Name="iUserTypeId" Mode="In" Type="Int32" /> 5860 <Parameter Name="iUserTypeId" Mode="In" Type="Int32" />
5852 <Parameter Name="iAccountTypeId" Mode="In" Type="Int32" /> 5861 <Parameter Name="iAccountTypeId" Mode="In" Type="Int32" />
5853 <Parameter Name="iLoginUserType" Mode="In" Type="Int32" /> 5862 <Parameter Name="iLoginUserType" Mode="In" Type="Int32" />
  5863 + <Parameter Name="pageNo" Mode="In" Type="Int32" />
  5864 + <Parameter Name="pageLength" Mode="In" Type="Int32" />
  5865 + <Parameter Name="recordCount" Mode="InOut" Type="Int32" />
5854 </FunctionImport> 5866 </FunctionImport>
5855 <FunctionImport Name="GetSiteAccoutDetail" ReturnType="Collection(AIADatabaseV5Model.GetSiteAccoutDetail_Result)"> 5867 <FunctionImport Name="GetSiteAccoutDetail" ReturnType="Collection(AIADatabaseV5Model.GetSiteAccoutDetail_Result)">
5856 <Parameter Name="strAccountNumber" Mode="In" Type="String" /> 5868 <Parameter Name="strAccountNumber" Mode="In" Type="String" />
@@ -5896,6 +5908,9 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -5896,6 +5908,9 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
5896 <Parameter Name="sZip" Mode="In" Type="String" /> 5908 <Parameter Name="sZip" Mode="In" Type="String" />
5897 <Parameter Name="iState" Mode="In" Type="Int32" /> 5909 <Parameter Name="iState" Mode="In" Type="Int32" />
5898 <Parameter Name="iCountry" Mode="In" Type="Int32" /> 5910 <Parameter Name="iCountry" Mode="In" Type="Int32" />
  5911 + <Parameter Name="pageNo" Mode="In" Type="Int32" />
  5912 + <Parameter Name="pageLength" Mode="In" Type="Int32" />
  5913 + <Parameter Name="recordCount" Mode="InOut" Type="Int32" />
5899 </FunctionImport> 5914 </FunctionImport>
5900 <FunctionImport Name="GetUsageReport_OLD_PROC" ReturnType="Collection(AIADatabaseV5Model.GetUsageReport_OLD_PROC_Result)"> 5915 <FunctionImport Name="GetUsageReport_OLD_PROC" ReturnType="Collection(AIADatabaseV5Model.GetUsageReport_OLD_PROC_Result)">
5901 <Parameter Name="sFromDate" Mode="In" Type="String" /> 5916 <Parameter Name="sFromDate" Mode="In" Type="String" />
@@ -6324,19 +6339,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -6324,19 +6339,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
6324 <FunctionImport Name="usp_GetLicenseById" ReturnType="Collection(AIADatabaseV5Model.usp_GetLicenseById_Result)"> 6339 <FunctionImport Name="usp_GetLicenseById" ReturnType="Collection(AIADatabaseV5Model.usp_GetLicenseById_Result)">
6325 <Parameter Name="Id" Mode="In" Type="Int32" /> 6340 <Parameter Name="Id" Mode="In" Type="Int32" />
6326 </FunctionImport> 6341 </FunctionImport>
6327 - <FunctionImport Name="usp_GetLicenses" ReturnType="Collection(AIADatabaseV5Model.usp_GetLicenses_Result)">  
6328 - <Parameter Name="sStartDate" Mode="In" Type="String" />  
6329 - <Parameter Name="sEndDate" Mode="In" Type="String" />  
6330 - <Parameter Name="sAccoutNumber" Mode="In" Type="String" />  
6331 - <Parameter Name="sLicenseeFirstName" Mode="In" Type="String" />  
6332 - <Parameter Name="sLicenseeLastName" Mode="In" Type="String" />  
6333 - <Parameter Name="iLicenseTypeId" Mode="In" Type="Byte" />  
6334 - <Parameter Name="sInstituteName" Mode="In" Type="String" />  
6335 - <Parameter Name="sEmail" Mode="In" Type="String" />  
6336 - <Parameter Name="iStateId" Mode="In" Type="Int32" />  
6337 - <Parameter Name="iCountryId" Mode="In" Type="Int32" />  
6338 - <Parameter Name="bisActive" Mode="In" Type="Boolean" />  
6339 - </FunctionImport>  
6340 <FunctionImport Name="usp_GetLicenseTypes" ReturnType="Collection(AIADatabaseV5Model.usp_GetLicenseTypes_Result)" /> 6342 <FunctionImport Name="usp_GetLicenseTypes" ReturnType="Collection(AIADatabaseV5Model.usp_GetLicenseTypes_Result)" />
6341 <FunctionImport Name="usp_GetManageRights" ReturnType="Collection(AIADatabaseV5Model.usp_GetManageRights_Result)"> 6343 <FunctionImport Name="usp_GetManageRights" ReturnType="Collection(AIADatabaseV5Model.usp_GetManageRights_Result)">
6342 <Parameter Name="UserId" Mode="In" Type="Int32" /> 6344 <Parameter Name="UserId" Mode="In" Type="Int32" />
@@ -6421,7 +6423,7 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -6421,7 +6423,7 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
6421 <Parameter Name="Status" Mode="InOut" Type="Boolean" /> 6423 <Parameter Name="Status" Mode="InOut" Type="Boolean" />
6422 </FunctionImport> 6424 </FunctionImport>
6423 <FunctionImport Name="usp_GetLicenseUserGroups" ReturnType="Collection(AIADatabaseV5Model.usp_GetLicenseUserGroups_Result)"> 6425 <FunctionImport Name="usp_GetLicenseUserGroups" ReturnType="Collection(AIADatabaseV5Model.usp_GetLicenseUserGroups_Result)">
6424 - <Parameter Name="LicenseId" Mode="In" Type="Int32" /> 6426 + <Parameter Name="LicenseId" Mode="In" Type="Int32" />
6425 </FunctionImport> 6427 </FunctionImport>
6426 <FunctionImport Name="usp_InsertUpdateLicenseUserGroup"> 6428 <FunctionImport Name="usp_InsertUpdateLicenseUserGroup">
6427 <Parameter Name="Id" Mode="In" Type="Int32" /> 6429 <Parameter Name="Id" Mode="In" Type="Int32" />
@@ -6437,6 +6439,62 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -6437,6 +6439,62 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
6437 <Parameter Name="UserIds" Mode="In" Type="String" /> 6439 <Parameter Name="UserIds" Mode="In" Type="String" />
6438 <Parameter Name="Status" Mode="InOut" Type="Boolean" /> 6440 <Parameter Name="Status" Mode="InOut" Type="Boolean" />
6439 </FunctionImport> 6441 </FunctionImport>
  6442 + <FunctionImport Name="usp_Getlicenses" ReturnType="Collection(AIADatabaseV5Model.usp_Getlicenses_Result)">
  6443 + <Parameter Name="sStartDate" Mode="In" Type="String" />
  6444 + <Parameter Name="sEndDate" Mode="In" Type="String" />
  6445 + <Parameter Name="sAccoutNumber" Mode="In" Type="String" />
  6446 + <Parameter Name="sLicenseeFirstName" Mode="In" Type="String" />
  6447 + <Parameter Name="sLicenseeLastName" Mode="In" Type="String" />
  6448 + <Parameter Name="iLicenseTypeId" Mode="In" Type="Byte" />
  6449 + <Parameter Name="sInstituteName" Mode="In" Type="String" />
  6450 + <Parameter Name="sEmail" Mode="In" Type="String" />
  6451 + <Parameter Name="iStateId" Mode="In" Type="Int32" />
  6452 + <Parameter Name="iCountryId" Mode="In" Type="Int32" />
  6453 + <Parameter Name="bisActive" Mode="In" Type="Boolean" />
  6454 + <Parameter Name="pageNo" Mode="In" Type="Int32" />
  6455 + <Parameter Name="pageLength" Mode="In" Type="Int32" />
  6456 + <Parameter Name="recordCount" Mode="InOut" Type="Int32" />
  6457 + </FunctionImport>
  6458 + <FunctionImport Name="usp_GetlicensesList" ReturnType="Collection(AIADatabaseV5Model.usp_GetlicensesList_Result)">
  6459 + <Parameter Name="sStartDate" Mode="In" Type="String" />
  6460 + <Parameter Name="sEndDate" Mode="In" Type="String" />
  6461 + <Parameter Name="sAccoutNumber" Mode="In" Type="String" />
  6462 + <Parameter Name="sLicenseeFirstName" Mode="In" Type="String" />
  6463 + <Parameter Name="sLicenseeLastName" Mode="In" Type="String" />
  6464 + <Parameter Name="iLicenseTypeId" Mode="In" Type="Byte" />
  6465 + <Parameter Name="sInstituteName" Mode="In" Type="String" />
  6466 + <Parameter Name="sEmail" Mode="In" Type="String" />
  6467 + <Parameter Name="iStateId" Mode="In" Type="Int32" />
  6468 + <Parameter Name="iCountryId" Mode="In" Type="Int32" />
  6469 + <Parameter Name="bisActive" Mode="In" Type="Boolean" />
  6470 + <Parameter Name="pageNo" Mode="In" Type="Int32" />
  6471 + <Parameter Name="pageLength" Mode="In" Type="Int32" />
  6472 + <Parameter Name="recordCount" Mode="InOut" Type="Int32" />
  6473 + </FunctionImport>
  6474 + <FunctionImport Name="GetSearchUserList1" ReturnType="Collection(AIADatabaseV5Model.GetSearchUserList1_Result)">
  6475 + <Parameter Name="sFirstName" Mode="In" Type="String" />
  6476 + <Parameter Name="sLastName" Mode="In" Type="String" />
  6477 + <Parameter Name="sEmailId" Mode="In" Type="String" />
  6478 + <Parameter Name="sAccoutNumber" Mode="In" Type="String" />
  6479 + <Parameter Name="iUserTypeId" Mode="In" Type="Int32" />
  6480 + <Parameter Name="iAccountTypeId" Mode="In" Type="Int32" />
  6481 + <Parameter Name="iLoginUserType" Mode="In" Type="Int32" />
  6482 + <Parameter Name="pageNo" Mode="In" Type="Int32" />
  6483 + <Parameter Name="pageLength" Mode="In" Type="Int32" />
  6484 + <Parameter Name="recordCount" Mode="InOut" Type="Int32" />
  6485 + </FunctionImport>
  6486 + <FunctionImport Name="GetSearchUsers" ReturnType="Collection(AIADatabaseV5Model.GetSearchUsers_Result)">
  6487 + <Parameter Name="sFirstName" Mode="In" Type="String" />
  6488 + <Parameter Name="sLastName" Mode="In" Type="String" />
  6489 + <Parameter Name="sEmailId" Mode="In" Type="String" />
  6490 + <Parameter Name="sAccoutNumber" Mode="In" Type="String" />
  6491 + <Parameter Name="iUserTypeId" Mode="In" Type="Int32" />
  6492 + <Parameter Name="iAccountTypeId" Mode="In" Type="Int32" />
  6493 + <Parameter Name="iLoginUserType" Mode="In" Type="Int32" />
  6494 + <Parameter Name="pageNo" Mode="In" Type="Int32" />
  6495 + <Parameter Name="pageLength" Mode="In" Type="Int32" />
  6496 + <Parameter Name="recordCount" Mode="InOut" Type="Int32" />
  6497 + </FunctionImport>
6440 </EntityContainer> 6498 </EntityContainer>
6441 <ComplexType Name="DA_GetBaseLayer_Result"> 6499 <ComplexType Name="DA_GetBaseLayer_Result">
6442 <Property Type="Int32" Name="Id" Nullable="false" /> 6500 <Property Type="Int32" Name="Id" Nullable="false" />
@@ -6972,23 +7030,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -6972,23 +7030,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
6972 <Property Type="Int32" Name="PhraseId" Nullable="false" /> 7030 <Property Type="Int32" Name="PhraseId" Nullable="false" />
6973 <Property Type="Int32" Name="LexiconId" Nullable="true" /> 7031 <Property Type="Int32" Name="LexiconId" Nullable="true" />
6974 </ComplexType> 7032 </ComplexType>
6975 - <ComplexType Name="GetSearchUserList_Result">  
6976 - <Property Type="Int32" Name="Id" Nullable="true" />  
6977 - <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" />  
6978 - <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" />  
6979 - <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" />  
6980 - <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" />  
6981 - <Property Type="String" Name="UserTypeTitle" Nullable="true" MaxLength="50" />  
6982 - <Property Type="String" Name="Password" Nullable="true" MaxLength="50" />  
6983 - <Property Type="DateTime" Name="CreationDate" Nullable="true" Precision="23" />  
6984 - <Property Type="DateTime" Name="ModifiedDate" Nullable="true" Precision="23" />  
6985 - <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" />  
6986 - <Property Type="String" Name="AccountTypeTitle" Nullable="true" MaxLength="50" />  
6987 - <Property Type="String" Name="EditionType" Nullable="true" MaxLength="50" />  
6988 - <Property Type="String" Name="UserStatus" Nullable="true" MaxLength="8" />  
6989 - <Property Type="Int32" Name="UserTypeId" Nullable="true" />  
6990 - <Property Type="Int32" Name="EditionTypeId" Nullable="true" />  
6991 - </ComplexType>  
6992 <ComplexType Name="GetSiteAccoutDetail_Result"> 7033 <ComplexType Name="GetSiteAccoutDetail_Result">
6993 <Property Type="Int32" Name="Id" Nullable="false" /> 7034 <Property Type="Int32" Name="Id" Nullable="false" />
6994 <Property Type="String" Name="SiteIp" Nullable="true" MaxLength="2000" /> 7035 <Property Type="String" Name="SiteIp" Nullable="true" MaxLength="2000" />
@@ -7071,6 +7112,7 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -7071,6 +7112,7 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
7071 <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" /> 7112 <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" />
7072 <Property Type="Int32" Name="TotalLogins" Nullable="true" /> 7113 <Property Type="Int32" Name="TotalLogins" Nullable="true" />
7073 <Property Type="String" Name="LastLogin" Nullable="true" MaxLength="30" /> 7114 <Property Type="String" Name="LastLogin" Nullable="true" MaxLength="30" />
  7115 + <Property Type="Int64" Name="RowNum" Nullable="true" />
7074 </ComplexType> 7116 </ComplexType>
7075 <ComplexType Name="GetUsageReport_OLD_PROC_Result"> 7117 <ComplexType Name="GetUsageReport_OLD_PROC_Result">
7076 <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" /> 7118 <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" />
@@ -7323,28 +7365,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -7323,28 +7365,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
7323 <Property Type="DateTime" Name="RenewalDate" Nullable="true" Precision="23" /> 7365 <Property Type="DateTime" Name="RenewalDate" Nullable="true" Precision="23" />
7324 <Property Type="Boolean" Name="IsActive" Nullable="false" /> 7366 <Property Type="Boolean" Name="IsActive" Nullable="false" />
7325 </ComplexType> 7367 </ComplexType>
7326 - <ComplexType Name="usp_GetLicenses_Result">  
7327 - <Property Type="Int32" Name="LicenseId" Nullable="false" />  
7328 - <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="16" />  
7329 - <Property Type="String" Name="LicenseType" Nullable="false" MaxLength="50" />  
7330 - <Property Type="String" Name="AccountType" Nullable="false" MaxLength="50" />  
7331 - <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" />  
7332 - <Property Type="String" Name="LicenseState" Nullable="false" MaxLength="50" />  
7333 - <Property Type="String" Name="LicenseCountry" Nullable="false" MaxLength="50" />  
7334 - <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" />  
7335 - <Property Type="Int32" Name="CardNumber" Nullable="true" />  
7336 - <Property Type="String" Name="ProductKey" Nullable="true" MaxLength="50" />  
7337 - <Property Type="String" Name="ClientAdmin" Nullable="true" />  
7338 - <Property Type="String" Name="LicenseeName" Nullable="false" MaxLength="101" />  
7339 - <Property Type="String" Name="ContactAddress" Nullable="false" MaxLength="252" />  
7340 - <Property Type="String" Name="EntryDate" Nullable="true" MaxLength="30" />  
7341 - <Property Type="String" Name="LicenseStatus" Nullable="false" MaxLength="8" />  
7342 - <Property Type="String" Name="ModifyDate" Nullable="false" MaxLength="30" />  
7343 - <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" />  
7344 - <Property Type="String" Name="RenewDate" Nullable="false" MaxLength="30" />  
7345 - <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" />  
7346 - <Property Type="Int32" Name="NoofImages" Nullable="true" />  
7347 - </ComplexType>  
7348 <ComplexType Name="usp_GetLicenseTypes_Result"> 7368 <ComplexType Name="usp_GetLicenseTypes_Result">
7349 <Property Type="Byte" Name="Id" Nullable="false" /> 7369 <Property Type="Byte" Name="Id" Nullable="false" />
7350 <Property Type="String" Name="Title" Nullable="false" MaxLength="50" /> 7370 <Property Type="String" Name="Title" Nullable="false" MaxLength="50" />
@@ -7399,6 +7419,85 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -7399,6 +7419,85 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
7399 <Property Type="Boolean" Name="IsActive" Nullable="false" /> 7419 <Property Type="Boolean" Name="IsActive" Nullable="false" />
7400 <Property Type="Int32" Name="TotalUsers" Nullable="true" /> 7420 <Property Type="Int32" Name="TotalUsers" Nullable="true" />
7401 </ComplexType> 7421 </ComplexType>
  7422 + <ComplexType Name="usp_Getlicenses_Result">
  7423 + <Property Type="Int32" Name="LicenseId" Nullable="false" />
  7424 + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="16" />
  7425 + <Property Type="String" Name="LicenseType" Nullable="false" MaxLength="50" />
  7426 + <Property Type="String" Name="AccountType" Nullable="false" MaxLength="50" />
  7427 + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" />
  7428 + <Property Type="String" Name="LicenseState" Nullable="false" MaxLength="50" />
  7429 + <Property Type="String" Name="LicenseCountry" Nullable="false" MaxLength="50" />
  7430 + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" />
  7431 + <Property Type="Int32" Name="CardNumber" Nullable="true" />
  7432 + <Property Type="String" Name="ProductKey" Nullable="true" MaxLength="50" />
  7433 + <Property Type="String" Name="ClientAdmin" Nullable="true" />
  7434 + <Property Type="String" Name="LicenseeName" Nullable="false" MaxLength="101" />
  7435 + <Property Type="String" Name="ContactAddress" Nullable="false" MaxLength="252" />
  7436 + <Property Type="String" Name="EntryDate" Nullable="true" MaxLength="30" />
  7437 + <Property Type="String" Name="LicenseStatus" Nullable="false" MaxLength="8" />
  7438 + <Property Type="String" Name="ModifyDate" Nullable="false" MaxLength="30" />
  7439 + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" />
  7440 + <Property Type="String" Name="RenewDate" Nullable="false" MaxLength="30" />
  7441 + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" />
  7442 + <Property Type="Int32" Name="NoofImages" Nullable="true" />
  7443 + </ComplexType>
  7444 + <ComplexType Name="usp_GetlicensesList_Result">
  7445 + <Property Type="Int32" Name="LicenseId" Nullable="false" />
  7446 + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="16" />
  7447 + <Property Type="String" Name="LicenseType" Nullable="false" MaxLength="50" />
  7448 + <Property Type="String" Name="AccountType" Nullable="false" MaxLength="50" />
  7449 + <Property Type="String" Name="InstitutionName" Nullable="true" MaxLength="100" />
  7450 + <Property Type="String" Name="LicenseState" Nullable="false" MaxLength="50" />
  7451 + <Property Type="String" Name="LicenseCountry" Nullable="false" MaxLength="50" />
  7452 + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" />
  7453 + <Property Type="Int32" Name="CardNumber" Nullable="true" />
  7454 + <Property Type="String" Name="ProductKey" Nullable="true" MaxLength="50" />
  7455 + <Property Type="String" Name="ClientAdmin" Nullable="true" />
  7456 + <Property Type="String" Name="LicenseeName" Nullable="false" MaxLength="101" />
  7457 + <Property Type="String" Name="ContactAddress" Nullable="false" MaxLength="252" />
  7458 + <Property Type="String" Name="EntryDate" Nullable="true" MaxLength="30" />
  7459 + <Property Type="String" Name="LicenseStatus" Nullable="false" MaxLength="8" />
  7460 + <Property Type="String" Name="ModifyDate" Nullable="false" MaxLength="30" />
  7461 + <Property Type="String" Name="StartDate" Nullable="true" MaxLength="30" />
  7462 + <Property Type="String" Name="RenewDate" Nullable="false" MaxLength="30" />
  7463 + <Property Type="String" Name="EndDate" Nullable="true" MaxLength="30" />
  7464 + <Property Type="Int32" Name="NoofImages" Nullable="true" />
  7465 + </ComplexType>
  7466 + <ComplexType Name="GetSearchUserList1_Result">
  7467 + <Property Type="Int32" Name="Id" Nullable="true" />
  7468 + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" />
  7469 + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" />
  7470 + <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" />
  7471 + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" />
  7472 + <Property Type="String" Name="UserTypeTitle" Nullable="true" MaxLength="50" />
  7473 + <Property Type="String" Name="Password" Nullable="true" MaxLength="50" />
  7474 + <Property Type="DateTime" Name="CreationDate" Nullable="true" Precision="23" />
  7475 + <Property Type="DateTime" Name="ModifiedDate" Nullable="true" Precision="23" />
  7476 + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" />
  7477 + <Property Type="String" Name="AccountTypeTitle" Nullable="true" MaxLength="50" />
  7478 + <Property Type="String" Name="EditionType" Nullable="true" MaxLength="50" />
  7479 + <Property Type="String" Name="UserStatus" Nullable="true" MaxLength="8" />
  7480 + <Property Type="Int32" Name="UserTypeId" Nullable="true" />
  7481 + <Property Type="Int32" Name="EditionTypeId" Nullable="true" />
  7482 + </ComplexType>
  7483 + <ComplexType Name="GetSearchUsers_Result">
  7484 + <Property Type="Int64" Name="RowNum" Nullable="true" />
  7485 + <Property Type="Int32" Name="Id" Nullable="true" />
  7486 + <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" />
  7487 + <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" />
  7488 + <Property Type="String" Name="LoginId" Nullable="true" MaxLength="50" />
  7489 + <Property Type="String" Name="EmailId" Nullable="true" MaxLength="50" />
  7490 + <Property Type="String" Name="UserTypeTitle" Nullable="true" MaxLength="50" />
  7491 + <Property Type="String" Name="Password" Nullable="true" MaxLength="50" />
  7492 + <Property Type="DateTime" Name="CreationDate" Nullable="true" Precision="23" />
  7493 + <Property Type="DateTime" Name="ModifiedDate" Nullable="true" Precision="23" />
  7494 + <Property Type="String" Name="AccountNumber" Nullable="true" MaxLength="50" />
  7495 + <Property Type="String" Name="AccountTypeTitle" Nullable="true" MaxLength="50" />
  7496 + <Property Type="String" Name="EditionType" Nullable="true" MaxLength="50" />
  7497 + <Property Type="String" Name="UserStatus" Nullable="true" MaxLength="8" />
  7498 + <Property Type="Int32" Name="UserTypeId" Nullable="true" />
  7499 + <Property Type="Int32" Name="EditionTypeId" Nullable="true" />
  7500 + </ComplexType>
7402 </Schema> 7501 </Schema>
7403 </edmx:ConceptualModels> 7502 </edmx:ConceptualModels>
7404 <!-- C-S mapping content --> 7503 <!-- C-S mapping content -->
@@ -9192,7 +9291,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -9192,7 +9291,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
9192 </ComplexTypeMapping> 9291 </ComplexTypeMapping>
9193 </ResultMapping> 9292 </ResultMapping>
9194 </FunctionImportMapping> 9293 </FunctionImportMapping>
9195 - <FunctionImportMapping FunctionImportName="GetLicenseIdByUserId" FunctionName="AIADatabaseV5Model.Store.GetLicenseIdByUserId" />  
9196 <FunctionImportMapping FunctionImportName="GetLicenseIdEditionIdByUserId" FunctionName="AIADatabaseV5Model.Store.GetLicenseIdEditionIdByUserId"> 9294 <FunctionImportMapping FunctionImportName="GetLicenseIdEditionIdByUserId" FunctionName="AIADatabaseV5Model.Store.GetLicenseIdEditionIdByUserId">
9197 <ResultMapping> 9295 <ResultMapping>
9198 <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetLicenseIdEditionIdByUserId_Result"> 9296 <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetLicenseIdEditionIdByUserId_Result">
@@ -9287,27 +9385,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -9287,27 +9385,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
9287 </ComplexTypeMapping> 9385 </ComplexTypeMapping>
9288 </ResultMapping> 9386 </ResultMapping>
9289 </FunctionImportMapping> 9387 </FunctionImportMapping>
9290 - <FunctionImportMapping FunctionImportName="GetSearchUserList" FunctionName="AIADatabaseV5Model.Store.GetSearchUserList">  
9291 - <ResultMapping>  
9292 - <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSearchUserList_Result">  
9293 - <ScalarProperty Name="Id" ColumnName="Id" />  
9294 - <ScalarProperty Name="FirstName" ColumnName="FirstName" />  
9295 - <ScalarProperty Name="LastName" ColumnName="LastName" />  
9296 - <ScalarProperty Name="LoginId" ColumnName="LoginId" />  
9297 - <ScalarProperty Name="EmailId" ColumnName="EmailId" />  
9298 - <ScalarProperty Name="UserTypeTitle" ColumnName="UserTypeTitle" />  
9299 - <ScalarProperty Name="Password" ColumnName="Password" />  
9300 - <ScalarProperty Name="CreationDate" ColumnName="CreationDate" />  
9301 - <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" />  
9302 - <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" />  
9303 - <ScalarProperty Name="AccountTypeTitle" ColumnName="AccountTypeTitle" />  
9304 - <ScalarProperty Name="EditionType" ColumnName="EditionType" />  
9305 - <ScalarProperty Name="UserStatus" ColumnName="UserStatus" />  
9306 - <ScalarProperty Name="UserTypeId" ColumnName="UserTypeId" />  
9307 - <ScalarProperty Name="EditionTypeId" ColumnName="EditionTypeId" />  
9308 - </ComplexTypeMapping>  
9309 - </ResultMapping>  
9310 - </FunctionImportMapping>  
9311 <FunctionImportMapping FunctionImportName="GetSiteAccoutDetail" FunctionName="AIADatabaseV5Model.Store.GetSiteAccoutDetail"> 9388 <FunctionImportMapping FunctionImportName="GetSiteAccoutDetail" FunctionName="AIADatabaseV5Model.Store.GetSiteAccoutDetail">
9312 <ResultMapping> 9389 <ResultMapping>
9313 <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSiteAccoutDetail_Result"> 9390 <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSiteAccoutDetail_Result">
@@ -9427,6 +9504,7 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -9427,6 +9504,7 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
9427 <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" /> 9504 <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" />
9428 <ScalarProperty Name="TotalLogins" ColumnName="TotalLogins" /> 9505 <ScalarProperty Name="TotalLogins" ColumnName="TotalLogins" />
9429 <ScalarProperty Name="LastLogin" ColumnName="LastLogin" /> 9506 <ScalarProperty Name="LastLogin" ColumnName="LastLogin" />
  9507 + <ScalarProperty Name="RowNum" ColumnName="RowNum" />
9430 </ComplexTypeMapping> 9508 </ComplexTypeMapping>
9431 </ResultMapping> 9509 </ResultMapping>
9432 </FunctionImportMapping> 9510 </FunctionImportMapping>
@@ -9740,30 +9818,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -9740,30 +9818,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
9740 <FunctionImportMapping FunctionImportName="usp_UpdateSubscriptionPlan" FunctionName="AIADatabaseV5Model.Store.usp_UpdateSubscriptionPlan" /> 9818 <FunctionImportMapping FunctionImportName="usp_UpdateSubscriptionPlan" FunctionName="AIADatabaseV5Model.Store.usp_UpdateSubscriptionPlan" />
9741 <FunctionImportMapping FunctionImportName="usp_InsertAIAUser" FunctionName="AIADatabaseV5Model.Store.usp_InsertAIAUser" /> 9819 <FunctionImportMapping FunctionImportName="usp_InsertAIAUser" FunctionName="AIADatabaseV5Model.Store.usp_InsertAIAUser" />
9742 <FunctionImportMapping FunctionImportName="usp_UpdateblockedUser" FunctionName="AIADatabaseV5Model.Store.usp_UpdateblockedUser" /> 9820 <FunctionImportMapping FunctionImportName="usp_UpdateblockedUser" FunctionName="AIADatabaseV5Model.Store.usp_UpdateblockedUser" />
9743 - <FunctionImportMapping FunctionImportName="usp_GetSearchUserList" FunctionName="AIADatabaseV5Model.Store.usp_GetSearchUserList">  
9744 - <ResultMapping>  
9745 - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetSearchUserList_Result">  
9746 - <ScalarProperty Name="Id" ColumnName="Id" />  
9747 - <ScalarProperty Name="FirstName" ColumnName="FirstName" />  
9748 - <ScalarProperty Name="LastName" ColumnName="LastName" />  
9749 - <ScalarProperty Name="LoginId" ColumnName="LoginId" />  
9750 - <ScalarProperty Name="EmailId" ColumnName="EmailId" />  
9751 - <ScalarProperty Name="UserTypeTitle" ColumnName="UserTypeTitle" />  
9752 - <ScalarProperty Name="Password" ColumnName="Password" />  
9753 - <ScalarProperty Name="CreationDate" ColumnName="CreationDate" />  
9754 - <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" />  
9755 - <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" />  
9756 - <ScalarProperty Name="AccountTypeTitle" ColumnName="AccountTypeTitle" />  
9757 - <ScalarProperty Name="EditionType" ColumnName="EditionType" />  
9758 - <ScalarProperty Name="UserStatus" ColumnName="UserStatus" />  
9759 - <ScalarProperty Name="UserTypeId" ColumnName="UserTypeId" />  
9760 - <ScalarProperty Name="EditionTypeId" ColumnName="EditionTypeId" />  
9761 - <ScalarProperty Name="Createdby" ColumnName="Createdby" />  
9762 - <ScalarProperty Name="Modifiedby" ColumnName="Modifiedby" />  
9763 - <ScalarProperty Name="DeactivationDate" ColumnName="DeactivationDate" />  
9764 - </ComplexTypeMapping>  
9765 - </ResultMapping>  
9766 - </FunctionImportMapping>  
9767 <FunctionImportMapping FunctionImportName="usp_UpdateAIAUser" FunctionName="AIADatabaseV5Model.Store.usp_UpdateAIAUser" /> 9821 <FunctionImportMapping FunctionImportName="usp_UpdateAIAUser" FunctionName="AIADatabaseV5Model.Store.usp_UpdateAIAUser" />
9768 <FunctionImportMapping FunctionImportName="usp_GetEditions" FunctionName="AIADatabaseV5Model.Store.usp_GetEditions"> 9822 <FunctionImportMapping FunctionImportName="usp_GetEditions" FunctionName="AIADatabaseV5Model.Store.usp_GetEditions">
9769 <ResultMapping> 9823 <ResultMapping>
@@ -9814,32 +9868,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -9814,32 +9868,6 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
9814 </ComplexTypeMapping> 9868 </ComplexTypeMapping>
9815 </ResultMapping> 9869 </ResultMapping>
9816 </FunctionImportMapping> 9870 </FunctionImportMapping>
9817 - <FunctionImportMapping FunctionImportName="usp_GetLicenses" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenses">  
9818 - <ResultMapping>  
9819 - <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenses_Result">  
9820 - <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />  
9821 - <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" />  
9822 - <ScalarProperty Name="LicenseType" ColumnName="LicenseType" />  
9823 - <ScalarProperty Name="AccountType" ColumnName="AccountType" />  
9824 - <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" />  
9825 - <ScalarProperty Name="LicenseState" ColumnName="LicenseState" />  
9826 - <ScalarProperty Name="LicenseCountry" ColumnName="LicenseCountry" />  
9827 - <ScalarProperty Name="EmailId" ColumnName="EmailId" />  
9828 - <ScalarProperty Name="CardNumber" ColumnName="CardNumber" />  
9829 - <ScalarProperty Name="ProductKey" ColumnName="ProductKey" />  
9830 - <ScalarProperty Name="ClientAdmin" ColumnName="ClientAdmin" />  
9831 - <ScalarProperty Name="LicenseeName" ColumnName="LicenseeName" />  
9832 - <ScalarProperty Name="ContactAddress" ColumnName="ContactAddress" />  
9833 - <ScalarProperty Name="EntryDate" ColumnName="EntryDate" />  
9834 - <ScalarProperty Name="LicenseStatus" ColumnName="LicenseStatus" />  
9835 - <ScalarProperty Name="ModifyDate" ColumnName="ModifyDate" />  
9836 - <ScalarProperty Name="StartDate" ColumnName="StartDate" />  
9837 - <ScalarProperty Name="RenewDate" ColumnName="RenewDate" />  
9838 - <ScalarProperty Name="EndDate" ColumnName="EndDate" />  
9839 - <ScalarProperty Name="NoofImages" ColumnName="NoofImages" />  
9840 - </ComplexTypeMapping>  
9841 - </ResultMapping>  
9842 - </FunctionImportMapping>  
9843 <FunctionImportMapping FunctionImportName="usp_GetLicenseTypes" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseTypes"> 9871 <FunctionImportMapping FunctionImportName="usp_GetLicenseTypes" FunctionName="AIADatabaseV5Model.Store.usp_GetLicenseTypes">
9844 <ResultMapping> 9872 <ResultMapping>
9845 <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseTypes_Result"> 9873 <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetLicenseTypes_Result">
@@ -9927,6 +9955,75 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin @@ -9927,6 +9955,75 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]&lt;/Definin
9927 </FunctionImportMapping> 9955 </FunctionImportMapping>
9928 <FunctionImportMapping FunctionImportName="usp_InsertUpdateLicenseUserGroup" FunctionName="AIADatabaseV5Model.Store.usp_InsertUpdateLicenseUserGroup" /> 9956 <FunctionImportMapping FunctionImportName="usp_InsertUpdateLicenseUserGroup" FunctionName="AIADatabaseV5Model.Store.usp_InsertUpdateLicenseUserGroup" />
9929 <FunctionImportMapping FunctionImportName="usp_UpdateLicenseUserGroupUsers" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseUserGroupUsers" /> 9957 <FunctionImportMapping FunctionImportName="usp_UpdateLicenseUserGroupUsers" FunctionName="AIADatabaseV5Model.Store.usp_UpdateLicenseUserGroupUsers" />
  9958 + <FunctionImportMapping FunctionImportName="usp_GetlicensesList" FunctionName="AIADatabaseV5Model.Store.usp_GetlicensesList">
  9959 + <ResultMapping>
  9960 + <ComplexTypeMapping TypeName="AIADatabaseV5Model.usp_GetlicensesList_Result">
  9961 + <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
  9962 + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" />
  9963 + <ScalarProperty Name="LicenseType" ColumnName="LicenseType" />
  9964 + <ScalarProperty Name="AccountType" ColumnName="AccountType" />
  9965 + <ScalarProperty Name="InstitutionName" ColumnName="InstitutionName" />
  9966 + <ScalarProperty Name="LicenseState" ColumnName="LicenseState" />
  9967 + <ScalarProperty Name="LicenseCountry" ColumnName="LicenseCountry" />
  9968 + <ScalarProperty Name="EmailId" ColumnName="EmailId" />
  9969 + <ScalarProperty Name="CardNumber" ColumnName="CardNumber" />
  9970 + <ScalarProperty Name="ProductKey" ColumnName="ProductKey" />
  9971 + <ScalarProperty Name="ClientAdmin" ColumnName="ClientAdmin" />
  9972 + <ScalarProperty Name="LicenseeName" ColumnName="LicenseeName" />
  9973 + <ScalarProperty Name="ContactAddress" ColumnName="ContactAddress" />
  9974 + <ScalarProperty Name="EntryDate" ColumnName="EntryDate" />
  9975 + <ScalarProperty Name="LicenseStatus" ColumnName="LicenseStatus" />
  9976 + <ScalarProperty Name="ModifyDate" ColumnName="ModifyDate" />
  9977 + <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  9978 + <ScalarProperty Name="RenewDate" ColumnName="RenewDate" />
  9979 + <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  9980 + <ScalarProperty Name="NoofImages" ColumnName="NoofImages" />
  9981 + </ComplexTypeMapping>
  9982 + </ResultMapping>
  9983 + </FunctionImportMapping>
  9984 + <FunctionImportMapping FunctionImportName="GetSearchUserList1" FunctionName="AIADatabaseV5Model.Store.GetSearchUserList">
  9985 + <ResultMapping>
  9986 + <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSearchUserList1_Result">
  9987 + <ScalarProperty Name="Id" ColumnName="Id" />
  9988 + <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  9989 + <ScalarProperty Name="LastName" ColumnName="LastName" />
  9990 + <ScalarProperty Name="LoginId" ColumnName="LoginId" />
  9991 + <ScalarProperty Name="EmailId" ColumnName="EmailId" />
  9992 + <ScalarProperty Name="UserTypeTitle" ColumnName="UserTypeTitle" />
  9993 + <ScalarProperty Name="Password" ColumnName="Password" />
  9994 + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" />
  9995 + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" />
  9996 + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" />
  9997 + <ScalarProperty Name="AccountTypeTitle" ColumnName="AccountTypeTitle" />
  9998 + <ScalarProperty Name="EditionType" ColumnName="EditionType" />
  9999 + <ScalarProperty Name="UserStatus" ColumnName="UserStatus" />
  10000 + <ScalarProperty Name="UserTypeId" ColumnName="UserTypeId" />
  10001 + <ScalarProperty Name="EditionTypeId" ColumnName="EditionTypeId" />
  10002 + </ComplexTypeMapping>
  10003 + </ResultMapping>
  10004 + </FunctionImportMapping>
  10005 + <FunctionImportMapping FunctionImportName="GetSearchUsers" FunctionName="AIADatabaseV5Model.Store.GetSearchUsers">
  10006 + <ResultMapping>
  10007 + <ComplexTypeMapping TypeName="AIADatabaseV5Model.GetSearchUsers_Result">
  10008 + <ScalarProperty Name="RowNum" ColumnName="RowNum" />
  10009 + <ScalarProperty Name="Id" ColumnName="Id" />
  10010 + <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  10011 + <ScalarProperty Name="LastName" ColumnName="LastName" />
  10012 + <ScalarProperty Name="LoginId" ColumnName="LoginId" />
  10013 + <ScalarProperty Name="EmailId" ColumnName="EmailId" />
  10014 + <ScalarProperty Name="UserTypeTitle" ColumnName="UserTypeTitle" />
  10015 + <ScalarProperty Name="Password" ColumnName="Password" />
  10016 + <ScalarProperty Name="CreationDate" ColumnName="CreationDate" />
  10017 + <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" />
  10018 + <ScalarProperty Name="AccountNumber" ColumnName="AccountNumber" />
  10019 + <ScalarProperty Name="AccountTypeTitle" ColumnName="AccountTypeTitle" />
  10020 + <ScalarProperty Name="EditionType" ColumnName="EditionType" />
  10021 + <ScalarProperty Name="UserStatus" ColumnName="UserStatus" />
  10022 + <ScalarProperty Name="UserTypeId" ColumnName="UserTypeId" />
  10023 + <ScalarProperty Name="EditionTypeId" ColumnName="EditionTypeId" />
  10024 + </ComplexTypeMapping>
  10025 + </ResultMapping>
  10026 + </FunctionImportMapping>
9930 </EntityContainerMapping> 10027 </EntityContainerMapping>
9931 </Mapping> 10028 </Mapping>
9932 </edmx:Mappings> 10029 </edmx:Mappings>
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/GetSearchUserList_Result.cs renamed to 400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/GetSearchUserList1_Result.cs
@@ -11,7 +11,7 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -11,7 +11,7 @@ namespace AIAHTML5.ADMIN.API.Entity
11 { 11 {
12 using System; 12 using System;
13 13
14 - public partial class GetSearchUserList_Result 14 + public partial class GetSearchUserList1_Result
15 { 15 {
16 public Nullable<int> Id { get; set; } 16 public Nullable<int> Id { get; set; }
17 public string FirstName { get; set; } 17 public string FirstName { get; set; }
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/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 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/GetUsageReport_Result.cs
@@ -26,5 +26,6 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -26,5 +26,6 @@ namespace AIAHTML5.ADMIN.API.Entity
26 public string InstitutionName { get; set; } 26 public string InstitutionName { get; set; }
27 public Nullable<int> TotalLogins { get; set; } 27 public Nullable<int> TotalLogins { get; set; }
28 public string LastLogin { get; set; } 28 public string LastLogin { get; set; }
  29 + public Nullable<long> RowNum { get; set; }
29 } 30 }
30 } 31 }
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenses_Result.cs
@@ -11,7 +11,7 @@ namespace AIAHTML5.ADMIN.API.Entity @@ -11,7 +11,7 @@ namespace AIAHTML5.ADMIN.API.Entity
11 { 11 {
12 using System; 12 using System;
13 13
14 - public partial class usp_GetLicenses_Result 14 + public partial class usp_Getlicenses_Result
15 { 15 {
16 public int LicenseId { get; set; } 16 public int LicenseId { get; set; }
17 public string AccountNumber { get; set; } 17 public string AccountNumber { get; set; }
400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetlicensesList_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_GetlicensesList_Result
  15 + {
  16 + public int LicenseId { get; set; }
  17 + public string AccountNumber { get; set; }
  18 + public string LicenseType { get; set; }
  19 + public string AccountType { get; set; }
  20 + public string InstitutionName { get; set; }
  21 + public string LicenseState { get; set; }
  22 + public string LicenseCountry { get; set; }
  23 + public string EmailId { get; set; }
  24 + public Nullable<int> CardNumber { get; set; }
  25 + public string ProductKey { get; set; }
  26 + public string ClientAdmin { get; set; }
  27 + public string LicenseeName { get; set; }
  28 + public string ContactAddress { get; set; }
  29 + public string EntryDate { get; set; }
  30 + public string LicenseStatus { get; set; }
  31 + public string ModifyDate { get; set; }
  32 + public string StartDate { get; set; }
  33 + public string RenewDate { get; set; }
  34 + public string EndDate { get; set; }
  35 + public Nullable<int> NoofImages { get; set; }
  36 + }
  37 +}
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/DiscountCodeModel.cs
@@ -21,7 +21,7 @@ namespace AIAHTML5.ADMIN.API.Models @@ -21,7 +21,7 @@ namespace AIAHTML5.ADMIN.API.Models
21 DiscountCodeModel DiscountCodeObj = new DiscountCodeModel(); 21 DiscountCodeModel DiscountCodeObj = new DiscountCodeModel();
22 try 22 try
23 { 23 {
24 - var result = dbContext.GetDiscountCodes(discountCode, startDate.ToString(), endDate.ToString()).ToList(); 24 + var result = dbContext.GetDiscountCodes(discountCode, startDate.ToString("MM/dd/yyyy"), endDate.ToString("MM/dd/yyyy")).ToList();
25 if (result.Count > 0) 25 if (result.Count > 0)
26 { 26 {
27 foreach (var item in result) 27 foreach (var item in result)
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/LicenseModel.cs
@@ -57,20 +57,21 @@ namespace AIAHTML5.ADMIN.API.Models @@ -57,20 +57,21 @@ namespace AIAHTML5.ADMIN.API.Models
57 public bool IsRenew { get; set; } 57 public bool IsRenew { get; set; }
58 58
59 public static List<LicenseModel> GetLicenses(AIADatabaseV5Entities dbContext, string accountNumber, string licenseeFirstName, 59 public static List<LicenseModel> GetLicenses(AIADatabaseV5Entities dbContext, string accountNumber, string licenseeFirstName,
60 - string licenseeLastName, byte licenseTypeId, string institutionName, int stateId, int countryId, string emailId,  
61 - DateTime subscriptionStartDate, DateTime subscriptionEndDate, bool isActive) 60 + string licenseeLastName, byte licenseTypeId, string institutionName, int stateId, int countryId, string emailId,
  61 + DateTime subscriptionStartDate, DateTime subscriptionEndDate, bool isActive, int pageNo, int pageLength, out int recordCount)
62 { 62 {
63 List<LicenseModel> LicenseList = new List<LicenseModel>(); 63 List<LicenseModel> LicenseList = new List<LicenseModel>();
64 LicenseModel LicenseObj = new LicenseModel(); 64 LicenseModel LicenseObj = new LicenseModel();
65 - int i = 0; 65 + var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
  66 + recordCount = 0;
66 try 67 try
67 { 68 {
68 - var result = dbContext.usp_GetLicenses( 69 + var result = dbContext.usp_GetlicensesList(
69 (subscriptionStartDate > DateTime.MinValue ? subscriptionStartDate.ToShortDateString() : "01/01/01"), 70 (subscriptionStartDate > DateTime.MinValue ? subscriptionStartDate.ToShortDateString() : "01/01/01"),
70 (subscriptionEndDate > DateTime.MinValue ? subscriptionEndDate.ToShortDateString() : "01/01/01"), 71 (subscriptionEndDate > DateTime.MinValue ? subscriptionEndDate.ToShortDateString() : "01/01/01"),
71 (accountNumber == null ? "" : accountNumber), (licenseeFirstName == null ? "" : licenseeFirstName), 72 (accountNumber == null ? "" : accountNumber), (licenseeFirstName == null ? "" : licenseeFirstName),
72 (licenseeLastName == null ? "" : licenseeLastName), licenseTypeId, (institutionName == null ? "" : institutionName), 73 (licenseeLastName == null ? "" : licenseeLastName), licenseTypeId, (institutionName == null ? "" : institutionName),
73 - (emailId == null ? "" : emailId), stateId, countryId, isActive).ToList(); 74 + (emailId == null ? "" : emailId), stateId, countryId, isActive, pageNo, pageLength, spRecordCount).ToList();
74 if (result.Count > 0) 75 if (result.Count > 0)
75 { 76 {
76 foreach (var item in result) 77 foreach (var item in result)
@@ -97,9 +98,8 @@ namespace AIAHTML5.ADMIN.API.Models @@ -97,9 +98,8 @@ namespace AIAHTML5.ADMIN.API.Models
97 LicenseObj.ModifyDate = DateTime.ParseExact((item.ModifyDate == "" ? "01/01/0001" : item.ModifyDate), "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture); 98 LicenseObj.ModifyDate = DateTime.ParseExact((item.ModifyDate == "" ? "01/01/0001" : item.ModifyDate), "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture);
98 LicenseObj.IsActive = (item.LicenseStatus == "Active" ? true : false); 99 LicenseObj.IsActive = (item.LicenseStatus == "Active" ? true : false);
99 LicenseList.Add(LicenseObj); 100 LicenseList.Add(LicenseObj);
100 - i++;  
101 - if (i >= 100) break;  
102 } 101 }
  102 + recordCount = (int)spRecordCount.Value;
103 } 103 }
104 } 104 }
105 catch (Exception ex) { } 105 catch (Exception ex) { }
400-SOURCECODE/AIAHTML5.ADMIN.API/Models/UserModel.cs
@@ -161,5 +161,6 @@ namespace AIAHTML5.ADMIN.API.Models @@ -161,5 +161,6 @@ namespace AIAHTML5.ADMIN.API.Models
161 return false; 161 return false;
162 } 162 }
163 } 163 }
  164 +
164 } 165 }
165 } 166 }
166 \ No newline at end of file 167 \ No newline at end of file
400-SOURCECODE/AIAHTML5.ADMIN.API/Web.config
@@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@
12 <add key="webpages:Enabled" value="false" /> 12 <add key="webpages:Enabled" value="false" />
13 <add key="ClientValidationEnabled" value="true" /> 13 <add key="ClientValidationEnabled" value="true" />
14 <add key="UnobtrusiveJavaScriptEnabled" value="true" /> 14 <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  15 + <add key="Enablecors" value="false"/>
15 </appSettings> 16 </appSettings>
16 <system.web> 17 <system.web>
17 <compilation debug="true" targetFramework="4.5" /> 18 <compilation debug="true" targetFramework="4.5" />
500-DBDump/AIA-StoredProcedures/dbo.GetSearchUsers.sql 0 → 100644
  1 +
  2 +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetSearchUsers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
  3 +drop procedure [dbo].[GetLicenseIdByUserId]
  4 +GO
  5 +alter PROCEDURE [dbo].[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.GetUsageReport.StoredProcedure.sql
1 Binary files a/500-DBDump/AIA-StoredProcedures/dbo.GetUsageReport.StoredProcedure.sql and b/500-DBDump/AIA-StoredProcedures/dbo.GetUsageReport.StoredProcedure.sql differ 1 Binary files a/500-DBDump/AIA-StoredProcedures/dbo.GetUsageReport.StoredProcedure.sql and b/500-DBDump/AIA-StoredProcedures/dbo.GetUsageReport.StoredProcedure.sql differ
500-DBDump/AIA-StoredProcedures/dbo.usp_GetUserType.sql
1 -  
2 -SET QUOTED_IDENTIFIER ON  
3 -GO  
4 -SET ANSI_NULLS ON  
5 -GO  
6 -  
7 -if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetUserType]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)  
8 -drop procedure [dbo].[usp_GetUserType]  
9 -GO  
10 -  
11 -  
12 --- =============================================  
13 --- Author: magic  
14 --- Create date: 7/4/2009  
15 --- Description: Fetch AccountType List  
16 --- =============================================  
17 -CREATE PROCEDURE [dbo].[usp_GetUserType] 1 +
  2 +alter PROCEDURE [dbo].[usp_GetUserType]
18 -- Add the parameters for the stored procedure here 3 -- Add the parameters for the stored procedure here
19 @id int 4 @id int
20 AS 5 AS
@@ -31,18 +16,11 @@ BEGIN @@ -31,18 +16,11 @@ BEGIN
31 else 16 else
32 begin 17 begin
33 select Id,Title 18 select Id,Title
34 - from UserType where IsActive=1 19 + from UserType where IsActive=1 and Id > 1
  20 +ORDER BY Priority
35 end 21 end
36 22
37 END 23 END
38 24
39 25
40 -GO  
41 -SET QUOTED_IDENTIFIER OFF  
42 -GO  
43 -SET ANSI_NULLS ON  
44 -GO  
45 26
46 -  
47 -  
48 -  
49 \ No newline at end of file 27 \ No newline at end of file
500-DBDump/AIA-StoredProcedures/dbo.usp_GetlicensesList.sql 0 → 100644
1 Binary files /dev/null and b/500-DBDump/AIA-StoredProcedures/dbo.usp_GetlicensesList.sql differ 1 Binary files /dev/null and b/500-DBDump/AIA-StoredProcedures/dbo.usp_GetlicensesList.sql differ
500-DBDump/AIA-StoredProcedures/usergroupmergecode/usergroupmergecode/UserGroupController.cs deleted
1 -using System;  
2 -using System.Collections.Generic;  
3 -using System.Linq;  
4 -using System.Net;  
5 -using System.Net.Http;  
6 -using System.Web.Http;  
7 -using Newtonsoft.Json;  
8 -using Newtonsoft.Json.Linq;  
9 -using AIAHTML5.ADMIN.API.Models;  
10 -using System.Web.Http.Cors;  
11 -using System.Web.Cors;  
12 -using AIAHTML5.Server.Constants;  
13 -using log4net;  
14 -using System.Text;  
15 -using AIAHTML5.ADMIN.API.Entity;  
16 -  
17 -namespace AIAHTML5.ADMIN.API.Controllers  
18 -{  
19 - [EnableCors(origins: "http://localhost:4200", headers: "*", methods: "*")]  
20 - [RoutePrefix("UserGroup")]  
21 - public class UserGroupController : ApiController  
22 - {  
23 - AIADatabaseV5Entities dbContext = new AIADatabaseV5Entities();  
24 -  
25 - [Route("LicenseUserGroups")]  
26 - [HttpGet]  
27 - public HttpResponseMessage GetLicenseUserGroups(int LicenseId)  
28 - {  
29 - List<UserGroupModel> UserGroupList = new List<UserGroupModel>();  
30 - try  
31 - {  
32 - UserGroupList = UserGroupModel.GetLicenseUserGroups(dbContext, LicenseId);  
33 - return Request.CreateResponse(HttpStatusCode.OK, UserGroupList);  
34 - }  
35 - catch (Exception ex)  
36 - {  
37 - // Log exception code goes here  
38 - return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message);  
39 - }  
40 - }  
41 -  
42 - [Route("LicenseUserGroupUsers")]  
43 - [HttpGet]  
44 - public HttpResponseMessage GetLicenseUserGroupUsers(int LicenseId, int UserGroupId)  
45 - {  
46 - List<UserModel> UserList = new List<UserModel>();  
47 - try  
48 - {  
49 - UserList = UserGroupModel.GetLicenseUserGroupUsers(dbContext, LicenseId, UserGroupId);  
50 - return Request.CreateResponse(HttpStatusCode.OK, UserList);  
51 - }  
52 - catch (Exception ex)  
53 - {  
54 - // Log exception code goes here  
55 - return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message);  
56 - }  
57 - }  
58 -  
59 - [Route("InsertUpdateLicenseUserGroup")]  
60 - [HttpPost]  
61 - public HttpResponseMessage InsertUpdateLicenseUserGroup(JObject jsonData)  
62 - {  
63 - bool Status = false;  
64 - UserGroupModel UserGroupEntity = new UserGroupModel();  
65 - UserGroupEntity.Id = jsonData["id"].Value<int>();  
66 - UserGroupEntity.LicenseId = jsonData["licenseId"].Value<int>();  
67 - UserGroupEntity.Title = jsonData["title"].Value<string>();  
68 - UserGroupEntity.IsActive = jsonData["isActive"].Value<bool>();  
69 - UserGroupEntity.CreationDate = jsonData["creationDate"].Value<DateTime>();  
70 - UserGroupEntity.ModifiedDate = jsonData["modifiedDate"].Value<DateTime>();  
71 - try  
72 - {  
73 - Status = UserGroupModel.InsertUpdateLicenseUserGroup(dbContext, UserGroupEntity);  
74 - if (Status)  
75 - {  
76 - return Request.CreateResponse(HttpStatusCode.OK, Status.ToString());  
77 - }  
78 - else  
79 - {  
80 - return Request.CreateErrorResponse(HttpStatusCode.BadRequest, Status.ToString());  
81 - }  
82 - }  
83 - catch (Exception ex)  
84 - {  
85 - // Log exception code goes here  
86 - return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message);  
87 - }  
88 - }  
89 -  
90 - [Route("UpdateLicenseUserGroupUsers")]  
91 - [HttpPost]  
92 - public HttpResponseMessage UpdateLicenseUserGroupUsers(JObject jsonData)  
93 - {  
94 - bool Status = false;  
95 - int UserGroupId = jsonData["userGroupId"].Value<int>();  
96 - string UserIds = jsonData["userIds"].Value<string>();  
97 - try  
98 - {  
99 - Status = UserGroupModel.UpdateLicenseUserGroupUsers(dbContext, UserGroupId, UserIds);  
100 - if (Status)  
101 - {  
102 - return Request.CreateResponse(HttpStatusCode.OK, Status.ToString());  
103 - }  
104 - else  
105 - {  
106 - return Request.CreateErrorResponse(HttpStatusCode.BadRequest, Status.ToString());  
107 - }  
108 - }  
109 - catch (Exception ex)  
110 - {  
111 - // Log exception code goes here  
112 - return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message);  
113 - }  
114 - }  
115 -  
116 - [Route("DeleteLicenseUserGroup")]  
117 - [HttpGet]  
118 - public HttpResponseMessage DeleteLicenseUserGroup(int UserGroupId)  
119 - {  
120 - bool Status = false;  
121 - try  
122 - {  
123 - Status = UserGroupModel.DeleteLicenseUserGroup(dbContext, UserGroupId);  
124 - if (Status)  
125 - {  
126 - return Request.CreateResponse(HttpStatusCode.OK, Status.ToString());  
127 - }  
128 - else  
129 - {  
130 - return Request.CreateErrorResponse(HttpStatusCode.BadRequest, Status.ToString());  
131 - }  
132 - }  
133 - catch (Exception ex)  
134 - {  
135 - // Log exception code goes here  
136 - return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message);  
137 - }  
138 - }  
139 - }  
140 -}  
500-DBDump/AIA-StoredProcedures/usergroupmergecode/usergroupmergecode/UserGroupModel.cs deleted
1 -using System;  
2 -using System.Collections.Generic;  
3 -using System.Linq;  
4 -using System.Web;  
5 -using AIAHTML5.ADMIN.API.Entity;  
6 -  
7 -namespace AIAHTML5.ADMIN.API.Models  
8 -{  
9 - public class UserGroupModel  
10 - {  
11 - public int Id { get; set; }  
12 - public int LicenseId { get; set; }  
13 - public string Title { get; set; }  
14 - public DateTime? CreationDate { get; set; }  
15 - public DateTime? ModifiedDate { get; set; }  
16 - public bool? IsActive { get; set; }  
17 - public int? TotalUsers { get; set; }  
18 -  
19 - public static List<UserGroupModel> GetLicenseUserGroups(AIADatabaseV5Entities dbContext, int LicenseId)  
20 - {  
21 - List<UserGroupModel> UserGroupList = new List<UserGroupModel>();  
22 - UserGroupModel UserGroupObj = new UserGroupModel();  
23 - try  
24 - {  
25 - var result = dbContext.usp_GetLicenseUserGroups(LicenseId).ToList();  
26 - foreach (var item in result)  
27 - {  
28 - UserGroupObj = new UserGroupModel();  
29 - UserGroupObj.Id = item.Id;  
30 - UserGroupObj.LicenseId = item.LicenseId;  
31 - UserGroupObj.Title = item.Title;  
32 - UserGroupObj.IsActive = item.IsActive;  
33 - UserGroupObj.ModifiedDate = item.ModifiedDate;  
34 - UserGroupObj.CreationDate = item.CreationDate;  
35 - UserGroupObj.TotalUsers = item.TotalUsers;  
36 - UserGroupList.Add(UserGroupObj);  
37 - }  
38 - }  
39 - catch (Exception ex) { }  
40 - return UserGroupList;  
41 - }  
42 -  
43 - public static List<UserModel> GetLicenseUserGroupUsers(AIADatabaseV5Entities dbContext, int LicenseId, int UserGroupId)  
44 - {  
45 - List<UserModel> UserList = new List<UserModel>();  
46 - UserModel UserModelObj = new UserModel();  
47 - try  
48 - {  
49 - var result = dbContext.GetAllUserWithGroup(LicenseId, UserGroupId).ToList();  
50 - foreach (var item in result)  
51 - {  
52 - UserModelObj = new UserModel();  
53 - UserModelObj.Id = item.Id;  
54 - UserModelObj.FirstName = item.FirstName;  
55 - UserModelObj.LastName = item.LastName;  
56 - UserModelObj.LoginId = item.LoginId;  
57 - UserModelObj.EmailId = item.EmailId;  
58 - UserModelObj.ProductEdition = item.Title;  
59 - UserModelObj.InGroup = item.InGroup;  
60 - UserList.Add(UserModelObj);  
61 - }  
62 - }  
63 - catch (Exception ex) { }  
64 - return UserList;  
65 - }  
66 -  
67 - public static bool InsertUpdateLicenseUserGroup(AIADatabaseV5Entities dbContext, UserGroupModel UserGroupEntity)  
68 - {  
69 - var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);  
70 - try  
71 - {  
72 - dbContext.usp_InsertUpdateLicenseUserGroup(UserGroupEntity.Id, UserGroupEntity.LicenseId, UserGroupEntity.Title,  
73 - UserGroupEntity.CreationDate, UserGroupEntity.ModifiedDate, UserGroupEntity.IsActive, spStatus);  
74 - return (bool)spStatus.Value;  
75 - }  
76 - catch (Exception ex)  
77 - {  
78 - return false;  
79 - }  
80 - }  
81 -  
82 - public static bool UpdateLicenseUserGroupUsers(AIADatabaseV5Entities dbContext, int UserGroupId, string UserIds)  
83 - {  
84 - var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);  
85 - try  
86 - {  
87 - dbContext.usp_UpdateLicenseUserGroupUsers(UserGroupId, UserIds, spStatus);  
88 - return (bool)spStatus.Value;  
89 - }  
90 - catch (Exception ex)  
91 - {  
92 - return false;  
93 - }  
94 - }  
95 -  
96 - public static bool DeleteLicenseUserGroup(AIADatabaseV5Entities dbContext, int UserGroupId)  
97 - {  
98 - var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);  
99 - try  
100 - {  
101 - dbContext.usp_DeleteLicenseUserGroup(UserGroupId, spStatus);  
102 - return (bool)spStatus.Value;  
103 - }  
104 - catch (Exception ex)  
105 - {  
106 - return false;  
107 - }  
108 - }  
109 -  
110 - }  
111 -  
112 -}  
113 \ No newline at end of file 0 \ No newline at end of file
500-DBDump/AIA-StoredProcedures/usergroupmergecode/usergroupmergecode/UserModel.cs deleted
1 -using System;  
2 -using System.Collections.Generic;  
3 -using System.Linq;  
4 -using System.Web;  
5 -using AIAHTML5.ADMIN.API.Entity;  
6 -  
7 -namespace AIAHTML5.ADMIN.API.Models  
8 -{  
9 - public class UserModel  
10 - {  
11 - public int Id { get; set; }  
12 - public string FirstName { get; set; }  
13 - public string LastName { get; set; }  
14 - public string EmailId { get; set; }  
15 - public string LoginId { get; set; }  
16 - public string NewLoginId { get; set; }  
17 - public string Password { get; set; }  
18 - public int SecurityQuestionId { get; set; }  
19 - public string SecurityAnswer { get; set; }  
20 - public int CreatorId { get; set; }  
21 - public DateTime CreationDate { get; set; }  
22 - public DateTime DeactivationDate { get; set; }  
23 - public int ModifierId { get; set; }  
24 - public DateTime ModifiedDate { get; set; }  
25 - public int UserTypeId { get; set; }  
26 - public bool IsActive { get; set; }  
27 - public string ProductEdition { get; set; }  
28 - public int InGroup { get; set; }  
29 -  
30 - public static bool UpdateUserProfile(AIADatabaseV5Entities dbContext, int intUserID, string strFirstName, string strLastName, string strEmailID)  
31 - {  
32 - var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);  
33 - try  
34 - {  
35 - dbContext.UpdateUserProfile(intUserID, strFirstName, strLastName, strEmailID, spStatus);  
36 - if (spStatus.Value.ToString() == "1")  
37 - {  
38 - return true;  
39 - }  
40 - else  
41 - {  
42 - return false;  
43 - }  
44 - }  
45 - catch (Exception ex)  
46 - {  
47 - return false;  
48 - }  
49 - }  
50 - public static bool UpdateUserPassword(AIADatabaseV5Entities dbContext, int intUserID, string newPassword)  
51 - {  
52 - var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);  
53 - try  
54 - {  
55 - dbContext.UpdateAiaUserPassword(intUserID, newPassword, spStatus);  
56 - return (bool)spStatus.Value;  
57 - }  
58 - catch (Exception ex)  
59 - {  
60 - return false;  
61 - }  
62 - }  
63 - public static string UpdateUserId(AIADatabaseV5Entities dbContext, int id, string userId, string oldUserId)  
64 - {  
65 - var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);  
66 - try  
67 - {  
68 - dbContext.usp_UpdateUserId(id, userId, oldUserId, spStatus);  
69 - if (spStatus.Value.ToString() == "1")  
70 - {  
71 - // return "success";  
72 - return "1";  
73 - }  
74 - else if (spStatus.Value.ToString() == "2")  
75 - {  
76 - return "2";  
77 - // return "Already Exist Userid";  
78 - }  
79 - else  
80 - {  
81 - return "fail";  
82 - }  
83 - }  
84 - catch (Exception ex)  
85 - {  
86 - return ex.Message;  
87 - }  
88 - }  
89 - }  
90 -}  
91 \ No newline at end of file 0 \ No newline at end of file
500-DBDump/AIA-StoredProcedures/usergroupmergecode/usergroupmergecode/mergecode.txt deleted
1 -//user.service.ts  
2 -  
3 - GetLicenseUserGroups(licensId: number) {  
4 - return this.http.get(this.commonService.resourceBaseUrl + "UserGroup/LicenseUserGroups?LicenseId=" + licensId)  
5 - .map(this.extractData)  
6 - .catch((res: Response) => this.handleError(res));  
7 - }  
8 -  
9 - GetLicenseUserGroupUsers(licensId: number, UserGroupId: number) {  
10 - return this.http.get(this.commonService.resourceBaseUrl + "UserGroup/LicenseUserGroupUsers?LicenseId=" + licensId + "&UserGroupId=" + UserGroupId)  
11 - .map(this.extractData)  
12 - .catch((res: Response) => this.handleError(res));  
13 - }  
14 -  
15 - InsertUpdateLicenseUserGroup(obj: any) {  
16 - //let options = new RequestOptions({ headers: this.headers });  
17 - var jsonData = {'id': obj.id, 'licenseId': obj.licenseId, 'creationDate': obj.creationDate, 'modifiedDate': obj.modifiedDate, 'title': obj.title, 'isActive': obj.isActive };  
18 - var headers = new Headers({  
19 - 'Content-Type': 'application/json'  
20 - });  
21 - return this.http.post(this.commonService.resourceBaseUrl + "UserGroup/InsertUpdateLicenseUserGroup",  
22 - JSON.stringify(jsonData), {headers: headers})  
23 - .map(this.extractData)  
24 - .catch((res: Response) => this.handleError(res));  
25 - }  
26 -  
27 - UpdateLicenseUserGroupUsers(userGroupId: number, userIds: string) {  
28 - //let options = new RequestOptions({ headers: this.headers });  
29 - var jsonData = {'userGroupId': userGroupId, 'userIds': userIds };  
30 - var headers = new Headers({  
31 - 'Content-Type': 'application/json'  
32 - });  
33 - return this.http.post(this.commonService.resourceBaseUrl + "UserGroup/UpdateLicenseUserGroupUsers",  
34 - JSON.stringify(jsonData), {headers: headers})  
35 - .map(this.extractData)  
36 - .catch((res: Response) => this.handleError(res));  
37 - }  
38 -  
39 - DeleteLicenseUserGroup(userGroupId: number) {  
40 - return this.http.get(this.commonService.resourceBaseUrl + "UserGroup/DeleteLicenseUserGroup?UserGroupId=" + userGroupId)  
41 - .map(this.extractData)  
42 - .catch((res: Response) => this.handleError(res));  
43 -}  
44 -  
45 -  
46 -//app.routing.module  
47 -  
48 -import { UserGroup } from './components/UserEntity/usergroup.component';  
49 -  
50 -  
51 - { path: 'usergroup', component: UserGroup }  
52 -  
53 -  
54 -//app.module.ts  
55 -  
56 -import { UserGroup } from './components/UserEntity/usergroup.component';  
57 -  
58 -UserGroup  
59 -  
60 -//app.component.html  
61 -  
62 - <li><a [routerLink]="['usergroup']">User Group</a></li>  
500-DBDump/AIA-StoredProcedures/usergroupmergecode/usergroupmergecode/usergroup.component.html deleted
1 -<!-- main-heading -->  
2 -<div class="row">  
3 -  
4 - <div class="col-sm-12 pageHeading" style="margin-left: 15px;">  
5 - <h4>{{mode}} User Group</h4>  
6 - </div>  
7 -  
8 - <ng-template #template>  
9 - <div class="modal-header">  
10 - <h4 class="modal-title pull-left">Delete</h4>  
11 - <button type="button" class="close pull-right" aria-label="Close" (click)="modalRef.hide()">  
12 - <span aria-hidden="true">&times;</span>  
13 - </button>  
14 - </div>  
15 - <div class="modal-body">  
16 - <p>Do you want to delete the selected user group?</p>  
17 - </div>  
18 - <div class="modal-footer">  
19 - <button type="button" class="btn btn-primary btn-sm" (click)="DeleteLicenseUserGroup(templatesuccess)">Yes</button>  
20 - <button type="button" class="btn btn-primary btn-sm" (click)="modalRef.hide()">No</button>  
21 - </div>  
22 - </ng-template>  
23 -  
24 - <ng-template #templatesuccess>  
25 - <div class="modal-header">  
26 - <h4 class="modal-title pull-left">Confirmation</h4>  
27 - <button type="button" class="close pull-right" aria-label="Close" (click)="modalRef.hide()">  
28 - <span aria-hidden="true">&times;</span>  
29 - </button>  
30 - </div>  
31 - <div class="modal-body" [innerHTML]="modalAlerts">  
32 - </div>  
33 - <div class="modal-footer">  
34 - </div>  
35 - </ng-template>  
36 -  
37 - <div class="col-sm-12">  
38 -  
39 - <div class="container-fluid main-full">  
40 - <div class="row" [style.visibility]="(mode == 'Search') ? 'visible' : 'hidden'">  
41 - <div class="well no-margin-btm">  
42 - <div class="row">  
43 - <div class="form-group" *ngIf="alerts != ''">  
44 - <div class="col-xs-12">  
45 - <div class="alert alert-danger" [innerHTML]="alerts">  
46 - </div>  
47 - </div>  
48 - </div>  
49 - <div class="col-lg-4 col-sm-4">  
50 - <div class="row">  
51 - <div class="col-sm-12">  
52 - <div class="form-group marginTop5">  
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">  
55 - <select #accountvalue class="form-control input-sm " id="AccountNumber" (change)="AccountNumberChanged($event.target.value)">  
56 - <option value="0">Select</option>  
57 - <option *ngFor="let item of lstAccountNumbers;" value="{{item.Id}}">{{item.AccountNumber}}</option>  
58 - </select>  
59 - </div>  
60 - </div>  
61 - </div>  
62 - </div>  
63 - </div>  
64 - <div class="col-lg-4 col-sm-4 padd-right0">  
65 - <div class="row">  
66 - <div class="col-sm-12">  
67 - <div class="form-group marginTop5">  
68 - <label for="New Group" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">New Group :</label>  
69 - </div>  
70 - <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">  
72 - </div>  
73 - </div>  
74 - </div>  
75 - </div>  
76 -  
77 - <div class="col-lg-4 col-sm-4">  
78 - <div class="row">  
79 - <div class="col-sm-2 padd-left0">  
80 - <div class="form-group marginTop5">  
81 - <label for="New Group" class="col-sm-12 col-md-1 paddTop7 padd-left0 padd-right0 hidden-xs">&nbsp;</label>  
82 - </div>  
83 - <div class="col-sm-12 col-lg-2 padd-left0 padd-right0 mar-left6 mobile_1">  
84 - <button class="btn btn-primary btn-sm" type="button" (click)="InsertLicenseUserGroup(title.value, templatesuccess)"  
85 - [disabled]="accountvalue.value==0"><i class="fa fa-plus-circle"></i> Add</button>  
86 - </div>  
87 - </div>  
88 - </div>  
89 - </div>  
90 -  
91 - </div>  
92 -  
93 - </div>  
94 -  
95 - <div class="well">  
96 - <div class="table-responsive blue">  
97 - <table id="tblLicenseUserGroups" class="table table-condensed table-bordered margin-btm0 table-striped table-hover table-fixed">  
98 - <thead>  
99 - <tr>  
100 - <th>Group Name</th>  
101 - <th>Number of User(s)</th>  
102 - <th>Created Date</th>  
103 - <th>Last Modified Date</th>  
104 - </tr>  
105 - </thead>  
106 - <tbody>  
107 - <tr *ngFor="let item of lstLicenseUserGroups; let i = index;" (click)="SetClickedRow(i, item)" [class.active]="i == selectedRow"  
108 - [class.inactive]="i != selectedRow">  
109 - <td>  
110 - <input type="hidden" value={{item.Id}}/> {{item.Title}}  
111 - </td>  
112 - <td>{{item.TotalUsers}}</td>  
113 - <td>{{item.CreationDate | date: 'MM/dd/yyyy'}}</td>  
114 - <td>{{item.ModifiedDate | date: 'MM/dd/yyyy'}}</td>  
115 - </tr>  
116 - </tbody>  
117 - </table>  
118 - </div>  
119 -  
120 - <div class="row">  
121 - <div class="col-sm-12 marginTop20 text-center">  
122 - <button class="btn btn-primary btn-sm" (click)="ViewLicenseUserGroup()"><i class="fa fa-eye"></i> View</button>  
123 - <button class="btn btn-primary btn-sm" (click)="EditLicenseUserGroup()"><i class="fa fa-edit"></i> Edit</button>  
124 - <button class="btn btn-primary btn-sm" (click)="openModal(template)"><i class="fa fa-trash"></i> Remove</button>  
125 - </div>  
126 - </div>  
127 -  
128 - </div>  
129 - </div>  
130 -  
131 - <form class="row" style="position: absolute; z-index: 100;" [style.top]="topPos" [style.visibility]="(mode == 'View' || mode == 'Edit') ? 'visible' : 'hidden'"  
132 - [formGroup]="updateUserGroupFrm" (submit)="UpdateLicenseUserGroup(templatesuccess)">  
133 -  
134 - <div class="well no-margin-btm">  
135 - <div class="row">  
136 - <div class="form-group" *ngIf="alerts != ''">  
137 - <div class="col-xs-12">  
138 - <div class="alert alert-danger" [innerHTML]="alerts">  
139 - </div>  
140 - </div>  
141 - </div>  
142 - <div class="col-lg-4 col-sm-4 padd-right0">  
143 - <div class="row">  
144 - <div class="col-sm-12">  
145 - <div class="form-group marginTop5">  
146 - <label for="GroupName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Group Name :</label>  
147 - </div>  
148 - <div class="col-sm-12 col-lg-6 padd-left0">  
149 - <input type="text" class="form-control input-sm" formControlName="userGroupName" id="GroupName" maxlength="100">  
150 - <div *ngIf="!updateUserGroupFrm.controls.userGroupName.valid && updateUserGroupFrm.controls.userGroupName.dirty" class="alert alert-danger" style="padding: 2px; margin-bottom: 2px;">User group name is required</div>  
151 - </div>  
152 - </div>  
153 - </div>  
154 - </div>  
155 - </div>  
156 - </div>  
157 -  
158 - <div class="well">  
159 -  
160 - <div class="table-responsive blue">  
161 -  
162 - <table id="fixed_hdr2" class="table-hover">  
163 - <thead>  
164 - <tr>  
165 - <th [style.display]="(mode == 'Edit') ? 'block' : 'none'">Select</th>  
166 - <th>First Name</th>  
167 - <th>Last Name</th>  
168 - <th>User ID</th>  
169 - <th>Email ID</th>  
170 - <th>Product Edition</th>  
171 - </tr>  
172 - </thead>  
173 - <tbody>  
174 - <tr *ngFor="let item of lstLicenseUserGroupUsers; let i = index">  
175 - <td [style.display]="(mode == 'Edit') ? 'block' : 'none'">  
176 - <input type="hidden" value="{{item.Id}}">  
177 - <input type="checkbox" (change)="onChange(i, item.Id, $event.target.checked)" [checked]="item.InGroup">  
178 - </td>  
179 - <td>{{item.FirstName}}</td>  
180 - <td>{{item.LastName}}</td>  
181 - <td>{{item.UserId}}</td>  
182 - <td>{{item.EmailId}}</td>  
183 - <td>{{item.ProductEdition}}</td>  
184 - </tr>  
185 - </tbody>  
186 - </table>  
187 -  
188 - </div>  
189 -  
190 - <div class="row">  
191 - <div class="col-sm-12 marginTop20 text-center">  
192 - <button class="btn btn-primary btn-sm" type="submit" [disabled]="!updateUserGroupFrm.valid" [style.visibility]="(mode == 'Edit') ? 'visible' : 'hidden'"><i class="fa fa-plus-circle"></i> Update</button>  
193 - <button class="btn btn-primary btn-sm" type="button" (click)="CancelAddEdit()"><i class="fa fa-times-circle"></i> Cancel</button>  
194 - </div>  
195 - </div>  
196 -  
197 - </div>  
198 -  
199 - </form>  
200 -  
201 - </div>  
202 - </div>  
203 -</div>  
204 -<!-- main-heading -->  
205 \ No newline at end of file 0 \ No newline at end of file
500-DBDump/AIA-StoredProcedures/usergroupmergecode/usergroupmergecode/usergroup.component.ts deleted
1 -import { Component, OnInit, AfterViewInit, Input, Output, EventEmitter, Pipe, PipeTransform, TemplateRef } from '@angular/core';  
2 -import { UserService } from './user.service';  
3 -import { Router, ActivatedRoute } from '@angular/router';  
4 -import { FormControl, FormBuilder, FormGroup, Validators } from '@angular/forms';  
5 -import { License } from '../UserEntity/datamodel';  
6 -import { BsDatepickerModule } from 'ngx-bootstrap';  
7 -import { Http, Response } from '@angular/http';  
8 -import { DatePipe } from '@angular/common';  
9 -import { BsModalService } from 'ngx-bootstrap/modal';  
10 -import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service';  
11 -  
12 -declare var $:any;  
13 -  
14 -@Component({  
15 - templateUrl: './usergroup.component.html'  
16 -})  
17 -  
18 -export class UserGroup implements OnInit {  
19 -  
20 - lstAccountNumbers: any;  
21 - lstLicenseUserGroups: any;  
22 - licenseUserGroup: any;  
23 - lstLicenseUserGroupUsers: any;  
24 - lstAllUsers: any;  
25 - mode: string = 'Search';  
26 - license: License;  
27 - updateUserGroupFrm: FormGroup;  
28 - error: any;  
29 - alerts: string;  
30 - modalAlerts: string;  
31 - divClass: string = '';  
32 - topPos: string = '2000px';  
33 - selectedRow: number = 0;  
34 - selectedId: number = 0;  
35 - modalRef: BsModalRef;  
36 - checkedRecords: Array<number>;  
37 -  
38 - constructor(private userService: UserService, private router: Router, private activeRoute: ActivatedRoute, private fb: FormBuilder, private modalService: BsModalService) { }  
39 -  
40 - ngOnInit(): void  
41 - {  
42 - this.selectedRow = 0;  
43 - this.divClass = 'col-sm-12';  
44 - this.license = new License();  
45 - this.alerts = '';  
46 - this.updateUserGroupFrm = this.fb.group({  
47 - userGroupName: ['', Validators.required],  
48 - });  
49 - this.GetLicenseAccounts();  
50 -  
51 - $('#fixed_hdr2').fxdHdrCol({  
52 - fixedCols: 0,  
53 - width: "100%",  
54 - height: 330,  
55 - colModal: [  
56 - { width: 80, align: 'center' },  
57 - { width: 200, align: 'center' },  
58 - { width: 200, align: 'Center' },  
59 - { width: 200, align: 'Center' },  
60 - { width: 200, align: 'Center' },  
61 - { width: 250, align: 'Center' },  
62 - ],  
63 - sort: true  
64 - });  
65 - if(document.getElementById("fixed_table_rc") != undefined){  
66 - document.getElementById("fixed_table_rc").remove();  
67 - }  
68 - var testScript = document.createElement("script");  
69 - testScript.setAttribute("id", "fixed_table_rc");  
70 - testScript.setAttribute("src", "../assets/scripts/fixed_table_rc.js");  
71 - testScript.setAttribute("type", "text/javascript");  
72 - document.body.appendChild(testScript);  
73 - }  
74 -  
75 - openModal(template: TemplateRef<any>) {  
76 - this.modalRef = this.modalService.show(template);  
77 - }  
78 -  
79 - onChange(Idx: number, Id: number, isChecked: boolean){  
80 - if(isChecked){  
81 - this.checkedRecords[Idx] = Id;  
82 - }  
83 - else{  
84 - this.checkedRecords[Idx] = 0;  
85 - }  
86 - }  
87 -  
88 - SetClickedRow(i: number, item: any) {  
89 - this.selectedRow = i;  
90 - this.selectedId = item['Id'];  
91 - this.licenseUserGroup = item;  
92 - }  
93 -  
94 - BindFormFields(data){  
95 - this.lstLicenseUserGroups = data;  
96 - this.licenseUserGroup = this.lstLicenseUserGroups[this.selectedRow];  
97 - this.selectedId = this.licenseUserGroup['Id'];  
98 - }  
99 -  
100 - BindUserFormFields(data){  
101 - this.lstLicenseUserGroupUsers = data;  
102 - if(this.mode == 'Edit'){  
103 - this.checkedRecords = new Array<number>(this.lstLicenseUserGroupUsers.length);  
104 - for (let i = 0; i < this.lstLicenseUserGroupUsers.length ; i++) {  
105 - if(this.lstLicenseUserGroupUsers[i].InGroup > 0){  
106 - this.checkedRecords[i] = this.lstLicenseUserGroupUsers[i].Id;  
107 - }  
108 - }  
109 - }  
110 - else{  
111 - this.lstLicenseUserGroupUsers = this.lstLicenseUserGroupUsers.filter(C => C.InGroup> 0);  
112 - }  
113 - }  
114 -  
115 - GetLicenseAccounts() {  
116 - this.userService.GetAccountNumber()  
117 - .subscribe(st => { this.lstAccountNumbers = st; }, error => this.error = <any>error);  
118 - }  
119 -  
120 - GetLicenseUserGroups() {  
121 - this.alerts = '';  
122 - this.userService.GetLicenseUserGroups(this.license.LicenseId)  
123 - .subscribe(st => { this.BindFormFields(st); }, error => this.error = <any>error);  
124 - }  
125 -  
126 - GetLicenseUserGroupUsers() {  
127 - this.alerts = '';  
128 - this.userService.GetLicenseUserGroupUsers(this.license.LicenseId, this.selectedId)  
129 - .subscribe(st => { this.BindUserFormFields(st); }, error => this.error = <any>error);  
130 - }  
131 -  
132 - AccountNumberChanged(LicenseId: number){  
133 - this.license.LicenseId = LicenseId;  
134 - this.lstLicenseUserGroups = null;  
135 - this.GetLicenseUserGroups();  
136 - }  
137 -  
138 - AfterDeleteData(data, template) {  
139 - if (data.Status == "false") {  
140 - this.alerts = "<span>License user group delete unsuccessfull</span>";  
141 - } else {  
142 - this.modalAlerts = "<p>License user group deleted successfully</p>";  
143 - this.modalRef = this.modalService.show(template);  
144 - this.GetLicenseUserGroups();  
145 - }  
146 - }  
147 -  
148 - AfterInsertData(data, template) {  
149 - if (data.Status == "false") {  
150 - this.alerts = "<span>License user group save unsuccessfull</span>";  
151 - } else {  
152 - this.modalAlerts = "<p>License user group saved successfully</p>";  
153 - this.modalRef = this.modalService.show(template);  
154 - this.GetLicenseUserGroups();  
155 - }  
156 - }  
157 -  
158 - AfterUpdateData(data, template) {  
159 - if (data.Status == "false") {  
160 - this.alerts = "<span>License user group update unsuccessfull</span>";  
161 - } else {  
162 - this.modalAlerts = "<p>License user group updated successfully</p>";  
163 - this.modalRef = this.modalService.show(template);  
164 - this.GetLicenseUserGroups();  
165 - }  
166 - }  
167 -  
168 - InsertLicenseUserGroup(title: string, template: TemplateRef<any>) {  
169 - this.alerts = '';  
170 - if(title == '' || title == undefined){  
171 - this.alerts = "<span>Please enter a name for user group.</span>";  
172 - return;  
173 - }  
174 - var obj = {  
175 - 'id': 0, 'licenseId': this.license.LicenseId, 'title': title,  
176 - 'isActive': true, 'creationDate': new Date(),  
177 - 'modifiedDate': new Date()  
178 - };  
179 - if(this.alerts == ''){  
180 - return this.userService.InsertUpdateLicenseUserGroup(obj)  
181 - .subscribe(  
182 - n => (this.AfterInsertData(n, template)),  
183 - error => this.error = <any>error);  
184 - }  
185 - }  
186 -  
187 - UpdateLicenseUserGroup(template: TemplateRef<any>) {  
188 - this.alerts = '';  
189 - var obj = {  
190 - 'id': this.licenseUserGroup.Id,  
191 - 'licenseId': this.license.LicenseId,  
192 - 'title': this.updateUserGroupFrm.controls['userGroupName'].value,  
193 - 'isActive': this.licenseUserGroup.IsActive,  
194 - 'creationDate': this.licenseUserGroup.CreationDate,  
195 - 'modifiedDate': this.licenseUserGroup.ModifiedDate  
196 - };  
197 - if(this.alerts == ''){  
198 - return this.userService.InsertUpdateLicenseUserGroup(obj)  
199 - .subscribe(  
200 - n => (  
201 - this.UpdateLicenseUserGroupUsers(template)  
202 - ),  
203 - error => this.error = <any>error);  
204 - }  
205 - }  
206 -  
207 - UpdateLicenseUserGroupUsers(template: TemplateRef<any>) {  
208 - var userIds = '';  
209 - this.checkedRecords.filter(C => C > 0).forEach(element => {  
210 - if(element > 0){  
211 - userIds += element + ',';  
212 - }  
213 - });  
214 - if(userIds!=''){  
215 - userIds = userIds.substr(0, userIds.length - 1);  
216 - }  
217 - return this.userService.UpdateLicenseUserGroupUsers(this.selectedId, userIds)  
218 - .subscribe(  
219 - n => (  
220 - this.AfterUpdateData(n, template)  
221 - ),  
222 - error => this.error = <any>error);  
223 - }  
224 -  
225 - DeleteLicenseUserGroup(template: TemplateRef<any>){  
226 - this.modalRef.hide();  
227 - this.alerts = '';  
228 - if(this.selectedId == 0){  
229 - this.alerts = "<span>Please select a license user group</span>";  
230 - }  
231 - if(this.alerts == ''){  
232 - return this.userService.DeleteLicenseUserGroup(this.selectedId)  
233 - .subscribe(  
234 - data => (this.AfterDeleteData(data, template)),  
235 - error => {  
236 - this.error = <any>error;  
237 - this.alerts = "<span>License user group delete unsuccessfull</span>";  
238 - });  
239 - }  
240 - }  
241 -  
242 - EditLicenseUserGroup(){  
243 - $('.ft_r thead tr th:eq(0)').show();  
244 - this.mode = 'Edit';  
245 - this.topPos = '100px';  
246 - this.alerts = '';  
247 - this.updateUserGroupFrm.controls['userGroupName'].setValue(this.licenseUserGroup.Title);  
248 - this.GetLicenseUserGroupUsers();  
249 - }  
250 -  
251 - ViewLicenseUserGroup(){  
252 - $('.ft_r thead tr th:eq(0)').hide();  
253 - this.mode = 'View';  
254 - this.topPos = '100px';  
255 - this.alerts = '';  
256 - this.updateUserGroupFrm.controls['userGroupName'].setValue(this.licenseUserGroup.Title);  
257 - this.GetLicenseUserGroupUsers();  
258 - }  
259 -  
260 - CancelAddEdit(){  
261 - this.mode = 'Search';  
262 - this.topPos = '2000px';  
263 - this.GetLicenseUserGroups();  
264 - this.selectedRow = this.lstLicenseUserGroups.findIndex(C => C.Id == this.selectedId);  
265 - this.SetClickedRow(this.selectedRow, this.lstLicenseUserGroups.find(C => C.Id == this.selectedId));  
266 - }  
267 -}  
500-DBDump/AIA-StoredProcedures/usergroupmergecode/usergroupmergecode/users.component.ts deleted
1 -import { Component, OnInit, AfterViewInit,ViewChild } from '@angular/core';  
2 -import { UserService } from './user.service';  
3 -import { Router } from '@angular/router';  
4 -import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';  
5 -import { FormsModule, ReactiveFormsModule } from '@angular/forms';  
6 -import { User } from '../UserEntity/datamodel';  
7 -import { UserManageRightsModel } from '../UserEntity/datamodel';  
8 -import { Http, Response } from '@angular/http';  
9 -//import { Global } from '../../Shared/global';  
10 -//import { DBOperation } from 'S';  
11 -import { Observable } from 'rxjs/Observable';  
12 -import { ConfirmService } from '../../Shared/Confirm/confirm.service';  
13 -import 'rxjs/Rx';  
14 -import 'rxjs/add/operator/map';  
15 -import 'rxjs/add/operator/filter';  
16 -import { LoadingService } from '../../shared/loading.service';  
17 -declare var $: any;  
18 -import { DatePipe } from '@angular/common';  
19 -import { GlobalService } from '../../Shared/global';  
20 -@Component({  
21 - templateUrl:'./users.component.html' // '../../../../../wwwroot/html/UpdateProfile/updateuserprofile.component.html'  
22 -})  
23 -  
24 -export class UsersList implements OnInit {  
25 -  
26 - Mode: string = 'Manage';  
27 - modalTitle: string;  
28 - Users: FormGroup;  
29 - adduserFrm: FormGroup;  
30 - managerightFrm: FormGroup;  
31 - alerts: string;  
32 - public UserTypeList: any;  
33 - public AccountTypeList: any;  
34 - public UserList: any;  
35 - public UserManageRightsList: Array<UserManageRightsModel>;  
36 - emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$";  
37 - public UserTypeListByLicense: any;  
38 - public AccountNumberList: any;  
39 - public ProductEditionList: any;  
40 - UserEntity: User;  
41 - public UserManageRightsEntity: UserManageRightsModel;  
42 - topPos: string = '2000px';  
43 - datePipe: DatePipe = new DatePipe('en-US');  
44 - error;  
45 - selectedRow: number = 0;  
46 - selectedId: number = 0;  
47 - divClass: string;  
48 - isActive: boolean;  
49 - NoRecord: string;  
50 - //@ViewChild("profileModal")  
51 - //profileModal: ModalComponent;  
52 - //errorMessage: any;  
53 - constructor(private _loadingService: LoadingService,private userservice: UserService, private router: Router, private fb: FormBuilder, private http: Http,  
54 - private _confirmService: ConfirmService,private global:GlobalService  
55 - ) { }  
56 -  
57 - ngOnInit(): void {  
58 - this.modalTitle = 'LIST USER';  
59 - this.alerts = '';  
60 - this.NoRecord = this.global.NoRecords;  
61 - this.Users = this.fb.group({  
62 - FirstName:[''],  
63 - LastName: [''],  
64 - EmailId: [''],  
65 - AccountNumber: [''],  
66 - UserTypeId: [0], //bug#28162  
67 - AccountTypeId: [0]  
68 - // Gender: ['', Validators.required],  
69 - // Email: ['']  
70 -  
71 - });  
72 - this.adduserFrm = this.fb.group({  
73 - id: [''],  
74 - UserName: ['', Validators.required],  
75 - Password: ['', [Validators.required, Validators.minLength(8)]],  
76 - ConfirmPassword: ['', Validators.required],  
77 - FirstName: ['', Validators.required],  
78 - LastName: ['', Validators.required],  
79 - EmailId: ['', Validators.required],  
80 - AccountNumber: [''],  
81 - UserType: [''],  
82 - AccountType: [''],  
83 - Createddate: [''],  
84 - LastModifiedDate: [''],  
85 - Createdby: [''],  
86 - Modifiedby: [''],  
87 - DeactivationDate: [''],  
88 - isActive: [false],  
89 - UserStatusActive: ['false'],  
90 - UserStatusInActive:['']  
91 - });  
92 - this.managerightFrm = this.fb.group({  
93 - id: [''],  
94 - UserTypeTitle: ['']  
95 - });  
96 - this._loadingService.ShowLoading("global-loading");  
97 - this.GetUserType();  
98 - this.GetAccountType();  
99 - this._loadingService.HideLoading("global-loading");  
100 - $('#fixed_hdr2').fxdHdrCol({  
101 - fixedCols: 0,  
102 - width: "100%",  
103 - height: 300,  
104 - colModal: [  
105 - { width: 180, align: 'center' },  
106 - { width: 230, align: 'center' },  
107 - { width: 150, align: 'Center' },  
108 - { width: 150, align: 'Center' },  
109 - { width: 350, align: 'Center' },  
110 - { width: 200, align: 'Center' },  
111 - { width: 130, align: 'Center' },  
112 - { width: 120, align: 'center' },  
113 - { width: 280, align: 'Center' },  
114 - { width: 180, align: 'center' },  
115 - { width: 200, align: 'center' },  
116 - { width: 170, align: 'center' },  
117 - { width: 80, align: 'center' },  
118 - { width: 150, align: 'center' },  
119 - { width: 150, align: 'center' },  
120 - { width: 180, align: 'Center' },  
121 - { width: 400, align: 'Center' },  
122 - { width: 150, align: 'center' },  
123 - { width: 110, align: 'center' },  
124 - ],  
125 - sort: true  
126 - });  
127 - document.getElementById("fixed_table_rc").remove();  
128 - var testScript = document.createElement("script");  
129 - testScript.setAttribute("id", "fixed_table_rc");  
130 - testScript.setAttribute("src", "../assets/scripts/fixed_table_rc.js");  
131 - testScript.setAttribute("type", "text/javascript");  
132 - document.body.appendChild(testScript);  
133 - this._loadingService.ShowLoading("global-loading");  
134 - //this.bindUsers();  
135 - this._loadingService.HideLoading("global-loading");  
136 -  
137 - //this.GetUserList();  
138 - }  
139 - handleChange(evt) {  
140 - debugger;  
141 - var target = evt.target;  
142 - if (target.value == 'true') {  
143 - this.isActive = true;  
144 - }  
145 - else if (target.value == 'false') {  
146 - this.isActive = false;  
147 - }  
148 - }  
149 -  
150 - public SetClickedRow(i: number, item: any) {  
151 - this.selectedRow = i;  
152 - this.selectedId = item['Id'];  
153 - this.UserEntity = item;  
154 - }  
155 - public SetClickedRowManageRight(j: number, item: any) {  
156 - this.selectedRow = j;  
157 - this.selectedId = item['Id'];  
158 - this.UserManageRightsList = item;  
159 - }  
160 - redirect() {  
161 - this.router.navigate(['/']);  
162 - }  
163 -  
164 - GetUserType() {  
165 - this.userservice.GetUserType().subscribe(x => { this.UserTypeList = x; }, error => this.error = <any>error);  
166 - }  
167 - GetAccountType() {  
168 - this.userservice.GetAccountType().subscribe(x => { this.AccountTypeList = x; }, error => this.error = <any>error);  
169 - }  
170 - GetUserList() {  
171 - //this.userservice.GetUserList().subscribe(x => { this.UserList = x; }, error => this.error = <any>error);  
172 - }  
173 - GetUserRights() {  
174 - this.userservice.GetManageUserRights({  
175 - UserId: this.managerightFrm.controls['id'].value,  
176 - UserType: this.managerightFrm.controls['UserTypeTitle'].value  
177 - })  
178 - .subscribe(x => { console.log(x); this.UserManageRightsList = x }, error => {  
179 - this.error = <any>error;  
180 - this.alerts = "<span>" + this.error + "</span>";  
181 - });  
182 - }  
183 - SearchUserList(this)  
184 - {  
185 - this._loadingService.ShowLoading("global-loading");  
186 - var UserFilterControl = this.Users.value;  
187 - this.userservice.GetUserList(  
188 - {  
189 - FirstName: this.Users.controls['FirstName'].value,  
190 - LastName: this.Users.controls['LastName'].value,  
191 - EmailId: this.Users.controls['EmailId'].value,  
192 - AccountNumber: this.Users.controls['AccountNumber'].value,  
193 - UserTypeId: (this.Users.controls['UserTypeId'].value != null && this.Users.controls['UserTypeId'].value !='' ? this.Users.controls['UserTypeId'].value:0),  
194 - AccountTypeId: (this.Users.controls['AccountTypeId'].value != null && this.Users.controls['AccountTypeId'].value != ''? this.Users.controls['AccountTypeId'].value : 0),  
195 -  
196 -  
197 - })  
198 -  
199 - .subscribe(x => { this.BindFormFields(x) }, error => this.error = <any>error);  
200 -  
201 - }  
202 - BindFormFields(data) {  
203 - this.UserList = data;  
204 - if (this.UserList.length > 0) {  
205 - this.NoRecord = '';  
206 - this._loadingService.HideLoading("global-loading");  
207 - }  
208 - if (this.UserList.length == 0) {  
209 - this.NoRecord = this.global.NoRecords;  
210 - this._loadingService.HideLoading("global-loading");  
211 - }  
212 - }  
213 - EditUser() {  
214 - debugger;  
215 - this.Mode = 'Edit';  
216 - this.modalTitle = 'Edit USER';  
217 - this.topPos = '100px';  
218 - this.divClass = 'col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3';  
219 - this.alerts = '';  
220 - this.adduserFrm.controls['id'].setValue(this.UserEntity.Id)  
221 - this.adduserFrm.controls['FirstName'].setValue(this.UserEntity.FirstName)  
222 - this.adduserFrm.controls['LastName'].setValue(this.UserEntity.LastName)  
223 - this.adduserFrm.controls['EmailId'].setValue(this.UserEntity.EmailId)  
224 - this.adduserFrm.controls['UserName'].setValue(this.UserEntity.LoginId)  
225 - this.adduserFrm.controls['Password'].setValue(this.UserEntity.Password)  
226 - this.adduserFrm.controls['ConfirmPassword'].setValue(this.UserEntity.Password)  
227 - this.adduserFrm.controls['AccountNumber'].setValue(this.UserEntity.AccountNumber)  
228 - this.adduserFrm.controls['UserType'].setValue(this.UserEntity.UserTypeTitle)  
229 - this.adduserFrm.controls['AccountType'].setValue(this.UserEntity.AccountTypeTitle)  
230 - this.adduserFrm.controls['Createddate'].setValue(this.datePipe.transform(this.UserEntity.CreationDate, 'MM/dd/yyyy'))  
231 - this.adduserFrm.controls['LastModifiedDate'].setValue(this.datePipe.transform(this.UserEntity.ModifiedDate, 'MM/dd/yyyy'))  
232 - this.adduserFrm.controls['Createdby'].setValue(this.UserEntity.Createdby)  
233 - this.adduserFrm.controls['Modifiedby'].setValue(this.UserEntity.Modifiedby)  
234 - this.adduserFrm.controls['DeactivationDate'].setValue(this.datePipe.transform(this.UserEntity.DeactivationDate, 'MM/dd/yyyy'))  
235 - if (this.UserEntity.UserStatus == 'Active') {  
236 - this.adduserFrm.controls['UserStatusActive'].setValue('true')  
237 - }  
238 - else {  
239 - this.adduserFrm.controls['UserStatusActive'].setValue('false')  
240 - }  
241 - //this.adduserFrm.controls['UserStatusActive'].setValue(true)  
242 - //this.adduserFrm.controls['UserStatusInActive'].setValue(false)  
243 - this.isActive = (this.UserEntity.UserStatus=='Active'?true :false)  
244 -  
245 - }  
246 -  
247 - EditManageUserRights() {  
248 - this.Mode = 'ManageRight';  
249 - this.modalTitle = 'MANAGE USER Right';  
250 - this.topPos = '100px';  
251 - this.divClass = 'col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3';  
252 - this.alerts = '';  
253 - this.managerightFrm.controls['id'].setValue(this.UserEntity.Id);  
254 - this.managerightFrm.controls['UserTypeTitle'].setValue(this.UserEntity.UserTypeTitle);  
255 - this.GetUserRights();  
256 - }  
257 -  
258 - public UpdateUser(this) {  
259 - this.alerts = '';  
260 - if (this.adduserFrm.value.UserName == '') {  
261 - this.alerts += '<span>User Name is required.</span>';  
262 - }  
263 - if (this.adduserFrm.value.Password == '') {  
264 - this.alerts += '</br><span>Password of minimum 8 characters is required.</span>';  
265 - }  
266 - if (this.adduserFrm.value.ConfirmPassword == '') {  
267 - this.alerts += '</br><span>Confirm Password is required.</span>';  
268 - }  
269 - if (this.adduserFrm.value.EmailId == '') {  
270 - this.alerts += '</br><span>Email Id is required.</span>';  
271 - }  
272 - if (this.adduserFrm.value.FirstName == '') {  
273 - this.alerts += '</br><span>First Name is required.</span>';  
274 - }  
275 - if (this.adduserFrm.value.LastName == '') {  
276 - this.alerts += '</br><span>Last Name is required.</span>';  
277 - }  
278 - if (this.adduserFrm.value.newPassword != this.adduserFrm.value.confirmPassword) {  
279 - this.alerts += '</br><span>Password and confirm password must be same</span>';  
280 - }  
281 -  
282 - if (this.adduserFrm.valid && this.alerts == '') {  
283 - this.adduserFrm.controls['isActive'].setValue(this.adduserFrm.value.UserStatusActive)  
284 -  
285 - var UserEntity = this.adduserFrm.value;  
286 -  
287 - return this.userservice.UpdateUserEntity(UserEntity)  
288 - .subscribe(  
289 - n => (this.AfterInsertData(n)),  
290 - error => {  
291 - this.error = <any>error;  
292 - this.alerts = "<span>" + this.error + "</span>";  
293 - });  
294 - }  
295 -  
296 - }  
297 -  
298 - //public DeleteUnblockedUser(this) {  
299 - // this.alerts = '';  
300 - //}  
301 -  
302 - AfterInsertData(data) {  
303 -  
304 - if (data == "User updated successfully") {  
305 - this.alerts = '';  
306 - this._confirmService.activate("User updated successfully.", "alertMsg");  
307 - }  
308 - //if (this.closeflag) {  
309 - // this.close.emit(null);  
310 - //}  
311 - //else {  
312 - //}  
313 - }  
314 -  
315 - ResetFormFields() {  
316 - //this.ChangeUserIdFrm.reset()  
317 - //this.ChangeUserIdFrm.controls['id'].setValue(this.user.Id)  
318 - //this.ChangeUserIdFrm.controls['loginid'].setValue(this.user.LoginId)  
319 - //this.ChangeUserIdFrm.controls['newloginid'].setValue('')  
320 - //this.ChangeUserIdFrm.controls['confirmloginid'].setValue('')  
321 - this.alerts = '';  
322 - }  
323 -  
324 -}  
500-DBDump/AIA-StoredProcedures/usp_GetAccountNumber.sql
1 Binary files a/500-DBDump/AIA-StoredProcedures/usp_GetAccountNumber.sql and b/500-DBDump/AIA-StoredProcedures/usp_GetAccountNumber.sql differ 1 Binary files a/500-DBDump/AIA-StoredProcedures/usp_GetAccountNumber.sql and b/500-DBDump/AIA-StoredProcedures/usp_GetAccountNumber.sql differ
500-DBDump/AIA-StoredProcedures/usp_GetlicensesList.sql 0 → 100644
1 Binary files /dev/null and b/500-DBDump/AIA-StoredProcedures/usp_GetlicensesList.sql differ 1 Binary files /dev/null and b/500-DBDump/AIA-StoredProcedures/usp_GetlicensesList.sql differ