Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Car-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
张杰
Car-iOS
Commits
109ae142
Commit
109ae142
authored
Mar 17, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、单据全部都已对账,全选状态下点击对账,直接取消对账。2、没有数据隐藏底部的对账面板
parent
dd4b7448
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
Main.storyboard
Car/Base.lproj/Main.storyboard
+1
-0
MainViewController.m
Car/CodeClass/Main/ViewControllers/MainViewController.m
+13
-1
No files found.
Car/Base.lproj/Main.storyboard
View file @
109ae142
...
...
@@ -1063,6 +1063,7 @@
</barButtonItem>
</navigationItem>
<connections>
<outlet
property=
"bottomBoard"
destination=
"60m-IE-dYi"
id=
"1cC-2f-x1D"
/>
<outlet
property=
"btnCheck"
destination=
"pkB-KR-wBr"
id=
"iuK-wQ-xGq"
/>
<outlet
property=
"btnSelectAll"
destination=
"bmf-kc-sf9"
id=
"2Uw-gN-QDj"
/>
<outlet
property=
"constraintTop"
destination=
"Ogv-fa-3jp"
id=
"Pko-jE-pfh"
/>
...
...
Car/CodeClass/Main/ViewControllers/MainViewController.m
View file @
109ae142
...
...
@@ -21,6 +21,11 @@
@property
(
strong
,
nonatomic
)
NSMutableSet
*
setBillToCheck
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelCount
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelAmount
;
/**
底部的面板
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIView
*
bottomBoard
;
@property
(
strong
,
nonatomic
)
TradeStatisticsResult
*
total
;
@end
...
...
@@ -31,6 +36,7 @@
[
self
httpRequest
];
self
.
constraintTop
.
constant
=
0
;
[
self
.
view
layoutIfNeeded
];
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
actionNoti
:
)
name
:
kNotiSelectBill
object
:
nil
];
}
...
...
@@ -59,6 +65,7 @@
}
[
weakSelf
.
arrData
addObject
:
model
];
}
weakSelf
.
bottomBoard
.
hidden
=
weakSelf
.
arrData
.
count
==
0
;
[
weakSelf
listTableViewReloadData
];
}
else
{
...
...
@@ -91,7 +98,7 @@
[
super
tableView
:
tableView
didSelectRowAtIndexPath
:
indexPath
];
kDebugIndex
(
indexPath
);
//
kDebugIndex(indexPath);
}
-
(
void
)
listDidSelect
:
(
id
)
model
{
...
...
@@ -132,6 +139,11 @@
[
self
.
view
layoutIfNeeded
];
}];
}
else
{
if
(
self
.
btnSelectAll
.
isSelected
&&
self
.
setBillToCheck
.
count
==
0
)
{
[
self
actionCancelCheck
:
nil
];
return
;
}
if
(
self
.
setBillToCheck
.
count
==
0
)
{
[
MBProgressHUD
j_error
:
@"请选择对账的单据!"
complete
:
nil
];
return
;
...
...
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