//
//	 ______    ______    ______    
//	/\  __ \  /\  ___\  /\  ___\   
//	\ \  __<  \ \  __\_ \ \  __\_ 
//	 \ \_____\ \ \_____\ \ \_____\ 
//	  \/_____/  \/_____/  \/_____/ 
//
//	Powered by BeeFramework
//
//
//  VankeAffairsBoard_iPhone.m
//  vanke
//
//  Created by xiaomi on 15/10/28.
//  Copyright © 2015年 gomore. All rights reserved.
//

#import "VankeAffairsBoard_iPhone.h"
#import "VankeUtil.h"
#import "VankeNoticeListBoard_iPhone.h"
#import "VankeStatementListBoard_iPhone.h"

#pragma mark -

@interface VankeAffairsBoard_iPhone()
{
	//<#@private var#>
}
@end

@implementation VankeAffairsBoard_iPhone

SUPPORT_AUTOMATIC_LAYOUT( YES )
SUPPORT_RESOURCE_LOADING( YES )

DEF_OUTLET( BeeUIButton, btnNotice )
DEF_OUTLET( BeeUIButton, btnBill )
DEF_OUTLET( BeeUIButton, btnSaleInput )
DEF_OUTLET( BeeUIButton, btnServiceApply )

- (void)load
{
}

- (void)unload
{
}

#pragma mark - Signal

ON_CREATE_VIEWS( signal )
{
    self.navigationBarShown = YES;
    self.navigationBarTitle = @"事务";
}

ON_DELETE_VIEWS( signal )
{
}

ON_LAYOUT_VIEWS( signal )
{
}

ON_WILL_APPEAR( signal )
{
    UIColor *color = [VankeUtil rgbStringToColor: @"237,27,35"];
    if ( IOS7_OR_LATER ) {
        self.navigationController.navigationBar.barTintColor = color;
    } else {
        self.navigationController.navigationBar.tintColor = color;
    }
}

ON_DID_APPEAR( signal )
{
}

ON_WILL_DISAPPEAR( signal )
{
}

ON_DID_DISAPPEAR( signal )
{
}

ON_SIGNAL3(VankeAffairsBoard_iPhone, btnNotice, signal) {    
    VankeNoticeListBoard_iPhone *board = [VankeNoticeListBoard_iPhone board];
    [self.stack pushBoard:board animated:YES];
}

ON_SIGNAL3(VankeAffairsBoard_iPhone, btnBill, signal) {
    VankeStatementListBoard_iPhone *board = [VankeStatementListBoard_iPhone board];
    [self.stack pushBoard:board animated:YES];
}

ON_SIGNAL3(VankeAffairsBoard_iPhone, btnSaleInput, signal) {
    INFO(@"button sale input pressed.");
}

ON_SIGNAL3(VankeAffairsBoard_iPhone, btnServiceApply, signal) {
    INFO(@"button service apply pressed.");
}


@end
