case 4025 replaced partnumber with partname and changed partname to partdescription
This commit is contained in:
@@ -16,7 +16,7 @@ namespace AyaNova.Models
|
||||
[Required, MaxLength(255)]
|
||||
public string ListKey { get; set; }//max 255 characters ascii set
|
||||
|
||||
public string Columns { get; set; }//JSON serialized Column array: columns:["PartInventoryTransactionEntryDate","PartPartNumber","PartWarehouseName","PartInventoryTransactionQuantity","PartInventoryTransactionDescription","PartInventoryTransactionSource","PartInventoryBalance"]
|
||||
public string Columns { get; set; }//JSON serialized Column array: columns:["PartInventoryTransactionEntryDate","PartName","PartWarehouseName","PartInventoryTransactionQuantity","PartInventoryTransactionDescription","PartInventoryTransactionSource","PartInventoryBalance"]
|
||||
public string Sort { get; set; }//JSON serialized SortBy Dictionary: sortBy:[{"PartInventoryTransactionEntryDate":"-"}],//All sorted columns here as keyvalue pairs value is a string of "+" for ascending "-" for descending and are IN ORDER of how to be sorted
|
||||
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@ namespace AyaNova.Models
|
||||
}
|
||||
|
||||
/*
|
||||
columns:["PartInventoryTransactionEntryDate","PartPartNumber","PartWarehouseName","PartInventoryTransactionQuantity","PartInventoryTransactionDescription","PartInventoryTransactionSource","PartInventoryBalance"]
|
||||
columns:["PartInventoryTransactionEntryDate","PartName","PartWarehouseName","PartInventoryTransactionQuantity","PartInventoryTransactionDescription","PartInventoryTransactionSource","PartInventoryBalance"]
|
||||
sortBy:[{"PartInventoryTransactionEntryDate":"-"}],//All sorted columns here as keyvalue pairs value is a string of "+" for ascending "-" for descending and are IN ORDER of how to be sorted
|
||||
filter:[{column:"PartPartNumber",any:true/false,items:[{op: "=",value: "400735"}]}],
|
||||
filter:[{column:"PartName",any:true/false,items:[{op: "=",value: "400735"}]}],
|
||||
clientCriteria:"2" //could be anything here that makes sense to the list, in this case an example customer id for customernotedatalist
|
||||
|
||||
columns are represented in a higher level object DataListTableOptions
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace AyaNova.Models
|
||||
[Required]
|
||||
public long PartId { get; set; }
|
||||
[NotMapped]
|
||||
public string PartViz { get; set; }
|
||||
public string PartDescriptionViz { get; set; }
|
||||
[NotMapped]
|
||||
public string PartNameViz { get; set; }
|
||||
[NotMapped]
|
||||
|
||||
@@ -9,22 +9,23 @@ namespace AyaNova.Models
|
||||
{
|
||||
//NOTE: Any non required field (nullable in DB) sb nullable here, i.e. decimal? not decimal,
|
||||
//otherwise the server will call it an invalid record if the field isn't sent from client
|
||||
//about to make major changes commit trigger here
|
||||
//about to make major changes commit trigger here
|
||||
public class Part : ICoreBizObjectModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
[Required]
|
||||
public string Name { get; set; }//was partnumber in v7
|
||||
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
public bool Active { get; set; }
|
||||
public string Description { get; set; }//was "name" in v7
|
||||
public string Notes { get; set; }
|
||||
public string Wiki { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
[Required]
|
||||
public string PartNumber { get; set; }
|
||||
|
||||
public long? ManufacturerId { get; set; }
|
||||
[NotMapped]
|
||||
public string ManufacturerViz { get; set; }
|
||||
|
||||
@@ -37,11 +37,12 @@ namespace AyaNova.Models
|
||||
|
||||
|
||||
//server populated fields not db fields
|
||||
[NotMapped]
|
||||
public string PartViz { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string PartNameViz { get; set; }
|
||||
[NotMapped]
|
||||
public string PartDescriptionViz { get; set; }
|
||||
[NotMapped]
|
||||
public string PartManufacturerNumberViz { get; set; }
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace AyaNova.Models
|
||||
[Required]
|
||||
public long PartId { get; set; }
|
||||
[NotMapped]
|
||||
public string PartViz { get; set; }
|
||||
public string PartDescriptionViz { get; set; }
|
||||
[NotMapped]
|
||||
public string PartNameViz { get; set; }
|
||||
[NotMapped]
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace AyaNova.Models
|
||||
public class ViewPartInventoryList
|
||||
{
|
||||
public long PartId { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
public string PartDescription { get; set; }
|
||||
public string PartName { get; set; }
|
||||
public bool PartActive { get; set; }
|
||||
public decimal PartCost { get; set; }
|
||||
@@ -32,12 +32,3 @@ namespace AyaNova.Models
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
|
||||
/*
|
||||
vpartinventorylist AS select apart.id as partid, apart.partnumber, apart.name as partname, apart.active as partactive, apart.cost as partcost, apart.retail as partretail,"
|
||||
+"apartwarehouse.id as partwarehouseid, apartwarehouse.name as partwarehousename, awholesaler.name as wholesalername, awholesaler.id as wholesalerid, "
|
||||
+"aaltwholesaler.id as altwholesalerid, aaltwholesaler.name as altwholesalername, vpartinventorynow.balance as onhandqty,vpartsonorder.quantityonorder as onorderqty, "
|
||||
+"vpartsonordercommitted.quantityonordercommitted as onordercommittedqty,apartstocklevel.minimumquantity as restockminqty, "
|
||||
+"GREATEST( COALESCE(apartstocklevel.minimumquantity, 0) - (COALESCE(vpartinventorynow.balance, 0) + COALESCE(vpartsonorder.quantityonorder, 0) - COALESCE(vpartsonordercommitted.quantityonordercommitted, 0)) ,0) AS reorderqty,"
|
||||
+"vpartinventorynow.id as partinventoryid, vpartinventorynow.description as partinventorydescription "
|
||||
*/
|
||||
@@ -17,7 +17,7 @@ namespace AyaNova.Models
|
||||
public long? WoStatusId { get; set; }
|
||||
public string StatusColor { get; set; }
|
||||
public string StatusName { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
public string PartDescription { get; set; }
|
||||
public string PartName { get; set; }
|
||||
public string PartWarehouseName { get; set; }
|
||||
public long? WholesalerId { get; set; }
|
||||
|
||||
@@ -7,7 +7,8 @@ namespace AyaNova.Models
|
||||
{
|
||||
public long PartId { get; set; }
|
||||
public long PartWarehouseId { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
public string PartName { get; set; }
|
||||
public string PartDescription { get; set; }
|
||||
public string DisplayWarehouse { get; set; }
|
||||
public long ManufacturerId { get; set; }
|
||||
public string DisplayManufacturer { get; set; }
|
||||
@@ -24,11 +25,3 @@ namespace AyaNova.Models
|
||||
|
||||
}//eons
|
||||
|
||||
/*
|
||||
SELECT apart.id AS partid, apartwarehouse.id AS partwarehouseid, apart.partnumber, apartwarehouse.name AS displaywarehouse, "
|
||||
+ "amanufacturer.id AS manufacturerid, 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(vpartsonorderuncommitted.quantityonorder,0) AS onorderquantity, "
|
||||
+ "apartstocklevel.minimumquantity - (COALESCE(vpartinventorynow.balance, 0) + COALESCE(vpartsonorderuncommitted.quantityonorder, 0)) AS requiredquantity "
|
||||
|
||||
*/
|
||||
@@ -10,7 +10,7 @@ namespace AyaNova.Models
|
||||
public long? PartWarehouseId { get; set; }
|
||||
public decimal Quantity { get; set; }
|
||||
public long Serial { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
public string PartDescription { get; set; }
|
||||
public string PartName { get; set; }
|
||||
public string PartWarehouseName { get; set; }
|
||||
public long? WholesalerId { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user