コード例 #1
0
 private void CopyContentFrom(Invoice sourceObject)
 {
     ReferenceToInformation = sourceObject.ReferenceToInformation;
             InvoiceName = sourceObject.InvoiceName;
             InvoiceID = sourceObject.InvoiceID;
             InvoicedAmount = sourceObject.InvoicedAmount;
             CreateDate = sourceObject.CreateDate;
             DueDate = sourceObject.DueDate;
             PaidAmount = sourceObject.PaidAmount;
             FeesAndInterestAmount = sourceObject.FeesAndInterestAmount;
             UnpaidAmount = sourceObject.UnpaidAmount;
             InvoiceDetails = sourceObject.InvoiceDetails;
             InvoiceUsers = sourceObject.InvoiceUsers;
 }
コード例 #2
0
        public static Invoice CreateDemoDefault()
        {
            Invoice customDemo = null;
                    Invoice.CreateCustomDemo(ref customDemo);
                    if(customDemo != null)
                        return customDemo;
                    var result = new Invoice();
                    result.ReferenceToInformation = ReferenceToInformation.CreateDemoDefault();
                    result.InvoiceName = @"Invoice.InvoiceName";

                    result.InvoiceID = @"Invoice.InvoiceID";

                    result.InvoicedAmount = @"Invoice.InvoicedAmount";

                    result.PaidAmount = @"Invoice.PaidAmount";

                    result.FeesAndInterestAmount = @"Invoice.FeesAndInterestAmount";

                    result.UnpaidAmount = @"Invoice.UnpaidAmount";

                    result.InvoiceDetails = InvoiceDetails.CreateDemoDefault();
                    result.InvoiceUsers = InvoiceUserCollection.CreateDemoDefault();

                    return result;
        }
コード例 #3
0
partial         static void CreateCustomDemo(ref Invoice customDemoObject);
コード例 #4
0
 public static Invoice CreateDefault()
 {
     var result = new Invoice();
             result.ReferenceToInformation = ReferenceToInformation.CreateDefault();
             result.InvoiceDetails = InvoiceDetails.CreateDefault();
             result.InvoiceUsers = InvoiceUserCollection.CreateDefault();
             return result;
 }