Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
万
万科
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
张杰
万科
Commits
4d3b1e20
Commit
4d3b1e20
authored
9 years ago
by
Achilles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
statement
parent
e9ea825f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
16 deletions
+119
-16
VankeStatementDetailListBoard_iPhone.m
...emplates/statement/VankeStatementDetailListBoard_iPhone.m
+65
-14
VankeStatementDetailListBoard_iPhone.xml
...plates/statement/VankeStatementDetailListBoard_iPhone.xml
+54
-2
No files found.
vanke/view_iPhone/templates/statement/VankeStatementDetailListBoard_iPhone.m
View file @
4d3b1e20
//
// ______ ______ ______
// /\ __ \ /\ ___\ /\ ___\
//
\ \ __< \ \ __\_ \ \ __\_
//
// \ \ __< \ \ __\_ \ \ __\_
// \ \_____\ \ \_____\ \ \_____\
//
\/_____/ \/_____/ \/_____/
//
// \/_____/ \/_____/ \/_____/
//
// Powered by BeeFramework
//
...
...
@@ -26,7 +26,7 @@
#pragma mark -
@interface
VankeStatementDetailListBoard_iPhone
()
@interface
VankeStatementDetailListBoard_iPhone
()
{
//<#@private var#>
}
...
...
@@ -63,6 +63,7 @@ ON_CREATE_VIEWS( signal )
self
.
navigationBarShown
=
YES
;
self
.
allowedSwipeToBack
=
YES
;
self
.
title
=
[
_data
codeName
];
[
self
showOperButtons
:
[
_data
unconfirmed
]];
self
.
list
.
headerClass
=
[
PullLoader
class
];
self
.
list
.
headerShown
=
YES
;
...
...
@@ -124,12 +125,14 @@ ON_CREATE_VIEWS( signal )
};
// TODO
// self.model.classificationEquals = _projectCategory;
// self.model.nameLike = _projectNameLike;
// self.model.salesDateEquals = _salesDate;
// _searchBar.text = _projectNameLike;
// self.model.classificationEquals = _projectCategory;
// self.model.nameLike = _projectNameLike;
// self.model.salesDateEquals = _salesDate;
// _searchBar.text = _projectNameLike;
//TODO 这里要求重新查询明细
_model
.
settleEquals
=
[
NSDate
date
];
}
ON_DELETE_VIEWS
(
signal
)
...
...
@@ -138,6 +141,7 @@ ON_DELETE_VIEWS( signal )
ON_LAYOUT_VIEWS
(
signal
)
{
}
ON_WILL_APPEAR
(
signal
)
...
...
@@ -191,13 +195,14 @@ ON_SIGNAL3( VankeStatementListModel, RELOADED, signal )
[
self
.
list
reloadData
];
$
(
self
.
settlementBar
).
DATA
(
_data
);
$
(
self
.
imgState
).
DATA
([
NSString
stringWithFormat
:
@"%@_big.png"
,
_data
.
state
]);
[
self
showOperButtons
:
[
_data
unconfirmed
]];
}
#pragma UISearchBarDelegate
-
(
void
)
searchBarSearchButtonClicked
:
(
UISearchBar
*
)
searchBar
{
// NSString *nameLike = [VankeUtil trim:_searchBar.text];
// self.model.nameLike = nameLike;
// NSString *nameLike = [VankeUtil trim:_searchBar.text];
// self.model.nameLike = nameLike;
[
self
.
model
firstPage
];
}
...
...
@@ -228,4 +233,50 @@ ON_SIGNAL3(VankeStatementDetailMonthCell_iPhone, pickerMask, signal) {
[
self
presentViewController
:
alertController
animated
:
YES
completion
:
nil
];
}
#pragma VankeStatementDetailListBoard_iPhone
#define ALERT_REJECT_TAG 100
ON_SIGNAL3
(
VankeStatementDetailListBoard_iPhone
,
btnReject
,
signal
)
{
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"拒绝原因"
message
:
nil
delegate
:
self
cancelButtonTitle
:
@"取消"
otherButtonTitles
:
@"确定"
,
nil
];
alert
.
alertViewStyle
=
UIAlertViewStylePlainTextInput
;
alert
.
tag
=
ALERT_REJECT_TAG
;
[
alert
show
];
}
ON_SIGNAL3
(
VankeStatementDetailListBoard_iPhone
,
btnConfirm
,
signal
)
{
UIAlertController
*
alertController
=
[
UIAlertController
alertControllerWithTitle
:
@"是否确认账单?"
message
:
nil
preferredStyle
:
UIAlertControllerStyleActionSheet
];
UIAlertAction
*
cancelAction
=
[
UIAlertAction
actionWithTitle
:
@"取消"
style
:
UIAlertActionStyleCancel
handler
:
nil
];
UIAlertAction
*
archiveAction
=
[
UIAlertAction
actionWithTitle
:
@"确认"
style
:
UIAlertActionStyleDefault
handler
:^
(
UIAlertAction
*
action
)
{
INFO
(
@"正在确认账单。。。"
);
}];
[
alertController
addAction
:
cancelAction
];
[
alertController
addAction
:
archiveAction
];
[
self
presentViewController
:
alertController
animated
:
YES
completion
:
nil
];
}
-
(
void
)
alertView
:
(
UIAlertView
*
)
alertView
clickedButtonAtIndex
:
(
NSInteger
)
buttonIndex
{
if
(
alertView
.
tag
==
ALERT_REJECT_TAG
)
{
if
(
buttonIndex
==
0
)
{
INFO
(
@"取消拒绝"
);
}
else
if
(
buttonIndex
==
1
)
{
INFO
(
@"准备拒绝单据"
);
}
}
}
#pragma private methods
-
(
void
)
showOperButtons
:
(
BOOL
)
show
{
NSArray
*
items
=
[[
NSArray
alloc
]
initWithObjects
:
$
(
@"bg1"
),
$
(
@"bg2"
),
$
(
@"btnReject"
),
$
(
@"btnConfirm"
),
nil
];
for
(
BeeUIQuery
*
qry
in
items
)
{
if
(
show
)
{
qry
.
SHOW
();
}
else
{
qry
.
HIDE
();
}
}
}
@end
This diff is collapsed.
Click to expand it.
vanke/view_iPhone/templates/statement/VankeStatementDetailListBoard_iPhone.xml
View file @
4d3b1e20
<?xml version="1.0" encoding="UTF-8"?>
<ui
namespace=
"VankeStatementDetailListBoard_iPhone"
>
<linear
class=
"wrapper"
>
<linear
orientation=
"v"
class=
"wrapper"
>
<image
class=
"bg"
/>
<list
id=
"list"
/>
<VankeStatementDetailMonthCell_iPhone
id=
"settlementBar"
/>
<image
id=
"imgState"
class=
"image-state"
/>
<linear
orientation=
"h"
class=
"oper-wrapper"
>
<image
id=
"bg1"
class=
"bg"
/>
<linear
orientation=
"h"
class=
"inner-wrapper"
>
<image
id=
"bg2"
class=
"bg"
/>
<button
id=
"btnReject"
class=
"btn reject"
>
拒绝
</button>
<button
id=
"btnConfirm"
class=
"btn confirm"
>
确认
</button>
</linear>
</linear>
</linear>
<style
type=
"text/css"
>
...
...
@@ -46,8 +55,51 @@
.image-state {
position: absolute;
left: 0px;
top:
64
px;
top:
40
px;
image-src: url(unconfirmed_big.png);
}
.oper-wrapper {
position: absolute;
bottom: 0px;
left: 0px;
height: 60px;
width: 100%;
}
.oper-wrapper > .bg {
background-color: #aaaaaa;
}
.oper-wrapper .inner-wrapper {
width: 100%;
height: 100%;
padding-top: 1px;
}
.inner-wrapper > .bg {
background-color: #f6f6f6;
}
.oper-wrapper .btn {
width: 50%;
height: 100%;
border-radius: 8px;
border-width: 1px;
font-size: 15px;
font-weight: bold;
padding: 10px;
}
.reject {
color: rgb(144,76,245);
border-color: rgb(144,76,245);
background-color: white;
}
.confirm {
color: white;
background-color: rgb(144,76,245);
}
</style>
</ui>
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