This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user