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
9 years ago
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[] = {
...
@@ -58,7 +58,7 @@ static NSString * const ACETapBarItemNames[] = {
-
(
void
)
openMainFrame
;
-
(
void
)
openMainFrame
;
-
(
void
)
createHomeViewController
;
-
(
void
)
createHomeViewController
;
-
(
void
)
create
Store
ViewController
;
-
(
void
)
create
Report
ViewController
;
-
(
void
)
createSyncViewController
;
-
(
void
)
createSyncViewController
;
-
(
void
)
createSystemViewController
;
-
(
void
)
createSystemViewController
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Controllers/AppViewController/ICRAppViewControllerManager.m
View file @
67ec38fb
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#import "ReportViewController.h"
#import "ReportViewController.h"
#import "ICRSyncViewController.h"
#import "ICRSyncViewController.h"
#import "ICRSystemViewController.h"
#import "ICRSystemViewController.h"
#import "ReportDetailViewController.h"
@interface
ICRAppViewControllerManager
()
@interface
ICRAppViewControllerManager
()
<
<
UITabBarControllerDelegate
UITabBarControllerDelegate
...
@@ -180,16 +180,35 @@
...
@@ -180,16 +180,35 @@
}
}
-
(
void
)
createReportViewController
{
-
(
void
)
createReportViewController
{
NSString
*
nsTitle
=
ACETapBarItemNames
[
kCRReport
];
//如果登陆的是子节点
ICRUserUtil
*
user
=
[
ICRUserUtil
sharedInstance
];
ReportViewController
*
storeVCtrl
=
[[
ReportViewController
alloc
]
init
];
if
(
user
.
belongOrgIsLeaf
)
{
[
m_arrTabBarBaseViewController
addObject
:
storeVCtrl
];
Compass
*
com
=
[[
Compass
alloc
]
init
];
storeVCtrl
.
title
=
[
IBTCommon
localizableString
:
nsTitle
];
com
.
orgCode
=
user
.
org_code
;
com
.
orgName
=
user
.
org_name
;
IBTUINavigationController
*
navCtrl
=
[[
IBTUINavigationController
alloc
]
initWithRootViewController
:
storeVCtrl
];
com
.
orgUuid
=
user
.
org_uuid
;
[
m_arrViewController
addObject
:
navCtrl
];
ReportDetailViewController
*
storeVCtrl
=
[[
ReportDetailViewController
alloc
]
init
];
storeVCtrl
.
compass
=
com
;
navCtrl
.
title
=
nsTitle
;
[
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
{
-
(
void
)
createSyncViewController
{
...
...
This diff is collapsed.
Click to expand it.
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