Commit cbc3d2f0 authored by freecui's avatar freecui

修改显示菜单bug

parent d177d57f
...@@ -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 && hasSeeOption7 == NO) { if (displayFunction.functionId == 500802 && hasSeeOption8 == NO) {
hasSeeOption7 = YES; hasSeeOption8 = YES;
} }
if (displayFunction.functionId == 500803 && hasSeeOption7 == YES) { if (displayFunction.functionId == 500803 && hasSeeOption8 == YES) {
[muArr removeObject:displayFunction]; [muArr removeObject:displayFunction];
hasSeeOption7 = NO; hasSeeOption8 = 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];
...@@ -502,6 +503,16 @@ ...@@ -502,6 +503,16 @@
[muArr removeObject:displayFunction]; [muArr removeObject:displayFunction];
hasSeeOption7 = NO; hasSeeOption7 = NO;
} }
//"收货单"
if (displayFunction.functionId == 500802 && hasSeeOption8 == NO) {
hasSeeOption8 = YES;
}
if (displayFunction.functionId == 500803 && hasSeeOption8 == YES) {
[muArr removeObject:displayFunction];
hasSeeOption8 = NO;
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment