This commit is contained in:
@@ -209,6 +209,31 @@ namespace AyaNova.DataList
|
|||||||
|
|
||||||
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, string clientCriteria)
|
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>();
|
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||||
bool HasSupervisorRole =
|
bool HasSupervisorRole =
|
||||||
userRoles.HasFlag(AuthorizationRoles.BizAdminFull)
|
userRoles.HasFlag(AuthorizationRoles.BizAdminFull)
|
||||||
|
|||||||
@@ -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
|
}//eoc
|
||||||
}//eons
|
}//eons
|
||||||
Reference in New Issue
Block a user