This commit is contained in:
@@ -47,7 +47,7 @@ Notes:
|
||||
CustomerNoteDataList - ClientCriteria MUST be provided with CustomerId value
|
||||
|
||||
PartInventoryDataList - ClientCriteria is optional for this list, Format for this list is "PARTID,WAREHOUSEID" where the id is 0 if not filtered or the id to filter
|
||||
|
||||
PartInventoryTransactionsDataList - ClientCriteria is optional for this list, Format for this list is "PARTID,WAREHOUSEID" where the id is 0 if not filtered or the id to filter
|
||||
|
||||
TODO: Replace this section with updated sort / filter and column selection
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
try
|
||||
{
|
||||
ApiDataListResponse r = await DataListFetcher.GetResponseAsync(ct, listOptions, UserRoles, log, UserId);
|
||||
DataListReturnData r = await DataListFetcher.GetResponseAsync(ct, listOptions, UserRoles, log, UserId);
|
||||
return Ok(r);
|
||||
}
|
||||
catch (System.UnauthorizedAccessException)
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(new ApiErrorResponse(ModelState));
|
||||
return Ok(ApiOkResponse.Response(AyaFormFieldDefinitions.AyaFormFieldDefinitionKeys));
|
||||
return Ok(ApiOkResponse.Response(FormFieldReference.FormFieldKeys));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/form-field-definition")]
|
||||
[Route("api/v{version:apiVersion}/form-field-reference")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class FormFieldsDefinitionsController : ControllerBase
|
||||
@@ -38,7 +38,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get available fields for Form specified
|
||||
/// Get field reference list for Form specified
|
||||
/// Used at UI for customizing forms
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
@@ -52,9 +52,9 @@ namespace AyaNova.Api.Controllers
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(new ApiErrorResponse(ModelState));
|
||||
|
||||
if (AyaFormFieldDefinitions.IsValidFormFieldDefinitionKey(key))
|
||||
if (FormFieldReference.IsValidFormFieldKey(key))
|
||||
{
|
||||
return Ok(ApiOkResponse.Response(AyaFormFieldDefinitions.AyaFormFields(key)));
|
||||
return Ok(ApiOkResponse.Response(FormFieldReference.FormFieldReferenceList(key)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class AttachmentDataList : AyaDataList
|
||||
internal class AttachmentDataList : DataListBase
|
||||
{
|
||||
|
||||
public AttachmentDataList()
|
||||
@@ -44,9 +44,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined (in this case User) table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
//DPRECATED FieldDefinitions.Add(new AyaDataListFieldDefinition { FieldKey = "df", AyaObjectType = (int)AyaType.User, SqlIdColumnName = "auser.id" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "FileAttachment",
|
||||
FieldKey = "displayfilename",
|
||||
@@ -57,7 +57,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AttachmentExists",
|
||||
FieldKey = "exists",
|
||||
@@ -65,7 +65,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "afileattachment.exists"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Object",
|
||||
FieldKey = "object",
|
||||
@@ -75,7 +75,7 @@ namespace AyaNova.DataList
|
||||
SqlAyTypeColumnName = "afileattachment.attachtoobjecttype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "FileSize",
|
||||
FieldKey = "size",
|
||||
@@ -83,7 +83,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "afileattachment.size"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AttachmentNotes",
|
||||
FieldKey = "notes",
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class CustomerDataList : AyaDataList
|
||||
internal class CustomerDataList : DataListBase
|
||||
{
|
||||
public CustomerDataList()
|
||||
{
|
||||
@@ -42,9 +42,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerName",
|
||||
FieldKey = "customername",
|
||||
@@ -55,7 +55,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerNotes",
|
||||
FieldKey = "customernotes",
|
||||
@@ -63,7 +63,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "customeractive",
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "customertags",
|
||||
@@ -79,7 +79,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WebAddress",
|
||||
FieldKey = "customerwebaddress",
|
||||
@@ -87,7 +87,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.webaddress"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerPopUpNotes",
|
||||
FieldKey = "customerpopupnotes",
|
||||
@@ -95,7 +95,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.popupnotes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOffice",
|
||||
FieldKey = "customerheadoffice",
|
||||
@@ -105,7 +105,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerBillHeadOffice",
|
||||
FieldKey = "customerbillheadoffice",
|
||||
@@ -113,7 +113,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.billheadoffice"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerTechNotes",
|
||||
FieldKey = "customertechnotes",
|
||||
@@ -121,7 +121,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.technotes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerAccountNumber",
|
||||
FieldKey = "customeraccountnumber",
|
||||
@@ -129,7 +129,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.accountnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UsesBanking",
|
||||
FieldKey = "customerusesbanking",
|
||||
@@ -137,7 +137,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.usesbanking"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Contract",
|
||||
FieldKey = "customercontract",
|
||||
@@ -147,7 +147,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acontract.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ContractExpires",
|
||||
FieldKey = "customercontractexpires",
|
||||
@@ -155,7 +155,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.contractexpires"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerPhone1",
|
||||
FieldKey = "customerphone1",
|
||||
@@ -163,7 +163,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.phone1"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerPhone2",
|
||||
FieldKey = "customerphone2",
|
||||
@@ -171,7 +171,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.phone2"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerPhone3",
|
||||
FieldKey = "customerphone3",
|
||||
@@ -179,7 +179,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.phone3"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerPhone4",
|
||||
FieldKey = "customerphone4",
|
||||
@@ -187,7 +187,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.phone4"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerPhone5",
|
||||
FieldKey = "customerphone5",
|
||||
@@ -195,7 +195,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.phone5"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerEmail",
|
||||
FieldKey = "customeremail",
|
||||
@@ -204,7 +204,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalDeliveryAddress",
|
||||
FieldKey = "customerpostaddress",
|
||||
@@ -213,7 +213,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalCity",
|
||||
FieldKey = "customerpostcity",
|
||||
@@ -221,7 +221,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.postcity"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalStateProv",
|
||||
FieldKey = "customerpostregion",
|
||||
@@ -229,7 +229,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.postregion"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalCountry",
|
||||
FieldKey = "customerpostcountry",
|
||||
@@ -237,7 +237,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.postcountry"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalPostal",
|
||||
FieldKey = "customerpostcode",
|
||||
@@ -245,7 +245,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.postcode"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressDeliveryAddress",
|
||||
FieldKey = "customeraddress",
|
||||
@@ -253,7 +253,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.address"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressCity",
|
||||
FieldKey = "customercity",
|
||||
@@ -261,7 +261,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.city"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressStateProv",
|
||||
FieldKey = "customerregion",
|
||||
@@ -269,7 +269,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.region"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressCountry",
|
||||
FieldKey = "customercountry",
|
||||
@@ -277,7 +277,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.country"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressLatitude",
|
||||
FieldKey = "customerlatitude",
|
||||
@@ -285,7 +285,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.latitude"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressLongitude",
|
||||
FieldKey = "customerlongitude",
|
||||
@@ -295,22 +295,22 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom1", FieldKey = "customercustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom2", FieldKey = "customercustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom3", FieldKey = "customercustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom4", FieldKey = "customercustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom5", FieldKey = "customercustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom6", FieldKey = "customercustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom7", FieldKey = "customercustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom8", FieldKey = "customercustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom9", FieldKey = "customercustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom10", FieldKey = "customercustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom11", FieldKey = "customercustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom12", FieldKey = "customercustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom13", FieldKey = "customercustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom14", FieldKey = "customercustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom15", FieldKey = "customercustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerCustom16", FieldKey = "customercustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom1", FieldKey = "customercustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom2", FieldKey = "customercustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom3", FieldKey = "customercustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom4", FieldKey = "customercustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom5", FieldKey = "customercustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom6", FieldKey = "customercustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom7", FieldKey = "customercustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom8", FieldKey = "customercustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom9", FieldKey = "customercustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom10", FieldKey = "customercustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom11", FieldKey = "customercustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom12", FieldKey = "customercustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom13", FieldKey = "customercustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom14", FieldKey = "customercustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom15", FieldKey = "customercustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerCustom16", FieldKey = "customercustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomer.customfields" });
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using AyaNova.Models;
|
||||
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class CustomerNoteDataList : AyaDataList, IAyaDataListServerCriteria
|
||||
internal class CustomerNoteDataList : DataListBase, IDataListInternalCriteria
|
||||
{
|
||||
public CustomerNoteDataList()
|
||||
{
|
||||
@@ -37,9 +37,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "User",
|
||||
FieldKey = "username",
|
||||
@@ -51,7 +51,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerNoteNotes",
|
||||
FieldKey = "notes",
|
||||
@@ -62,7 +62,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerNoteNoteDate",
|
||||
FieldKey = "notedate",
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
//META column
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "metacustomer",
|
||||
UiFieldDataType = (int)UiFieldDataType.InternalId,
|
||||
@@ -82,7 +82,7 @@ namespace AyaNova.DataList
|
||||
}
|
||||
|
||||
|
||||
public List<DataListFilterOption> DataListServerCriteria(long currentUserId, AuthorizationRoles userRoles, DataListBase dataListBase)
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, Models.DataListBase dataListBase)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
//ClientCriteria MUST be CustomerId
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class CustomerServiceRequestDataList : AyaDataList
|
||||
internal class CustomerServiceRequestDataList : DataListBase
|
||||
{
|
||||
public CustomerServiceRequestDataList()
|
||||
{
|
||||
@@ -48,9 +48,9 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "Created", "-" } };
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerServiceRequestTitle",
|
||||
FieldKey = "CustomerServiceRequestTitle",
|
||||
@@ -61,7 +61,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerServiceRequestDetails",
|
||||
FieldKey = "CustomerServiceRequestDetails",
|
||||
@@ -69,7 +69,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomerservicerequest.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "customerservicerequesttags",
|
||||
@@ -77,7 +77,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomerservicerequest.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Created",
|
||||
FieldKey = "Created",
|
||||
@@ -85,7 +85,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomerservicerequest.daterequested"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "Customer",
|
||||
TKey = "Customer",
|
||||
@@ -95,7 +95,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "CustomerServiceRequestItemUnitID",
|
||||
TKey = "CustomerServiceRequestItemUnitID",
|
||||
@@ -105,7 +105,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunit.serial"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "WorkOrder",
|
||||
TKey = "WorkOrder",
|
||||
@@ -115,7 +115,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "w.serial"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "CustomerServiceRequestRequestedBy",
|
||||
TKey = "CustomerServiceRequestRequestedBy",
|
||||
@@ -125,7 +125,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerServiceRequestCustomerReferenceNumber",
|
||||
FieldKey = "CustomerServiceRequestCustomerReferenceNumber",
|
||||
@@ -133,7 +133,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomerservicerequest.customerreferencenumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerServiceRequestStatus",
|
||||
FieldKey = "CustomerServiceRequestStatus",
|
||||
@@ -142,7 +142,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomerservicerequest.status"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "CustomerServiceRequestPriority",
|
||||
FieldKey = "CustomerServiceRequestPriority",
|
||||
@@ -154,22 +154,22 @@ namespace AyaNova.DataList
|
||||
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom1", FieldKey = "customerservicerequestcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom2", FieldKey = "customerservicerequestcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom3", FieldKey = "customerservicerequestcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom4", FieldKey = "customerservicerequestcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom5", FieldKey = "customerservicerequestcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom6", FieldKey = "customerservicerequestcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom7", FieldKey = "customerservicerequestcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom8", FieldKey = "customerservicerequestcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom9", FieldKey = "customerservicerequestcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom10", FieldKey = "customerservicerequestcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom11", FieldKey = "customerservicerequestcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom12", FieldKey = "customerservicerequestcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom13", FieldKey = "customerservicerequestcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom14", FieldKey = "customerservicerequestcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom15", FieldKey = "customerservicerequestcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "CustomerServiceRequestCustom16", FieldKey = "customerservicerequestcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom1", FieldKey = "customerservicerequestcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom2", FieldKey = "customerservicerequestcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom3", FieldKey = "customerservicerequestcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom4", FieldKey = "customerservicerequestcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom5", FieldKey = "customerservicerequestcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom6", FieldKey = "customerservicerequestcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom7", FieldKey = "customerservicerequestcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom8", FieldKey = "customerservicerequestcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom9", FieldKey = "customerservicerequestcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom10", FieldKey = "customerservicerequestcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom11", FieldKey = "customerservicerequestcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom12", FieldKey = "customerservicerequestcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom13", FieldKey = "customerservicerequestcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom14", FieldKey = "customerservicerequestcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom15", FieldKey = "customerservicerequestcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "CustomerServiceRequestCustom16", FieldKey = "customerservicerequestcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "acustomerservicerequest.customfields" });
|
||||
}
|
||||
|
||||
}//eoc
|
||||
|
||||
@@ -12,11 +12,11 @@ namespace AyaNova.DataList
|
||||
/// <summary>
|
||||
/// DataList object base class
|
||||
/// </summary>
|
||||
internal abstract class AyaDataList : IAyaDataList
|
||||
internal abstract class DataListBase : IDataList
|
||||
{
|
||||
//CoreBizObject add here
|
||||
//well, not here exactly but add a new DATALIST class if it will be displayed as a list anywhere in the UI or reported on
|
||||
public AyaDataList()
|
||||
public DataListBase()
|
||||
{
|
||||
/*
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace AyaNova.DataList
|
||||
}
|
||||
|
||||
public string SQLFrom { get; set; }
|
||||
public List<AyaDataListFieldDefinition> FieldDefinitions { get; set; }
|
||||
public List<DataListFieldDefinition> FieldDefinitions { get; set; }
|
||||
public AuthorizationRoles AllowedRoles { get; set; }
|
||||
public AyaType DefaultListObjectType { get; set; }
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace AyaNova.DataList
|
||||
public Dictionary<string, string> DefaultSortBy { get; set; }
|
||||
|
||||
//set defaults if not provided in listOptions
|
||||
public void SetListOptionDefaultsIfNecessary(DataListBase listOptions)
|
||||
public void SetListOptionDefaultsIfNecessary(Models.DataListBase listOptions)
|
||||
{
|
||||
//columns, filter and sortby could all be null
|
||||
if (listOptions.Filter == null)
|
||||
@@ -102,7 +102,7 @@ namespace AyaNova.DataList
|
||||
|
||||
foreach (string s in columns)
|
||||
{
|
||||
AyaDataListFieldDefinition o = FieldDefinitions.FirstOrDefault(z => z.FieldKey == s);
|
||||
DataListFieldDefinition o = FieldDefinitions.FirstOrDefault(z => z.FieldKey == s);
|
||||
#if (DEBUG)
|
||||
//Developers little helper
|
||||
if (o == null)
|
||||
@@ -170,7 +170,7 @@ namespace AyaNova.DataList
|
||||
Dictionary<string, int> ret = new Dictionary<string, int>();
|
||||
List<string> typesProcessed = new List<string>();
|
||||
//custom fields handling
|
||||
foreach (AyaDataListFieldDefinition d in this.FieldDefinitions)
|
||||
foreach (DataListFieldDefinition d in this.FieldDefinitions)
|
||||
{
|
||||
if (d.IsCustomField)
|
||||
{
|
||||
@@ -11,10 +11,10 @@ namespace AyaNova.DataList
|
||||
//Instantiate list object specified
|
||||
//this is safe as it's only attempting to load assemblies in the AyaNova.DataList namespace so can't attempt to instantiate some random object or nefarious object
|
||||
//returns null if doesn't exist
|
||||
internal static IAyaDataList GetAyaDataList(string ListKey)
|
||||
internal static IDataList GetAyaDataList(string ListKey)
|
||||
{
|
||||
System.Reflection.Assembly ass = System.Reflection.Assembly.GetEntryAssembly();
|
||||
return ass.CreateInstance($"AyaNova.DataList.{ListKey}") as IAyaDataList;
|
||||
return ass.CreateInstance($"AyaNova.DataList.{ListKey}") as IDataList;
|
||||
}
|
||||
|
||||
//List all the datalist types available
|
||||
@@ -27,7 +27,7 @@ namespace AyaNova.DataList
|
||||
|
||||
foreach (System.Reflection.TypeInfo ti in ass.DefinedTypes)
|
||||
{
|
||||
if (!ti.IsAbstract && ti.ImplementedInterfaces.Contains(typeof(IAyaDataList)))
|
||||
if (!ti.IsAbstract && ti.ImplementedInterfaces.Contains(typeof(IDataList)))
|
||||
{
|
||||
ret.Add(ti.Name);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
// Get the data list data requested
|
||||
//
|
||||
//
|
||||
internal static async Task<ApiDataListResponse> GetResponseAsync(AyContext ct, DataListTableOptions dataListTableOptions, AuthorizationRoles userRoles, ILogger log, long userId)
|
||||
internal static async Task<DataListReturnData> GetResponseAsync(AyContext ct, DataListTableOptions dataListTableOptions, AuthorizationRoles userRoles, ILogger log, long userId)
|
||||
{
|
||||
|
||||
var DataList = DataListFactory.GetAyaDataList(dataListTableOptions.DataListKey);
|
||||
@@ -37,8 +37,8 @@ namespace AyaNova.DataList
|
||||
|
||||
//STATIC filter options from server
|
||||
List<DataListFilterOption> StaticServerFilterOptions = new List<DataListFilterOption>();
|
||||
if (DataList is IAyaDataListServerCriteria)
|
||||
StaticServerFilterOptions = ((IAyaDataListServerCriteria)DataList).DataListServerCriteria(userId, userRoles, dataListTableOptions);
|
||||
if (DataList is IDataListInternalCriteria)
|
||||
StaticServerFilterOptions = ((IDataListInternalCriteria)DataList).DataListInternalCriteria(userId, userRoles, dataListTableOptions);
|
||||
|
||||
|
||||
// //Get the public field key names in a list from the listview
|
||||
@@ -85,7 +85,7 @@ namespace AyaNova.DataList
|
||||
|
||||
//RETURN OBJECTS
|
||||
int returnRowColumnCount = dataListTableOptions.Columns.Count();
|
||||
List<List<AyaFieldData>> rows = new List<List<AyaFieldData>>();
|
||||
List<List<DataListField>> rows = new List<List<DataListField>>();
|
||||
long totalRecordCount = 0;
|
||||
|
||||
//QUERY THE DB
|
||||
@@ -101,7 +101,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
while (dr.Read())
|
||||
{
|
||||
List<AyaFieldData> row = new List<AyaFieldData>(returnRowColumnCount);
|
||||
List<DataListField> row = new List<DataListField>(returnRowColumnCount);
|
||||
|
||||
|
||||
//INSERT REMAINING FIELDS FROM TEMPLATE INTO THE RETURN ROWS LIST
|
||||
@@ -109,17 +109,17 @@ namespace AyaNova.DataList
|
||||
{
|
||||
|
||||
//get the AyaObjectFieldDefinition
|
||||
AyaDataListFieldDefinition f = DataList.FieldDefinitions.FirstOrDefault(z => z.FieldKey == TemplateField);
|
||||
DataListFieldDefinition f = DataList.FieldDefinitions.FirstOrDefault(z => z.FieldKey == TemplateField);
|
||||
if (f.IsCustomField)
|
||||
{
|
||||
|
||||
AyaFieldData AyaField = new AyaFieldData();
|
||||
DataListField AyaField = new DataListField();
|
||||
var cust = dr.GetString(qSelect.map[f.GetSqlValueColumnName()]);
|
||||
if (!string.IsNullOrWhiteSpace(cust))
|
||||
{
|
||||
JObject j = JObject.Parse(cust);
|
||||
//convert field name to cust name then get value
|
||||
var InternalCustomFieldName = AyaFormFieldDefinitions.TranslateLTCustomFieldToInternalCustomFieldName(TemplateField);
|
||||
var InternalCustomFieldName = FormFieldReference.TranslateLTCustomFieldToInternalCustomFieldName(TemplateField);
|
||||
//Sometimes a custom field is specified but doesn't exist in the collection so don't assume it's there
|
||||
// AyaField.v = j[InternalCustomFieldName].Value<object>();
|
||||
JToken o = j[InternalCustomFieldName];
|
||||
@@ -152,7 +152,7 @@ namespace AyaNova.DataList
|
||||
}
|
||||
else
|
||||
{
|
||||
AyaFieldData AyaField = new AyaFieldData();
|
||||
DataListField AyaField = new DataListField();
|
||||
AyaField.v = dr.GetValue(qSelect.map[f.GetSqlValueColumnName()]);
|
||||
|
||||
if (f.IsRowId)
|
||||
@@ -232,7 +232,7 @@ namespace AyaNova.DataList
|
||||
|
||||
ColumnsJSON = DataList.GenerateReturnListColumns(dataListTableOptions.Columns);//<<<-----this next
|
||||
|
||||
return new ApiDataListResponse(rows, totalRecordCount, ColumnsJSON);
|
||||
return new DataListReturnData(rows, totalRecordCount, ColumnsJSON);
|
||||
|
||||
}
|
||||
|
||||
@@ -275,8 +275,8 @@ namespace AyaNova.DataList
|
||||
|
||||
//STATIC filter options from server
|
||||
List<DataListFilterOption> StaticServerFilterOptions = null;
|
||||
if (DataList is IAyaDataListServerCriteria)
|
||||
StaticServerFilterOptions = ((IAyaDataListServerCriteria)DataList).DataListServerCriteria(userId, userRoles, dataListSelectionOptions);
|
||||
if (DataList is IDataListInternalCriteria)
|
||||
StaticServerFilterOptions = ((IDataListInternalCriteria)DataList).DataListInternalCriteria(userId, userRoles, dataListSelectionOptions);
|
||||
|
||||
|
||||
// //Hard coded extra criteria from Client end
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Text;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace AyaNova.Biz
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
public class AyaFieldData
|
||||
public class DataListField
|
||||
{
|
||||
public object v { get; set; }//v for vvvvvvvv?
|
||||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm
|
||||
@@ -6,7 +6,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
|
||||
//This class defines a field used for returning data in list format for UI grid lists and reporting
|
||||
public class AyaDataListFieldDefinition
|
||||
public class DataListFieldDefinition
|
||||
{
|
||||
//CLIENT / SERVER Unique identifier used at BOTH client and server
|
||||
//also the sql valuecolumnname if identical
|
||||
@@ -53,7 +53,7 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
|
||||
public AyaDataListFieldDefinition()
|
||||
public DataListFieldDefinition()
|
||||
{
|
||||
//most common defaults
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AyaNova.Api.ControllerHelpers
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
|
||||
public class ApiDataListResponse
|
||||
public class DataListReturnData
|
||||
{
|
||||
|
||||
public object Data { get; }
|
||||
public long TotalRecordCount { get; }
|
||||
public object Columns {get;}
|
||||
|
||||
public ApiDataListResponse(object returnItems, long totalRecordCount, Newtonsoft.Json.Linq.JArray columns)
|
||||
public DataListReturnData(object returnItems, long totalRecordCount, Newtonsoft.Json.Linq.JArray columns)
|
||||
{
|
||||
Data = returnItems;
|
||||
TotalRecordCount = totalRecordCount;
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public static class DataListSqlFilterCriteriaBuilder
|
||||
{
|
||||
public static string DataFilterToSQLCriteria(List<AyaDataListFieldDefinition> objectFieldsList, DataListBase listOptions)
|
||||
public static string DataFilterToSQLCriteria(List<DataListFieldDefinition> objectFieldsList, Models.DataListBase listOptions)
|
||||
{
|
||||
|
||||
if (listOptions.Filter == null || listOptions.Filter.Count == 0)
|
||||
@@ -40,7 +40,7 @@ namespace AyaNova.DataList
|
||||
// var fld = cm["fld"].Value<string>();
|
||||
|
||||
//var dataType = objectFieldsList.Find(z => z.FieldKey.ToLowerInvariant() == fld.ToLowerInvariant()).UiFieldDataType;
|
||||
AyaDataListFieldDefinition DataListField = objectFieldsList.FirstOrDefault(z => z.FieldKey == f.Column);
|
||||
DataListFieldDefinition DataListField = objectFieldsList.FirstOrDefault(z => z.FieldKey == f.Column);
|
||||
var dataType = DataListField.UiFieldDataType;
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
|
||||
|
||||
public static string DataFilterToSQLOrderBy(List<AyaDataListFieldDefinition> objectFieldsList, DataListBase listOptions)
|
||||
public static string DataFilterToSQLOrderBy(List<DataListFieldDefinition> objectFieldsList, Models.DataListBase listOptions)
|
||||
{
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
@@ -31,7 +31,7 @@ namespace AyaNova.DataList
|
||||
// var dir = cm["sort"].Value<string>();
|
||||
|
||||
//Get the correct sql column name
|
||||
AyaDataListFieldDefinition DataListField = objectFieldsList.FirstOrDefault(z => z.FieldKey == kvSort.Key);
|
||||
DataListFieldDefinition DataListField = objectFieldsList.FirstOrDefault(z => z.FieldKey == kvSort.Key);
|
||||
//No sorting on custom fields!
|
||||
if (DataListField.IsCustomField)
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace AyaNova.DataList
|
||||
if (sb.Length == 0)
|
||||
{
|
||||
//no sort specified so default it
|
||||
AyaDataListFieldDefinition rid = objectFieldsList.FirstOrDefault(z => z.IsRowId == true);
|
||||
DataListFieldDefinition rid = objectFieldsList.FirstOrDefault(z => z.IsRowId == true);
|
||||
if (rid != null)
|
||||
{
|
||||
return $"ORDER BY {rid.SqlIdColumnName} DESC";
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
|
||||
//Build the SELECT portion of a list query based on the columns
|
||||
internal static SqlSelectBuilderResult Build(List<AyaDataListFieldDefinition> objectFieldsList, List<string> columns)
|
||||
internal static SqlSelectBuilderResult Build(List<DataListFieldDefinition> objectFieldsList, List<string> columns)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("SELECT ");
|
||||
@@ -28,7 +28,7 @@ namespace AyaNova.DataList
|
||||
var firstColumnAdded = false;
|
||||
foreach (string ColumnName in columns)
|
||||
{
|
||||
AyaDataListFieldDefinition o = objectFieldsList.FirstOrDefault(z => z.FieldKey == ColumnName);
|
||||
DataListFieldDefinition o = objectFieldsList.FirstOrDefault(z => z.FieldKey == ColumnName);
|
||||
#if (DEBUG)
|
||||
//Developers little helper
|
||||
if (o == null)
|
||||
@@ -112,7 +112,7 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//Build the SELECT portion of a list query but only to return rowid's
|
||||
internal static SqlSelectBuilderResult BuildForReportIdListOnly(List<AyaDataListFieldDefinition> objectFieldsList)
|
||||
internal static SqlSelectBuilderResult BuildForReportIdListOnly(List<DataListFieldDefinition> objectFieldsList)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("SELECT ");
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class EventDataList : AyaDataList
|
||||
internal class EventDataList : DataListBase
|
||||
{/*
|
||||
Select aevent.id, aevent.created, aevent.ayid, aevent.ayatype, aevent.ayevent,
|
||||
aevent.textra, auser.name, auser.id
|
||||
@@ -53,9 +53,9 @@ namespace AyaNova.DataList
|
||||
DefaultColumns = new List<string>() { "eventcreated", "event", "object", "AyaType", "username", "textra" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "eventcreated", "-" } };
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "EventCreated",
|
||||
FieldKey = "eventcreated",
|
||||
@@ -63,7 +63,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aevent.created"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Event",
|
||||
FieldKey = "event",
|
||||
@@ -72,7 +72,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aevent.ayevent"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AyaType",
|
||||
FieldKey = "AyaType",
|
||||
@@ -81,7 +81,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aevent.ayatype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Object",
|
||||
FieldKey = "object",
|
||||
@@ -91,7 +91,7 @@ namespace AyaNova.DataList
|
||||
SqlAyTypeColumnName = "aevent.ayatype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "username",
|
||||
TKey = "User",
|
||||
@@ -101,7 +101,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "EventTextra",
|
||||
FieldKey = "textra",
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class HeadOfficeDataList : AyaDataList
|
||||
internal class HeadOfficeDataList : DataListBase
|
||||
{
|
||||
public HeadOfficeDataList()
|
||||
{
|
||||
@@ -34,9 +34,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficeName",
|
||||
FieldKey = "headofficename",
|
||||
@@ -47,7 +47,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficeNotes",
|
||||
FieldKey = "headofficenotes",
|
||||
@@ -55,7 +55,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "headofficeactive",
|
||||
@@ -63,7 +63,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "headofficetags",
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WebAddress",
|
||||
FieldKey = "headofficewebaddress",
|
||||
@@ -80,7 +80,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficeAccountNumber",
|
||||
FieldKey = "headofficeaccountnumber",
|
||||
@@ -88,7 +88,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.accountnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UsesBanking",
|
||||
FieldKey = "headofficeusesbanking",
|
||||
@@ -96,7 +96,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.usesbanking"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Contract",
|
||||
FieldKey = "headofficecontract",
|
||||
@@ -106,7 +106,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acontract.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ContractExpires",
|
||||
FieldKey = "headofficecontractexpires",
|
||||
@@ -114,7 +114,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.contractexpires"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficePhone1",
|
||||
FieldKey = "headofficephone1",
|
||||
@@ -122,7 +122,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.phone1"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficePhone2",
|
||||
FieldKey = "headofficephone2",
|
||||
@@ -130,7 +130,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.phone2"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficePhone3",
|
||||
FieldKey = "headofficephone3",
|
||||
@@ -138,7 +138,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.phone3"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficePhone4",
|
||||
FieldKey = "headofficephone4",
|
||||
@@ -146,7 +146,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.phone4"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficePhone5",
|
||||
FieldKey = "headofficephone5",
|
||||
@@ -154,7 +154,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.phone5"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOfficeEmail",
|
||||
FieldKey = "headofficeemail",
|
||||
@@ -163,7 +163,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalDeliveryAddress",
|
||||
FieldKey = "headofficepostaddress",
|
||||
@@ -172,7 +172,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalCity",
|
||||
FieldKey = "headofficepostcity",
|
||||
@@ -180,7 +180,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.postcity"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalStateProv",
|
||||
FieldKey = "headofficepostregion",
|
||||
@@ -188,7 +188,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.postregion"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalCountry",
|
||||
FieldKey = "headofficepostcountry",
|
||||
@@ -196,7 +196,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.postcountry"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalPostal",
|
||||
FieldKey = "headofficepostcode",
|
||||
@@ -204,7 +204,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.postcode"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressDeliveryAddress",
|
||||
FieldKey = "headofficeaddress",
|
||||
@@ -212,7 +212,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.address"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressCity",
|
||||
FieldKey = "headofficecity",
|
||||
@@ -220,7 +220,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.city"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressStateProv",
|
||||
FieldKey = "headofficeregion",
|
||||
@@ -228,7 +228,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.region"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressCountry",
|
||||
FieldKey = "headofficecountry",
|
||||
@@ -236,7 +236,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.country"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressLatitude",
|
||||
FieldKey = "headofficelatitude",
|
||||
@@ -244,7 +244,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.latitude"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressLongitude",
|
||||
FieldKey = "headofficelongitude",
|
||||
@@ -254,22 +254,22 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom1", FieldKey = "headofficecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom2", FieldKey = "headofficecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom3", FieldKey = "headofficecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom4", FieldKey = "headofficecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom5", FieldKey = "headofficecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom6", FieldKey = "headofficecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom7", FieldKey = "headofficecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom8", FieldKey = "headofficecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom9", FieldKey = "headofficecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom10", FieldKey = "headofficecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom11", FieldKey = "headofficecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom12", FieldKey = "headofficecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom13", FieldKey = "headofficecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom14", FieldKey = "headofficecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom15", FieldKey = "headofficecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "HeadOfficeCustom16", FieldKey = "headofficecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom1", FieldKey = "headofficecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom2", FieldKey = "headofficecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom3", FieldKey = "headofficecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom4", FieldKey = "headofficecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom5", FieldKey = "headofficecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom6", FieldKey = "headofficecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom7", FieldKey = "headofficecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom8", FieldKey = "headofficecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom9", FieldKey = "headofficecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom10", FieldKey = "headofficecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom11", FieldKey = "headofficecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom12", FieldKey = "headofficecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom13", FieldKey = "headofficecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom14", FieldKey = "headofficecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom15", FieldKey = "headofficecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "HeadOfficeCustom16", FieldKey = "headofficecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aheadoffice.customfields" });
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@ using AyaNova.Biz;
|
||||
using AyaNova.Models;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal interface IAyaDataList
|
||||
internal interface IDataList
|
||||
{
|
||||
|
||||
//sql query from fragment with table joins et
|
||||
string SQLFrom { get; set; }
|
||||
|
||||
//List of fields for this object
|
||||
List<AyaDataListFieldDefinition> FieldDefinitions { get; set; }
|
||||
List<DataListFieldDefinition> FieldDefinitions { get; set; }
|
||||
|
||||
//allowed roles to access this list
|
||||
AuthorizationRoles AllowedRoles { get; set; }
|
||||
@@ -23,7 +23,7 @@ namespace AyaNova.DataList
|
||||
List<string> DefaultColumns { get; set; }
|
||||
Dictionary<string, string> DefaultSortBy { get; set; }
|
||||
|
||||
void SetListOptionDefaultsIfNecessary(DataListBase listOptions);
|
||||
void SetListOptionDefaultsIfNecessary(Models.DataListBase listOptions);
|
||||
|
||||
Newtonsoft.Json.Linq.JArray GenerateReturnListColumns(List<string> columns);
|
||||
// List<string> GetFieldListFromListView(JArray listViewArray);
|
||||
@@ -1,11 +1,11 @@
|
||||
using AyaNova.Models;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal interface IAyaDataListServerCriteria
|
||||
internal interface IDataListInternalCriteria
|
||||
{
|
||||
//Additional criteria for security or other reasons
|
||||
//hard coded into some lists (e.g. MemoDataList so users can't get other people's memos)
|
||||
//clientCriteria is additional criteria provided by client to list to process as it sees fit (e.g. CustomerNoteDataList requires customer id from client)
|
||||
System.Collections.Generic.List<DataListFilterOption> DataListServerCriteria(long currentUserId, AyaNova.Biz.AuthorizationRoles userRoles, DataListBase dataListBase);
|
||||
System.Collections.Generic.List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AyaNova.Biz.AuthorizationRoles userRoles, Models.DataListBase dataListBase);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using AyaNova.Models;
|
||||
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class InsideUserDataList : AyaDataList, IAyaDataListServerCriteria
|
||||
internal class InsideUserDataList : DataListBase, IDataListInternalCriteria
|
||||
{
|
||||
|
||||
public InsideUserDataList()
|
||||
@@ -48,8 +48,8 @@ namespace AyaNova.DataList
|
||||
DefaultColumns = new List<string>() { "name", "employeenumber", "active", "usertype", "lastlogin", "roles" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "User",
|
||||
FieldKey = "name",
|
||||
@@ -60,7 +60,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UserEmployeeNumber",
|
||||
FieldKey = "employeenumber",
|
||||
@@ -69,7 +69,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "active",
|
||||
@@ -77,7 +77,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UserType",
|
||||
FieldKey = "usertype",
|
||||
@@ -86,7 +86,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.usertype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AuthorizationRoles",
|
||||
FieldKey = "roles",
|
||||
@@ -96,7 +96,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.roles"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LastLogin",
|
||||
FieldKey = "lastlogin",
|
||||
@@ -104,7 +104,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.lastlogin"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Vendor",
|
||||
FieldKey = "uservendor",
|
||||
@@ -115,7 +115,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
}
|
||||
|
||||
public List<DataListFilterOption> DataListServerCriteria(long currentUserId, AuthorizationRoles userRoles, DataListBase dataListBase)
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, Models.DataListBase dataListBase)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class LoanUnitDataList : AyaDataList
|
||||
internal class LoanUnitDataList : DataListBase
|
||||
{
|
||||
public LoanUnitDataList()
|
||||
{
|
||||
@@ -41,8 +41,8 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "LoanUnitName", "+" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitName",
|
||||
FieldKey = "LoanUnitName",
|
||||
@@ -53,7 +53,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitSerial",
|
||||
FieldKey = "LoanUnitSerial",
|
||||
@@ -61,7 +61,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.serial"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitNotes",
|
||||
FieldKey = "LoanUnitNotes",
|
||||
@@ -69,7 +69,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
@@ -77,7 +77,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "Tags",
|
||||
@@ -86,7 +86,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "LoanUnitCurrentWorkOrderItemLoan",
|
||||
TKey = "LoanUnitCurrentWorkOrderItemLoan",
|
||||
@@ -96,7 +96,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "w.serial"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitRateDay",
|
||||
FieldKey = "LoanUnitRateDay",
|
||||
@@ -104,7 +104,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.rateday"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitRateHalfDay",
|
||||
FieldKey = "LoanUnitRateHalfDay",
|
||||
@@ -112,7 +112,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.ratehalfday"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitRateHour",
|
||||
FieldKey = "LoanUnitRateHour",
|
||||
@@ -120,7 +120,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.ratehour"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitRateMonth",
|
||||
FieldKey = "LoanUnitRateMonth",
|
||||
@@ -128,7 +128,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.ratemonth"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitRateWeek",
|
||||
FieldKey = "LoanUnitRateWeek",
|
||||
@@ -136,7 +136,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.rateweek"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitRateYear",
|
||||
FieldKey = "LoanUnitRateYear",
|
||||
@@ -144,7 +144,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.rateyear"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LoanUnitDefaultRate",
|
||||
FieldKey = "LoanUnitDefaultRate",
|
||||
@@ -153,7 +153,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aloanunit.defaultrate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "LoanUnitShadowUnit",
|
||||
TKey = "LoanUnitShadowUnit",
|
||||
@@ -164,22 +164,22 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom1", FieldKey = "loanunitcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom2", FieldKey = "loanunitcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom3", FieldKey = "loanunitcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom4", FieldKey = "loanunitcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom5", FieldKey = "loanunitcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom6", FieldKey = "loanunitcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom7", FieldKey = "loanunitcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom8", FieldKey = "loanunitcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom9", FieldKey = "loanunitcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom10", FieldKey = "loanunitcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom11", FieldKey = "loanunitcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom12", FieldKey = "loanunitcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom13", FieldKey = "loanunitcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom14", FieldKey = "loanunitcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom15", FieldKey = "loanunitcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "LoanUnitCustom16", FieldKey = "loanunitcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom1", FieldKey = "loanunitcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom2", FieldKey = "loanunitcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom3", FieldKey = "loanunitcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom4", FieldKey = "loanunitcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom5", FieldKey = "loanunitcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom6", FieldKey = "loanunitcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom7", FieldKey = "loanunitcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom8", FieldKey = "loanunitcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom9", FieldKey = "loanunitcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom10", FieldKey = "loanunitcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom11", FieldKey = "loanunitcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom12", FieldKey = "loanunitcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom13", FieldKey = "loanunitcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom14", FieldKey = "loanunitcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom15", FieldKey = "loanunitcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LoanUnitCustom16", FieldKey = "loanunitcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aloanunit.customfields" });
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using AyaNova.Models;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class MemoDataList : AyaDataList, IAyaDataListServerCriteria
|
||||
internal class MemoDataList : DataListBase, IDataListInternalCriteria
|
||||
{
|
||||
public MemoDataList()
|
||||
{
|
||||
@@ -42,9 +42,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "MemoSubject",
|
||||
FieldKey = "MemoSubject",
|
||||
@@ -55,7 +55,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "MemoMessage",
|
||||
FieldKey = "MemoMessage",
|
||||
@@ -63,7 +63,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amemo.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "MemoFromID",
|
||||
FieldKey = "MemoFromID",
|
||||
@@ -74,7 +74,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = false
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "MemoSent",
|
||||
FieldKey = "MemoSent",
|
||||
@@ -82,7 +82,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amemo.sent"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "MemoReplied",
|
||||
FieldKey = "MemoReplied",
|
||||
@@ -90,7 +90,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amemo.replied"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "MemoViewed",
|
||||
FieldKey = "MemoViewed",
|
||||
@@ -99,7 +99,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "MemoTags",
|
||||
@@ -108,7 +108,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
//META column
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "metamemoto",
|
||||
UiFieldDataType = (int)UiFieldDataType.InternalId,
|
||||
@@ -117,26 +117,26 @@ namespace AyaNova.DataList
|
||||
IsMeta = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom1", FieldKey = "MemoCustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom2", FieldKey = "MemoCustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom3", FieldKey = "MemoCustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom4", FieldKey = "MemoCustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom5", FieldKey = "MemoCustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom6", FieldKey = "MemoCustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom7", FieldKey = "MemoCustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom8", FieldKey = "MemoCustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom9", FieldKey = "MemoCustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom10", FieldKey = "MemoCustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom11", FieldKey = "MemoCustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom12", FieldKey = "MemoCustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom13", FieldKey = "MemoCustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom14", FieldKey = "MemoCustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom15", FieldKey = "MemoCustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "MemoCustom16", FieldKey = "MemoCustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom1", FieldKey = "MemoCustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom2", FieldKey = "MemoCustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom3", FieldKey = "MemoCustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom4", FieldKey = "MemoCustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom5", FieldKey = "MemoCustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom6", FieldKey = "MemoCustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom7", FieldKey = "MemoCustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom8", FieldKey = "MemoCustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom9", FieldKey = "MemoCustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom10", FieldKey = "MemoCustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom11", FieldKey = "MemoCustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom12", FieldKey = "MemoCustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom13", FieldKey = "MemoCustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom14", FieldKey = "MemoCustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom15", FieldKey = "MemoCustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "MemoCustom16", FieldKey = "MemoCustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amemo.customfields" });
|
||||
|
||||
}
|
||||
|
||||
public List<DataListFilterOption> DataListServerCriteria(long currentUserId, AuthorizationRoles userRoles, DataListBase dataListBase)
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, Models.DataListBase dataListBase)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using AyaNova.Models;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class OutsideUserDataList : AyaDataList, IAyaDataListServerCriteria
|
||||
internal class OutsideUserDataList : DataListBase, IDataListInternalCriteria
|
||||
{
|
||||
|
||||
public OutsideUserDataList()
|
||||
@@ -43,8 +43,8 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "User",
|
||||
FieldKey = "name",
|
||||
@@ -55,7 +55,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UserEmployeeNumber",
|
||||
FieldKey = "employeenumber",
|
||||
@@ -64,7 +64,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "active",
|
||||
@@ -72,7 +72,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UserType",
|
||||
FieldKey = "usertype",
|
||||
@@ -81,7 +81,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.usertype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AuthorizationRoles",
|
||||
FieldKey = "roles",
|
||||
@@ -91,7 +91,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.roles"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LastLogin",
|
||||
FieldKey = "lastlogin",
|
||||
@@ -99,7 +99,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.lastlogin"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "HeadOffice",
|
||||
FieldKey = "userheadoffice",
|
||||
@@ -109,7 +109,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Customer",
|
||||
FieldKey = "usercustomer",
|
||||
@@ -120,7 +120,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
}
|
||||
|
||||
public List<DataListFilterOption> DataListServerCriteria(long currentUserId, AuthorizationRoles userRoles, DataListBase dataListBase)
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, Models.DataListBase dataListBase)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using Newtonsoft.Json.Linq;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class PartAssemblyDataList : AyaDataList
|
||||
internal class PartAssemblyDataList : DataListBase
|
||||
{
|
||||
public PartAssemblyDataList()
|
||||
{
|
||||
@@ -29,9 +29,9 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "partassemblyname", "+" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartAssemblyName",
|
||||
FieldKey = "partassemblyname",
|
||||
@@ -42,7 +42,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartAssemblyNotes",
|
||||
FieldKey = "Notes",
|
||||
@@ -50,7 +50,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartassembly.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "partassemblyactive",
|
||||
@@ -58,7 +58,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartassembly.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "partassemblytags",
|
||||
@@ -70,22 +70,22 @@ namespace AyaNova.DataList
|
||||
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom1", FieldKey = "partassemblycustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom2", FieldKey = "partassemblycustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom3", FieldKey = "partassemblycustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom4", FieldKey = "partassemblycustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom5", FieldKey = "partassemblycustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom6", FieldKey = "partassemblycustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom7", FieldKey = "partassemblycustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom8", FieldKey = "partassemblycustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom9", FieldKey = "partassemblycustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom10", FieldKey = "partassemblycustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom11", FieldKey = "partassemblycustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom12", FieldKey = "partassemblycustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom13", FieldKey = "partassemblycustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom14", FieldKey = "partassemblycustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom15", FieldKey = "partassemblycustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartAssemblyCustom16", FieldKey = "partassemblycustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom1", FieldKey = "partassemblycustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom2", FieldKey = "partassemblycustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom3", FieldKey = "partassemblycustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom4", FieldKey = "partassemblycustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom5", FieldKey = "partassemblycustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom6", FieldKey = "partassemblycustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom7", FieldKey = "partassemblycustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom8", FieldKey = "partassemblycustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom9", FieldKey = "partassemblycustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom10", FieldKey = "partassemblycustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom11", FieldKey = "partassemblycustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom12", FieldKey = "partassemblycustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom13", FieldKey = "partassemblycustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom14", FieldKey = "partassemblycustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom15", FieldKey = "partassemblycustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartAssemblyCustom16", FieldKey = "partassemblycustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartassembly.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class PartDataList : AyaDataList
|
||||
internal class PartDataList : DataListBase
|
||||
{
|
||||
public PartDataList()
|
||||
{
|
||||
@@ -49,9 +49,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
@@ -62,7 +62,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartName",
|
||||
FieldKey = "PartName",
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartNotes",
|
||||
FieldKey = "PartNotes",
|
||||
@@ -79,7 +79,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
@@ -87,7 +87,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "Tags",
|
||||
@@ -95,7 +95,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartCost",
|
||||
FieldKey = "PartCost",
|
||||
@@ -103,7 +103,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.cost"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartRetail",
|
||||
FieldKey = "PartRetail",
|
||||
@@ -112,7 +112,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "PartManufacturerID",
|
||||
TKey = "PartManufacturerID",
|
||||
@@ -122,7 +122,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aman.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "PartWholesalerID",
|
||||
TKey = "PartWholesalerID",
|
||||
@@ -132,7 +132,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "awhole.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "PartAlternativeWholesalerID",
|
||||
TKey = "PartAlternativeWholesalerID",
|
||||
@@ -142,7 +142,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aaltwhole.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartManufacturerNumber",
|
||||
FieldKey = "PartManufacturerNumber",
|
||||
@@ -150,7 +150,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.manufacturernumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartWholesalerNumber",
|
||||
FieldKey = "PartWholesalerNumber",
|
||||
@@ -158,7 +158,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.wholesalernumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartAlternativeWholesalerNumber",
|
||||
FieldKey = "PartAlternativeWholesalerNumber",
|
||||
@@ -166,7 +166,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.alternativewholesalernumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitOfMeasure",
|
||||
FieldKey = "UnitOfMeasure",
|
||||
@@ -174,7 +174,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.unitofmeasure"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartUPC",
|
||||
FieldKey = "PartUPC",
|
||||
@@ -186,22 +186,22 @@ namespace AyaNova.DataList
|
||||
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom1", FieldKey = "partcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom2", FieldKey = "partcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom3", FieldKey = "partcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom4", FieldKey = "partcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom5", FieldKey = "partcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom6", FieldKey = "partcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom7", FieldKey = "partcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom8", FieldKey = "partcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom9", FieldKey = "partcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom10", FieldKey = "partcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom11", FieldKey = "partcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom12", FieldKey = "partcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom13", FieldKey = "partcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom14", FieldKey = "partcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom15", FieldKey = "partcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartCustom16", FieldKey = "partcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom1", FieldKey = "partcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom2", FieldKey = "partcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom3", FieldKey = "partcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom4", FieldKey = "partcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom5", FieldKey = "partcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom6", FieldKey = "partcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom7", FieldKey = "partcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom8", FieldKey = "partcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom9", FieldKey = "partcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom10", FieldKey = "partcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom11", FieldKey = "partcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom12", FieldKey = "partcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom13", FieldKey = "partcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom14", FieldKey = "partcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom15", FieldKey = "partcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom16", FieldKey = "partcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -5,7 +5,7 @@ using AyaNova.Models;
|
||||
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class PartInventoryDataList : AyaDataList, IAyaDataListServerCriteria
|
||||
internal class PartInventoryDataList : DataListBase, IDataListInternalCriteria
|
||||
{
|
||||
public PartInventoryDataList()
|
||||
{
|
||||
@@ -46,7 +46,7 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" }, { "PartWarehouseName", "+" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
// FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
// {
|
||||
@@ -58,7 +58,7 @@ namespace AyaNova.DataList
|
||||
// SqlAyTypeColumnName = "vpartinventorynow.sourcetype"
|
||||
// });
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
@@ -68,7 +68,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.partnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartWarehouseName",
|
||||
FieldKey = "PartWarehouseName",
|
||||
@@ -78,7 +78,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartwarehouse.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartInventoryTransactionDescription",
|
||||
FieldKey = "PartInventoryTransactionDescription",
|
||||
@@ -106,7 +106,7 @@ namespace AyaNova.DataList
|
||||
// SqlValueColumnName = "vpartinventorynow.quantity"
|
||||
// });
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartInventoryBalance",
|
||||
FieldKey = "PartInventoryBalance",
|
||||
@@ -115,8 +115,8 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
}
|
||||
//"clientCriteria":"102074,0"
|
||||
public List<DataListFilterOption> DataListServerCriteria(long currentUserId, AuthorizationRoles userRoles, DataListBase dataListBase)
|
||||
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, Models.DataListBase dataListBase)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using AyaNova.Biz;
|
||||
using AyaNova.Models;
|
||||
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class PartInventoryTransactionsDataList : AyaDataList
|
||||
internal class PartInventoryTransactionsDataList : DataListBase, IDataListInternalCriteria
|
||||
{
|
||||
public PartInventoryTransactionsDataList()
|
||||
{
|
||||
@@ -57,9 +60,9 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartInventoryTransactionEntryDate", "-" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartInventoryTransactionSource",
|
||||
FieldKey = "PartInventoryTransactionSource",
|
||||
@@ -69,7 +72,7 @@ namespace AyaNova.DataList
|
||||
SqlAyTypeColumnName = "apartinventory.sourcetype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
@@ -79,7 +82,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.partnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartWarehouseName",
|
||||
FieldKey = "PartWarehouseName",
|
||||
@@ -89,7 +92,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartwarehouse.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartInventoryTransactionDescription",
|
||||
FieldKey = "PartInventoryTransactionDescription",
|
||||
@@ -100,7 +103,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true//should open to eventlog since no edit
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartInventoryTransactionEntryDate",
|
||||
FieldKey = "PartInventoryTransactionEntryDate",
|
||||
@@ -108,7 +111,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartinventory.entrydate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartInventoryTransactionQuantity",
|
||||
FieldKey = "PartInventoryTransactionQuantity",
|
||||
@@ -116,7 +119,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartinventory.quantity"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartInventoryBalance",
|
||||
FieldKey = "PartInventoryBalance",
|
||||
@@ -126,6 +129,35 @@ namespace AyaNova.DataList
|
||||
|
||||
}
|
||||
|
||||
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, Models.DataListBase dataListBase)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
|
||||
//ClientCriteria is optional for this list
|
||||
//Format for this list is "PARTID,WAREHOUSEID" where the id is 0 if not filtered or the id to filter
|
||||
var crit = (dataListBase.ClientCriteria ?? "").Split(',').Select(z => z.Trim()).ToArray();
|
||||
if (crit.Length > 1)
|
||||
{
|
||||
//Part criteria
|
||||
if (crit[0] != "0")
|
||||
{
|
||||
DataListFilterOption FilterOption = new DataListFilterOption() { Column = "PartPartNumber" };
|
||||
FilterOption.Items.Add(new DataListColumnFilter() { value = crit[0], op = DataListFilterComparisonOperator.Equality });
|
||||
ret.Add(FilterOption);
|
||||
}
|
||||
|
||||
//Warehouse criteria
|
||||
if (crit[1] != "0")
|
||||
{
|
||||
DataListFilterOption FilterOption = new DataListFilterOption() { Column = "PartWarehouseName" };
|
||||
FilterOption.Items.Add(new DataListColumnFilter() { value = crit[1], op = DataListFilterComparisonOperator.Equality });
|
||||
ret.Add(FilterOption);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class PartWarehouseDataList : AyaDataList
|
||||
internal class PartWarehouseDataList : DataListBase
|
||||
{
|
||||
public PartWarehouseDataList()
|
||||
{
|
||||
@@ -35,9 +35,9 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartWarehouseName", "+" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartWarehouseName",
|
||||
FieldKey = "PartWarehouseName",
|
||||
@@ -48,7 +48,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartWarehouseNotes",
|
||||
FieldKey = "PartWarehouseNotes",
|
||||
@@ -56,7 +56,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartwarehouse.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
@@ -64,7 +64,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartwarehouse.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "Tags",
|
||||
@@ -76,22 +76,22 @@ namespace AyaNova.DataList
|
||||
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom1", FieldKey = "partwarehousecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom2", FieldKey = "partwarehousecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom3", FieldKey = "partwarehousecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom4", FieldKey = "partwarehousecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom5", FieldKey = "partwarehousecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom6", FieldKey = "partwarehousecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom7", FieldKey = "partwarehousecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom8", FieldKey = "partwarehousecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom9", FieldKey = "partwarehousecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom10", FieldKey = "partwarehousecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom11", FieldKey = "partwarehousecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom12", FieldKey = "partwarehousecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom13", FieldKey = "partwarehousecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom14", FieldKey = "partwarehousecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom15", FieldKey = "partwarehousecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "PartWarehouseCustom16", FieldKey = "partwarehousecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom1", FieldKey = "partwarehousecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom2", FieldKey = "partwarehousecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom3", FieldKey = "partwarehousecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom4", FieldKey = "partwarehousecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom5", FieldKey = "partwarehousecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom6", FieldKey = "partwarehousecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom7", FieldKey = "partwarehousecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom8", FieldKey = "partwarehousecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom9", FieldKey = "partwarehousecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom10", FieldKey = "partwarehousecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom11", FieldKey = "partwarehousecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom12", FieldKey = "partwarehousecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom13", FieldKey = "partwarehousecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom14", FieldKey = "partwarehousecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom15", FieldKey = "partwarehousecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartWarehouseCustom16", FieldKey = "partwarehousecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apartwarehouse.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class ProjectDataList : AyaDataList
|
||||
internal class ProjectDataList : DataListBase
|
||||
{
|
||||
public ProjectDataList()
|
||||
{
|
||||
@@ -52,9 +52,9 @@ namespace AyaNova.DataList
|
||||
"ProjectAccountNumber", "projectactive", "projecttags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "projectname", "+" } };
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ProjectName",
|
||||
FieldKey = "projectname",
|
||||
@@ -65,7 +65,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ProjectNotes",
|
||||
FieldKey = "projectnotes",
|
||||
@@ -73,7 +73,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aproject.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "projectactive",
|
||||
@@ -81,7 +81,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aproject.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "projecttags",
|
||||
@@ -92,7 +92,7 @@ namespace AyaNova.DataList
|
||||
|
||||
//------------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ProjectAccountNumber",
|
||||
FieldKey = "ProjectAccountNumber",
|
||||
@@ -100,7 +100,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aproject.accountnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "ProjectProjectOverseerID",
|
||||
TKey = "ProjectProjectOverseerID",
|
||||
@@ -110,7 +110,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ProjectDateStarted",
|
||||
FieldKey = "ProjectDateStarted",
|
||||
@@ -118,7 +118,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aproject.datestarted"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ProjectDateCompleted",
|
||||
FieldKey = "ProjectDateCompleted",
|
||||
@@ -127,22 +127,22 @@ namespace AyaNova.DataList
|
||||
});
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom1", FieldKey = "projectcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom2", FieldKey = "projectcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom3", FieldKey = "projectcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom4", FieldKey = "projectcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom5", FieldKey = "projectcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom6", FieldKey = "projectcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom7", FieldKey = "projectcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom8", FieldKey = "projectcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom9", FieldKey = "projectcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom10", FieldKey = "projectcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom11", FieldKey = "projectcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom12", FieldKey = "projectcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom13", FieldKey = "projectcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom14", FieldKey = "projectcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom15", FieldKey = "projectcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ProjectCustom16", FieldKey = "projectcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom1", FieldKey = "projectcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom2", FieldKey = "projectcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom3", FieldKey = "projectcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom4", FieldKey = "projectcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom5", FieldKey = "projectcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom6", FieldKey = "projectcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom7", FieldKey = "projectcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom8", FieldKey = "projectcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom9", FieldKey = "projectcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom10", FieldKey = "projectcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom11", FieldKey = "projectcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom12", FieldKey = "projectcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom13", FieldKey = "projectcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom14", FieldKey = "projectcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom15", FieldKey = "projectcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ProjectCustom16", FieldKey = "projectcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aproject.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -3,7 +3,7 @@ using AyaNova.Models;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class ReminderDataList : AyaDataList, IAyaDataListServerCriteria
|
||||
internal class ReminderDataList : DataListBase, IDataListInternalCriteria
|
||||
{
|
||||
public ReminderDataList()
|
||||
{
|
||||
@@ -40,9 +40,9 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "ReminderStopDate", "-" } };
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReminderName",
|
||||
FieldKey = "ReminderName",
|
||||
@@ -54,7 +54,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReminderNotes",
|
||||
FieldKey = "ReminderNotes",
|
||||
@@ -63,7 +63,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReminderStartDate",
|
||||
FieldKey = "ReminderStartDate",
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "areminder.startdate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReminderStopDate",
|
||||
FieldKey = "ReminderStopDate",
|
||||
@@ -79,7 +79,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "areminder.stopdate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "ReminderTags",
|
||||
@@ -88,7 +88,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
//META column
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "metareminderuser",
|
||||
UiFieldDataType = (int)UiFieldDataType.InternalId,
|
||||
@@ -97,27 +97,27 @@ namespace AyaNova.DataList
|
||||
IsMeta = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom1", FieldKey = "ReminderCustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom2", FieldKey = "ReminderCustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom3", FieldKey = "ReminderCustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom4", FieldKey = "ReminderCustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom5", FieldKey = "ReminderCustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom6", FieldKey = "ReminderCustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom7", FieldKey = "ReminderCustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom8", FieldKey = "ReminderCustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom9", FieldKey = "ReminderCustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom10", FieldKey = "ReminderCustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom11", FieldKey = "ReminderCustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom12", FieldKey = "ReminderCustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom13", FieldKey = "ReminderCustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom14", FieldKey = "ReminderCustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom15", FieldKey = "ReminderCustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReminderCustom16", FieldKey = "ReminderCustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom1", FieldKey = "ReminderCustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom2", FieldKey = "ReminderCustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom3", FieldKey = "ReminderCustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom4", FieldKey = "ReminderCustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom5", FieldKey = "ReminderCustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom6", FieldKey = "ReminderCustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom7", FieldKey = "ReminderCustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom8", FieldKey = "ReminderCustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom9", FieldKey = "ReminderCustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom10", FieldKey = "ReminderCustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom11", FieldKey = "ReminderCustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom12", FieldKey = "ReminderCustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom13", FieldKey = "ReminderCustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom14", FieldKey = "ReminderCustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom15", FieldKey = "ReminderCustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReminderCustom16", FieldKey = "ReminderCustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areminder.customfields" });
|
||||
|
||||
}
|
||||
|
||||
//Ensure only current user can fetch their reminders
|
||||
public List<DataListFilterOption> DataListServerCriteria(long currentUserId, AuthorizationRoles userRoles, DataListBase dataListBase)
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, Models.DataListBase dataListBase)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class ReportDataList : AyaDataList
|
||||
internal class ReportDataList : DataListBase
|
||||
{
|
||||
|
||||
public ReportDataList()
|
||||
@@ -35,8 +35,8 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Report",
|
||||
FieldKey = "name",
|
||||
@@ -48,7 +48,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AyaType",
|
||||
FieldKey = "objecttype",
|
||||
@@ -58,7 +58,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "active",
|
||||
|
||||
@@ -3,7 +3,7 @@ using AyaNova.Models;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class ReviewDataList : AyaDataList, IAyaDataListServerCriteria
|
||||
internal class ReviewDataList : DataListBase, IDataListInternalCriteria
|
||||
{
|
||||
public ReviewDataList()
|
||||
{
|
||||
@@ -57,9 +57,9 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "ReviewCompletedDate", "-" }, { "ReviewDueDate", "+" } };
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Object",
|
||||
FieldKey = "Object",
|
||||
@@ -69,7 +69,7 @@ namespace AyaNova.DataList
|
||||
SqlAyTypeColumnName = "areview.objecttype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AyaType",
|
||||
FieldKey = "AyaType",
|
||||
@@ -78,7 +78,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "areview.objecttype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReviewName",
|
||||
FieldKey = "ReviewName",
|
||||
@@ -89,7 +89,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReviewNotes",
|
||||
FieldKey = "ReviewNotes",
|
||||
@@ -97,7 +97,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "areview.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReviewDueDate",
|
||||
FieldKey = "ReviewDueDate",
|
||||
@@ -105,7 +105,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "areview.duedate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReviewCompletedDate",
|
||||
FieldKey = "ReviewCompletedDate",
|
||||
@@ -113,7 +113,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "areview.completeddate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReviewCompletionNotes",
|
||||
FieldKey = "ReviewCompletionNotes",
|
||||
@@ -121,7 +121,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "areview.completionnotes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReviewUserId",
|
||||
FieldKey = "ReviewUserId",
|
||||
@@ -131,7 +131,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "uassto.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReviewAssignedByUserId",
|
||||
FieldKey = "ReviewAssignedByUserId",
|
||||
@@ -141,7 +141,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "uassby.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "ReviewTags",
|
||||
@@ -150,7 +150,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
//META userid column
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "metareviewuser",
|
||||
UiFieldDataType = (int)UiFieldDataType.InternalId,
|
||||
@@ -160,7 +160,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
//META object id column
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "metareviewobjectid",
|
||||
UiFieldDataType = (int)UiFieldDataType.InternalId,
|
||||
@@ -169,22 +169,22 @@ namespace AyaNova.DataList
|
||||
IsMeta = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom1", FieldKey = "ReviewCustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom2", FieldKey = "ReviewCustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom3", FieldKey = "ReviewCustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom4", FieldKey = "ReviewCustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom5", FieldKey = "ReviewCustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom6", FieldKey = "ReviewCustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom7", FieldKey = "ReviewCustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom8", FieldKey = "ReviewCustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom9", FieldKey = "ReviewCustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom10", FieldKey = "ReviewCustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom11", FieldKey = "ReviewCustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom12", FieldKey = "ReviewCustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom13", FieldKey = "ReviewCustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom14", FieldKey = "ReviewCustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom15", FieldKey = "ReviewCustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ReviewCustom16", FieldKey = "ReviewCustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom1", FieldKey = "ReviewCustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom2", FieldKey = "ReviewCustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom3", FieldKey = "ReviewCustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom4", FieldKey = "ReviewCustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom5", FieldKey = "ReviewCustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom6", FieldKey = "ReviewCustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom7", FieldKey = "ReviewCustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom8", FieldKey = "ReviewCustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom9", FieldKey = "ReviewCustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom10", FieldKey = "ReviewCustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom11", FieldKey = "ReviewCustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom12", FieldKey = "ReviewCustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom13", FieldKey = "ReviewCustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom14", FieldKey = "ReviewCustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom15", FieldKey = "ReviewCustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ReviewCustom16", FieldKey = "ReviewCustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "areview.customfields" });
|
||||
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ namespace AyaNova.DataList
|
||||
// return "[]";//this means effectively don't process this at all
|
||||
// }
|
||||
|
||||
public List<DataListFilterOption> DataListServerCriteria(long currentUserId, AuthorizationRoles userRoles, DataListBase dataListBase)
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, Models.DataListBase dataListBase)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
bool HasSupervisorRole =
|
||||
|
||||
@@ -4,7 +4,7 @@ using AyaNova.Models;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class ServiceBankDataList : AyaDataList
|
||||
internal class ServiceBankDataList : DataListBase
|
||||
{
|
||||
public ServiceBankDataList()
|
||||
{
|
||||
@@ -67,9 +67,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankSourceRootObjectType",
|
||||
FieldKey = "ServiceBankSourceRootObjectType",
|
||||
@@ -79,7 +79,7 @@ namespace AyaNova.DataList
|
||||
SqlAyTypeColumnName = "aservicebank.sourcetype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Object",
|
||||
FieldKey = "Object",
|
||||
@@ -89,7 +89,7 @@ namespace AyaNova.DataList
|
||||
SqlAyTypeColumnName = "aservicebank.objecttype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AyaType",
|
||||
FieldKey = "AyaType",
|
||||
@@ -98,7 +98,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicebank.objecttype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankDescription",
|
||||
FieldKey = "ServiceBankDescription",
|
||||
@@ -110,7 +110,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankCreated",
|
||||
FieldKey = "ServiceBankCreated",
|
||||
@@ -118,7 +118,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicebank.entrydate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankCurrency",
|
||||
FieldKey = "ServiceBankCurrency",
|
||||
@@ -126,7 +126,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicebank.currency"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankCurrencyBalance",
|
||||
FieldKey = "ServiceBankCurrencyBalance",
|
||||
@@ -134,7 +134,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicebank.currencybalance"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankIncidents",
|
||||
FieldKey = "ServiceBankIncidents",
|
||||
@@ -142,7 +142,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicebank.incidents"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankIncidentsBalance",
|
||||
FieldKey = "ServiceBankIncidentsBalance",
|
||||
@@ -150,7 +150,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicebank.incidentsbalance"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankHours",
|
||||
FieldKey = "ServiceBankHours",
|
||||
@@ -158,7 +158,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicebank.hours"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankHoursBalance",
|
||||
FieldKey = "ServiceBankHoursBalance",
|
||||
@@ -167,7 +167,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
//META object id column
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "metaservicebankobjectid",
|
||||
UiFieldDataType = (int)UiFieldDataType.InternalId,
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class ServiceRateDataList : AyaDataList
|
||||
internal class ServiceRateDataList : DataListBase
|
||||
{
|
||||
public ServiceRateDataList()
|
||||
{
|
||||
@@ -42,9 +42,9 @@ namespace AyaNova.DataList
|
||||
DefaultColumns = new List<string>() { "Name", "Cost", "RateCharge", "RateUnitChargeDescriptionID", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "Name", "+" } };
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Name",
|
||||
FieldKey = "Name",
|
||||
@@ -55,7 +55,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceRateNotes",
|
||||
FieldKey = "ServiceRateNotes",
|
||||
@@ -63,7 +63,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicerate.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicerate.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "Tags",
|
||||
@@ -82,7 +82,7 @@ namespace AyaNova.DataList
|
||||
|
||||
//------------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "RateAccountNumber",
|
||||
FieldKey = "RateAccountNumber",
|
||||
@@ -90,7 +90,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicerate.accountnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Cost",
|
||||
FieldKey = "Cost",
|
||||
@@ -98,7 +98,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicerate.cost"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "RateCharge",
|
||||
FieldKey = "RateCharge",
|
||||
@@ -106,7 +106,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aservicerate.charge"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "RateUnitChargeDescriptionID",
|
||||
FieldKey = "RateUnitChargeDescriptionID",
|
||||
@@ -116,22 +116,22 @@ namespace AyaNova.DataList
|
||||
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom1", FieldKey = "ServiceRatecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom2", FieldKey = "ServiceRatecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom3", FieldKey = "ServiceRatecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom4", FieldKey = "ServiceRatecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom5", FieldKey = "ServiceRatecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom6", FieldKey = "ServiceRatecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom7", FieldKey = "ServiceRatecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom8", FieldKey = "ServiceRatecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom9", FieldKey = "ServiceRatecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom10", FieldKey = "ServiceRatecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom11", FieldKey = "ServiceRatecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom12", FieldKey = "ServiceRatecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom13", FieldKey = "ServiceRatecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom14", FieldKey = "ServiceRatecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom15", FieldKey = "ServiceRatecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "ServiceRateCustom16", FieldKey = "ServiceRatecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom1", FieldKey = "ServiceRatecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom2", FieldKey = "ServiceRatecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom3", FieldKey = "ServiceRatecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom4", FieldKey = "ServiceRatecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom5", FieldKey = "ServiceRatecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom6", FieldKey = "ServiceRatecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom7", FieldKey = "ServiceRatecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom8", FieldKey = "ServiceRatecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom9", FieldKey = "ServiceRatecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom10", FieldKey = "ServiceRatecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom11", FieldKey = "ServiceRatecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom12", FieldKey = "ServiceRatecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom13", FieldKey = "ServiceRatecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom14", FieldKey = "ServiceRatecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom15", FieldKey = "ServiceRatecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "ServiceRateCustom16", FieldKey = "ServiceRatecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aservicerate.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class TaxCodeDataList : AyaDataList
|
||||
internal class TaxCodeDataList : DataListBase
|
||||
{
|
||||
public TaxCodeDataList()
|
||||
{
|
||||
@@ -43,9 +43,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Name",
|
||||
FieldKey = "Name",
|
||||
@@ -56,7 +56,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "TaxCodeNotes",
|
||||
FieldKey = "TaxCodeNotes",
|
||||
@@ -64,7 +64,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "ataxcode.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
@@ -72,7 +72,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "ataxcode.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "Tags",
|
||||
@@ -83,7 +83,7 @@ namespace AyaNova.DataList
|
||||
|
||||
//------------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "TaxCodeTaxA",
|
||||
FieldKey = "TaxCodeTaxA",
|
||||
@@ -91,7 +91,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "ataxcode.taxa"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "TaxCodeTaxB",
|
||||
FieldKey = "TaxCodeTaxB",
|
||||
@@ -99,7 +99,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "ataxcode.taxb"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "TaxCodeTaxOnTax",
|
||||
FieldKey = "TaxCodeTaxOnTax",
|
||||
@@ -109,22 +109,22 @@ namespace AyaNova.DataList
|
||||
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom1", FieldKey = "TaxCodecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom2", FieldKey = "TaxCodecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom3", FieldKey = "TaxCodecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom4", FieldKey = "TaxCodecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom5", FieldKey = "TaxCodecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom6", FieldKey = "TaxCodecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom7", FieldKey = "TaxCodecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom8", FieldKey = "TaxCodecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom9", FieldKey = "TaxCodecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom10", FieldKey = "TaxCodecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom11", FieldKey = "TaxCodecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom12", FieldKey = "TaxCodecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom13", FieldKey = "TaxCodecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom14", FieldKey = "TaxCodecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom15", FieldKey = "TaxCodecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TaxCodeCustom16", FieldKey = "TaxCodecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom1", FieldKey = "TaxCodecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom2", FieldKey = "TaxCodecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom3", FieldKey = "TaxCodecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom4", FieldKey = "TaxCodecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom5", FieldKey = "TaxCodecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom6", FieldKey = "TaxCodecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom7", FieldKey = "TaxCodecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom8", FieldKey = "TaxCodecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom9", FieldKey = "TaxCodecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom10", FieldKey = "TaxCodecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom11", FieldKey = "TaxCodecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom12", FieldKey = "TaxCodecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom13", FieldKey = "TaxCodecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom14", FieldKey = "TaxCodecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom15", FieldKey = "TaxCodecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaxCodeCustom16", FieldKey = "TaxCodecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "ataxcode.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class TestWidgetDataList : AyaDataList
|
||||
internal class TestWidgetDataList : DataListBase
|
||||
{
|
||||
public TestWidgetDataList()
|
||||
{
|
||||
@@ -50,8 +50,8 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "widgetname", "+" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WidgetName",
|
||||
FieldKey = "widgetname",
|
||||
@@ -61,28 +61,28 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "awidget.name",
|
||||
IsRowId = true
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WidgetSerial",
|
||||
FieldKey = "widgetserial",
|
||||
UiFieldDataType = (int)UiFieldDataType.Integer,
|
||||
SqlValueColumnName = "awidget.serial"
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WidgetDollarAmount",
|
||||
FieldKey = "widgetdollaramount",
|
||||
UiFieldDataType = (int)UiFieldDataType.Currency,
|
||||
SqlValueColumnName = "awidget.dollaramount"
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WidgetCount",
|
||||
FieldKey = "widgetcount",
|
||||
UiFieldDataType = (int)UiFieldDataType.Integer,
|
||||
SqlValueColumnName = "awidget.count"
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UserType",
|
||||
FieldKey = "widgetusertype",
|
||||
@@ -90,21 +90,21 @@ namespace AyaNova.DataList
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(UserType).ToString()),
|
||||
SqlValueColumnName = "awidget.usertype"
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WidgetStartDate",
|
||||
FieldKey = "widgetstartdate",
|
||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
SqlValueColumnName = "awidget.startdate"
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WidgetEndDate",
|
||||
FieldKey = "widgetenddate",
|
||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
SqlValueColumnName = "awidget.enddate"
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WidgetNotes",
|
||||
FieldKey = "widgetnotes",
|
||||
@@ -113,7 +113,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
//FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "User", FieldKey = "userid", UiFieldDataType = (int)AyaUiFieldDataType.Text, AyaObjectType = (int)AyaType.User });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "username",
|
||||
TKey = "User",
|
||||
@@ -122,14 +122,14 @@ namespace AyaNova.DataList
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "widgetactive",
|
||||
UiFieldDataType = (int)UiFieldDataType.Bool,
|
||||
SqlValueColumnName = "awidget.active"
|
||||
});
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "widgettags",
|
||||
@@ -137,22 +137,22 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "awidget.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom1", FieldKey = "widgetcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom2", FieldKey = "widgetcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom3", FieldKey = "widgetcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom4", FieldKey = "widgetcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom5", FieldKey = "widgetcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom6", FieldKey = "widgetcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom7", FieldKey = "widgetcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom8", FieldKey = "widgetcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom9", FieldKey = "widgetcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom10", FieldKey = "widgetcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom11", FieldKey = "widgetcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom12", FieldKey = "widgetcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom13", FieldKey = "widgetcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom14", FieldKey = "widgetcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom15", FieldKey = "widgetcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "WidgetCustom16", FieldKey = "widgetcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom1", FieldKey = "widgetcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom2", FieldKey = "widgetcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom3", FieldKey = "widgetcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom4", FieldKey = "widgetcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom5", FieldKey = "widgetcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom6", FieldKey = "widgetcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom7", FieldKey = "widgetcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom8", FieldKey = "widgetcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom9", FieldKey = "widgetcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom10", FieldKey = "widgetcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom11", FieldKey = "widgetcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom12", FieldKey = "widgetcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom13", FieldKey = "widgetcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom14", FieldKey = "widgetcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom15", FieldKey = "widgetcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WidgetCustom16", FieldKey = "widgetcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "awidget.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class TranslationDataList : AyaDataList
|
||||
internal class TranslationDataList : DataListBase
|
||||
{
|
||||
|
||||
public TranslationDataList()
|
||||
@@ -36,9 +36,9 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined (in this case User) table need to be specified completely
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
//DPRECATED FieldDefinitions.Add(new AyaDataListFieldDefinition { FieldKey = "df", AyaObjectType = (int)AyaType.User, SqlIdColumnName = "auser.id" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Translation",
|
||||
FieldKey = "name",
|
||||
@@ -49,7 +49,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "GlobalCJKIndex",
|
||||
FieldKey = "cjkindex",
|
||||
@@ -59,7 +59,7 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReadOnly",
|
||||
FieldKey = "stock",
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class TravelRateDataList : AyaDataList
|
||||
internal class TravelRateDataList : DataListBase
|
||||
{
|
||||
public TravelRateDataList()
|
||||
{
|
||||
@@ -42,9 +42,9 @@ namespace AyaNova.DataList
|
||||
DefaultColumns = new List<string>() { "Name", "Cost", "RateCharge", "RateUnitChargeDescriptionID", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "Name", "+" } };
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Name",
|
||||
FieldKey = "Name",
|
||||
@@ -55,7 +55,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "TravelRateNotes",
|
||||
FieldKey = "TravelRateNotes",
|
||||
@@ -63,7 +63,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "atravelrate.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "atravelrate.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "Tags",
|
||||
@@ -82,7 +82,7 @@ namespace AyaNova.DataList
|
||||
|
||||
//------------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "RateAccountNumber",
|
||||
FieldKey = "RateAccountNumber",
|
||||
@@ -90,7 +90,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "atravelrate.accountnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Cost",
|
||||
FieldKey = "Cost",
|
||||
@@ -98,7 +98,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "atravelrate.cost"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "RateCharge",
|
||||
FieldKey = "RateCharge",
|
||||
@@ -106,7 +106,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "atravelrate.charge"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "RateUnitChargeDescriptionID",
|
||||
FieldKey = "RateUnitChargeDescriptionID",
|
||||
@@ -116,22 +116,22 @@ namespace AyaNova.DataList
|
||||
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom1", FieldKey = "TravelRatecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom2", FieldKey = "TravelRatecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom3", FieldKey = "TravelRatecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom4", FieldKey = "TravelRatecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom5", FieldKey = "TravelRatecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom6", FieldKey = "TravelRatecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom7", FieldKey = "TravelRatecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom8", FieldKey = "TravelRatecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom9", FieldKey = "TravelRatecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom10", FieldKey = "TravelRatecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom11", FieldKey = "TravelRatecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom12", FieldKey = "TravelRatecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom13", FieldKey = "TravelRatecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom14", FieldKey = "TravelRatecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom15", FieldKey = "TravelRatecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "TravelRateCustom16", FieldKey = "TravelRatecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom1", FieldKey = "TravelRatecustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom2", FieldKey = "TravelRatecustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom3", FieldKey = "TravelRatecustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom4", FieldKey = "TravelRatecustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom5", FieldKey = "TravelRatecustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom6", FieldKey = "TravelRatecustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom7", FieldKey = "TravelRatecustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom8", FieldKey = "TravelRatecustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom9", FieldKey = "TravelRatecustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom10", FieldKey = "TravelRatecustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom11", FieldKey = "TravelRatecustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom12", FieldKey = "TravelRatecustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom13", FieldKey = "TravelRatecustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom14", FieldKey = "TravelRatecustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom15", FieldKey = "TravelRatecustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TravelRateCustom16", FieldKey = "TravelRatecustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "atravelrate.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class UnitDataList : AyaDataList
|
||||
internal class UnitDataList : DataListBase
|
||||
{
|
||||
public UnitDataList()
|
||||
{
|
||||
@@ -46,9 +46,9 @@ namespace AyaNova.DataList
|
||||
DefaultColumns = new List<string>() { "UnitSerial", "UnitModel", "Customer", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "UnitSerial", "+" } };
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitSerial",
|
||||
FieldKey = "UnitSerial",
|
||||
@@ -59,7 +59,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitNotes",
|
||||
FieldKey = "unitnotes",
|
||||
@@ -67,7 +67,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
@@ -75,7 +75,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "unittags",
|
||||
@@ -83,7 +83,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "Customer",
|
||||
TKey = "Customer",
|
||||
@@ -93,7 +93,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "UnitParentUnitID",
|
||||
TKey = "UnitParentUnitID",
|
||||
@@ -103,7 +103,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aparentunit.serial"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "UnitReplacedByUnitID",
|
||||
TKey = "UnitReplacedByUnitID",
|
||||
@@ -113,7 +113,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "areplacedbyunit.serial"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "UnitModel",
|
||||
TKey = "UnitModel",
|
||||
@@ -123,7 +123,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.number"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitUnitHasOwnAddress",
|
||||
FieldKey = "UnitUnitHasOwnAddress",
|
||||
@@ -131,7 +131,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.unithasownaddress"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitBoughtHere",
|
||||
FieldKey = "UnitBoughtHere",
|
||||
@@ -139,7 +139,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.boughthere"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "UnitPurchaseFromID",
|
||||
TKey = "UnitPurchaseFromID",
|
||||
@@ -149,7 +149,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitReceipt",
|
||||
FieldKey = "UnitReceipt",
|
||||
@@ -157,7 +157,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.receipt"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitPurchasedDate",
|
||||
FieldKey = "UnitPurchasedDate",
|
||||
@@ -165,7 +165,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.purchaseddate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitDescription",
|
||||
FieldKey = "UnitDescription",
|
||||
@@ -173,7 +173,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.description"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitOverrideWarranty",
|
||||
FieldKey = "UnitOverrideWarranty",
|
||||
@@ -181,7 +181,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.overridemodelwarranty"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitOverrideLength",
|
||||
FieldKey = "UnitOverrideLength",
|
||||
@@ -189,7 +189,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.warrantylength"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitOverrideLifeTime",
|
||||
FieldKey = "UnitOverrideLifeTime",
|
||||
@@ -197,7 +197,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.lifetimewarranty"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitOverrideWarrantyTerms",
|
||||
FieldKey = "UnitOverrideWarrantyTerms",
|
||||
@@ -205,7 +205,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.warrantyterms"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UsesBanking",
|
||||
FieldKey = "UsesBanking",
|
||||
@@ -213,7 +213,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.usesbanking"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitMetered",
|
||||
FieldKey = "UnitMetered",
|
||||
@@ -221,7 +221,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.metered"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitText1",
|
||||
FieldKey = "UnitText1",
|
||||
@@ -229,7 +229,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.text1"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitText2",
|
||||
FieldKey = "UnitText2",
|
||||
@@ -237,7 +237,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.text2"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitText3",
|
||||
FieldKey = "UnitText3",
|
||||
@@ -245,7 +245,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.text3"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitText4",
|
||||
FieldKey = "UnitText4",
|
||||
@@ -254,22 +254,22 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom1", FieldKey = "unitcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom2", FieldKey = "unitcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom3", FieldKey = "unitcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom4", FieldKey = "unitcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom5", FieldKey = "unitcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom6", FieldKey = "unitcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom7", FieldKey = "unitcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom8", FieldKey = "unitcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom9", FieldKey = "unitcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom10", FieldKey = "unitcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom11", FieldKey = "unitcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom12", FieldKey = "unitcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom13", FieldKey = "unitcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom14", FieldKey = "unitcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom15", FieldKey = "unitcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitCustom16", FieldKey = "unitcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom1", FieldKey = "unitcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom2", FieldKey = "unitcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom3", FieldKey = "unitcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom4", FieldKey = "unitcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom5", FieldKey = "unitcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom6", FieldKey = "unitcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom7", FieldKey = "unitcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom8", FieldKey = "unitcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom9", FieldKey = "unitcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom10", FieldKey = "unitcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom11", FieldKey = "unitcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom12", FieldKey = "unitcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom13", FieldKey = "unitcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom14", FieldKey = "unitcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom15", FieldKey = "unitcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitCustom16", FieldKey = "unitcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "amainunit.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class UnitModelDataList : AyaDataList
|
||||
internal class UnitModelDataList : DataListBase
|
||||
{
|
||||
public UnitModelDataList()
|
||||
{
|
||||
@@ -38,8 +38,8 @@ namespace AyaNova.DataList
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "UnitModelModelNumber", "+" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitModelModelNumber",
|
||||
FieldKey = "UnitModelModelNumber",
|
||||
@@ -50,7 +50,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Name",
|
||||
FieldKey = "Name",
|
||||
@@ -58,7 +58,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
@@ -66,7 +66,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "unitmodeltags",
|
||||
@@ -74,7 +74,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
FieldKey = "UnitModelVendorID",
|
||||
TKey = "UnitModelVendorID",
|
||||
@@ -84,7 +84,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitModelUPC",
|
||||
FieldKey = "UnitModelUPC",
|
||||
@@ -92,7 +92,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.upc"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitModelLifeTimeWarranty",
|
||||
FieldKey = "UnitModelLifeTimeWarranty",
|
||||
@@ -100,7 +100,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.lifetimewarranty"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitModelIntroducedDate",
|
||||
FieldKey = "UnitModelIntroducedDate",
|
||||
@@ -108,7 +108,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.introduceddate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitModelDiscontinued",
|
||||
FieldKey = "UnitModelDiscontinued",
|
||||
@@ -116,7 +116,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.discontinued"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitModelDiscontinuedDate",
|
||||
FieldKey = "UnitModelDiscontinuedDate",
|
||||
@@ -124,7 +124,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.discontinueddate"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitModelWarrantyLength",
|
||||
FieldKey = "UnitModelWarrantyLength",
|
||||
@@ -132,7 +132,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aunitmodel.warrantylength"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UnitModelWarrantyTerms",
|
||||
FieldKey = "UnitModelWarrantyTerms",
|
||||
@@ -141,22 +141,22 @@ namespace AyaNova.DataList
|
||||
});
|
||||
//-----------
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom1", FieldKey = "unitmodelcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom2", FieldKey = "unitmodelcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom3", FieldKey = "unitmodelcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom4", FieldKey = "unitmodelcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom5", FieldKey = "unitmodelcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom6", FieldKey = "unitmodelcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom7", FieldKey = "unitmodelcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom8", FieldKey = "unitmodelcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom9", FieldKey = "unitmodelcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom10", FieldKey = "unitmodelcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom11", FieldKey = "unitmodelcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom12", FieldKey = "unitmodelcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom13", FieldKey = "unitmodelcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom14", FieldKey = "unitmodelcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom15", FieldKey = "unitmodelcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "UnitModelCustom16", FieldKey = "unitmodelcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom1", FieldKey = "unitmodelcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom2", FieldKey = "unitmodelcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom3", FieldKey = "unitmodelcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom4", FieldKey = "unitmodelcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom5", FieldKey = "unitmodelcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom6", FieldKey = "unitmodelcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom7", FieldKey = "unitmodelcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom8", FieldKey = "unitmodelcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom9", FieldKey = "unitmodelcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom10", FieldKey = "unitmodelcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom11", FieldKey = "unitmodelcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom12", FieldKey = "unitmodelcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom13", FieldKey = "unitmodelcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom14", FieldKey = "unitmodelcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom15", FieldKey = "unitmodelcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "UnitModelCustom16", FieldKey = "unitmodelcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aunitmodel.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class VendorDataList : AyaDataList
|
||||
internal class VendorDataList : DataListBase
|
||||
{
|
||||
public VendorDataList()
|
||||
{
|
||||
@@ -37,8 +37,8 @@ namespace AyaNova.DataList
|
||||
DefaultColumns = new List<string>() { "vendorname", "vendorphone1", "vendoremail", "vendortags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "vendorname", "+" } };
|
||||
|
||||
FieldDefinitions = new List<AyaDataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorName",
|
||||
FieldKey = "vendorname",
|
||||
@@ -49,7 +49,7 @@ namespace AyaNova.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorNotes",
|
||||
FieldKey = "vendornotes",
|
||||
@@ -57,7 +57,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "vendoractive",
|
||||
@@ -65,7 +65,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
FieldKey = "vendortags",
|
||||
@@ -73,7 +73,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WebAddress",
|
||||
FieldKey = "vendorwebaddress",
|
||||
@@ -82,7 +82,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorAccountNumber",
|
||||
FieldKey = "vendoraccountnumber",
|
||||
@@ -92,7 +92,7 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorPhone1",
|
||||
FieldKey = "vendorphone1",
|
||||
@@ -100,7 +100,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.phone1"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorPhone2",
|
||||
FieldKey = "vendorphone2",
|
||||
@@ -108,7 +108,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.phone2"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorPhone3",
|
||||
FieldKey = "vendorphone3",
|
||||
@@ -116,7 +116,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.phone3"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorPhone4",
|
||||
FieldKey = "vendorphone4",
|
||||
@@ -124,7 +124,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.phone4"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorPhone5",
|
||||
FieldKey = "vendorphone5",
|
||||
@@ -132,7 +132,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.phone5"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "VendorEmail",
|
||||
FieldKey = "vendoremail",
|
||||
@@ -141,7 +141,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalDeliveryAddress",
|
||||
FieldKey = "vendorpostaddress",
|
||||
@@ -150,7 +150,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalCity",
|
||||
FieldKey = "vendorpostcity",
|
||||
@@ -158,7 +158,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.postcity"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalStateProv",
|
||||
FieldKey = "vendorpostregion",
|
||||
@@ -166,7 +166,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.postregion"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalCountry",
|
||||
FieldKey = "vendorpostcountry",
|
||||
@@ -174,7 +174,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.postcountry"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressPostalPostal",
|
||||
FieldKey = "vendorpostcode",
|
||||
@@ -182,7 +182,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.postcode"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressDeliveryAddress",
|
||||
FieldKey = "vendoraddress",
|
||||
@@ -190,7 +190,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.address"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressCity",
|
||||
FieldKey = "vendorcity",
|
||||
@@ -198,7 +198,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.city"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressStateProv",
|
||||
FieldKey = "vendorregion",
|
||||
@@ -206,7 +206,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.region"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressCountry",
|
||||
FieldKey = "vendorcountry",
|
||||
@@ -214,7 +214,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.country"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressLatitude",
|
||||
FieldKey = "vendorlatitude",
|
||||
@@ -222,7 +222,7 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "avendor.latitude"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AddressLongitude",
|
||||
FieldKey = "vendorlongitude",
|
||||
@@ -232,22 +232,22 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom1", FieldKey = "vendorcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom2", FieldKey = "vendorcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom3", FieldKey = "vendorcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom4", FieldKey = "vendorcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom5", FieldKey = "vendorcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom6", FieldKey = "vendorcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom7", FieldKey = "vendorcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom8", FieldKey = "vendorcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom9", FieldKey = "vendorcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom10", FieldKey = "vendorcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom11", FieldKey = "vendorcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom12", FieldKey = "vendorcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom13", FieldKey = "vendorcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom14", FieldKey = "vendorcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom15", FieldKey = "vendorcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "VendorCustom16", FieldKey = "vendorcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom1", FieldKey = "vendorcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom2", FieldKey = "vendorcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom3", FieldKey = "vendorcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom4", FieldKey = "vendorcustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom5", FieldKey = "vendorcustom5", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom6", FieldKey = "vendorcustom6", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom7", FieldKey = "vendorcustom7", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom8", FieldKey = "vendorcustom8", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom9", FieldKey = "vendorcustom9", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom10", FieldKey = "vendorcustom10", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom11", FieldKey = "vendorcustom11", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom12", FieldKey = "vendorcustom12", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom13", FieldKey = "vendorcustom13", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom14", FieldKey = "vendorcustom14", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom15", FieldKey = "vendorcustom15", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "VendorCustom16", FieldKey = "vendorcustom16", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "avendor.customfields" });
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,7 +16,7 @@ namespace AyaNova.Biz
|
||||
return;
|
||||
|
||||
var FormTemplate = JArray.Parse(formCustom.Template);
|
||||
var ThisFormCustomFieldsList = AyaFormFieldDefinitions.AyaFormFields(formCustom.FormKey).Where(z => z.IsCustomField == true).Select(z => z.TKey).ToList();
|
||||
var ThisFormCustomFieldsList = FormFieldReference.FormFieldReferenceList(formCustom.FormKey).Where(z => z.IsCustomField == true).Select(z => z.TKey).ToList();
|
||||
|
||||
//If the customFields string is empty then only validation is if any of the fields are required to be filled in
|
||||
if (!hasCustomData)
|
||||
@@ -52,7 +52,7 @@ namespace AyaNova.Biz
|
||||
{
|
||||
|
||||
//Translate the LT field key to the actual customFieldData field key
|
||||
var InternalCustomFieldName = AyaFormFieldDefinitions.TranslateLTCustomFieldToInternalCustomFieldName(iFldKey);
|
||||
var InternalCustomFieldName = FormFieldReference.TranslateLTCustomFieldToInternalCustomFieldName(iFldKey);
|
||||
//Check if it's set to required
|
||||
var isRequired = CustomFieldIsSetToRequired(FormTemplate, iFldKey);
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace AyaNova.Biz
|
||||
}
|
||||
|
||||
//If it doesn't exist, vet the form key name is ok by checking with this list
|
||||
if (!AyaFormFieldDefinitions.AyaFormFieldDefinitionKeys.Contains(formKey))
|
||||
if (!FormFieldReference.FormFieldKeys.Contains(formKey))
|
||||
{
|
||||
//Nope, whatever it is, it's not valid
|
||||
return null;
|
||||
@@ -154,7 +154,7 @@ namespace AyaNova.Biz
|
||||
AddError(ApiErrorCode.VALIDATION_REQUIRED, "FormKey");
|
||||
else
|
||||
{
|
||||
if (!AyaFormFieldDefinitions.IsValidFormFieldDefinitionKey(inObj.FormKey))
|
||||
if (!FormFieldReference.IsValidFormFieldKey(inObj.FormKey))
|
||||
{
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "FormKey");
|
||||
}
|
||||
@@ -181,7 +181,7 @@ namespace AyaNova.Biz
|
||||
if ((!PropertyHasErrors("FormKey") && !string.IsNullOrWhiteSpace(inObj.Template)))
|
||||
{
|
||||
var ValidCustomFieldTypes = CustomFieldType.ValidCustomFieldTypes;
|
||||
var ValidFormFields = AyaFormFieldDefinitions.AyaFormFields(inObj.FormKey);
|
||||
var ValidFormFields = FormFieldReference.FormFieldReferenceList(inObj.FormKey);
|
||||
try
|
||||
{
|
||||
//Parse the json, expecting something like this:
|
||||
@@ -195,7 +195,7 @@ namespace AyaNova.Biz
|
||||
|
||||
for (int i = 0; i < v.Count; i++)
|
||||
{
|
||||
AyaFormFieldDefinition MasterFormField = null;
|
||||
FormField MasterFormField = null;
|
||||
|
||||
var formFieldItem = v[i];
|
||||
if (formFieldItem["fld"] == null)
|
||||
|
||||
1062
server/AyaNova/biz/FormFieldReference.cs
Normal file
1062
server/AyaNova/biz/FormFieldReference.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -18,7 +18,7 @@ namespace AyaNova.Biz
|
||||
//var OuterJson=JObject.Parse(formCustom.Template);
|
||||
var FormTemplate = JArray.Parse(formCustom.Template);
|
||||
// var FormTemplate=(JArray)OuterJson["template"];
|
||||
var FormFields = AyaFormFieldDefinitions.AyaFormFields(formCustom.FormKey);
|
||||
var FormFields = Biz.FormFieldReference.FormFieldReferenceList(formCustom.FormKey);
|
||||
// var ThisFormNormalFieldsList = FormFields.Where(z => z.Custom == false).Select(z => z.Key).ToList();
|
||||
|
||||
foreach (JObject jo in FormTemplate)
|
||||
@@ -30,7 +30,7 @@ namespace AyaNova.Biz
|
||||
// - e.g.: {template:[{fld:"ltkeyfieldname",hide:"true/false",required:"true/false", type:"bool"},{fld:"ltkeyfieldname",hide:"true/false",required:"true/false", type:"text"]}
|
||||
|
||||
//get the FormField object
|
||||
AyaFormFieldDefinition FF = FormFields.Where(z => z.FieldKey == FldLtKey).Single();
|
||||
FormField FF = FormFields.Where(z => z.FieldKey == FldLtKey).Single();
|
||||
|
||||
//don't validate custom fields, just skip them
|
||||
// if (!string.IsNullOrWhiteSpace(FF.PropertyName))//this used to work because there would be no property name but now there is so it doesn't
|
||||
|
||||
Reference in New Issue
Block a user