Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
xffruit
Commits
67ec38fb
Commit
67ec38fb
authored
Nov 27, 2015
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断组织是否是子节点
parent
fcd0f7e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
12 deletions
+31
-12
ICRAppViewControllerManager.h
...ntrollers/AppViewController/ICRAppViewControllerManager.h
+1
-1
ICRAppViewControllerManager.m
...ntrollers/AppViewController/ICRAppViewControllerManager.m
+30
-11
No files found.
XFFruit/Controllers/AppViewController/ICRAppViewControllerManager.h
View file @
67ec38fb
...
...
@@ -58,7 +58,7 @@ static NSString * const ACETapBarItemNames[] = {
-
(
void
)
openMainFrame
;
-
(
void
)
createHomeViewController
;
-
(
void
)
create
Store
ViewController
;
-
(
void
)
create
Report
ViewController
;
-
(
void
)
createSyncViewController
;
-
(
void
)
createSystemViewController
;
...
...
XFFruit/Controllers/AppViewController/ICRAppViewControllerManager.m
View file @
67ec38fb
...
...
@@ -16,7 +16,7 @@
#import "ReportViewController.h"
#import "ICRSyncViewController.h"
#import "ICRSystemViewController.h"
#import "ReportDetailViewController.h"
@interface
ICRAppViewControllerManager
()
<
UITabBarControllerDelegate
...
...
@@ -180,16 +180,35 @@
}
-
(
void
)
createReportViewController
{
NSString
*
nsTitle
=
ACETapBarItemNames
[
kCRReport
];
ReportViewController
*
storeVCtrl
=
[[
ReportViewController
alloc
]
init
];
[
m_arrTabBarBaseViewController
addObject
:
storeVCtrl
];
storeVCtrl
.
title
=
[
IBTCommon
localizableString
:
nsTitle
];
IBTUINavigationController
*
navCtrl
=
[[
IBTUINavigationController
alloc
]
initWithRootViewController
:
storeVCtrl
];
[
m_arrViewController
addObject
:
navCtrl
];
navCtrl
.
title
=
nsTitle
;
//如果登陆的是子节点
ICRUserUtil
*
user
=
[
ICRUserUtil
sharedInstance
];
if
(
user
.
belongOrgIsLeaf
)
{
Compass
*
com
=
[[
Compass
alloc
]
init
];
com
.
orgCode
=
user
.
org_code
;
com
.
orgName
=
user
.
org_name
;
com
.
orgUuid
=
user
.
org_uuid
;
ReportDetailViewController
*
storeVCtrl
=
[[
ReportDetailViewController
alloc
]
init
];
storeVCtrl
.
compass
=
com
;
[
m_arrTabBarBaseViewController
addObject
:
storeVCtrl
];
storeVCtrl
.
title
=
com
.
orgName
;
NSString
*
nsTitle
=
ACETapBarItemNames
[
kCRReport
];
IBTUINavigationController
*
navCtrl
=
[[
IBTUINavigationController
alloc
]
initWithRootViewController
:
storeVCtrl
];
[
m_arrViewController
addObject
:
navCtrl
];
navCtrl
.
title
=
nsTitle
;
}
else
{
NSString
*
nsTitle
=
ACETapBarItemNames
[
kCRReport
];
ReportViewController
*
storeVCtrl
=
[[
ReportViewController
alloc
]
init
];
[
m_arrTabBarBaseViewController
addObject
:
storeVCtrl
];
storeVCtrl
.
title
=
[
IBTCommon
localizableString
:
nsTitle
];
IBTUINavigationController
*
navCtrl
=
[[
IBTUINavigationController
alloc
]
initWithRootViewController
:
storeVCtrl
];
[
m_arrViewController
addObject
:
navCtrl
];
navCtrl
.
title
=
nsTitle
;
}
}
-
(
void
)
createSyncViewController
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment