case 4025 replaced partnumber with partname and changed partname to partdescription
This commit is contained in:
@@ -62,7 +62,7 @@ namespace AyaNova.DataList
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.PMItemPart,
|
||||
SqlIdColumnName = "apmitempart.id",
|
||||
SqlValueColumnName = "apart.partnumber",
|
||||
SqlValueColumnName = "apart.name",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
|
||||
@@ -10,27 +10,27 @@ namespace AyaNova.DataList
|
||||
SQLFrom = "from viewpartsdatalist ";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PartPartNumber", "PartName", "PartManufacturerID", "PartWholesalerID", "Tags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" } };
|
||||
DefaultColumns = new List<string>() { "PartName", "PartManufacturerID", "PartWholesalerID", "Tags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartName", "+" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "id",
|
||||
SqlValueColumnName = "partnumber",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartName",
|
||||
FieldKey = "PartName",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlValueColumnName = "name"
|
||||
SqlIdColumnName = "id",
|
||||
SqlValueColumnName = "name",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartDescription",
|
||||
FieldKey = "PartDescription",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlValueColumnName = "description"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
|
||||
@@ -16,20 +16,10 @@ namespace AyaNova.DataList
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PartPartNumber", "PartWarehouseName", "PartInventoryBalance", "PartByWarehouseInventoryMinStockLevel", "PartByWarehouseInventoryReorderQuantity", "PartByWarehouseInventoryQuantityOnOrder", "PartByWarehouseInventoryQtyOnOrderCommitted", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" }, { "PartWarehouseName", "+" } };
|
||||
DefaultColumns = new List<string>() { "PartName", "PartWarehouseName", "PartInventoryBalance", "PartByWarehouseInventoryMinStockLevel", "PartByWarehouseInventoryReorderQuantity", "PartByWarehouseInventoryQuantityOnOrder", "PartByWarehouseInventoryQtyOnOrderCommitted", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartName", "+" }, { "PartWarehouseName", "+" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartName",
|
||||
@@ -40,6 +30,16 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "partname"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartDescription",
|
||||
FieldKey = "PartDescription",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partdescription"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
@@ -162,10 +162,10 @@ namespace AyaNova.DataList
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
|
||||
FieldKey = "metapartnumber",
|
||||
FieldKey = "metapartname",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partnumber",
|
||||
SqlValueColumnName = "partname",
|
||||
IsMeta = true
|
||||
|
||||
});
|
||||
@@ -194,7 +194,7 @@ namespace AyaNova.DataList
|
||||
//Part criteria
|
||||
if (crit[0] != "0")
|
||||
{
|
||||
DataListFilterOption FilterOption = new DataListFilterOption() { Column = "metapartnumber" };
|
||||
DataListFilterOption FilterOption = new DataListFilterOption() { Column = "metapartname" };
|
||||
FilterOption.Items.Add(new DataListColumnFilter() { value = crit[0], op = DataListFilterComparisonOperator.Equality });
|
||||
ret.Add(FilterOption);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace AyaNova.DataList
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"PartPartNumber",
|
||||
"PartName",
|
||||
"WorkOrderSerialNumber",
|
||||
"Customer",
|
||||
"WorkOrderItemPartRequestQuantity",
|
||||
@@ -44,7 +44,7 @@ namespace AyaNova.DataList
|
||||
"WorkOrderItemPartRequestReceived"
|
||||
|
||||
};
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" }, { "WorkOrderSerialNumber", "-" } };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartName", "+" }, { "WorkOrderSerialNumber", "-" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
|
||||
@@ -59,16 +59,6 @@ namespace AyaNova.DataList
|
||||
|
||||
#region WorkOrderItemPartRequest fields
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.Part,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartName",
|
||||
@@ -79,6 +69,16 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartDescription",
|
||||
FieldKey = "PartDescription",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.Part,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.description"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WorkOrderItemPartRequestPartWarehouseID",
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace AyaNova.DataList
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"PartInventoryTransactionEntryDate", "PartPartNumber", "PartWarehouseName", "PartInventoryTransactionQuantity",
|
||||
"PartInventoryTransactionEntryDate", "PartName", "PartWarehouseName", "PartInventoryTransactionQuantity",
|
||||
"PartInventoryTransactionDescription", "PartInventoryTransactionSource", "PartInventoryBalance"
|
||||
};
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartInventoryTransactionEntryDate", "-" } };
|
||||
@@ -35,12 +35,12 @@ namespace AyaNova.DataList
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
TKey = "PartName",
|
||||
FieldKey = "PartName",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber"
|
||||
SqlValueColumnName = "apart.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -92,10 +92,10 @@ namespace AyaNova.DataList
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
|
||||
FieldKey = "metapartnumber",
|
||||
FieldKey = "metapartname",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber",
|
||||
SqlValueColumnName = "apart.name",
|
||||
IsMeta = true
|
||||
|
||||
});
|
||||
@@ -124,7 +124,7 @@ namespace AyaNova.DataList
|
||||
//Part criteria
|
||||
if (crit[0] != "0")
|
||||
{
|
||||
DataListFilterOption FilterOption = new DataListFilterOption() { Column = "metapartnumber" };
|
||||
DataListFilterOption FilterOption = new DataListFilterOption() { Column = "metapartname" };
|
||||
FilterOption.Items.Add(new DataListColumnFilter() { value = crit[0], op = DataListFilterComparisonOperator.Equality });
|
||||
ret.Add(FilterOption);
|
||||
}
|
||||
|
||||
@@ -7,33 +7,37 @@ namespace AyaNova.DataList
|
||||
//NOTE: this object has NO rowid as it's a synthetic list not primarily based on any particular db table
|
||||
public PartRestockDataList(long translationId)
|
||||
{
|
||||
|
||||
// SELECT apart.id AS partid, apartwarehouse.id AS partwarehouseid, apart.partnumber, apartwarehouse.name AS displaywarehouse, "
|
||||
// + "amanufacturer.id AS manufactureid, amanufacturer.name AS displaymanufacturer, awholesaler.id AS wholesalerid, awholesaler.name AS displaywholesaler, "
|
||||
// + "aalternativewholesaler.id AS alternativewholesalerid, aalternativewholesaler.name AS displayalternativewholesaler,"
|
||||
// + "apartstocklevel.minimumquantity, vpartinventorynow.balance, COALESCE(vpartsonorder.quantityonorder,0) AS onorderquantity, "
|
||||
// + "apartstocklevel.minimumquantity - (COALESCE(vpartinventorynow.balance, 0) + COALESCE(vpartsonorder.quantityonorder, 0)) AS requiredquantity "
|
||||
|
||||
|
||||
DefaultListAType = AyaType.PartInventoryRestock;
|
||||
SQLFrom = "FROM vrestockrequired";
|
||||
SQLFrom = "FROM viewrestockrequired";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"PartPartNumber", "PartWarehouseName", "PartWholesalerID","PartAlternativeWholesalerID","PartManufacturerID", "PartByWarehouseInventoryMinStockLevel",
|
||||
"PartName", "PartWarehouseName", "PartWholesalerID","PartAlternativeWholesalerID","PartManufacturerID", "PartByWarehouseInventoryMinStockLevel",
|
||||
"PartInventoryBalance", "PartByWarehouseInventoryQuantityOnOrder",
|
||||
"PartByWarehouseInventoryReorderQuantity" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" }, { "PartWarehouseName", "+" } };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartName", "+" }, { "PartWarehouseName", "+" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
TKey = "PartName",
|
||||
FieldKey = "PartName",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partnumber"
|
||||
SqlValueColumnName = "partname"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartDescription",
|
||||
FieldKey = "PartDescription",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partdescription"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace AyaNova.DataList
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.QuoteItemPart,
|
||||
SqlIdColumnName = "aquoteitempart.id",
|
||||
SqlValueColumnName = "apart.partnumber",
|
||||
SqlValueColumnName = "apart.name",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace AyaNova.DataList
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.WorkOrderItemPart,
|
||||
SqlIdColumnName = "aworkorderitempart.id",
|
||||
SqlValueColumnName = "apart.partnumber",
|
||||
SqlValueColumnName = "apart.name",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace AyaNova.DataList
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.WorkOrderItemPartRequest,
|
||||
SqlIdColumnName = "aworkorderitempartrequest.id",
|
||||
SqlValueColumnName = "apart.partnumber",
|
||||
SqlValueColumnName = "apart.name",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user