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
21e2a3fd
Commit
21e2a3fd
authored
Sep 15, 2015
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看采购通知单
parent
a7578035
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
SeePurchaseNoticeViewController.m
...chaseNotice/Controllers/SeePurchaseNoticeViewController.m
+11
-3
No files found.
XFFruit/ViewControllers/PurchaseNotice/Controllers/SeePurchaseNoticeViewController.m
View file @
21e2a3fd
...
@@ -133,6 +133,13 @@ typedef enum : NSUInteger {
...
@@ -133,6 +133,13 @@ typedef enum : NSUInteger {
[
self
.
view
addSubview
:
_endBtn
];
[
self
.
view
addSubview
:
_endBtn
];
if
([
self
.
purchaseNotice
.
state
isEqualToString
:
PURCHASENOTICE_STATE_NOTACCEPTED
])
{
if
([
self
.
purchaseNotice
.
state
isEqualToString
:
PURCHASENOTICE_STATE_NOTACCEPTED
])
{
if
([
self
checkIsPermission
:
NOTICE_PERMISSIONS_ACCEPTTASK
]
&&
[
self
checkIsPermission
:
NOTICE_PERMISSIONS_CREATEBILL
])
{
_rejectBtn
.
tag
=
AcceptTag
;
[
_rejectBtn
setTitle
:
@"接受任务"
forState
:
UIControlStateNormal
];
_endBtn
.
tag
=
NewTag
;
_endBtn
.
backgroundColor
=
[
UIColor
grayColor
];
[
_endBtn
setTitle
:
@"新建采购单"
forState
:
UIControlStateNormal
];
}
else
{
if
([
self
checkIsPermission
:
NOTICE_PERMISSIONS_ACCEPTTASK
])
{
if
([
self
checkIsPermission
:
NOTICE_PERMISSIONS_ACCEPTTASK
])
{
_rejectBtn
.
tag
=
AcceptTag
;
_rejectBtn
.
tag
=
AcceptTag
;
[
_rejectBtn
setTitle
:
@"接受任务"
forState
:
UIControlStateNormal
];
[
_rejectBtn
setTitle
:
@"接受任务"
forState
:
UIControlStateNormal
];
...
@@ -141,6 +148,7 @@ typedef enum : NSUInteger {
...
@@ -141,6 +148,7 @@ typedef enum : NSUInteger {
_endBtn
.
tag
=
NewTag
;
_endBtn
.
tag
=
NewTag
;
[
_endBtn
setTitle
:
@"新建采购单"
forState
:
UIControlStateNormal
];
[
_endBtn
setTitle
:
@"新建采购单"
forState
:
UIControlStateNormal
];
}
}
}
}
else
if
([
self
.
purchaseNotice
.
state
isEqualToString
:
PURCHASENOTICE_STATE_PURCHASEING
]){
}
else
if
([
self
.
purchaseNotice
.
state
isEqualToString
:
PURCHASENOTICE_STATE_PURCHASEING
]){
if
([
self
checkIsPermission
:
NOTICE_PERMISSIONS_FINISH
]){
if
([
self
checkIsPermission
:
NOTICE_PERMISSIONS_FINISH
]){
_rejectBtn
.
hidden
=
YES
;
_rejectBtn
.
hidden
=
YES
;
...
...
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