Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 partial void DeletePartCharge(PartCharge instance);
Exemplo n.º 3
0
 partial void UpdatePartCharge(PartCharge instance);
Exemplo n.º 4
0
 partial void InsertPartCharge(PartCharge instance);
Exemplo n.º 5
0
	private void detach_PartCharge(PartCharge entity)
	{
		this.SendPropertyChanging();
		entity.Customer = null;
	}
Exemplo n.º 6
0
        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;
        }
Exemplo n.º 7
0
        public static PartCharge Clone(PartCharge part)
        {
            PartCharge newPart = new PartCharge();

            return Clone(part, newPart);
        }