public PurchaseOrderCreateCommand(Account account, ContactInfo shippingInfo, ContactInfo billingInfo, CartItem[] items) 
		{
			this.accountLogin = account.getLogin();
			this.shippingInfo = shippingInfo;
			this.billingInfo = billingInfo;
			this.items = items;	
		}
Пример #2
0
		public static bool checkCreate(long id, Account account, 
			ContactInfo shippingInfo, ContactInfo billingInfo, 
			CartItem[] items, DateTime date) 
		{
			if (account == null) return false;
			if (shippingInfo == null) return false;
			if (billingInfo == null) return false;
			if (items == null) return false;
			return true;
		}
Пример #3
0
		public PurchaseOrder(long id, Account account, 
			ContactInfo shippingInfo, ContactInfo billingInfo, 
			CartItem[] items, DateTime date) 
		{
			this.id = id;
			this.account = account;
			this.shippingInfo = shippingInfo;
			this.billingInfo = billingInfo;
			this.items = items;
			this.date = date;
		}