public IKZMessage CreateMessage(IControllerBase controller, IModelBase model) { return new KZMessage { Controller = controller, Model = model }; }
private void OnSelectionChangeAction(IModelBase modelBase) { var readOnlyDCInfo = modelBase.Id != 0; this.textEditName.Properties.ReadOnly = readOnlyDCInfo; this.dateEditDateTimeDOB.Properties.ReadOnly = readOnlyDCInfo; this.textEditAddress.Properties.ReadOnly = readOnlyDCInfo; this.textEditVI.Properties.ReadOnly = readOnlyDCInfo; this.textEditCOM.Properties.ReadOnly = readOnlyDCInfo; this.textEditDIS.Properties.ReadOnly = readOnlyDCInfo; this.textEditPRO.Properties.ReadOnly = readOnlyDCInfo; this.textEditPOB.Properties.ReadOnly = readOnlyDCInfo; this.customGridLookUpEditGender.Properties.ReadOnly = readOnlyDCInfo; this.customGridLookUpEditNAT.Properties.ReadOnly = readOnlyDCInfo; this.customGridLookUpEditCIT.Properties.ReadOnly = readOnlyDCInfo; }
/// <summary> /// 创建ChildrenModel对象 /// </summary> /// <param name="value">模型对象</param> public ChildrenModel(IModelBase value) { model = value; }
public int CompareTo(IModelBase other) { return(Item.CompareTo(other)); }
public bool Equals(IModelBase other) { return(Id.Equals(other.Id)); }
public int CompareTo(IModelBase other) { return(Id.CompareTo(other.Id)); }
public abstract void RemoveFromContent(IModelBase model);
public int CompareTo(IModelBase other) { return 0; }
/// <summary> /// Registers the new model in pool. /// </summary> /// <param name="model">The model.</param> public static void RegisterNewModelInPool(IModelBase model) { modelPool.Add(model); }
public int CompareTo(IModelBase other) { return(0); }
public static bool Update(IDalSession session, IModelBase obj) { return session.InsertOrUpdate(obj); }
public bool Equals(IModelBase other) { return Id.Equals(other.Id); }
public int CompareTo(IModelBase other) { return Id.CompareTo(other.Id); }
public void SetEntity(Direction direction, IModelBase modelBase) { _naighborDictionarys.Add(direction, modelBase); }
/// <summary> /// Constructor. /// </summary> /// <param name="model">Model</param> protected DialogViewModelBase(IModelBase model) : base(model) { this.Title = string.Empty; }
public AgentContext(IgnitionControllerContext controllerContext, ISitecoreContext sitecoreContext, IPage contextPage, IModelBase datasourceItem, object agentParameters = null) : base(controllerContext, sitecoreContext) { DatasourceItem = datasourceItem ?? new NullModel(); AgentParameters = agentParameters; ContextPage = contextPage ?? new NullPage(); }
public bool Equals(IModelBase other) { return(other == null || other.Id == Guid.Empty); }
//public int CompareTo(IModelBase other) //{ // return Item.CompareTo(other); //} public bool Equals(IModelBase other) { return(Item.Equals(other)); }
public static void initializeConnection(IModelBase model) { }
public bool Equals(IModelBase other) { return other == null || other.Id == Guid.Empty; }
/// <summary> /// 创建ParentModel对象 /// </summary> /// <param name="value">模型对象</param> public ParentModel(IModelBase value) { model = value; }