Пример #1
0
 public SalePaymentItem(SalePaymentHeader header, PaymentInstrument inst, double quantity)
     : this()
 {
     Code = header.SalePaymentItems.Count();
     TerminalCode = header.TerminalCode;
     TerminalToCode = header.TerminalToCode;
     SalePaymentHeaderCode = header.Code;
     PaymentInstrument = inst;
     Quantity = quantity;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the SalePaymentHeaders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSalePaymentHeaders(SalePaymentHeader salePaymentHeader)
 {
     base.AddObject("SalePaymentHeaders", salePaymentHeader);
 }
 /// <summary>
 /// Create a new SalePaymentHeader object.
 /// </summary>
 /// <param name="terminalCode">Initial value of the TerminalCode property.</param>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="terminalToCode">Initial value of the TerminalToCode property.</param>
 /// <param name="totalQuantity">Initial value of the TotalQuantity property.</param>
 public static SalePaymentHeader CreateSalePaymentHeader(global::System.Int32 terminalCode, global::System.Int32 code, global::System.Int32 terminalToCode, global::System.Double totalQuantity)
 {
     SalePaymentHeader salePaymentHeader = new SalePaymentHeader();
     salePaymentHeader.TerminalCode = terminalCode;
     salePaymentHeader.Code = code;
     salePaymentHeader.TerminalToCode = terminalToCode;
     salePaymentHeader.TotalQuantity = totalQuantity;
     return salePaymentHeader;
 }