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
9 years ago
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
Show 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 {
btnTag
=
AbortTag
;
}
else
if
([
arr
[
i
]
isEqualToString
:
@"收货"
])
{
btnTag
=
SubmitTag
;
}
else
{
}
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
];
...
...
@@ -180,18 +182,18 @@ typedef enum : NSUInteger {
[
self
hiddenBottomView
];
}
}
else
if
([
self
.
transfer
.
state
isEqualToString
:
TRANSFER_STATE_PROCESSFAIL
]){
NSMutableArray
*
arr
=
[
NSMutableArray
array
];
//系统处理失败
if
([
IBTCommon
checkIsPermission
:
TRANSPORT_ACTION_ABORT
])
{
[
arr
addObject
:
@"作废"
];
}
if
([
IBTCommon
checkIsPermission
:
TRANSPORT_ACTION_NEW
])
{
//[arr addObject:@"提交"];
[
arr
addObject
:
@"收货"
];
}
if
(
arr
.
count
==
0
)
{
[
self
hiddenBottomView
];
}
else
{
[
self
createBtnWithArr
:
arr
];
}
//
NSMutableArray *arr = [NSMutableArray array]; //系统处理失败
//
if ([IBTCommon checkIsPermission:TRANSPORT_ACTION_ABORT]) {
//
[arr addObject:@"作废"];
//
}if ([IBTCommon checkIsPermission:TRANSPORT_ACTION_NEW]) {
//
//[arr addObject:@"提交"];
//
[arr addObject:@"收货"];
//
}
//
if (arr.count == 0) {
//
[self hiddenBottomView];
//
}else{
//
[self createBtnWithArr:arr];
//
}
}
else
{
[
self
hiddenBottomView
];
}
...
...
This diff is collapsed.
Click to expand it.
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