1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
#import <Foundation/Foundation.h>
#include <EOAccess/EOAccess.h>
#include <EOControl/EOControl.h>
@interface TradingData : NSObject
{
EOEditingContext *ec;
EODatabaseDataSource *productGroupDS;
EODatabaseDataSource *productDS;
EODatabaseDataSource *suppliersDS;
EODatabaseDataSource *priceListDS;
EODatabaseDataSource *priceListPosDS;
EODatabaseDataSource *orderDS;
EODatabaseDataSource *orderPosDS;
EODatabaseDataSource *customerDS;
EODatabaseDataSource *customerGroupDS;
}
- (void) saveChanges;
- (void) fillTables;
- (id) addSupplierNamed:(NSString *)name;
- (id) addProductGroup:(NSString *)name;
- (id) addProduct:(NSString*)name price:(NSDecimalNumber *)price
supplier:(id)supplier
group:(id)group;
- (id) addProduct:(id)product
price:(NSDecimalNumber *)price
toPriceList:(id)priceList;
- (id) addPriceList:(NSString *)name
forGroup:(id)group;
- (id) addCustomer:(NSString *)customer;
- (id) addCustomer:(NSString *)customer group:(id)group;
- (id) addCustomerGroup:(NSString *)name;
- (id) customer:(id)customer
order:(id)product;
- (id) customer:(id)customer
order:(id)product
quantity:(int)quantity;
- (id) customer:(id)customer
order:(id)product
quantity:(int)quantity
posNr:(int)posNr;
- (id) createOrderForCustomer:(id)customer;
- (id) order:(id)order
product:(id)product
quantity:(int)quantity;
@end
|