diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/CommonController.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/CommonController.cs
index 3b4ef5d..3e87f6a 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/CommonController.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/CommonController.cs
@@ -90,12 +90,12 @@ namespace AIAHTML5.ADMIN.API.Controllers
public IHttpActionResult GetDiscountCode()
{
dbContext.Configuration.ProxyCreationEnabled = false;
- List lstDiscountCode1 = new List();
+ List lstDiscountCode1 = new List();
string sStartDate = DateTime.MinValue.ToShortDateString();
string sEndDate = DateTime.MaxValue.ToShortDateString();
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstDiscountCode = dbContext.usp_GetDiscountCodes("", "", "", 1, 1, spRecordCount).ToList();
- lstDiscountCode1 = lstDiscountCode.Select(l => new DiscountCodeModel { Id = l.Id, DiscountCode = l.DiscountCode }).ToList();
+ var lstDiscountCode = dbContext.usp_GetDiscountCodes("", "", "","Id","asc", 1, 1, spRecordCount).ToList();
+ lstDiscountCode1 = lstDiscountCode.Select(l => new usp_GetDiscountCodes_Result { Id = l.Id, DiscountCode = l.DiscountCode }).ToList();
return Ok(lstDiscountCode1);
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/DiscountCodeController.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/DiscountCodeController.cs
index 23e14af..29a90cb 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/DiscountCodeController.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/DiscountCodeController.cs
@@ -25,13 +25,13 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("GetDiscountCodes")]
[HttpGet]
- public HttpResponseMessage GetDiscountCodes(string discountCode, DateTime startDate, DateTime endDate, int pageNo, int pageLength)
+ public HttpResponseMessage GetDiscountCodes(string discountCode, DateTime startDate, DateTime endDate, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
- List DiscountCodeList = new List();
+ List DiscountCodeList;
int recordCount = 0;
try
{
- DiscountCodeList = DiscountCodeModel.GetDiscountCodes(dbContext, discountCode, startDate, endDate, pageNo, pageLength, out recordCount);
+ DiscountCodeList = DiscountCodeModel.GetDiscountCodes(dbContext, discountCode, startDate, endDate, sortColumn, sortOrder, pageNo, pageLength, out recordCount);
return Request.CreateResponse(HttpStatusCode.OK, new { DiscountCodeList = DiscountCodeList, RecordCount = recordCount });
}
catch (Exception ex)
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/LicenseController.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/LicenseController.cs
index 1745af0..e451ffe 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/LicenseController.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/LicenseController.cs
@@ -43,14 +43,14 @@ namespace AIAHTML5.ADMIN.API.Controllers
[HttpGet]
public HttpResponseMessage GetLicenses(string accountNumber, string licenseeFirstName, string licenseeLastName, byte licenseTypeId,
string institutionName, int stateId, int countryId, string emailId, DateTime subscriptionStartDate, DateTime subscriptionEndDate,
- bool isActive, int pageNo, int pageLength)
+ bool isActive, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
- List LicenseList = new List();
+ List LicenseList;
int recordCount = 0;
try
{
LicenseList = LicenseModel.GetLicenses(dbContext, accountNumber, licenseeFirstName, licenseeLastName, licenseTypeId, institutionName,
- stateId, countryId, emailId, subscriptionStartDate, subscriptionEndDate, isActive, pageNo, pageLength, out recordCount);
+ stateId, countryId, emailId, subscriptionStartDate, subscriptionEndDate, isActive, sortColumn, sortOrder, pageNo, pageLength, out recordCount);
return Request.CreateResponse(HttpStatusCode.OK, new { LicenseList = LicenseList, RecordCount = recordCount });
}
catch (Exception ex)
@@ -236,13 +236,13 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("LicenseSites")]
[HttpGet]
- public HttpResponseMessage GetLicenseSites(string AccountNo, int pageNo, int pageLength)
+ public HttpResponseMessage GetLicenseSites(string AccountNo, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
- List LicenseSiteList = new List();
+ List LicenseSiteList;
int recordCount = 0;
try
{
- LicenseSiteList = LicenseModel.GetLicenseSites(dbContext, AccountNo, pageNo, pageLength, out recordCount);
+ LicenseSiteList = LicenseModel.GetLicenseSites(dbContext, AccountNo, sortColumn, sortOrder, pageNo, pageLength, out recordCount);
return Request.CreateResponse(HttpStatusCode.OK, new { LicenseSiteList = LicenseSiteList, RecordCount = recordCount });
}
catch (Exception ex)
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/ReportController.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/ReportController.cs
index fe97ff7..1efd752 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/ReportController.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/ReportController.cs
@@ -22,21 +22,21 @@ namespace AIAHTML5.ADMIN.API.Controllers
AIADatabaseV5Entities dbContext = new AIADatabaseV5Entities();
[Route("GetUsageReport")]
[HttpGet]
- public IHttpActionResult GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, int iState, int iCountry, int pageNo, int pageLength)
+ public IHttpActionResult GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, int iState, int iCountry, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstUsageReport = dbContext.usp_GetUsageReport(sFromDate, sToDate, sAccoutNumber, sZip, iState, iCountry, pageNo, pageLength, spRecordCount).ToList();
+ var lstUsageReport = dbContext.usp_GetUsageReport(sFromDate, sToDate, sAccoutNumber, sZip, iState, iCountry, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { UserUsage = lstUsageReport, RecordCount = spRecordCount.Value });
//return Ok(lstUsageReport);
}
[Route("GetCustomerSummeryReport")]
[HttpGet]
- public IHttpActionResult GetCustomerSummeryReport(string sAccoutNumber, string sLicenseeFullName, Nullable iStartPrice, Nullable iEndPrice, int iLicenseType, int iAccountType, string sZip, int iState, int iCountry, int pageNo, int pageLength)
+ public IHttpActionResult GetCustomerSummeryReport(string sAccoutNumber, string sLicenseeFullName, Nullable iStartPrice, Nullable iEndPrice, int iLicenseType, int iAccountType, string sZip, int iState, int iCountry, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstCustomerSummeryReport = dbContext.usp_GetCustomerSummary(sAccoutNumber, sLicenseeFullName, iStartPrice, iEndPrice, (byte)iLicenseType, (byte)iAccountType, sZip, iState, iCountry, pageNo, pageLength, spRecordCount).ToList();
+ var lstCustomerSummeryReport = dbContext.usp_GetCustomerSummary(sAccoutNumber, sLicenseeFullName, iStartPrice, iEndPrice, (byte)iLicenseType, (byte)iAccountType, sZip, iState, iCountry, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { CustomerSummery = lstCustomerSummeryReport, RecordCount = spRecordCount.Value });
//return Ok(lstCustomerSummeryReport);
}
@@ -121,13 +121,13 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("GetImageExportReport")]
[HttpGet]
- public IHttpActionResult GetImageExportReport(string sFromDate, string sToDate, string sAccountNumber, int pageNo, int pageLength)
+ public IHttpActionResult GetImageExportReport(string sFromDate, string sToDate, string sAccountNumber, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
try
{
if (sAccountNumber == null) sAccountNumber = string.Empty;
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstImageExportReport = dbContext.usp_GetExportedImageDetails(sFromDate, sToDate, sAccountNumber, pageNo, pageLength, spRecordCount).ToList();
+ var lstImageExportReport = dbContext.usp_GetExportedImageDetails(sFromDate, sToDate, sAccountNumber, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { ImageExportList = lstImageExportReport, RecordCount = spRecordCount.Value });
}
catch (Exception ex)
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/SubscriptionPriceController.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/SubscriptionPriceController.cs
index 8ffa76d..136a422 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/SubscriptionPriceController.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/SubscriptionPriceController.cs
@@ -25,13 +25,13 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("GetSubscriptionPrices")]
[HttpGet]
- public HttpResponseMessage GetSubscriptionPrices(int editionId, int pageNo, int pageLength)
+ public HttpResponseMessage GetSubscriptionPrices(int editionId, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
- List SubscriptionPriceList = new List();
+ List SubscriptionPriceList;
int recordCount = 0;
try
{
- SubscriptionPriceList = SubscriptionPriceModel.GetSubscriptionPrices(dbContext, editionId, pageNo, pageLength, out recordCount);
+ SubscriptionPriceList = SubscriptionPriceModel.GetSubscriptionPrices(dbContext, editionId, sortColumn, sortOrder, pageNo, pageLength, out recordCount);
return Request.CreateResponse(HttpStatusCode.OK, new { SubscriptionPriceList = SubscriptionPriceList, RecordCount = recordCount });
}
catch (Exception ex)
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs
index b811649..c34c366 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs
@@ -186,7 +186,7 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("Users")]
[HttpGet]
- public IHttpActionResult UserList(string firstname, string lastname, string emailid, string accountnumber, string usertypeid, string accounttypeid, string userLoginStatus,
+ public IHttpActionResult UserList(string firstname, string lastname, string emailid, string accountnumber, string usertypeid, string accounttypeid, string userLoginStatus, string sortColumn, string sortOrder,
int pageNo, int pageLength, int iLoginUserType,string loggedIn="")
{
try
@@ -198,16 +198,16 @@ namespace AIAHTML5.ADMIN.API.Controllers
dbContext.Configuration.ProxyCreationEnabled = false;
//var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- //recordCount = (int)spRecordCount.Value;
- List Users = dbContext.usp_GetUsersList(firstname, lastname, emailid, accountnumber, UserTypeId, AccountTypeId, iLoginUserType, loginStatus, pageNo, pageLength, spRecordCount).ToList();
+ recordCount = (int)spRecordCount.Value;
+ List Users = dbContext.usp_GetUsersList(firstname, lastname, emailid, accountnumber, UserTypeId, AccountTypeId, iLoginUserType, loginStatus, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
if (!string.IsNullOrEmpty(loggedIn))
- {
+ {
if (Users.Where(s => s.LoginId == loggedIn).Count() > 0)
- {
+ {
Users = Users.Where(s => s.LoginId != loggedIn).ToList();
spRecordCount.Value = (int)spRecordCount.Value - 1;
}
-
+
}
return Ok(new { UserList = Users, RecordCount = spRecordCount.Value });
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserGroupController.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserGroupController.cs
index 0f804ed..64968a4 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserGroupController.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserGroupController.cs
@@ -24,13 +24,13 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("LicenseUserGroups")]
[HttpGet]
- public HttpResponseMessage GetLicenseUserGroups(int? LicenseId, int pageNo, int pageLength)
+ public HttpResponseMessage GetLicenseUserGroups(int? LicenseId, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
- List UserGroupList = new List();
+ List UserGroupList;
int recordCount = 0;
try
{
- UserGroupList = UserGroupModel.GetLicenseUserGroups(dbContext, LicenseId, pageNo, pageLength, out recordCount);
+ UserGroupList = UserGroupModel.GetLicenseUserGroups(dbContext, LicenseId, sortColumn, sortOrder,pageNo, pageLength, out recordCount);
return Request.CreateResponse(HttpStatusCode.OK, new { UserGroupList = UserGroupList, RecordCount = recordCount });
}
catch (Exception ex)
@@ -42,13 +42,13 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("LicenseUserGroupUsers")]
[HttpGet]
- public HttpResponseMessage GetLicenseUserGroupUsers(int? LicenseId, int UserGroupId, bool AllUsers, int pageNo, int pageLength)
+ public HttpResponseMessage GetLicenseUserGroupUsers(int? LicenseId, int UserGroupId, bool AllUsers, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
- List UserList = new List();
+ List UserList ;
int recordCount = 0;
try
{
- UserList = UserGroupModel.GetLicenseUserGroupUsers(dbContext, LicenseId, UserGroupId, AllUsers, pageNo, pageLength, out recordCount);
+ UserList = UserGroupModel.GetLicenseUserGroupUsers(dbContext, LicenseId, UserGroupId, AllUsers, sortColumn, sortOrder, pageNo, pageLength, out recordCount);
return Request.CreateResponse(HttpStatusCode.OK, new { UserList = UserList, RecordCount = recordCount });
}
catch (Exception ex)
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.Context.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.Context.cs
index d486a00..c50e14b 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.Context.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.Context.cs
@@ -3095,7 +3095,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetLicenses", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, sLicenseeFirstNameParameter, sLicenseeLastNameParameter, iLicenseTypeIdParameter, sInstituteNameParameter, sEmailParameter, iStateIdParameter, iCountryIdParameter, bisActiveParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetlicensesList(string sStartDate, string sEndDate, string sAccoutNumber, string sLicenseeFirstName, string sLicenseeLastName, Nullable iLicenseTypeId, string sInstituteName, string sEmail, Nullable iStateId, Nullable iCountryId, Nullable bisActive, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetlicensesList(string sStartDate, string sEndDate, string sAccoutNumber, string sLicenseeFirstName, string sLicenseeLastName, Nullable iLicenseTypeId, string sInstituteName, string sEmail, Nullable iStateId, Nullable iCountryId, Nullable bisActive, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sStartDateParameter = sStartDate != null ?
new ObjectParameter("sStartDate", sStartDate) :
@@ -3141,6 +3141,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("bisActive", bisActive) :
new ObjectParameter("bisActive", typeof(bool));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -3149,7 +3157,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetlicensesList", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, sLicenseeFirstNameParameter, sLicenseeLastNameParameter, iLicenseTypeIdParameter, sInstituteNameParameter, sEmailParameter, iStateIdParameter, iCountryIdParameter, bisActiveParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetlicensesList", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, sLicenseeFirstNameParameter, sLicenseeLastNameParameter, iLicenseTypeIdParameter, sInstituteNameParameter, sEmailParameter, iStateIdParameter, iCountryIdParameter, bisActiveParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_GetLicenseTypes()
@@ -3157,12 +3165,20 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetLicenseTypes");
}
- public virtual ObjectResult usp_GetLicenseUserGroups(Nullable licenseId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetLicenseUserGroups(Nullable licenseId, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var licenseIdParameter = licenseId.HasValue ?
new ObjectParameter("LicenseId", licenseId) :
new ObjectParameter("LicenseId", typeof(int));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -3171,7 +3187,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetLicenseUserGroups", licenseIdParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetLicenseUserGroups", licenseIdParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_GetManageRights(Nullable userId, string roleName)
@@ -3218,12 +3234,20 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSiteById", siteIdParameter);
}
- public virtual ObjectResult usp_GetSubscriptionPlans(Nullable iEditionId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetSubscriptionPlans(Nullable iEditionId, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var iEditionIdParameter = iEditionId.HasValue ?
new ObjectParameter("iEditionId", iEditionId) :
new ObjectParameter("iEditionId", typeof(byte));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -3232,7 +3256,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSubscriptionPlans", iEditionIdParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSubscriptionPlans", iEditionIdParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_GetUserType(Nullable id)
@@ -3638,7 +3662,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("uspInsertBulkRow");
}
- public virtual ObjectResult usp_GetLicenseUserGroupUsers(Nullable licenseId, Nullable groupId, Nullable allUsers, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetLicenseUserGroupUsers(Nullable licenseId, Nullable groupId, Nullable allUsers, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var licenseIdParameter = licenseId.HasValue ?
new ObjectParameter("licenseId", licenseId) :
@@ -3652,6 +3676,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("allUsers", allUsers) :
new ObjectParameter("allUsers", typeof(bool));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -3660,7 +3692,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetLicenseUserGroupUsers", licenseIdParameter, groupIdParameter, allUsersParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetLicenseUserGroupUsers", licenseIdParameter, groupIdParameter, allUsersParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_InsertResellerLicenseAccount(string sLicenseeFname, string sLicenseeLname, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sInstitutionName, string sAddress1, string sAddress2, string sCity, string sZip, Nullable iStateId, Nullable iCountryId, string sPhone, string sEmailId, Nullable iTotalLogins, string sStartDate, string sEndDate, string sEditionList, Nullable iTotalPrice, Nullable iCreatorId, string sProductKey, Nullable iNoofImages)
@@ -3783,12 +3815,20 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSiteAccountAdmin", accountNumberParameter);
}
- public virtual ObjectResult usp_GetSiteAccountSites(string strAccountNumber, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetSiteAccountSites(string strAccountNumber, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var strAccountNumberParameter = strAccountNumber != null ?
new ObjectParameter("strAccountNumber", strAccountNumber) :
new ObjectParameter("strAccountNumber", typeof(string));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -3797,7 +3837,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSiteAccountSites", strAccountNumberParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSiteAccountSites", strAccountNumberParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_DeleteLicense(Nullable iLicenseId)
@@ -3900,7 +3940,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetCancelledLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetCustomerSummary(string sAccoutNumber, string sLicenseeFullName, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseType, Nullable iAccountType, string sZip, Nullable iState, Nullable iCountry, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetCustomerSummary(string sAccoutNumber, string sLicenseeFullName, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseType, Nullable iAccountType, string sZip, Nullable iState, Nullable iCountry, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sAccoutNumberParameter = sAccoutNumber != null ?
new ObjectParameter("sAccoutNumber", sAccoutNumber) :
@@ -3938,6 +3978,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("iCountry", iCountry) :
new ObjectParameter("iCountry", typeof(int));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -3946,10 +3994,10 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetCustomerSummary", sAccoutNumberParameter, sLicenseeFullNameParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeParameter, iAccountTypeParameter, sZipParameter, iStateParameter, iCountryParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetCustomerSummary", sAccoutNumberParameter, sLicenseeFullNameParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeParameter, iAccountTypeParameter, sZipParameter, iStateParameter, iCountryParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetDiscountCodes(string sDiscountCode, string sStartDate, string sEndDate, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetDiscountCodes(string sDiscountCode, string sStartDate, string sEndDate, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sDiscountCodeParameter = sDiscountCode != null ?
new ObjectParameter("sDiscountCode", sDiscountCode) :
@@ -3963,6 +4011,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("sEndDate", sEndDate) :
new ObjectParameter("sEndDate", typeof(string));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -3971,7 +4027,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetDiscountCodes", sDiscountCodeParameter, sStartDateParameter, sEndDateParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetDiscountCodes", sDiscountCodeParameter, sStartDateParameter, sEndDateParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_GetDiscountReport(string sStartDate, string sEndDate, Nullable intDiscountID, string sAccoutNumber, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
@@ -4052,7 +4108,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetExpiringLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetExportedImageDetails(string sStartDate, string sEndDate, string sAccoutNumber, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetExportedImageDetails(string sStartDate, string sEndDate, string sAccoutNumber, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sStartDateParameter = sStartDate != null ?
new ObjectParameter("sStartDate", sStartDate) :
@@ -4066,6 +4122,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("sAccoutNumber", sAccoutNumber) :
new ObjectParameter("sAccoutNumber", typeof(string));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -4074,7 +4138,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetExportedImageDetails", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetExportedImageDetails", sStartDateParameter, sEndDateParameter, sAccoutNumberParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult> usp_GetIncorrectLoginAttempt(Nullable iUserId)
@@ -4341,7 +4405,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSubscribedLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable iState, Nullable iCountry, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetUsageReport(string sFromDate, string sToDate, string sAccoutNumber, string sZip, Nullable iState, Nullable iCountry, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFromDateParameter = sFromDate != null ?
new ObjectParameter("sFromDate", sFromDate) :
@@ -4367,6 +4431,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("iCountry", iCountry) :
new ObjectParameter("iCountry", typeof(int));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -4375,7 +4447,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, sZipParameter, iStateParameter, iCountryParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, sZipParameter, iStateParameter, iCountryParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_GetUserList(string sFirstName, string sLastName, string sEmailId, string sAccoutNumber, Nullable iUserTypeId, Nullable iAccountTypeId, Nullable iLoginUserType, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
@@ -4419,7 +4491,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetUserList", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetUsersList(string sFirstName, string sLastName, string sEmailId, string sAccoutNumber, Nullable iUserTypeId, Nullable iAccountTypeId, Nullable iLoginUserType, Nullable iLoginStatus, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetUsersList(string sFirstName, string sLastName, string sEmailId, string sAccoutNumber, Nullable iUserTypeId, Nullable iAccountTypeId, Nullable iLoginUserType, Nullable iLoginStatus, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFirstNameParameter = sFirstName != null ?
new ObjectParameter("sFirstName", sFirstName) :
@@ -4453,6 +4525,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("iLoginStatus", iLoginStatus) :
new ObjectParameter("iLoginStatus", typeof(bool));
+ var sortColumnParameter = sortColumn != null ?
+ new ObjectParameter("sortColumn", sortColumn) :
+ new ObjectParameter("sortColumn", typeof(string));
+
+ var sortOrderParameter = sortOrder != null ?
+ new ObjectParameter("sortOrder", sortOrder) :
+ new ObjectParameter("sortOrder", typeof(string));
+
var pageNoParameter = pageNo.HasValue ?
new ObjectParameter("pageNo", pageNo) :
new ObjectParameter("pageNo", typeof(int));
@@ -4461,7 +4541,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetUsersList", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter, iLoginStatusParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetUsersList", sFirstNameParameter, sLastNameParameter, sEmailIdParameter, sAccoutNumberParameter, iUserTypeIdParameter, iAccountTypeIdParameter, iLoginUserTypeParameter, iLoginStatusParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_GetUserTyeByAccountNumber(Nullable iUserTypeId, Nullable iLicenseId)
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx
index 9527612..2267912 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx
@@ -644,10 +644,6 @@
-
-
-
-
@@ -994,6 +990,8 @@
+
+
@@ -1002,6 +1000,8 @@
+
+
@@ -1034,6 +1034,8 @@
+
+
@@ -1082,6 +1084,8 @@
+
+
@@ -1089,6 +1093,8 @@
+
+
@@ -1097,6 +1103,8 @@
+
+
@@ -1150,6 +1158,8 @@
+
+
@@ -1198,6 +1208,8 @@
+
+
@@ -1209,6 +1221,8 @@
+
+
@@ -1234,6 +1248,8 @@
+
+
@@ -2460,6 +2476,8 @@
+
+
@@ -2467,6 +2485,8 @@
+
+
@@ -2487,6 +2507,8 @@
+
+
@@ -2626,6 +2648,8 @@
+
+
@@ -2667,6 +2691,8 @@
+
+
@@ -2709,6 +2735,8 @@
+
+
@@ -2717,6 +2745,8 @@
+
+
@@ -2748,6 +2778,8 @@
+
+
@@ -2840,6 +2872,8 @@
+
+
@@ -2865,6 +2899,8 @@
+
+
@@ -3907,26 +3943,25 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
@@ -3941,7 +3976,6 @@
-
@@ -3985,12 +4019,12 @@
-
-
-
+
+
+
@@ -4057,14 +4091,13 @@
-
-
-
+
+
@@ -4091,18 +4124,16 @@
-
-
-
-
-
+
+
-
-
-
-
+
+
+
+
+
@@ -4148,31 +4179,30 @@
-
-
+
-
-
-
+
-
-
-
+
+
+
+
+
-
+
-
-
-
+
+
+
@@ -4199,16 +4229,14 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -4318,41 +4346,39 @@
-
-
-
+
+
-
+
-
+
-
-
+
-
-
+
+
-
-
-
+
+
+
-
+
@@ -5530,7 +5556,6 @@
-
@@ -5749,7 +5774,6 @@
-
@@ -5772,7 +5796,6 @@
-
@@ -5836,12 +5859,12 @@
-
-
+
+
@@ -5920,14 +5943,13 @@
-
-
+
@@ -5968,18 +5990,16 @@
-
-
-
-
-
-
-
+
+
+
+
+
@@ -6058,15 +6078,12 @@
-
-
-
@@ -6075,7 +6092,9 @@
-
+
+
+
@@ -6086,7 +6105,7 @@
-
+
@@ -6125,8 +6144,6 @@
-
-
@@ -6287,7 +6304,6 @@
-
@@ -6308,7 +6324,6 @@
-
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetCustomerSummary_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetCustomerSummary_Result.cs
index 93416fc..4c626fc 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetCustomerSummary_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetCustomerSummary_Result.cs
@@ -13,22 +13,21 @@ namespace AIAHTML5.ADMIN.API.Entity
public partial class usp_GetCustomerSummary_Result
{
- public Nullable Serial_No { get; set; }
public string AccountNumber { get; set; }
public string LicenseeName { get; set; }
public string LicenseType { get; set; }
public string AccountType { get; set; }
public string Edition { get; set; }
public string Email { get; set; }
- public string StartDate { get; set; }
- public string EndDate { get; set; }
public string LicenseStatus { get; set; }
public Nullable Price { get; set; }
public string LicenseZip { get; set; }
public string LicenseState { get; set; }
public string LicenseCountry { get; set; }
public string InstitutionName { get; set; }
- public string LicenseCreationDate { get; set; }
- public int CardNumber { get; set; }
+ public Nullable LicenseCreationDate { get; set; }
+ public Nullable CardNumber { get; set; }
+ public Nullable StartDate { get; set; }
+ public Nullable EndDate { get; set; }
}
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetDiscountCodes_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetDiscountCodes_Result.cs
index 36b4aa7..0198a94 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetDiscountCodes_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetDiscountCodes_Result.cs
@@ -16,8 +16,8 @@ namespace AIAHTML5.ADMIN.API.Entity
public int Id { get; set; }
public string DiscountCode { get; set; }
public decimal Percentage { get; set; }
- public string StartDate { get; set; }
- public string EndDate { get; set; }
- public string Status { get; set; }
+ public System.DateTime StartDate { get; set; }
+ public System.DateTime EndDate { get; set; }
+ public bool IsActive { get; set; }
}
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetExportedImageDetails_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetExportedImageDetails_Result.cs
index 380c81c..9b29604 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetExportedImageDetails_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetExportedImageDetails_Result.cs
@@ -13,15 +13,13 @@ namespace AIAHTML5.ADMIN.API.Entity
public partial class usp_GetExportedImageDetails_Result
{
- public Nullable RowNum { get; set; }
- public int LicenseId { get; set; }
- public string ExportedDate { get; set; }
+ public System.DateTime ExportedDate { get; set; }
public string ImageName { get; set; }
public string AccountNumber { get; set; }
public string OriginalFileName { get; set; }
public string Title { get; set; }
public string ModuleName { get; set; }
- public int ExportLimit { get; set; }
+ public Nullable ExportLimit { get; set; }
public string UserName { get; set; }
public Nullable imageCount { get; set; }
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenseUserGroupUsers_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenseUserGroupUsers_Result.cs
index f129818..a4aa96d 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenseUserGroupUsers_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenseUserGroupUsers_Result.cs
@@ -13,13 +13,12 @@ namespace AIAHTML5.ADMIN.API.Entity
public partial class usp_GetLicenseUserGroupUsers_Result
{
- public Nullable RowNo { get; set; }
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string LoginId { get; set; }
public string EmailId { get; set; }
- public string Title { get; set; }
- public int InGroup { get; set; }
+ public bool InGroup { get; set; }
+ public string ProductEdition { get; set; }
}
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenseUserGroups_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenseUserGroups_Result.cs
index 8269798..4e88bff 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenseUserGroups_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetLicenseUserGroups_Result.cs
@@ -20,6 +20,5 @@ namespace AIAHTML5.ADMIN.API.Entity
public Nullable ModifiedDate { get; set; }
public bool IsActive { get; set; }
public Nullable TotalUsers { get; set; }
- public Nullable RowNo { get; set; }
}
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteAccountSites_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteAccountSites_Result.cs
index 8510c4b..a98b3b7 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteAccountSites_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSiteAccountSites_Result.cs
@@ -14,16 +14,14 @@ namespace AIAHTML5.ADMIN.API.Entity
public partial class usp_GetSiteAccountSites_Result
{
public int Id { get; set; }
- public string SiteIp { get; set; }
public string Title { get; set; }
- public string SiteIPTo { get; set; }
- public string SiteMasterIPTo { get; set; }
- public string CreationDate { get; set; }
- public string ModifiedDate { get; set; }
+ public Nullable CreationDate { get; set; }
+ public Nullable ModifiedDate { get; set; }
public string InstituteName { get; set; }
public string Department { get; set; }
- public int UserId { get; set; }
- public string FirstName { get; set; }
- public string EmailId { get; set; }
+ public string Ip { get; set; }
+ public string SiteIpTo { get; set; }
+ public string SiteUserFirstName { get; set; }
+ public string SiteUserEmailId { get; set; }
}
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSubscriptionPlans_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSubscriptionPlans_Result.cs
index 6bc11dd..e41c7eb 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSubscriptionPlans_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetSubscriptionPlans_Result.cs
@@ -13,11 +13,11 @@ namespace AIAHTML5.ADMIN.API.Entity
public partial class usp_GetSubscriptionPlans_Result
{
- public Nullable price { get; set; }
- public string title { get; set; }
- public short Id { get; set; }
+ public int Id { get; set; }
public byte EditionId { get; set; }
public byte Duration { get; set; }
public bool IsActive { get; set; }
+ public string Title { get; set; }
+ public Nullable Price { get; set; }
}
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsageReport_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsageReport_Result.cs
index ec4b6a5..93612db 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsageReport_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsageReport_Result.cs
@@ -13,19 +13,18 @@ namespace AIAHTML5.ADMIN.API.Entity
public partial class usp_GetUsageReport_Result
{
- public Nullable Serial_No { get; set; }
public string LoginId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string AccountNumber { get; set; }
- public int CardNumber { get; set; }
+ public Nullable CardNumber { get; set; }
public string UserType { get; set; }
- public string LicenseCreationDate { get; set; }
+ public Nullable LicenseCreationDate { get; set; }
public string LicenseZip { get; set; }
public string LicenseState { get; set; }
public string LicenseCountry { get; set; }
public string InstitutionName { get; set; }
public Nullable TotalLogins { get; set; }
- public string LastLogin { get; set; }
+ public Nullable LastLogin { get; set; }
}
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsersList_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsersList_Result.cs
index 46f0615..a525c5a 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsersList_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetUsersList_Result.cs
@@ -13,23 +13,22 @@ namespace AIAHTML5.ADMIN.API.Entity
public partial class usp_GetUsersList_Result
{
- public Nullable RowNum { get; set; }
- public Nullable Id { get; set; }
+ public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string LoginId { get; set; }
public string EmailId { get; set; }
public string UserTypeTitle { get; set; }
public string Password { get; set; }
- public Nullable CreationDate { get; set; }
- public Nullable ModifiedDate { get; set; }
+ public System.DateTime CreationDate { get; set; }
+ public System.DateTime ModifiedDate { get; set; }
public string AccountNumber { get; set; }
public string AccountTypeTitle { get; set; }
public string EditionType { get; set; }
public string UserStatus { get; set; }
- public Nullable UserTypeId { get; set; }
- public Nullable EditionTypeId { get; set; }
- public Nullable LoginStatus { get; set; }
+ public int UserTypeId { get; set; }
+ public int EditionTypeId { get; set; }
+ public bool LoginStatus { get; set; }
public string TotalLogin { get; set; }
public string LicenseStatus { get; set; }
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetlicensesList_Result.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetlicensesList_Result.cs
index 4c646af..e039b57 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetlicensesList_Result.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/usp_GetlicensesList_Result.cs
@@ -26,13 +26,12 @@ namespace AIAHTML5.ADMIN.API.Entity
public string ClientAdmin { get; set; }
public string LicenseeName { get; set; }
public string ContactAddress { get; set; }
- public string EntryDate { get; set; }
+ public Nullable EntryDate { get; set; }
public string LicenseStatus { get; set; }
- public string ModifyDate { get; set; }
- public string StartDate { get; set; }
- public string RenewDate { get; set; }
- public string EndDate { get; set; }
+ public Nullable ModifyDate { get; set; }
+ public Nullable StartDate { get; set; }
+ public Nullable RenewDate { get; set; }
+ public Nullable EndDate { get; set; }
public Nullable NoofImages { get; set; }
- public Nullable RowNo { get; set; }
}
}
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/DiscountCodeModel.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/DiscountCodeModel.cs
index 179be65..1ea92bd 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/DiscountCodeModel.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/DiscountCodeModel.cs
@@ -15,29 +15,15 @@ namespace AIAHTML5.ADMIN.API.Models
public bool IsActive { get; set; }
public decimal Percentage { get; set; }
- public static List GetDiscountCodes(AIADatabaseV5Entities dbContext, string discountCode, DateTime startDate, DateTime endDate, int pageNo, int pageLength, out int recordCount)
+ public static List GetDiscountCodes(AIADatabaseV5Entities dbContext, string discountCode, DateTime startDate, DateTime endDate, string sortColumn, string sortOrder, int pageNo, int pageLength, out int recordCount)
{
- List DiscountCodeList = new List();
- DiscountCodeModel DiscountCodeObj = new DiscountCodeModel();
+ List DiscountCodeList = new List();
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
recordCount = 0;
try
{
- var result = dbContext.usp_GetDiscountCodes(discountCode, startDate.ToString("MM/dd/yyyy"), endDate.ToString("MM/dd/yyyy"), pageNo, pageLength, spRecordCount).ToList();
- if (result.Count > 0)
- {
- foreach (var item in result)
- {
- DiscountCodeObj = new DiscountCodeModel();
- DiscountCodeObj.Id = item.Id;
- DiscountCodeObj.DiscountCode = item.DiscountCode;
- DiscountCodeObj.StartDate = DateTime.ParseExact(item.StartDate, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture);
- DiscountCodeObj.EndDate = DateTime.ParseExact(item.EndDate, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture);
- DiscountCodeObj.Percentage = item.Percentage;
- DiscountCodeObj.IsActive = (item.Status == "Active" ? true : false);
- DiscountCodeList.Add(DiscountCodeObj);
- }
- }
+ DiscountCodeList = dbContext.usp_GetDiscountCodes(discountCode, startDate.ToString("MM/dd/yyyy"), endDate.ToString("MM/dd/yyyy"), sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
+
recordCount = (int)spRecordCount.Value;
}
catch (Exception ex) { }
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/LicenseModel.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/LicenseModel.cs
index ec8b34a..39014ec 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/LicenseModel.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/LicenseModel.cs
@@ -47,6 +47,7 @@ namespace AIAHTML5.ADMIN.API.Models
public int? TotalLogins { get; set; }
public string EditionLogins { get; set; }
public decimal Price { get; set; }
+ public int? SiteUserId { get; set; }
public string LoginId { get; set; }
public string Password { get; set; }
public byte? SecurityQuestionId { get; set; }
@@ -59,50 +60,23 @@ namespace AIAHTML5.ADMIN.API.Models
public byte? TestLicenseEditionId { get; set; }
public bool IsRenew { get; set; }
- public static List GetLicenses(AIADatabaseV5Entities dbContext, string accountNumber, string licenseeFirstName,
+ public static List GetLicenses(AIADatabaseV5Entities dbContext, string accountNumber, string licenseeFirstName,
string licenseeLastName, byte licenseTypeId, string institutionName, int stateId, int countryId, string emailId,
- DateTime subscriptionStartDate, DateTime subscriptionEndDate, bool isActive, int pageNo, int pageLength, out int recordCount)
+ DateTime subscriptionStartDate, DateTime subscriptionEndDate, bool isActive, string sortColumn, string sortOrder, int pageNo, int pageLength, out int recordCount)
{
- List LicenseList = new List();
- LicenseModel LicenseObj = new LicenseModel();
+ List LicenseList=new List();
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
recordCount = 0;
try
{
- var result = dbContext.usp_GetlicensesList(
+ LicenseList = dbContext.usp_GetlicensesList(
(subscriptionStartDate > DateTime.MinValue ? subscriptionStartDate.ToShortDateString() : "01/01/01"),
(subscriptionEndDate > DateTime.MinValue ? subscriptionEndDate.ToShortDateString() : "01/01/01"),
(accountNumber == null ? "" : accountNumber), (licenseeFirstName == null ? "" : licenseeFirstName),
(licenseeLastName == null ? "" : licenseeLastName), licenseTypeId, (institutionName == null ? "" : institutionName),
- (emailId == null ? "" : emailId), stateId, countryId, isActive, pageNo, pageLength, spRecordCount).ToList();
- if (result.Count > 0)
+ (emailId == null ? "" : emailId), stateId, countryId, isActive, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
+ if (LicenseList.Count > 0)
{
- foreach (var item in result)
- {
- LicenseObj = new LicenseModel();
- LicenseObj.LicenseId = item.LicenseId;
- LicenseObj.AccountNumber = item.AccountNumber;
- LicenseObj.AccountTypeName = item.AccountType;
- LicenseObj.LicenseeName = item.LicenseeName;
- LicenseObj.LicenseState = item.LicenseState;
- LicenseObj.LicenseCountry = item.LicenseCountry;
- LicenseObj.Address = item.ContactAddress;
- LicenseObj.InstitutionName = item.InstitutionName;
- LicenseObj.LicenseTypeName = item.LicenseType;
- LicenseObj.EmailId = item.EmailId;
- LicenseObj.NoOfImages = item.NoofImages;
- LicenseObj.ClientAdmin = item.ClientAdmin;
- LicenseObj.CardNumber = item.CardNumber;
- LicenseObj.ProductKey = item.ProductKey;
- LicenseObj.SubscriptionStartDate = DateTime.ParseExact(item.StartDate, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture);
- LicenseObj.SubscriptionEndDate = DateTime.ParseExact(item.EndDate, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture);
- LicenseObj.EntryDate = DateTime.ParseExact(item.EntryDate, "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture);
- LicenseObj.RenewDate = DateTime.ParseExact((item.RenewDate == "" ? "01/01/0001" : item.RenewDate), "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture);
- LicenseObj.ModifyDate = DateTime.ParseExact((item.ModifyDate == "" ? "01/01/0001" : item.ModifyDate), "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture);
- LicenseObj.IsActive = (item.LicenseStatus == "Active" ? true : false);
- LicenseObj.LicStatus = item.LicenseStatus;
- LicenseList.Add(LicenseObj);
- }
recordCount = (int)spRecordCount.Value;
}
}
@@ -162,6 +136,7 @@ namespace AIAHTML5.ADMIN.API.Models
LicenseObj.MasterSiteUrl = result[0].SiteUrl;
LicenseObj.SiteUrlTo = result[0].SitToUrl;
LicenseObj.SiteUrlFrom = result[0].SiteMasterUrl;
+ LicenseObj.SiteUserId = result[0].UserId;
LicenseObj.LoginId = result[0].Login;
LicenseObj.Password = result[0].Password;
LicenseObj.SecurityQuestionId = (byte?)result[0].SecurityQuestionId;
@@ -177,38 +152,16 @@ namespace AIAHTML5.ADMIN.API.Models
return LicenseObj;
}
- public static List GetLicenseSites(AIADatabaseV5Entities dbContext, string AccountNo, int pageNo, int pageLength, out int recordCount)
+ public static List GetLicenseSites(AIADatabaseV5Entities dbContext, string AccountNo, string sortColumn, string sortOrder, int pageNo, int pageLength, out int recordCount)
{
- List LicenseSiteList = new List();
- SiteModel SiteModelObj = new SiteModel();
+ List