Exemple #1
0
 /// <summary>
 /// Costructor to add a Shipping from Db
 /// </summary>
 /// <param name="id">int</param>
 /// <param name="subEntrepeneur">SubEntrepeneur</param>
 /// <param name="receiver">Receiver</param>
 /// <param name="letterData">PdfData</param>
 /// <param name="commmonIttLetterPdfPath">string</param>
 /// <param name="personalIttLetterPdfPath">string</param>
 public Shipping(int id, SubEntrepeneur subEntrepeneur, Receiver receiver, LetterData letterData, string acceptUrl, string declineUrl, string requestPdfPath, string commmonIttLetterPdfPath, string personalIttLetterPdfPath)
 {
     this.id                       = id;
     this.subEntrepeneur           = subEntrepeneur;
     this.receiver                 = receiver;
     this.letterData               = letterData;
     this.acceptUrl                = acceptUrl;
     this.declineUrl               = declineUrl;
     this.requestPdfPath           = requestPdfPath;
     this.commonIttLetterPdfPath   = commmonIttLetterPdfPath;
     this.personalIttLetterPdfPath = personalIttLetterPdfPath;
 }
Exemple #2
0
 /// <summary>
 /// Constructor, that accepts data from an existing Shipping
 /// </summary>
 /// <param name="shipping">Shipping</param>
 public Shipping(Shipping shipping)
 {
     this.id                       = shipping.Id;
     this.subEntrepeneur           = shipping.SubEntrepeneur;
     this.receiver                 = shipping.Receiver;
     this.letterData               = shipping.LetterData;
     this.acceptUrl                = shipping.AcceptUrl;
     this.declineUrl               = shipping.DeclineUrl;
     this.requestPdfPath           = shipping.RequestPdfPath;
     this.commonIttLetterPdfPath   = shipping.CommonIttLetterPdfPath;
     this.personalIttLetterPdfPath = shipping.PersonalIttLetterPdfPath;
 }
 /// <summary>
 /// Constructor, that accepts data from an existing SubEntrepeneur
 /// </summary>
 /// <param name="subEntrepeneur">SubEntrepeneur</param>
 public SubEntrepeneur(SubEntrepeneur subEntrepeneur)
 {
     this.id                 = subEntrepeneur.Id;
     this.entrepeneur        = subEntrepeneur.Entrepeneur;
     this.enterprise         = subEntrepeneur.Enterprise;
     this.contact            = subEntrepeneur.Contact;
     this.request            = subEntrepeneur.Request;
     this.ittLetter          = subEntrepeneur.IttLetter;
     this.offer              = subEntrepeneur.Offer;
     this.reservations       = subEntrepeneur.Reservations;
     this.uphold             = subEntrepeneur.Uphold;
     this.agreementConcluded = subEntrepeneur.AgreementConcluded;
     this.active             = subEntrepeneur.Active;
 }
Exemple #4
0
 /// <summary>
 /// Costructor to add a new Shipping
 /// </summary>
 /// <param name="subEntrepeneur">SubEntrepeneur</param>
 /// <param name="receiver">Receiver</param>
 /// <param name="letterData">PdfData</param>
 /// <param name="requestPdfPath">string</param>
 /// <param name="commmonIttLetterPdfPath">string</param>
 /// <param name="personalIttLetterPdfPath">string</param>
 /// <param name="acceptUrl">string</param>
 /// <param name="declineUrl">string</param>
 public Shipping(SubEntrepeneur subEntrepeneur, Receiver receiver, LetterData letterData, string requestPdfPath, string commmonIttLetterPdfPath, string personalIttLetterPdfPath, string acceptUrl = "", string declineUrl = "")
 {
     this.subEntrepeneur = subEntrepeneur;
     this.receiver       = receiver;
     this.letterData     = letterData;
     if (acceptUrl == "" && declineUrl == "" && receiver.Email.Length >= 1)
     {
         SetAcceptDeclineUrls();
     }
     else if (acceptUrl != "" && declineUrl != "")
     {
         this.acceptUrl  = acceptUrl;
         this.declineUrl = declineUrl;
     }
     this.requestPdfPath           = requestPdfPath;
     this.commonIttLetterPdfPath   = commmonIttLetterPdfPath;
     this.personalIttLetterPdfPath = personalIttLetterPdfPath;
 }
Exemple #5
0
 /// <summary>
 /// Constructor, that creates a new Shipping with a SubEntrepeneur and empty fields
 /// </summary>
 /// <param name="subEntrepeneur">SubEntrepeneur</param>
 public Shipping(SubEntrepeneur subEntrepeneur)
 {
     this.subEntrepeneur = subEntrepeneur;
 }
 /// <summary>
 /// Constructor to add a new Indexed SubEntrepeneur
 /// </summary>
 /// <param name="index">int</param>
 /// <param name="subEntrepeneur">SubEntrepeneur</param>
 public IndexedSubEntrepeneur(int index, SubEntrepeneur subEntrepeneur) : base(subEntrepeneur)
 {
     this.index = index;
 }