JXConstant.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. //
  2. // JXConstant.h
  3. // shiku_im
  4. //
  5. // Created by flyeagleTang on 14-11-7.
  6. // Copyright (c) 2014年 Reese. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class FMDatabase;
  10. #define NAME @"zh" // 中文
  11. #define ENNAME @"en" //英文
  12. #define ZHHANTNAME @"big5" // 繁体
  13. #define MALAYNAME @"malay"
  14. #define THNAME @"th"
  15. #define JANAME @"ja" // 日文
  16. #define KONAME @"ko" // 韩语
  17. #define IDYNAME @"idy" // 印尼语
  18. #define VINAME @"vi" // 越南语
  19. #define MSNAME @"ms" // 马来语
  20. #define FYNAME @"fy" // 菲律宾语
  21. @interface JXConstant : NSObject{
  22. FMDatabase* _db;
  23. NSString *_sysName;
  24. // NSMutableDictionary* _country;
  25. // NSMutableDictionary* _province;
  26. // NSMutableDictionary* _city;
  27. // NSMutableDictionary* _area;
  28. }
  29. @property (nonatomic,strong) NSString *sysLanguage;
  30. @property (nonatomic,assign) CGFloat chatFont;
  31. @property (nonatomic,strong) NSString *chatFontName;
  32. @property(nonatomic,strong) NSMutableDictionary* country;
  33. @property(nonatomic,strong) NSMutableDictionary* province;
  34. @property(nonatomic,strong) NSMutableDictionary* city;
  35. @property(nonatomic,strong) NSMutableDictionary* cityN;
  36. @property(nonatomic,strong) NSMutableDictionary* diploma;
  37. @property(nonatomic,strong) NSMutableDictionary* workexp;
  38. @property(nonatomic,strong) NSMutableDictionary* salary;
  39. @property(nonatomic,strong) NSMutableDictionary* nature;
  40. @property(nonatomic,strong) NSMutableDictionary* scale;
  41. @property(nonatomic,strong) NSMutableDictionary* cometime;
  42. @property(nonatomic,strong) NSMutableDictionary* worktype;
  43. @property(nonatomic,strong) NSMutableDictionary* industry;
  44. @property(nonatomic,strong) NSMutableDictionary* function;
  45. @property(nonatomic,strong) NSMutableDictionary* major;
  46. @property(nonatomic,strong) NSMutableDictionary* localized;
  47. @property (nonatomic, strong) NSMutableDictionary *userBackGroundImage;
  48. @property(nonatomic,strong) NSMutableArray* country_name;
  49. @property(nonatomic,strong) NSMutableArray* country_value;
  50. @property(nonatomic,strong) NSMutableArray* province_name;
  51. @property(nonatomic,strong) NSMutableArray* province_value;
  52. @property(nonatomic,strong) NSMutableArray* diploma_name;
  53. @property(nonatomic,strong) NSMutableArray* diploma_value;
  54. @property(nonatomic,strong) NSMutableArray* workexp_name;
  55. @property(nonatomic,strong) NSMutableArray* workexp_value;
  56. @property(nonatomic,strong) NSMutableArray* salary_name;
  57. @property(nonatomic,strong) NSMutableArray* salary_value;
  58. @property(nonatomic,strong) NSMutableArray* nature_name;
  59. @property(nonatomic,strong) NSMutableArray* nature_value;
  60. @property(nonatomic,strong) NSMutableArray* scale_name;
  61. @property(nonatomic,strong) NSMutableArray* scale_value;
  62. @property(nonatomic,strong) NSMutableArray* cometime_name;
  63. @property(nonatomic,strong) NSMutableArray* cometime_value;
  64. @property(nonatomic,strong) NSMutableArray* worktype_name;
  65. @property(nonatomic,strong) NSMutableArray* worktype_value;
  66. @property(nonatomic,strong) NSMutableArray* industry_name;
  67. @property(nonatomic,strong) NSMutableArray* industry_value;
  68. @property(nonatomic,strong) NSMutableArray* function_name;
  69. @property(nonatomic,strong) NSMutableArray* function_value;
  70. @property(nonatomic,strong) NSMutableArray* major_name;
  71. @property(nonatomic,strong) NSMutableArray* major_value;
  72. @property (nonatomic,strong) NSMutableArray *telArea;
  73. @property (nonatomic,strong) NSMutableArray *emojiArray;
  74. //-(void) getCountry;
  75. -(NSMutableDictionary*) getProvince:(int)countryId;
  76. -(NSMutableDictionary*) getCity:(int)provinceId;
  77. -(NSMutableDictionary*) getArea:(int)cityId;
  78. -(NSMutableDictionary*) getDiploma;
  79. -(NSMutableDictionary*) getWorkExp;
  80. -(NSMutableDictionary*) getSalary;
  81. -(NSMutableDictionary*) getNature;
  82. -(NSMutableDictionary*) getScale;
  83. -(NSMutableDictionary*) getComeTime;
  84. -(NSMutableDictionary*) getWorkType;
  85. -(NSMutableDictionary*) getIndustry;
  86. -(NSMutableDictionary*) getFunction;
  87. -(NSMutableDictionary*) getLocalized;
  88. -(NSString*)getAddress:(NSString*)provinceId cityId:(NSString*)cityId areaId:(NSString*)cityId;
  89. -(NSString*)getAddressForInt:(int)provinceId cityId:(int)cityId areaId:(int)areaId;
  90. -(NSString*)getAddressForNumber:(NSNumber*)provinceId cityId:(NSNumber*)cityId areaId:(NSNumber*)areaId;
  91. -(NSArray*)getSortKeys:(NSMutableDictionary*)dict;
  92. -(NSArray*)getSortValues:(NSMutableDictionary*)dict;
  93. -(NSMutableDictionary*)doGetDict:(int)n name:(NSMutableArray*)name value:(NSMutableArray*)value;
  94. -(void)getNameValues:(int)n name:(NSMutableArray*)name value:(NSMutableArray*)value;
  95. - (NSString *)LocalizedWithStr:(NSString *)str;
  96. - (NSMutableArray *) getSearchTelAreaWithName:(NSString *) name ;
  97. -(NSString*) getCityID:(NSString *)s;
  98. -(NSString *)getParentWithCityId:(int)cityId;
  99. // 重置本地语言
  100. - (void) resetlocalized;
  101. @end