Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/18/13 11:39:31 (12 years ago)
Author:
spimming
Message:

#1888:

  • Users now contain ContactInformation
  • Fixed formatting in invoice template
  • Fixed calculation for next invoice date
  • Worked on indentation for invoice fields
Location:
branches/OaaS/HeuristicLab.Services.Optimization.Billing/DataAccess
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Billing/DataAccess/BillingContext.cs

    r9619 r9641  
    8585      internal UserConfiguration() {
    8686        this.HasMany(u => u.PaymentInformation).WithRequired(pi => pi.User).HasForeignKey(pi => pi.UserId);
     87        this.HasRequired(u => u.ContactInformation).WithMany().HasForeignKey(u => u.ContactInformationId);
    8788      }
    8889    }
     
    9798      protected override void Seed(BillingContext context) {
    9899        Product p1 = new Product() {
    99           Name = "OaaS BAsic Service Charge",
     100          Name = "OaaS Basic Service Charge",
    100101          Description = "Create and run your experiments within HeuristicLab Hive",
    101102          Price = 20.0,
     
    137138          LastName = "Mustermann",
    138139          Email = "max.mustermann@fh-hagenberg.at",
    139           OrganizationName = "University of Applied Sciences Upper Austria School of Informatics/Communications/Media",
     140          OrganizationName = "University of Applied Sciences Upper Austria " + Environment.NewLine + "School of Informatics/Communications/Media",
    140141          Street = "Softwarepark 11",
    141142          PostalCode = "4232",
    142           City = "Hagenberg"
     143          City = "Hagenberg",
    143144        };
    144145
    145146        ci1 = context.ContactInformations.Add(ci1);
     147        u1.ContactInformation = ci1;
     148
     149        ContactInformation ci2 = new ContactInformation() {
     150          FirstName = "Max",
     151          LastName = "Mustermann",
     152          Email = "max.mustermann@fh-hagenberg.at",
     153          OrganizationName = "University of Applied Sciences Upper Austria " + Environment.NewLine + "School of Informatics/Communications/Media",
     154          Street = "Softwarepark 11",
     155          PostalCode = "4232",
     156          City = "Hagenberg",
     157        };
     158
     159        ci2 = context.ContactInformations.Add(ci2);
     160        u2.ContactInformation = ci2;
    146161
    147162        Order o1 = new Order() {
  • branches/OaaS/HeuristicLab.Services.Optimization.Billing/DataAccess/BillingDao.cs

    r9619 r9641  
    109109          .Include(o => o.OrderLines)
    110110          .Include(o => o.User)
     111          .Include(o => o.User.ContactInformation)
    111112          .Include(o => o.Invoices)
    112113          .Include(o => o.OrderLines.Select(ol => ol.Product))
Note: See TracChangeset for help on using the changeset viewer.