using System.ComponentModel.DataAnnotations; using Common.Documents; using Connected.Annotations; using Connected.ServiceModel; namespace Logistics.Documents.Receive; public sealed class InsertReceivePostingDocumentArgs : InsertDocumentArgs { [MinValue(1)] public int Document { get; set; } } public sealed class UpdateReceivePostingDocumentArgs : UpdateDocumentArgs { [MinValue(0)] public int ItemCount { get; set; } [MinValue(0)] public int OpenItemCount { get; set; } } /// /// The arguments used when inserting a new item /// via service. /// public class InsertReceivePostingItemArgs : Dto { /// /// The id of the document. /// Must exists in the storage. /// [MinValue(1)] public int Document { get; set; } [MinValue(1)] public int Location { get; set; } [MinValue(0)] public float Quantity { get; set; } [MinValue(1)] public long? Serial { get; set; } } public class InsertReceivePlannedItemArgs : Dto { [MinValue(1)] public int Document { get; set; } [MinValue(0)] public float Quantity { get; set; } public string Entity { get; set; } public string EntityId { get; set; } } public class UpdateReceivePlannedItemArgs : PrimaryKeyArgs { [MinValue(0)] public float PostedQuantity { get; set; } } public class SelectReceivePlannedItemArgs : Dto { [MinValue(1)] public int Document { get; set; } [Required, MaxLength(128)] public string Entity { get; set; } = default!; [Required, MaxLength(128)] public string EntityId { get; set; } = default!; }