mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-22 10:51:04 +00:00
* Examples: ... here. * Examples/GNUmakefile: Adapt to new location. * Documentation/GDL2Intro/GNUmakefile: Remove subproject. * Documentation/GDL2Intro/GDL2Intro.texi: Update references to new location. * Trading: Move to ... * Examples/Trading: ... here. * Examples/Trading/GNUmakefile: Adapte to new location. * Examples/GNUmakefile: Add Trading. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27918 72102866-910b-0410-8b05-ffd578937521
49 lines
1.3 KiB
Objective-C
49 lines
1.3 KiB
Objective-C
#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
|
|
|
|
|