コード例 #1
0
 public MasterDetailPermission(MasterDetailOperationPermissionData logicRule)
     : base(OperationName, logicRule) {
     var modelApplication = ApplicationHelper.Instance.Application.Model;
     ChildListView = (IModelListView) modelApplication.Views[logicRule.ChildListView];
     var modelClass = modelApplication.BOModel.GetClass(((ILogicRule) logicRule).TypeInfo.Type);
     CollectionMember = modelClass.FindMember(logicRule.CollectionMember);
 }
コード例 #2
0
        public MasterDetailPermission(MasterDetailOperationPermissionData logicRule)
            : base(OperationName, logicRule)
        {
            var modelApplication = ApplicationHelper.Instance.Application.Model;

            ChildListView = (IModelListView)modelApplication.Views[logicRule.ChildListView];
            var modelClass = modelApplication.BOModel.GetClass(((ILogicRule)logicRule).TypeInfo.Type);

            CollectionMember = modelClass.FindMember(logicRule.CollectionMember);
        }