Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
红
红星美凯龙管理在线APP IOS
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
张杰
红星美凯龙管理在线APP IOS
Commits
ea82248d
Commit
ea82248d
authored
Jan 15, 2016
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
屏蔽“在线抽查”
parent
6fc57053
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
SOPViewController.m
...n/Standar/SOPCategarys/ViewController/SOPViewController.m
+4
-2
ShowPDFWebViewController.m
...Standar/ShowPDF/ViewController/ShowPDFWebViewController.m
+2
-0
HomeViewController.m
...r/Classes/Module/Home/ViewController/HomeViewController.m
+12
-10
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ea82248d
No preview for this file type
redstar/Classes/Module/Function/Standar/SOPCategarys/ViewController/SOPViewController.m
View file @
ea82248d
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
NSFileManager
*
fileManager
=
[
NSFileManager
defaultManager
];
NSFileManager
*
fileManager
=
[
NSFileManager
defaultManager
];
if
([
fileManager
fileExistsAtPath
:
url
])
{
if
([
fileManager
fileExistsAtPath
:
url
])
{
ShowPDFWebViewController
*
showVC
=
[[
ShowPDFWebViewController
alloc
]
init
];
ShowPDFWebViewController
*
showVC
=
[[
ShowPDFWebViewController
alloc
]
init
];
showVC
.
url
=
url
;
showVC
.
url
=
url
;
showVC
.
fileName
=
atta
.
fileName
;
showVC
.
fileName
=
atta
.
fileName
;
...
@@ -301,19 +301,21 @@
...
@@ -301,19 +301,21 @@
operation
.
outputStream
=
[
NSOutputStream
outputStreamToFileAtPath
:
fileName
append
:
NO
];
operation
.
outputStream
=
[
NSOutputStream
outputStreamToFileAtPath
:
fileName
append
:
NO
];
[
MBProgressHUD
showHUDAddedTo
:
self
.
view
animated
:
YES
];
//已完成下载
//已完成下载
[
operation
setCompletionBlockWithSuccess
:
^
(
AFHTTPRequestOperation
*
operation
,
id
responseObject
)
{
[
operation
setCompletionBlockWithSuccess
:
^
(
AFHTTPRequestOperation
*
operation
,
id
responseObject
)
{
[
self
closeRedView
];
[
self
closeRedView
];
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"提示"
message
:
@"下载成功!"
delegate
:
self
cancelButtonTitle
:
nil
otherButtonTitles
:
@"确定"
,
nil
];
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"提示"
message
:
@"下载成功!"
delegate
:
self
cancelButtonTitle
:
nil
otherButtonTitles
:
@"确定"
,
nil
];
alert
.
tag
=
66690
;
alert
.
tag
=
66690
;
[
alert
show
];
[
alert
show
];
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
[
self
.
tableView
reloadData
];
[
self
.
tableView
reloadData
];
}
failure
:
^
(
AFHTTPRequestOperation
*
operation
,
NSError
*
error
)
{
}
failure
:
^
(
AFHTTPRequestOperation
*
operation
,
NSError
*
error
)
{
[
self
closeRedView
];
[
self
closeRedView
];
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"警告"
message
:
@"下载失败!"
delegate
:
self
cancelButtonTitle
:
nil
otherButtonTitles
:
@"确定"
,
nil
];
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"警告"
message
:
@"下载失败!"
delegate
:
self
cancelButtonTitle
:
nil
otherButtonTitles
:
@"确定"
,
nil
];
[
alert
show
];
[
alert
show
];
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
[
self
.
tableView
reloadData
];
[
self
.
tableView
reloadData
];
}];
}];
...
...
redstar/Classes/Module/Function/Standar/ShowPDF/ViewController/ShowPDFWebViewController.m
View file @
ea82248d
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "ShowPDFWebViewController.h"
#import "ShowPDFWebViewController.h"
#import <MBProgressHUD.h>
@interface
ShowPDFWebViewController
()
@interface
ShowPDFWebViewController
()
@property
(
nonatomic
,
strong
)
UIWebView
*
webView
;
@property
(
nonatomic
,
strong
)
UIWebView
*
webView
;
...
@@ -21,6 +22,7 @@
...
@@ -21,6 +22,7 @@
NSURLRequest
*
request
=
[
NSURLRequest
requestWithURL
:[
NSURL
fileURLWithPath
:
self
.
url
]];
NSURLRequest
*
request
=
[
NSURLRequest
requestWithURL
:[
NSURL
fileURLWithPath
:
self
.
url
]];
[
self
.
webView
loadRequest
:
request
];
[
self
.
webView
loadRequest
:
request
];
}
}
...
...
redstar/Classes/Module/Home/ViewController/HomeViewController.m
View file @
ea82248d
...
@@ -109,7 +109,9 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -109,7 +109,9 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
self
.
navigationItem
.
titleView
=
customLab
;
self
.
navigationItem
.
titleView
=
customLab
;
self
.
titleArray
=
[
NSMutableArray
array
];
self
.
titleArray
=
[
NSMutableArray
array
];
self
.
sectionArray
=
[
NSMutableArray
arrayWithObjects
:
@"口碑报告"
,
@"商场风采"
,
@"优秀案例"
,
@"巡店报告"
,
@"问题知识"
,
@"口碑巡检"
,
@"在线抽查"
,
@"查看抽查"
,
nil
];
// self.sectionArray = [NSMutableArray arrayWithObjects:@"口碑报告",@"商场风采",@"优秀案例",@"巡店报告", @"问题知识",@"口碑巡检",@"在线抽查", @"查看抽查",nil];
self
.
sectionArray
=
[
NSMutableArray
arrayWithObjects
:
@"口碑报告"
,
@"商场风采"
,
@"优秀案例"
,
@"巡店报告"
,
@"问题知识"
,
@"口碑巡检"
,
nil
];
self
.
allRankListArray
=
[
NSMutableArray
array
];
self
.
allRankListArray
=
[
NSMutableArray
array
];
self
.
taskListDataArray
=
[
NSMutableArray
array
];
self
.
taskListDataArray
=
[
NSMutableArray
array
];
self
.
allQuestionArray
=
[
NSMutableArray
array
];
self
.
allQuestionArray
=
[
NSMutableArray
array
];
...
@@ -165,15 +167,15 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
...
@@ -165,15 +167,15 @@ typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
[
_sectionArray
removeObject
:
@"口碑巡检"
];
[
_sectionArray
removeObject
:
@"口碑巡检"
];
}
}
if
([
permissions
containsObject
:
@"500701"
])
{
//
if ([permissions containsObject:@"500701"]) {
[
self
.
titleArray
addObject
:
@"在线抽查"
];
//
[self.titleArray addObject:@"在线抽查"];
[
self
requestSpotCheckList
];
//
[self requestSpotCheckList];
}
//
}
//
if
([
permissions
containsObject
:
@"500702"
])
{
//
if ([permissions containsObject:@"500702"]) {
[
self
.
titleArray
addObject
:
@"查看抽查"
];
//
[self.titleArray addObject:@"查看抽查"];
[
self
requestLookOnLineList
];
//
[self requestLookOnLineList];
}
//
}
[
self
setupTableView
];
[
self
setupTableView
];
...
...
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