|
|
@@ -36,7 +36,7 @@
|
|
|
#import "ResultCustomerModel.h"
|
|
|
#import "ResultViewController.h"
|
|
|
#import "HomeDashEmptyCell.h"
|
|
|
-
|
|
|
+#import "FunctionSettingViewController.h"
|
|
|
#import "HomeDashISFCellP.h"
|
|
|
#import "HomeDashISFModelP.h"
|
|
|
#import "HomeDashACEM1CellP.h"
|
|
|
@@ -374,10 +374,10 @@
|
|
|
|
|
|
// Header
|
|
|
self.headerView = [RAHomeHeaderView homeHeader];
|
|
|
- self.headerView.onSetFunctions=^(void)
|
|
|
- {
|
|
|
- [self.tableView reloadData];
|
|
|
- };
|
|
|
+// self.headerView.onSetFunctions=^(void)
|
|
|
+// {
|
|
|
+// [self.tableView reloadData];
|
|
|
+// };
|
|
|
self.headerView.onSetCompany=^(void)
|
|
|
{
|
|
|
[self loadData];
|
|
|
@@ -482,9 +482,12 @@
|
|
|
// logoItem.enabled = NO;
|
|
|
self.tabBarController.navigationItem.leftBarButtonItem = logoItem;
|
|
|
|
|
|
- UIBarButtonItem *welcomeItem =[[UIBarButtonItem alloc] initWithTitle:[NSString stringWithFormat:@"Welcome: %@",RASingleton.sharedInstance.firstName] menu:nil];
|
|
|
+// UIBarButtonItem *welcomeItem =[[UIBarButtonItem alloc] initWithTitle:[NSString stringWithFormat:@"Welcome: %@",RASingleton.sharedInstance.firstName] menu:nil];
|
|
|
+
|
|
|
+ UIBarButtonItem *functionSettingItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"ic_setting"] style:UIBarButtonItemStylePlain target:self action:@selector(settingClick:)];
|
|
|
+
|
|
|
// welcomeItem.enabled = NO;
|
|
|
- self.tabBarController.navigationItem.rightBarButtonItem =welcomeItem;
|
|
|
+ self.tabBarController.navigationItem.rightBarButtonItem =functionSettingItem;
|
|
|
|
|
|
|
|
|
TFNavigationController* ranav= (TFNavigationController*)self.navigationController;
|
|
|
@@ -507,7 +510,30 @@
|
|
|
//
|
|
|
// self.title = [NSString stringWithFormat:@"Welcome: %@",RASingleton.sharedInstance.firstName];
|
|
|
}
|
|
|
-
|
|
|
+- (void)settingClick:(id)sender {
|
|
|
+ // self.presenter.dirty = YES;
|
|
|
+
|
|
|
+ // NSString *module_name = [self.params objectForKey:@"module_name"];
|
|
|
+ FunctionSettingViewController *ViewController = [[UIStoryboard storyboardWithName:@"Home" bundle:nil]
|
|
|
+ instantiateViewControllerWithIdentifier:@"FunctionSettingViewController"];
|
|
|
+ // ViewController.function_name = module_name;
|
|
|
+ // ViewController.behavior = BEHAVIOR_RESULT;
|
|
|
+ // ViewController.forNewResult = YES;
|
|
|
+ // ViewController.maxDisplayCount = ResultMaxDispalyAdditionCount;
|
|
|
+
|
|
|
+ // self.parent
|
|
|
+ ViewController.onSave = ^(NSArray* functions){
|
|
|
+ [self.headerView set_FunctionButtons:[functions mutableCopy]];
|
|
|
+// self.functionButtons =[functions mutableCopy];
|
|
|
+// [self.functionButtons addObject:@{@"name": @"...",@"icon": @"ic_more",@"type": @"panel_setting"}];
|
|
|
+
|
|
|
+ [self.tableView reloadData];
|
|
|
+ //+0.5);
|
|
|
+
|
|
|
+
|
|
|
+ };
|
|
|
+ [self.navigationController pushViewController:ViewController animated:YES];
|
|
|
+ }
|
|
|
- (void)registNotification {
|
|
|
|
|
|
|
|
|
@@ -783,7 +809,7 @@
|
|
|
|
|
|
NSMutableDictionary* totaljson=json[@"total"];
|
|
|
|
|
|
- NSString* headertext = @"<center><font size=5 color=white><b>This Month</b>";
|
|
|
+ NSString* headertext = @"<center><font size=5 color=white><b>In 30 Days</b>";
|
|
|
// NSString * htmlString = headertext;
|
|
|
//
|
|
|
// NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[htmlString dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
|
|
|
@@ -1058,13 +1084,13 @@
|
|
|
- (void)signoutClick:(UIButton *)sender {
|
|
|
[self logoutItemClick:nil];
|
|
|
}
|
|
|
-
|
|
|
-- (void)settingClick:(UIButton *)sender {
|
|
|
-// dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
-// RASettingViewController *settingVC = [RASettingViewController viewControllerFromStoryboard];
|
|
|
-// [self.navigationController pushViewController:settingVC animated:YES];
|
|
|
-// });
|
|
|
-}
|
|
|
+//
|
|
|
+//- (void)settingClick:(UIButton *)sender {
|
|
|
+//// dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+//// RASettingViewController *settingVC = [RASettingViewController viewControllerFromStoryboard];
|
|
|
+//// [self.navigationController pushViewController:settingVC animated:YES];
|
|
|
+//// });
|
|
|
+//}
|
|
|
//
|
|
|
//- (void)availableClick:(UIButton *)sender {
|
|
|
//
|