12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using InABox.Core;
- namespace Comal.Classes
- {
- public interface IKit : IEntity
- {
- string Code { get; set; }
- string Description { get; set; }
- }
- [UserTracking(typeof(Quote))]
- public class Kit : Entity, IKit, IRemotable, IPersistent, IIssues, ILicense<QuotesManagementLicense>
- {
- //public KitGroupLink Group { get; set; }
- [EditorSequence(3)]
- public CostSheetSectionLink Section { get; set; }
- [EditorSequence(4)]
- public bool Active { get; set; }
- [NullEditor]
- public string Issues { get; set; }
- [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
- [EditorSequence(1)]
- public string Code { get; set; }
- [TextBoxEditor]
- [EditorSequence(2)]
- public string Description { get; set; }
- protected override void Init()
- {
- base.Init();
- //Group = new KitGroupLink();
- Section = new CostSheetSectionLink();
- Active = true;
- }
- public override string ToString()
- {
- return string.Format("{0}: {1}", Code, Description);
- }
- }
- }
|