福途教育网
专业的教育资讯网站

当前位置:福途教育网 > 二级注册消防师 > 正文

注册一级消防工程师题型(一级注册消防工程师答题技巧)

时间:2023/10/1 12:50:57 编辑:福途教育 标签:二级注册消防师

2023年【二级注册消防师】申请条件/费用/专业咨询 >>

二级注册消防师申请条件是什么?二级注册消防师费用是多少?二级注册消防师专业都有哪些?

点击咨询

    本文解答了关于《注册一级消防工程师题型》相关内容,同时关于1、注册一级消防工程师题型,2、注册一级消防工程师题型有哪些,3、注册一级消防工程师考试题型,4、一级注册消防工程师真题解析,5、一级注册消防工程师答题技巧,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。

    注册一级消防工程师题型(一级注册消防工程师答题技巧)

    注册一级消防工程师题型

    [self hasRegisteredSecondEngineer];

    }

    #pragma mark - UITableViewDataSource

    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return self.examTypeList.count;

    }

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    #if kEnableCustomCellRegister

    static NSString *CellIdentifier = @"Cell";

    CustomTableViewCell *cell = (CustomTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (cell == nil) {

    cell = [[CustomTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];

    }

    #else

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[UITableViewCell reusableIndentifier]];

    if (!cell) {

    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[UITableViewCell reusableIndentifier]];

    }

    #endif

    cell.textLabel.font = [UIFont systemFontOfSize:15];

    TQDFMElement *element = [self.examTypeList objectAtIndex:indexPath.row];

    cell.textLabel.text = element[@"name"];

    NSString *isSelected = element[@"isselected"];

    cell.accessoryType = isSelected.boolValue ? UITableViewCellAccessoryCheckmark : UITableViewCellAccessoryNone;

    return cell;

    }

    - (void)viewDidLoad {

    [super viewDidLoad];

    [self setupUI];

    }

    #pragma mark - Private

    - (void)hasRegisteredSecondEngineer {

    TQDFMElement *engineerType = [self.examTypeList objectAtIndex:1];

    // 查看一级消防工程师是否已经注册

    if (NO == engineerType[@"isselected"].boolValue) {

    [self showAlertViewWithMessage:@"您尚未注册过一级消防工程师,不可注册二级消防工程师,请先注册一级消防工程师"];

    }

    }

    - (void)showAlertViewWithMessage:(NSString *)message {

    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:message preferredStyle:UIAlertControllerStyleAlert];

    UIAlertAction *confirmAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:nil];

    [alertController addAction:confirmAction];

    [self presentViewController:alertController animated:YES completion:nil];

    }

    - (void)setupUI {

    self.title = @"考试类别";

    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:[UITableViewCell reusableIndentifier]];

    #if kEnableCustomCellRegister

    [self.tableView registerClass:[CustomTableViewCell class] forCellReuseIdentifier:@"Cell"];

    #endif

    }

    #pragma mark - Getter

    - (NSArray *)examTypeList {

    if (!_examTypeList) {

    _examTypeList = @[ @{ @"name" : @"一级消防工程师", @"isselected" : @NO }, @{ @"name" : @"二级消防工程师", @"isselected" : @NO } ];

    }

    return _examTypeList;

    }

    - (void)didReceiveMemoryWarning {

    [super didReceiveMemoryWarning];

    // Dispose of any resources that can be recreated.

    }

    @end

    总结:以上是编辑:【买小春a】整理及AI智能原创关于《

    注册一级消防工程师题型

    》优质内容解答希望能帮助到您。

以上手机版 注册一级消防工程师题型(一级注册消防工程师答题技巧) 小编为您整理注册一级消防工程师题型(一级注册消防工程师答题技巧)的全部内容

点击查看 二级注册消防师 更多内容

热门推荐

最新文章