AppDelegate.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. //
  2. // AppDelegate.h
  3. // RedAnt ERP Suite
  4. //
  5. // Created by Ray on 14-5-19.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "iSalesDB.h"
  10. #import "ScanApiHelper.h"
  11. //#import "MainViewController.h"
  12. #import "ActiveViewController.h"
  13. @interface AppDelegate : UIResponder <UIApplicationDelegate,ScanApiHelperDelegate>
  14. @property (strong, nonatomic) UIWindow *window;
  15. @property (strong,nonatomic) NSString* user;
  16. @property (strong,nonatomic) NSString * password;
  17. @property (strong,nonatomic) NSString * user_icon;
  18. //@property (strong,nonatomic) NSString * sessionid;
  19. @property (strong,nonatomic) NSString * duid;
  20. @property bool bLogin;
  21. @property bool bEnable_Cache;
  22. @property long user_type;
  23. @property (strong , nonatomic) NSString* contact_id;
  24. @property (strong , nonatomic) NSString* order_customer_id;
  25. //@property (strong , nonatomic) NSString* contact_name;
  26. @property (strong,nonatomic)NSDictionary* categoryMenu;
  27. @property (strong,nonatomic)UIViewController* active_controller;
  28. @property (strong,nonatomic)NSMutableDictionary* customerInfo;
  29. @property (strong,nonatomic) NSString* order_code;
  30. //@property (strong,nonatomic) NSString* so;
  31. @property (strong,nonatomic) UIViewController* main_vc;
  32. @property (strong,nonatomic) NSString* build;
  33. -(void) Logout;
  34. -(void) SetMode:(NSString*)mode;
  35. @property (strong,nonatomic) NSString* mode;
  36. -(void) SetSo:(NSString*)So;
  37. -(void) switchToPreviousVC;
  38. -(void) closeOrder;
  39. @property long wish_count;
  40. @property long cart_count;
  41. @property long port_count;
  42. @property bool offline_mode;
  43. @property bool can_show_price;
  44. @property bool can_see_price;
  45. @property bool can_create_portfolio;
  46. @property bool can_cancel_order;
  47. @property bool can_set_cart_price;
  48. @property bool can_create_order;
  49. @property bool can_delete_order;
  50. @property bool can_submit_order;
  51. @property bool can_set_tearsheet_price;
  52. @property bool can_update_contact_info;
  53. @property bool submit_order_logout;
  54. @property bool save_order_logout;
  55. @property bool alert_sold_in_quantities;
  56. @property(readonly) bool price_hidden;
  57. -(void) set_priceHidden:(bool)price_hidden;
  58. -(void) set_main_button_panel;
  59. //@property bool can_show_price;
  60. //@property bool can_show_price;
  61. //@property bool can_show_price;
  62. @property (strong , nonatomic) NSString* ipad_perm;
  63. -(void) update_count_mark;
  64. //scanner
  65. #define API_START 1
  66. #define API_STOP 3
  67. #define API_INIT 0
  68. #define API_CLOSING 2
  69. @property (strong, nonatomic) ScanApiHelper* ScanApi;
  70. @property (strong, nonatomic) NSTimer* ScanApiConsumer;
  71. @property (nonatomic) BOOL doAppDataConfirmation;
  72. @property (strong, nonatomic) NSString *scanApiVersion;
  73. @property (strong, nonatomic) NSString* log;
  74. @property BOOL softScannerEnabled;
  75. -(void) addlog:(NSString*) newtext;
  76. @property bool enable_ScannerLog;
  77. @property (strong,nonatomic) NSMutableArray* devices;
  78. - (void)enableScanner:(bool)enable ;
  79. @property int api_Status;
  80. @property (strong, nonatomic) NSString* Status_Text;
  81. -(void) didRotated;
  82. // scanner test
  83. -(void) test_onDecodedDataResult:(NSString*) value;
  84. // printer
  85. @property (strong, nonatomic) NSString * printerURL;
  86. -(void) printPdf:(NSString*) url;
  87. @end