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;
		}