1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using InABox.Core;
- namespace Comal.Classes
- {
- public abstract class EntityKanban<TEntity, TLink> : Entity, IRemotable, IPersistent, ILicense<TaskManagementLicense>
- where TEntity : Entity
- where TLink : IEntityLink<TEntity>, new()
- {
- [EntityRelationship(DeleteAction.Cascade)]
- public TLink Entity { get; set; }
- [EntityRelationship(DeleteAction.Cascade)]
- public KanbanLink Kanban { get; set; }
- protected override void Init()
- {
- base.Init();
- Kanban = new KanbanLink();
- Entity = new TLink();
- }
- }
- public class RequisitionKanban : EntityKanban<Requisition, RequisitionLink>
- {
- }
- public class SetoutKanban : EntityKanban<Setout, SetoutLink>
- {
- }
- public class DeliveryKanban : EntityKanban<Delivery, DeliveryLink>
- {
- }
- public class PurchaseOrderKanban : EntityKanban<PurchaseOrder, PurchaseOrderLink>
- {
- }
- public class ManufacturingPacketKanban : EntityKanban<ManufacturingPacket, ManufacturingPacketLink>
- {
- }
- public class JobRequisitionKanban : EntityKanban<JobRequisition, JobRequisitionLink>
- {
- }
- }
|