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 6c1f3e4..c62cb2a 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);
}
@@ -44,39 +44,39 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("GetExpiringSubscriptionReport")]
[HttpGet]
- public IHttpActionResult GetExpiringSubscriptionReport(string sFromDate, string sToDate, decimal iStartPrice, decimal iEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId, int pageNo, int pageLength)
+ public IHttpActionResult GetExpiringSubscriptionReport(string sFromDate, string sToDate, decimal iStartPrice, decimal iEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstExpiringSubscriptionReport = dbContext.usp_GetExpiringLicenses(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, pageNo, pageLength, spRecordCount).ToList();
+ var lstExpiringSubscriptionReport = dbContext.usp_GetExpiringLicenses(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { ExpiringSubscription = lstExpiringSubscriptionReport, RecordCount = spRecordCount.Value });
}
[Route("GetSubscriptionReport")]
[HttpGet]
- public IHttpActionResult GetSubscriptionReport(string sFromDate, string sToDate, decimal icStartPrice, decimal icEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId, int pageNo, int pageLength)
+ public IHttpActionResult GetSubscriptionReport(string sFromDate, string sToDate, decimal icStartPrice, decimal icEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstExpiringSubscriptionReport = dbContext.usp_GetSubscribedLicenses(sFromDate, sToDate, icStartPrice, icEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, pageNo, pageLength, spRecordCount).ToList();
+ var lstExpiringSubscriptionReport = dbContext.usp_GetSubscribedLicenses(sFromDate, sToDate, icStartPrice, icEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { Subscription = lstExpiringSubscriptionReport, RecordCount = spRecordCount.Value });
}
[Route("GetSubscriptionCancellationReport")]
[HttpGet]
- public IHttpActionResult GetSubscriptionCancellationReport(string sFromDate, string sToDate, decimal icStartPrice, decimal icEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId, int pageNo, int pageLength)
+ public IHttpActionResult GetSubscriptionCancellationReport(string sFromDate, string sToDate, decimal icStartPrice, decimal icEndPrice, int iLicenseTypeId, int iAccountTypeId, string sZip, int iStateId, int iCountryId, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstExpiringSubscriptionReport = dbContext.usp_GetCancelledLicenses(sFromDate, sToDate, icStartPrice, icEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, pageNo, pageLength, spRecordCount).ToList();
+ var lstExpiringSubscriptionReport = dbContext.usp_GetCancelledLicenses(sFromDate, sToDate, icStartPrice, icEndPrice, (byte)iLicenseTypeId, (byte)iAccountTypeId, sZip, iStateId, iCountryId, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { SubscriptionCancel = lstExpiringSubscriptionReport, RecordCount = spRecordCount.Value });
}
[Route("GetNetAdSummaryReport")]
[HttpGet]
- public IHttpActionResult GetNetAdSummaryReport(string sFromDate, string sToDate, decimal iStartPrice, decimal iEndPrice, int iLicenseTypeId, int pageNo, int pageLength)
+ public IHttpActionResult GetNetAdSummaryReport(string sFromDate, string sToDate, decimal iStartPrice, decimal iEndPrice, int iLicenseTypeId,string sortColumn, string sortOrder, int pageNo, int pageLength)
{
try
{
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstNetAdSummaryReport = dbContext.usp_GetNetAdSummaryReport(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, pageNo, pageLength, spRecordCount).ToList();
+ var lstNetAdSummaryReport = dbContext.usp_GetNetAdSummaryReport(sFromDate, sToDate, iStartPrice, iEndPrice, (byte)iLicenseTypeId, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { NetAdSubscriptionList = lstNetAdSummaryReport, RecordCount = spRecordCount.Value });
}
catch (Exception ex)
@@ -88,12 +88,12 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("GetSiteLicenseUsageReport")]
[HttpGet]
- public IHttpActionResult GetSiteLicenseUsageReport(string sFromDate, string sToDate, string sAccountNumber, int iEdition, int pageNo, int pageLength)
+ public IHttpActionResult GetSiteLicenseUsageReport(string sFromDate, string sToDate, string sAccountNumber, int iEdition, int iloginTypeId, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
try
{
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstSiteLicenseUsageReport = dbContext.usp_GetSiteLicenseUsageReports(sFromDate, sToDate, sAccountNumber, (byte)iEdition, pageNo, pageLength, spRecordCount).ToList();
+ var lstSiteLicenseUsageReport = dbContext.usp_GetSiteLicenseUsageReports(sFromDate, sToDate, sAccountNumber, (byte)iEdition, (byte)iloginTypeId, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { SiteLicenseUsageList = lstSiteLicenseUsageReport, RecordCount = spRecordCount.Value });
}
catch (Exception ex)
@@ -104,12 +104,12 @@ namespace AIAHTML5.ADMIN.API.Controllers
[Route("GetDiscountReport")]
[HttpGet]
- public IHttpActionResult GetDiscountReport(string sFromDate, string sToDate, int iDiscountCode, string sAccountNumber, int pageNo, int pageLength)
+ public IHttpActionResult GetDiscountReport(string sFromDate, string sToDate, int iDiscountCode, string sAccountNumber, string sortColumn, string sortOrder, int pageNo, int pageLength)
{
try
{
var spRecordCount = new System.Data.Objects.ObjectParameter("recordCount", 0);
- var lstDiscountReport = dbContext.usp_GetDiscountReport(sFromDate, sToDate, iDiscountCode, sAccountNumber, pageNo, pageLength, spRecordCount).ToList();
+ var lstDiscountReport = dbContext.usp_GetDiscountReport(sFromDate, sToDate, iDiscountCode, sAccountNumber, sortColumn, sortOrder, pageNo, pageLength, spRecordCount).ToList();
return Ok(new { DiscountReportList = lstDiscountReport, RecordCount = spRecordCount.Value });
}
catch (Exception ex)
@@ -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 3a68d29..005c9f6 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)
@@ -3851,7 +3891,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetBlockedUserByAccNoAndType", iUserTypeIdParameter, iLicenseIdParameter);
}
- public virtual ObjectResult usp_GetCancelledLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetCancelledLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFromDateParameter = sFromDate != null ?
new ObjectParameter("sFromDate", sFromDate) :
@@ -3889,6 +3929,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("iCountryId", iCountryId) :
new ObjectParameter("iCountryId", 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));
@@ -3897,10 +3945,10 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetCancelledLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetCancelledLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sortColumnParameter, sortOrderParameter, 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 +3986,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 +4002,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 +4019,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,10 +4035,10 @@ 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)
+ public virtual ObjectResult usp_GetDiscountReport(string sStartDate, string sEndDate, Nullable intDiscountID, string sAccoutNumber, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sStartDateParameter = sStartDate != null ?
new ObjectParameter("sStartDate", sStartDate) :
@@ -3992,6 +4056,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));
@@ -4000,10 +4072,10 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetDiscountReport", sStartDateParameter, sEndDateParameter, intDiscountIDParameter, sAccoutNumberParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetDiscountReport", sStartDateParameter, sEndDateParameter, intDiscountIDParameter, sAccoutNumberParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetExpiringLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetExpiringLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFromDateParameter = sFromDate != null ?
new ObjectParameter("sFromDate", sFromDate) :
@@ -4041,6 +4113,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("iCountryId", iCountryId) :
new ObjectParameter("iCountryId", 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));
@@ -4049,10 +4129,10 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetExpiringLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetExpiringLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sortColumnParameter, sortOrderParameter, 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 +4146,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 +4162,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)
@@ -4126,7 +4214,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetModuleStatusByLicenseId", iLicenseIdParameter);
}
- public virtual ObjectResult usp_GetNetAdSummaryReport(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetNetAdSummaryReport(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFromDateParameter = sFromDate != null ?
new ObjectParameter("sFromDate", sFromDate) :
@@ -4148,6 +4236,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("iLicenseTypeId", iLicenseTypeId) :
new ObjectParameter("iLicenseTypeId", 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));
@@ -4156,7 +4252,7 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetNetAdSummaryReport", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetNetAdSummaryReport", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
public virtual ObjectResult usp_GetSearchUser(string sFirstName, string sLastName, string sEmailId, string sAccoutNumber, Nullable iUserTypeId, Nullable iAccountTypeId, Nullable iLoginUserType, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
@@ -4259,7 +4355,7 @@ namespace AIAHTML5.ADMIN.API.Entity
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSiteLicenseUsageReport", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, iEditionIdParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetSiteLicenseUsageReports(string sFromDate, string sToDate, string sAccoutNumber, Nullable iEditionId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetSiteLicenseUsageReports(string sFromDate, string sToDate, string sAccoutNumber, Nullable iEditionId, Nullable iloginTypeId, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFromDateParameter = sFromDate != null ?
new ObjectParameter("sFromDate", sFromDate) :
@@ -4277,6 +4373,18 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("iEditionId", iEditionId) :
new ObjectParameter("iEditionId", typeof(byte));
+ var iloginTypeIdParameter = iloginTypeId.HasValue ?
+ new ObjectParameter("iloginTypeId", iloginTypeId) :
+ new ObjectParameter("iloginTypeId", 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));
@@ -4285,10 +4393,10 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSiteLicenseUsageReports", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, iEditionIdParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSiteLicenseUsageReports", sFromDateParameter, sToDateParameter, sAccoutNumberParameter, iEditionIdParameter, iloginTypeIdParameter, sortColumnParameter, sortOrderParameter, pageNoParameter, pageLengthParameter, recordCount);
}
- public virtual ObjectResult usp_GetSubscribedLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
+ public virtual ObjectResult usp_GetSubscribedLicenses(string sFromDate, string sToDate, Nullable iStartPrice, Nullable iEndPrice, Nullable iLicenseTypeId, Nullable iAccountTypeId, string sZip, Nullable iStateId, Nullable iCountryId, string sortColumn, string sortOrder, Nullable pageNo, Nullable pageLength, ObjectParameter recordCount)
{
var sFromDateParameter = sFromDate != null ?
new ObjectParameter("sFromDate", sFromDate) :
@@ -4326,6 +4434,14 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("iCountryId", iCountryId) :
new ObjectParameter("iCountryId", 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));
@@ -4334,10 +4450,10 @@ namespace AIAHTML5.ADMIN.API.Entity
new ObjectParameter("pageLength", pageLength) :
new ObjectParameter("pageLength", typeof(int));
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSubscribedLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, pageNoParameter, pageLengthParameter, recordCount);
+ return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("usp_GetSubscribedLicenses", sFromDateParameter, sToDateParameter, iStartPriceParameter, iEndPriceParameter, iLicenseTypeIdParameter, iAccountTypeIdParameter, sZipParameter, iStateIdParameter, iCountryIdParameter, sortColumnParameter, sortOrderParameter, 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