//
//  GTOCommonTools.h
//  total
//
//  Created by freecui on 15/10/15.
//  Copyright (c) 2015年 free. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GTOCommonTools : NSObject

+ (instancetype)sharedManager;

//null 转@“”
+ (NSString *)nullChangedWithId: (id)data;
+ (NSString *)stringWithId: (id)data;
+ (NSDate *)dateWithString: (NSString *)string;
+ (NSString *)stringLetterWithNumber: (NSInteger)number; //数字对应字母
+ (NSString *)dateSubstringDeleteZeroWithDateString:(NSString *)string;

//拓站状态
+ (NSString *)pioneeringStateWithString: (NSString *)state;

//巡检
+ (NSString *)pioneeringCategoryWithString: (NSString *)category;

//各种许可证状态返回成对应的中文
+ (NSString *)licenceStateChineseWithEnglish: (NSString *)englishState;

//各种报修状态返回成对应的中文
+ (NSString *)repairStateChineseWithEnglish: (NSString *)englishState;
//各种拓站状态返回成对应的中文
+ (NSString *)pioneeringStateChineseWithEnglish: (NSString *)englishState;
//根据状态返回返回不同的文字颜色
+ (UIColor *)textColorWithState: (NSString *)state;

//是否有某个功能的权限
+ (BOOL)hasPermissionWithPermissionId: (NSUInteger)permissionId;
@end
