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
377450c7
Commit
377450c7
authored
Dec 14, 2015
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
列表的筛选要也要添加按照”提交系统处理“、”系统处理失败“这两个状态的查询。
parent
7adc37d4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
12 deletions
+61
-12
PurchaseViewController.m
...Controllers/Purchase/Controllers/PurchaseViewController.m
+10
-2
PurchaseBoltView.m
XFFruit/ViewControllers/Purchase/Views/PurchaseBoltView.m
+10
-2
TransferViewController.m
...Controllers/Transfer/Controllers/TransferViewController.m
+10
-2
TransferBoltView.m
XFFruit/ViewControllers/Transfer/Views/TransferBoltView.m
+10
-2
TransportViewController.m
...ntrollers/Transport/Controllers/TransportViewController.m
+10
-2
TransportBoltView.m
XFFruit/ViewControllers/Transport/Views/TransportBoltView.m
+11
-2
No files found.
XFFruit/ViewControllers/Purchase/Controllers/PurchaseViewController.m
View file @
377450c7
...
...
@@ -275,7 +275,7 @@ typedef enum : NSUInteger {
_boltView
.
backgroundColor
=
XXFBgColor
;
_boltView
.
delegate
=
self
;
//initial(未提交)submitted(已提交)rejected(已拒绝)approved(已审批)shipping(发运中)finished(已完成)
_boltView
.
dataArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@"未提交"
,
@"未审批"
,
@"已拒绝"
,
@"发运中"
,
@"已作废"
,
@"已完成"
,
nil
];
_boltView
.
dataArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@"未提交"
,
@"未审批"
,
@"已拒绝"
,
@"发运中"
,
@"已作废"
,
@"已完成"
,
@"提交系统处理"
,
@"系统处理失败"
,
nil
];
[
_maskView
addSubview
:
_boltView
];
[
UIView
animateWithDuration
:
0
.
25
animations
:
^
{
CGRect
sortFrame
=
_boltView
.
frame
;
...
...
@@ -411,7 +411,15 @@ typedef enum : NSUInteger {
self
.
productLike
=
@""
;
}
}
#pragma mark - 隐藏maskView
-
(
void
)
hiddenMaskView
{
if
(
_sortView
)
{
[
self
hiddenSortMaskView
:
YES
];
}
if
(
_boltView
)
{
[
self
hiddenBoltMaskView
:
YES
];
}
}
#pragma mark - 协议方法
-
(
NSInteger
)
numberOfSectionsInTableView
:
(
UITableView
*
)
tableView
{
return
1
;
...
...
XFFruit/ViewControllers/Purchase/Views/PurchaseBoltView.m
View file @
377450c7
...
...
@@ -60,6 +60,10 @@
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
4
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
PURCHASE_STATE_FINISHED
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
5
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
PURCHASE_STATE_PROCESS
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
6
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
PURCHASE_STATE_PROCESSFAIL
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
7
inSection
:
0
];
}
self
.
billFiled
.
hidden
=
YES
;
if
(
self
.
billNumber
.
length
>
0
){
...
...
@@ -84,7 +88,7 @@
{
_leftView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
LeftMargin
,
self
.
frame
.
size
.
height
-
BottomHeight
)];
[
self
addSubview
:
_leftView
];
NSArray
*
arr
=
@[
@"按状态"
,
@"采购单号"
,
@"标题"
,
@"供应商Uuid"
,
@"商品
单号
"
];
NSArray
*
arr
=
@[
@"按状态"
,
@"采购单号"
,
@"标题"
,
@"供应商Uuid"
,
@"商品"
];
for
(
NSInteger
i
=
0
;
i
<
arr
.
count
;
i
++
)
{
UIButton
*
button
=
[
UIButton
buttonWithType
:
UIButtonTypeSystem
];
button
.
frame
=
CGRectMake
(
0
,
LeftHeight
*
i
,
LeftMargin
,
LeftHeight
);
...
...
@@ -109,7 +113,7 @@
[
self
addSubview
:
_clearBtn
];
}
-
(
void
)
createRightView
{
NSArray
*
arr
=
@[
@"输入类似采购单号"
,
@"输入类似标题"
,
@"输入类似供应商Uuid"
,
@"输入类似商品
单号
"
];
NSArray
*
arr
=
@[
@"输入类似采购单号"
,
@"输入类似标题"
,
@"输入类似供应商Uuid"
,
@"输入类似商品"
];
UIView
*
contentView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
0
,
ScreenSize
.
width
-
LeftMargin
,
self
.
frame
.
size
.
height
-
BottomHeight
)];
contentView
.
backgroundColor
=
[
UIColor
whiteColor
];
[
self
addSubview
:
contentView
];
...
...
@@ -279,6 +283,10 @@
stateStr
=
PURCHASE_STATE_ABORTED
;
}
else
if
(
indexPath
.
row
==
5
){
stateStr
=
PURCHASE_STATE_FINISHED
;
}
else
if
(
indexPath
.
row
==
6
){
stateStr
=
PURCHASE_STATE_PROCESS
;
}
else
if
(
indexPath
.
row
==
7
){
stateStr
=
PURCHASE_STATE_PROCESSFAIL
;
}
[
self
.
delegate
getBoltValueSelectRow
:
stateStr
];
}
...
...
XFFruit/ViewControllers/Transfer/Controllers/TransferViewController.m
View file @
377450c7
...
...
@@ -263,7 +263,7 @@ typedef enum : NSUInteger {
_boltView
.
backgroundColor
=
XXFBgColor
;
_boltView
.
delegate
=
self
;
_boltView
.
dataArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@"未提交"
,
@"待收货"
,
@"已收货"
,
@"已作废"
,
nil
];
_boltView
.
dataArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@"未提交"
,
@"待收货"
,
@"已收货"
,
@"已作废"
,
@"提交系统处理"
,
@"系统处理失败"
,
nil
];
[
_maskView
addSubview
:
_boltView
];
[
UIView
animateWithDuration
:
0
.
25
animations
:
^
{
CGRect
sortFrame
=
_boltView
.
frame
;
...
...
@@ -393,7 +393,15 @@ typedef enum : NSUInteger {
self
.
productLike
=
@""
;
}
}
#pragma mark - 隐藏maskView
-
(
void
)
hiddenMaskView
{
if
(
_sortView
)
{
[
self
hiddenSortMaskView
:
YES
];
}
if
(
_boltView
)
{
[
self
hiddenBoltMaskView
:
YES
];
}
}
#pragma mark - 协议方法
-
(
NSInteger
)
numberOfSectionsInTableView
:
(
UITableView
*
)
tableView
{
return
1
;
...
...
XFFruit/ViewControllers/Transfer/Views/TransferBoltView.m
View file @
377450c7
...
...
@@ -56,6 +56,10 @@
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
2
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
TRANSPORT_STATE_ABORTED
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
3
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
TRANSPORT_STATE_PROCESS
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
4
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
TRANSPORT_STATE_PROCESSFAIL
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
5
inSection
:
0
];
}
self
.
userFiled
.
hidden
=
YES
;
if
(
self
.
userNumber
.
length
>
0
){
...
...
@@ -76,7 +80,7 @@
{
_leftView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
LeftMargin
,
self
.
frame
.
size
.
height
-
BottomHeight
)];
[
self
addSubview
:
_leftView
];
NSArray
*
arr
=
@[
@"按状态"
,
@"创建人代码"
,
@"调研单号"
,
@"商品
单号
"
];
NSArray
*
arr
=
@[
@"按状态"
,
@"创建人代码"
,
@"调研单号"
,
@"商品"
];
for
(
NSInteger
i
=
0
;
i
<
arr
.
count
;
i
++
)
{
UIButton
*
button
=
[
UIButton
buttonWithType
:
UIButtonTypeSystem
];
button
.
frame
=
CGRectMake
(
0
,
LeftHeight
*
i
,
LeftMargin
,
LeftHeight
);
...
...
@@ -103,7 +107,7 @@
-
(
void
)
createRightView
{
NSArray
*
arr
=
@[
@"输入类似创建人代码"
,
@"输入类似调研单号"
,
@"输入类似商品
单号
"
];
NSArray
*
arr
=
@[
@"输入类似创建人代码"
,
@"输入类似调研单号"
,
@"输入类似商品"
];
UIView
*
contentView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
0
,
ScreenSize
.
width
-
LeftMargin
,
self
.
frame
.
size
.
height
-
BottomHeight
)];
contentView
.
backgroundColor
=
[
UIColor
whiteColor
];
[
self
addSubview
:
contentView
];
...
...
@@ -255,6 +259,10 @@
stateStr
=
TRANSFER_STATE_RECEIVED
;
}
else
if
(
indexPath
.
row
==
3
){
stateStr
=
TRANSFER_STATE_ABORTED
;
}
else
if
(
indexPath
.
row
==
4
){
stateStr
=
TRANSFER_STATE_PROCESS
;
}
else
if
(
indexPath
.
row
==
5
){
stateStr
=
TRANSFER_STATE_PROCESSFAIL
;
}
[
self
.
delegate
getBoltValueSelectRow
:
stateStr
];
}
...
...
XFFruit/ViewControllers/Transport/Controllers/TransportViewController.m
View file @
377450c7
...
...
@@ -266,7 +266,7 @@ typedef enum : NSUInteger {
_boltView
.
backgroundColor
=
XXFBgColor
;
_boltView
.
delegate
=
self
;
_boltView
.
dataArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@"未提交"
,
@"待收货"
,
@"已收货"
,
@"已作废"
,
nil
];
_boltView
.
dataArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@"未提交"
,
@"待收货"
,
@"已收货"
,
@"已作废"
,
@"提交系统处理"
,
@"系统处理失败"
,
nil
];
[
_maskView
addSubview
:
_boltView
];
[
UIView
animateWithDuration
:
0
.
25
animations
:
^
{
CGRect
sortFrame
=
_boltView
.
frame
;
...
...
@@ -395,7 +395,15 @@ typedef enum : NSUInteger {
self
.
productLike
=
@""
;
}
}
#pragma mark - 隐藏maskView
-
(
void
)
hiddenMaskView
{
if
(
_sortView
)
{
[
self
hiddenSortMaskView
:
YES
];
}
if
(
_boltView
)
{
[
self
hiddenBoltMaskView
:
YES
];
}
}
#pragma mark - 协议方法
-
(
NSInteger
)
numberOfSectionsInTableView
:
(
UITableView
*
)
tableView
{
return
1
;
...
...
XFFruit/ViewControllers/Transport/Views/TransportBoltView.m
View file @
377450c7
...
...
@@ -55,6 +55,10 @@
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
2
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
TRANSPORT_STATE_ABORTED
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
3
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
TRANSPORT_STATE_PROCESS
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
4
inSection
:
0
];
}
else
if
([
self
.
state
isEqualToString
:
TRANSPORT_STATE_PROCESSFAIL
])
{
_currentIndexPath
=
[
NSIndexPath
indexPathForRow
:
5
inSection
:
0
];
}
self
.
userFiled
.
hidden
=
YES
;
if
(
self
.
userNumber
.
length
>
0
){
...
...
@@ -75,7 +79,7 @@
{
_leftView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
LeftMargin
,
self
.
frame
.
size
.
height
-
BottomHeight
)];
[
self
addSubview
:
_leftView
];
NSArray
*
arr
=
@[
@"按状态"
,
@"创建人代码"
,
@"调研单号"
,
@"商品
单号
"
];
NSArray
*
arr
=
@[
@"按状态"
,
@"创建人代码"
,
@"调研单号"
,
@"商品"
];
for
(
NSInteger
i
=
0
;
i
<
arr
.
count
;
i
++
)
{
UIButton
*
button
=
[
UIButton
buttonWithType
:
UIButtonTypeSystem
];
button
.
frame
=
CGRectMake
(
0
,
LeftHeight
*
i
,
LeftMargin
,
LeftHeight
);
...
...
@@ -102,7 +106,7 @@
-
(
void
)
createRightView
{
NSArray
*
arr
=
@[
@"输入类似创建人代码"
,
@"输入类似调研单号"
,
@"输入类似商品
单号
"
];
NSArray
*
arr
=
@[
@"输入类似创建人代码"
,
@"输入类似调研单号"
,
@"输入类似商品"
];
UIView
*
contentView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
0
,
ScreenSize
.
width
-
LeftMargin
,
self
.
frame
.
size
.
height
-
BottomHeight
)];
contentView
.
backgroundColor
=
[
UIColor
whiteColor
];
[
self
addSubview
:
contentView
];
...
...
@@ -251,7 +255,12 @@
stateStr
=
TRANSPORT_STATE_RECEIVED
;
}
else
if
(
indexPath
.
row
==
3
){
stateStr
=
TRANSPORT_STATE_ABORTED
;
}
else
if
(
indexPath
.
row
==
4
){
stateStr
=
TRANSPORT_STATE_PROCESS
;
}
else
if
(
indexPath
.
row
==
5
){
stateStr
=
TRANSPORT_STATE_PROCESSFAIL
;
}
[
self
.
delegate
getBoltValueSelectRow
:
stateStr
];
}
...
...
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