// // RADataProvider.h // iSales-USAI // // Created by Rui Zhang on 11/11/21. // Copyright © 2021 United Software Applications, Inc. All rights reserved. // #import #import "NetworkUtils.h" #import "RANetwork.h" #import "AESCrypt.h" NS_ASSUME_NONNULL_BEGIN @interface RADataProvider : RANetwork +(void)request_editor:(NSString*) request_url params:(NSMutableDictionary*)params completionHandler:(resultHandler)result; +(void)request_commoneditor_partialrefresh: (NSMutableDictionary*)params url:(NSString*)url completionHandler:(resultHandler)result; +(void)SaveEditor:(NSMutableDictionary*)params completionHandler:(resultHandler)result; +(void)request_autocomplete:(NSMutableDictionary*)param completionHandler:(resultHandler)result; +(NSString*)getSiteName; //+(void)request_scan_cid:(NSMutableDictionary*)param completionHandler:(resultHandler)result; //+(void)request_scan_shipto_company:(NSMutableDictionary*)param completionHandler:(resultHandler)result; +(void)request_sign_up:user email:(NSString*)email password:(NSString*) pwd completionHandler:(resultHandler)result; +(void)request_change_password:(NSString*) pwd completionHandler:(resultHandler)result; //+(void)encrypt_scan_models; #ifdef SCANNER_ORDER +(void)request_scansearch:(long ) offset limit :(long)limit keywords :(NSString*) keywords completionHandler:(resultHandler)result; +(void)request_scan_server:(resultHandler)result; +(void)request_scan_news:(resultHandler)result; +(void) request_scan_stock:(resultHandler)result; +(void)request_scan_stock:(NSMutableDictionary*)param completionHandler:(resultHandler)result; +(void)request_validate_scan_server:(NSString*)url name:(NSString*)name password:(NSString*)password completionHandler:(resultHandler)result; +(bool) scanRtime; +(bool)getSiteHasERP; +(void)load_scan_models; +(NSArray*)request_scan_model_by_names:(NSString*)names; +(NSString*) queryStock:(NSString*)modelname; +(NSString*) queryStockUpdateTime; +(void)default_price_group; +(NSDictionary*)get_price_group:(NSString*) groupname; +(NSMutableDictionary*)all_price_group; +(void) updateTemplate:(UIViewController*) vc; +(void) updateStock:(UIViewController*) vc; #endif @end NS_ASSUME_NONNULL_END