RADataProvider.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // RADataProvider.h
  3. // iSales-USAI
  4. //
  5. // Created by Rui Zhang on 11/11/21.
  6. // Copyright © 2021 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "NetworkUtils.h"
  10. #import "RANetwork.h"
  11. #import "AESCrypt.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface RADataProvider : RANetwork
  14. +(void)request_editor:(NSString*) request_url params:(NSMutableDictionary*)params completionHandler:(resultHandler)result;
  15. +(void)request_commoneditor_partialrefresh: (NSMutableDictionary*)params url:(NSString*)url completionHandler:(resultHandler)result;
  16. +(void)SaveEditor:(NSMutableDictionary*)params completionHandler:(resultHandler)result;
  17. +(void)request_scansearch:(long ) offset limit :(long)limit keywords :(NSString*) keywords completionHandler:(resultHandler)result;
  18. +(void)request_scan_server:(resultHandler)result;
  19. +(void)request_scan_news:(resultHandler)result;
  20. +(void) request_scan_stock:(resultHandler)result;
  21. +(void)request_scan_stock:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  22. +(void)request_autocomplete:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  23. //+(void)request_scan_cid:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  24. //+(void)request_scan_shipto_company:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  25. +(void)request_sign_up:user email:(NSString*)email password:(NSString*) pwd completionHandler:(resultHandler)result;
  26. +(void)request_validate_scan_server:(NSString*)url name:(NSString*)name password:(NSString*)password completionHandler:(resultHandler)result;
  27. +(NSString*)getSiteName;
  28. +(bool)getSiteHasERP;
  29. +(void)request_change_password:(NSString*) pwd completionHandler:(resultHandler)result;
  30. +(void)load_scan_models;
  31. +(NSArray*)request_scan_model_by_names:(NSString*)names;
  32. +(void) updateTemplate:(UIViewController*) vc;
  33. +(void) updateStock:(UIViewController*) vc;
  34. //+(void)encrypt_scan_models;
  35. +(bool) scanRtime;
  36. +(NSString*) queryStock:(NSString*)modelname;
  37. +(NSString*) queryStockUpdateTime;
  38. +(void)default_price_group;
  39. +(NSDictionary*)get_price_group:(NSString*) groupname;
  40. +(NSMutableDictionary*)all_price_group;
  41. @end
  42. NS_ASSUME_NONNULL_END