Example #1
0
 /// <summary>
 /// Gibt Auftraege zurueck, die dem Rechnungstyp entsprechen
 /// </summary>
 /// <param name="type">Rechnungstyp</param>
 /// <param name="groupedOrder">Auftragsgruppe</param>
 /// <returns></returns>
 private IEnumerable<IGrouping<string, VirtualOrder>> getCurrentInvoiceType(InvoiceTypes type, IGrouping<string, VirtualOrder> groupedOrder)
 {
     IEnumerable<IGrouping<string, VirtualOrder>> _invoiceTypeGroup=null;
     if ((type != null) && type.InvoiceTypeName == "Sammelrechnung")
     {
         _invoiceTypeGroup = groupedOrder.GroupBy(q => q.LocationName.ToString());
     }
     if ((type != null) && type.InvoiceTypeName == "Einzelrechnung")
     {
         _invoiceTypeGroup = groupedOrder.GroupBy(q => q.OrderNumber.ToString());
     }
     if ((type != null) && type.InvoiceTypeName == "Wochenrechnung")
     {
         _invoiceTypeGroup = groupedOrder.GroupBy(q => Math.Floor((decimal)q.ExecutionDate.Value.DayOfYear / 7).ToString());
     }
     if ((type != null) && type.InvoiceTypeName == "Monatsrechnung")
     {
         _invoiceTypeGroup = groupedOrder.GroupBy(q => q.ExecutionDate.Value.Month.ToString());
     }
     return _invoiceTypeGroup;
 }
Example #2
0
 partial void UpdateInvoiceTypes(InvoiceTypes instance);
Example #3
0
 partial void DeleteInvoiceTypes(InvoiceTypes instance);
Example #4
0
 partial void InsertInvoiceTypes(InvoiceTypes instance);