LISTS WORKING cleanup afterwords
This commit is contained in:
@@ -9,57 +9,17 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public PartInventoryTransactionsDataList()
|
||||
{
|
||||
|
||||
DefaultListObjectType = AyaType.PartInventory;
|
||||
SQLFrom = "from apartinventory "
|
||||
+ "left join apart on (apartinventory.partid=apart.id) "
|
||||
+ "left join apartwarehouse on (apartinventory.partwarehouseid=apartwarehouse.id) ";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
|
||||
// //######## DEFAULT VIEW WHEN NO VIEW CHOSEN ############
|
||||
// //Default ListView - show all transactions in order
|
||||
// dynamic dlistView = new JArray();
|
||||
// dynamic cm = null;
|
||||
// cm = new JObject();
|
||||
|
||||
// cm.fld = "PartInventoryTransactionEntryDate";
|
||||
// cm.sort = "-";
|
||||
// dlistView.Add(cm);
|
||||
|
||||
// cm = new JObject();
|
||||
// cm.fld = "PartPartNumber";
|
||||
// dlistView.Add(cm);
|
||||
|
||||
// cm = new JObject();
|
||||
// cm.fld = "PartWarehouseName";
|
||||
// dlistView.Add(cm);
|
||||
|
||||
// cm = new JObject();
|
||||
// cm.fld = "PartInventoryTransactionQuantity";
|
||||
// dlistView.Add(cm);
|
||||
|
||||
// cm = new JObject();
|
||||
// cm.fld = "PartInventoryTransactionDescription";
|
||||
// dlistView.Add(cm);
|
||||
|
||||
// cm = new JObject();
|
||||
// cm.fld = "PartInventoryTransactionSource";
|
||||
// dlistView.Add(cm);
|
||||
|
||||
// cm = new JObject();
|
||||
// cm.fld = "PartInventoryBalance";
|
||||
// dlistView.Add(cm);
|
||||
|
||||
// DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
|
||||
|
||||
DefaultColumns = new List<string>() {
|
||||
"PartInventoryTransactionEntryDate", "PartPartNumber", "PartWarehouseName", "PartInventoryTransactionQuantity",
|
||||
"PartInventoryTransactionDescription", "PartInventoryTransactionSource", "PartInventoryBalance"
|
||||
};
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartInventoryTransactionEntryDate", "-" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -147,10 +107,9 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apartwarehouse.name",
|
||||
IsMeta = true
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, string clientCriteria)
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
|
||||
Reference in New Issue
Block a user