public Charge(PartCharge part) { this.Key = part.PartChargeKey; this.Type = ChargeType.Part; this.IsTaxable = part.IsTaxable; this.Printed = part.Printed; this.Include = part.Printed == null; this.Date = null; this.Description = part.Code + " x " + part.Quantity + " - " + part.Description; this.Total = part.Price * part.Quantity; }
partial void DeletePartCharge(PartCharge instance);
partial void UpdatePartCharge(PartCharge instance);
partial void InsertPartCharge(PartCharge instance);
private void detach_PartCharge(PartCharge entity) { this.SendPropertyChanging(); entity.Customer = null; }
public static PartCharge Clone(PartCharge oldPart, PartCharge newPart) { newPart.PartChargeKey = oldPart.PartChargeKey; newPart.CustomerID = oldPart.CustomerID; newPart.Code = oldPart.Code; newPart.Description = oldPart.Description; newPart.Quantity = oldPart.Quantity; newPart.Price = oldPart.Price; newPart.IsTaxable = oldPart.IsTaxable; newPart.Printed = oldPart.Printed; return newPart; }
public static PartCharge Clone(PartCharge part) { PartCharge newPart = new PartCharge(); return Clone(part, newPart); }