コード例 #1
0
 public DraftPlanItem(IDraftItem item)
     : base(item)
 {
     // EF ComplexType objects cannot be null
     if (Unit == null)
     {
         Unit = new Unit();
     }
     if (DeliveryDate == null)
     {
         DeliveryDate = new Period();
     }
     if (DeliveryAddress == null)
     {
         DeliveryAddress = new AddressOptional();
     }
     if (DeliveryLocation == null)
     {
         DeliveryLocation = new DeliveryLocation();
     }
     if (Classification == null)
     {
         Classification = new ClassificationCPVOptional();
     }
 }
コード例 #2
0
 public BaseDraftItem(IDraftItem item)
 {
     StringId         = item.StringId;
     Description      = item.Description;
     DescriptionEn    = item.DescriptionEn;
     Quantity         = item.Quantity;
     DeliveryDate     = item.DeliveryDate;
     DeliveryAddress  = item.DeliveryAddress;
     DeliveryLocation = item.DeliveryLocation;
     Unit             = item.Unit;
 }
コード例 #3
0
ファイル: BaseItem.cs プロジェクト: AqueGen/Prozorro
 public BaseItem(IDraftItem item)
     : base(item)
 {
 }
コード例 #4
0
 public ItemDTO(IDraftItem item)
     : base(item)
 {
 }