This commit is contained in:
2021-02-06 16:34:55 +00:00
parent 88c4567125
commit f5e6661c5f
2 changed files with 53 additions and 0 deletions

View File

@@ -209,6 +209,31 @@ namespace AyaNova.DataList
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, string clientCriteria)
{
//TODO: support this clientcriteria
// if (vm.objectId && vm.objectId != 0 && vm.objectType) {
// //REMOVE COMMENT BLOCK AFTER TESTING
// // //pre-filter
// // vm.metaView = JSON.stringify([
// // {
// // fld: "metareviewobjectid",
// // filter: {
// // items: [{ op: "=", value: vm.objectId }]
// // }
// // },
// // {
// // fld: "AyaType",
// // filter: {
// // items: [{ op: "=", value: vm.objectType }]
// // }
// // }
// // ]);
// // vm.name = await window.$gz.api.fetchBizObjectName(
// // vm.objectType,
// // vm.objectId
// // );
// //OBJECTID,AYATYPE
// vm.clientCriteria = `${vm.objectId},${vm.objectType}`;
// }
List<DataListFilterOption> ret = new List<DataListFilterOption>();
bool HasSupervisorRole =
userRoles.HasFlag(AuthorizationRoles.BizAdminFull)

View File

@@ -177,5 +177,33 @@ namespace AyaNova.DataList
});
}
/*
//TODO: support the clientCriteria
if (vm.objectId && vm.objectId != 0 && vm.objectType) {
// //DYNAMIC FILTER
// vm.metaView = JSON.stringify([
// {
// fld: "metaservicebankobjectid",
// filter: {
// items: [{ op: "=", value: vm.objectId }]
// }
// },
// {
// fld: "AyaType",
// filter: {
// items: [{ op: "=", value: vm.objectType }]
// }
// }
// ]);
// vm.name = await window.$gz.api.fetchBizObjectName(
// vm.objectType,
// vm.objectId
// );
//OBJECTID,AYATYPE
vm.clientCriteria = `${vm.objectId},${vm.objectType}`;
}
*/
}//eoc
}//eons