protected LogicAttribute(string id,Nesting targetViewNesting, ViewType viewType,string viewId) { ViewId = viewId; ID=id; ViewType = viewType; Nesting = targetViewNesting; }
public ActionStateRuleAttribute(string id, string actionId, Nesting targetViewNesting, string normalCriteria, string emptyCriteria, ViewType viewType, string module, ActionState actionState, string viewId) : base(id, targetViewNesting, normalCriteria, emptyCriteria, viewType, module, viewId) { this.actionId = actionId; ActionState = actionState; }
public ControllerStateRuleAttribute(string id, Type controllerType, Nesting targetViewNesting, string normalCriteria, string emptyCriteria, ViewType viewType, string module, State state, string viewId) : base(id, targetViewNesting, normalCriteria, emptyCriteria, viewType, module, state, viewId) { this.controllerType = controllerType; }
protected StateRuleAttribute(string id,Nesting targetViewNesting, string normalCriteria, string emptyCriteria, ViewType viewType,State state,string viewId) { this.state=state; ViewId = viewId; ID=id; ViewType = viewType; Nesting = targetViewNesting; NormalCriteria = normalCriteria; EmptyCriteria = emptyCriteria; }
public NotAllowObjectInstanciationRuleAttribute(string id, Nesting targetViewNesting, string normalCriteria, string emptyCriteria, ViewType viewType, State state, string viewId) : base( id, typeof(NewObjectViewController), targetViewNesting, normalCriteria, emptyCriteria, viewType, "", state, viewId) { }
public SupressDetailViewRuleAttribute(string id, Nesting targetViewNesting, string normalCriteria, string emptyCriteria, ViewType viewType, string module, State state, string viewId) : base(id, typeof(ListViewProcessCurrentObjectController), targetViewNesting, normalCriteria, emptyCriteria, viewType, module, state, viewId) { }
protected ArtifactRuleAttribute(string id, Nesting targetViewNesting, string normalCriteria, string emptyCriteria, ViewType viewType, string module, string viewId) : base(id, targetViewNesting, normalCriteria, emptyCriteria, viewType, viewId) { Module = module; }
public StateRuleAttribute(string id, Nesting targetViewNesting, string normalCriteria, string emptyCriteria, ViewType viewType, State state, string viewId) : base(id, targetViewNesting, normalCriteria, emptyCriteria, viewType, viewId) { _state = state; }
public bool IsViewTargeted(ViewType targetViewType, Nesting targetViewNesting, string viewID) { return (ViewType == targetViewType || ViewType == ViewType.Any) && (Nesting == targetViewNesting || Nesting == Nesting.Any) && (ViewId == viewID || string.IsNullOrEmpty(ViewId)); }
internal static IObservable <TFrame> WhenFits <TFrame>(this IObservable <TFrame> source, ViewType viewType, Type objectType = null, Nesting nesting = Nesting.Any, bool?isPopupLookup = null) where TFrame : Frame { return(source.SelectMany(_ => _.View != null ? _.AsObservable() : _.WhenViewChanged().Select(tuple => _)) .Where(frame => frame.View.Fits(viewType, nesting, objectType)) .Where(_ => { if (isPopupLookup.HasValue) { var ispopupLookupTemplate = _.Template is ILookupPopupFrameTemplate; return isPopupLookup.Value ? ispopupLookupTemplate : !ispopupLookupTemplate; } return true; })); }
private static bool FitsCore(View view, Nesting nesting) { return(nesting == Nesting.Nested ? !view.IsRoot : nesting != Nesting.Root || view.IsRoot); }
internal static bool Fits(this View view, ViewType viewType = ViewType.Any, Nesting nesting = Nesting.Any, Type objectType = null) { objectType = objectType ?? typeof(object); return(FitsCore(view, viewType) && FitsCore(view, nesting) && objectType.IsAssignableFrom(view.ObjectTypeInfo.Type)); }
protected ConditionalLogicRuleAttribute(string id, Nesting targetViewNesting, string normalCriteria, string emptyCriteria, ViewType viewType, string viewId) : base(id, targetViewNesting, viewType, viewId) { NormalCriteria = normalCriteria; EmptyCriteria = emptyCriteria; }