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
3a2fd52e
Commit
3a2fd52e
authored
Dec 14, 2015
by
陈俊俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DEV_20150805_001' of
http://121.42.32.57/root/xffruit
into DEV_20150805_001
parents
87f12c84
cbd4fc56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
TransferDetailViewController.m
...llers/Transfer/Controllers/TransferDetailViewController.m
+14
-12
No files found.
XFFruit/ViewControllers/Transfer/Controllers/TransferDetailViewController.m
View file @
3a2fd52e
...
@@ -157,6 +157,8 @@ typedef enum : NSUInteger {
...
@@ -157,6 +157,8 @@ typedef enum : NSUInteger {
btnTag
=
AbortTag
;
btnTag
=
AbortTag
;
}
else
if
([
arr
[
i
]
isEqualToString
:
@"收货"
])
{
}
else
if
([
arr
[
i
]
isEqualToString
:
@"收货"
])
{
btnTag
=
SubmitTag
;
btnTag
=
SubmitTag
;
}
else
{
}
}
CGRect
btnFrame
=
CGRectMake
(
LeftMargin
+
(
LeftMargin
+
btnWidth
)
*
i
,
ScreenSize
.
height
-
64
-
BottomHeight
+
5
,
btnWidth
,
40
);
CGRect
btnFrame
=
CGRectMake
(
LeftMargin
+
(
LeftMargin
+
btnWidth
)
*
i
,
ScreenSize
.
height
-
64
-
BottomHeight
+
5
,
btnWidth
,
40
);
UIButton
*
perBtn
=
[
IBTCustomButtom
creatButtonWithFrame
:
btnFrame
target
:
self
sel
:
@selector
(
btnClick
:
)
tag
:
btnTag
image
:
nil
title
:
arr
[
i
]
titleColor
:
[
UIColor
whiteColor
]
isCorner
:
YES
corner
:
5
bgColor
:
GXF_COMMIT_COLOR
];
UIButton
*
perBtn
=
[
IBTCustomButtom
creatButtonWithFrame
:
btnFrame
target
:
self
sel
:
@selector
(
btnClick
:
)
tag
:
btnTag
image
:
nil
title
:
arr
[
i
]
titleColor
:
[
UIColor
whiteColor
]
isCorner
:
YES
corner
:
5
bgColor
:
GXF_COMMIT_COLOR
];
...
@@ -180,18 +182,18 @@ typedef enum : NSUInteger {
...
@@ -180,18 +182,18 @@ typedef enum : NSUInteger {
[
self
hiddenBottomView
];
[
self
hiddenBottomView
];
}
}
}
else
if
([
self
.
transfer
.
state
isEqualToString
:
TRANSFER_STATE_PROCESSFAIL
]){
}
else
if
([
self
.
transfer
.
state
isEqualToString
:
TRANSFER_STATE_PROCESSFAIL
]){
NSMutableArray
*
arr
=
[
NSMutableArray
array
];
//系统处理失败
//
NSMutableArray *arr = [NSMutableArray array]; //系统处理失败
if
([
IBTCommon
checkIsPermission
:
TRANSPORT_ACTION_ABORT
])
{
//
if ([IBTCommon checkIsPermission:TRANSPORT_ACTION_ABORT]) {
[
arr
addObject
:
@"作废"
];
//
[arr addObject:@"作废"];
}
if
([
IBTCommon
checkIsPermission
:
TRANSPORT_ACTION_NEW
])
{
//
}if ([IBTCommon checkIsPermission:TRANSPORT_ACTION_NEW]) {
//[arr addObject:@"提交"];
//
//[arr addObject:@"提交"];
[
arr
addObject
:
@"收货"
];
//
[arr addObject:@"收货"];
}
//
}
if
(
arr
.
count
==
0
)
{
//
if (arr.count == 0) {
[
self
hiddenBottomView
];
//
[self hiddenBottomView];
}
else
{
//
}else{
[
self
createBtnWithArr
:
arr
];
//
[self createBtnWithArr:arr];
}
//
}
}
else
{
}
else
{
[
self
hiddenBottomView
];
[
self
hiddenBottomView
];
}
}
...
...
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