Commit cbc3d2f0 authored by freecui's avatar freecui

修改显示菜单bug

parent d177d57f
......@@ -241,6 +241,7 @@
BOOL hasSeeOption5 = NO;
BOOL hasSeeOption6 = NO;
BOOL hasSeeOption7 = NO;
BOOL hasSeeOption8 = NO;
for (int count = 0; count < hasPermission.count; count ++) {
FMResultSet *rs = [_dataBase executeQuery: @"SELECT * FROM displayFunction WHERE functionId = ?",hasPermission[count] ];
while ([rs next]) {
......@@ -300,12 +301,12 @@
}
//"收货单"
if (displayFunction.functionId == 500802 && hasSeeOption7 == NO) {
hasSeeOption7 = YES;
if (displayFunction.functionId == 500802 && hasSeeOption8 == NO) {
hasSeeOption8 = YES;
}
if (displayFunction.functionId == 500803 && hasSeeOption7 == YES) {
if (displayFunction.functionId == 500803 && hasSeeOption8 == YES) {
[muArr removeObject:displayFunction];
hasSeeOption7 = NO;
hasSeeOption8 = NO;
}
......@@ -444,7 +445,7 @@
BOOL hasSeeOption5 = NO;
BOOL hasSeeOption6 = NO;
BOOL hasSeeOption7 = NO;
BOOL hasSeeOption8 = NO;
while ([rs next]) {
GXFDisplayFunction *displayFunction = [self p_resultSetDisplayFunction:rs];
[muArr addObject:displayFunction];
......@@ -502,6 +503,16 @@
[muArr removeObject:displayFunction];
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