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
cbc3d2f0
Commit
cbc3d2f0
authored
9 years ago
by
freecui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改显示菜单bug
parent
d177d57f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
GXFFunctionDB.m
XFFruit/Controllers/DataBaseController/GXFFunctionDB.m
+16
-5
No files found.
XFFruit/Controllers/DataBaseController/GXFFunctionDB.m
View file @
cbc3d2f0
...
@@ -241,6 +241,7 @@
...
@@ -241,6 +241,7 @@
BOOL
hasSeeOption5
=
NO
;
BOOL
hasSeeOption5
=
NO
;
BOOL
hasSeeOption6
=
NO
;
BOOL
hasSeeOption6
=
NO
;
BOOL
hasSeeOption7
=
NO
;
BOOL
hasSeeOption7
=
NO
;
BOOL
hasSeeOption8
=
NO
;
for
(
int
count
=
0
;
count
<
hasPermission
.
count
;
count
++
)
{
for
(
int
count
=
0
;
count
<
hasPermission
.
count
;
count
++
)
{
FMResultSet
*
rs
=
[
_dataBase
executeQuery
:
@"SELECT * FROM displayFunction WHERE functionId = ?"
,
hasPermission
[
count
]
];
FMResultSet
*
rs
=
[
_dataBase
executeQuery
:
@"SELECT * FROM displayFunction WHERE functionId = ?"
,
hasPermission
[
count
]
];
while
([
rs
next
])
{
while
([
rs
next
])
{
...
@@ -300,12 +301,12 @@
...
@@ -300,12 +301,12 @@
}
}
//"收货单"
//"收货单"
if
(
displayFunction
.
functionId
==
500802
&&
hasSeeOption
7
==
NO
)
{
if
(
displayFunction
.
functionId
==
500802
&&
hasSeeOption
8
==
NO
)
{
hasSeeOption
7
=
YES
;
hasSeeOption
8
=
YES
;
}
}
if
(
displayFunction
.
functionId
==
500803
&&
hasSeeOption
7
==
YES
)
{
if
(
displayFunction
.
functionId
==
500803
&&
hasSeeOption
8
==
YES
)
{
[
muArr
removeObject
:
displayFunction
];
[
muArr
removeObject
:
displayFunction
];
hasSeeOption
7
=
NO
;
hasSeeOption
8
=
NO
;
}
}
...
@@ -444,7 +445,7 @@
...
@@ -444,7 +445,7 @@
BOOL
hasSeeOption5
=
NO
;
BOOL
hasSeeOption5
=
NO
;
BOOL
hasSeeOption6
=
NO
;
BOOL
hasSeeOption6
=
NO
;
BOOL
hasSeeOption7
=
NO
;
BOOL
hasSeeOption7
=
NO
;
BOOL
hasSeeOption8
=
NO
;
while
([
rs
next
])
{
while
([
rs
next
])
{
GXFDisplayFunction
*
displayFunction
=
[
self
p_resultSetDisplayFunction
:
rs
];
GXFDisplayFunction
*
displayFunction
=
[
self
p_resultSetDisplayFunction
:
rs
];
[
muArr
addObject
:
displayFunction
];
[
muArr
addObject
:
displayFunction
];
...
@@ -503,6 +504,16 @@
...
@@ -503,6 +504,16 @@
hasSeeOption7
=
NO
;
hasSeeOption7
=
NO
;
}
}
//"收货单"
if
(
displayFunction
.
functionId
==
500802
&&
hasSeeOption8
==
NO
)
{
hasSeeOption8
=
YES
;
}
if
(
displayFunction
.
functionId
==
500803
&&
hasSeeOption8
==
YES
)
{
[
muArr
removeObject
:
displayFunction
];
hasSeeOption8
=
NO
;
}
}
}
return
muArr
;
return
muArr
;
...
...
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