RADataProvider.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  21. +(void)request_autocomplete:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  22. //+(void)request_scan_cid:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  23. //+(void)request_scan_shipto_company:(NSMutableDictionary*)param completionHandler:(resultHandler)result;
  24. +(void)request_sign_up:user email:(NSString*)email password:(NSString*) pwd completionHandler:(resultHandler)result;
  25. +(void)request_validate_scan_server:(NSString*)url name:(NSString*)name password:(NSString*)password completionHandler:(resultHandler)result;
  26. +(NSString*)getSiteName;
  27. +(bool)getSiteHasERP;
  28. +(void)request_change_password:(NSString*) pwd completionHandler:(resultHandler)result;
  29. +(void)load_scan_models;
  30. +(NSArray*)request_scan_model_by_names:(NSString*)names;
  31. +(void) updateTemplate:(UIViewController*) vc;
  32. //+(void)encrypt_scan_models;
  33. +(bool) scanRtime:(NSString* )rtime;
  34. +(void)default_price_group;
  35. +(NSDictionary*)get_price_group:(NSString*) groupname;
  36. +(NSMutableDictionary*)all_price_group;
  37. @end
  38. NS_ASSUME_NONNULL_END