| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | 
							- using System;
 
- using InABox.Core;
 
- namespace Comal.Classes
 
- {
 
-     [Caption("Issued Products")]
 
-     public class EmployeeProduct : Entity, IRemotable, IPersistent, IOneToMany<Employee>, ILicense<ProductManagementLicense>
 
-     {
 
-         [NullEditor]
 
-         public EmployeeLink Employee { get; set; }
 
-         [EditorSequence(1)]
 
-         public ProductLink Product { get; set; }
 
-         [DoubleEditor]
 
-         [EditorSequence(2)]
 
-         public double Quantity { get; set; }
 
-         [TimestampEditor(Visible = Visible.Default)]
 
-         [EditorSequence(3)]
 
-         public DateTime Issued { get; set; }
 
-         [NullEditor]
 
-         [EntityRelationship(DeleteAction.SetNull)]
 
-         public StockMovementLink IssuedMovement { get; set; }
 
-         [TimestampEditor(Visible = Visible.Default)]
 
-         [EditorSequence(4)]
 
-         public DateTime Returned { get; set; }
 
-         [NullEditor]
 
-         [EntityRelationship(DeleteAction.Cascade)]
 
-         public StockMovementLink ReturnedMovement { get; set; }
 
-         [TimestampEditor(Visible = Visible.Default)]
 
-         [EditorSequence(5)]
 
-         public DateTime Disposed { get; set; }
 
-         protected override void Init()
 
-         {
 
-             base.Init();
 
-             Employee = new EmployeeLink();
 
-             Product = new ProductLink(() => this);
 
-             IssuedMovement = new StockMovementLink();
 
-             ReturnedMovement = new StockMovementLink();
 
-             Quantity = 1.0F;
 
-         }
 
-     }
 
- }
 
 
  |