コード例 #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;
 }
コード例 #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;
 }
コード例 #3
0
 /// <summary>
 /// Constructor, that accepts data from existing Letter Data
 /// </summary>
 /// <param name="letterData">PdfData</param>
 public LetterData(LetterData letterData)
 {
     this.id             = letterData.Id;
     this.builder        = letterData.Builder;
     this.answerDate     = letterData.AnswerDate;
     this.questionDate   = letterData.QuestionDate;
     this.correctionDate = letterData.CorrectionDate;
     this.timeSpan       = letterData.TimeSpan;
     this.materialUrl    = letterData.MaterialUrl;
     this.conditionUrl   = letterData.ConditionUrl;
     this.passWord       = letterData.PassWord;
 }
コード例 #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;
 }