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
2f49dc76
Commit
2f49dc76
authored
Dec 07, 2015
by
Achilles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认 拒绝调试
parent
879faa5f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
63 additions
and
15 deletions
+63
-15
VankeSettlementConfirmAPI.m
vanke/controller/VankeSettlementConfirmAPI.m
+10
-3
VankeSettlementRejectAPI.m
vanke/controller/VankeSettlementRejectAPI.m
+10
-3
VankeStatementListModel.h
vanke/model/VankeStatementListModel.h
+5
-0
VankeStatementListModel.m
vanke/model/VankeStatementListModel.m
+9
-0
VankeAppBoard_iPhone.m
vanke/view_iPhone/templates/VankeAppBoard_iPhone.m
+1
-1
VankeStatementDetailListBoard_iPhone.h
...emplates/statement/VankeStatementDetailListBoard_iPhone.h
+3
-0
VankeStatementDetailListBoard_iPhone.m
...emplates/statement/VankeStatementDetailListBoard_iPhone.m
+15
-8
VankeStatementListBoard_iPhone.m
...hone/templates/statement/VankeStatementListBoard_iPhone.m
+10
-0
No files found.
vanke/controller/VankeSettlementConfirmAPI.m
View file @
2f49dc76
...
...
@@ -28,13 +28,20 @@
User
*
curUser
=
[[
VankeCommonModel
sharedInstance
]
currentUser
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"/statement/confirm"
];
NSDictionary
*
operator
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
curUser
.
uuid
,
@"operId"
,
curUser
.
name
,
@"operName"
,
nil
];
NSDictionary
*
operInfo
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
operTime
,
@"time"
,
operator
,
@"operator"
,
nil
];
NSDictionary
*
dict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
self
.
contract
,
@"contract"
,
self
.
settle
,
@"settle"
,
@"confirmed"
,
@"state"
,
operTime
,
@"time"
,
curUser
.
uuid
,
@"operId"
,
curUser
.
name
,
@"operName"
,
operInfo
,
@"operInfo"
,
nil
];
NSString
*
postData
=
[
VankeUtil
dictToJsonString
:
dict
];
[
self
http_post
:
url
].
BODY
(
postData
).
TIMEOUT
(
10
);
...
...
vanke/controller/VankeSettlementRejectAPI.m
View file @
2f49dc76
...
...
@@ -28,14 +28,21 @@
User
*
curUser
=
[[
VankeCommonModel
sharedInstance
]
currentUser
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"/statement/confirm"
];
NSDictionary
*
operator
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
curUser
.
uuid
,
@"operId"
,
curUser
.
name
,
@"operName"
,
nil
];
NSDictionary
*
operInfo
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
operTime
,
@"time"
,
operator
,
@"operator"
,
nil
];
NSDictionary
*
dict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
self
.
contract
,
@"contract"
,
self
.
settle
,
@"settle"
,
@"rejected"
,
@"state"
,
_message
,
@"message"
,
operTime
,
@"time"
,
curUser
.
uuid
,
@"operId"
,
curUser
.
name
,
@"operName"
,
operInfo
,
@"operInfo"
,
nil
];
NSString
*
postData
=
[
VankeUtil
dictToJsonString
:
dict
];
...
...
vanke/model/VankeStatementListModel.h
View file @
2f49dc76
...
...
@@ -29,6 +29,11 @@
// 最后一次响应结果
@property
(
nonatomic
,
strong
)
StatementListResponse
*
lastResp
;
/**
* reload current page
*/
-
(
void
)
reload
;
@end
vanke/model/VankeStatementListModel.m
View file @
2f49dc76
...
...
@@ -38,6 +38,15 @@
#pragma mark - paging query
-
(
void
)
reload
{
if
(
self
.
shops
.
count
)
{
[
self
gotoPage
:(
self
.
shops
.
count
/
PAGE_SIZE
)];
}
else
{
[
self
firstPage
];
}
}
-
(
void
)
firstPage
{
[
self
gotoPage
:
1
];
...
...
vanke/view_iPhone/templates/VankeAppBoard_iPhone.m
View file @
2f49dc76
...
...
@@ -120,7 +120,7 @@ ON_NOTIFICATION3( VankeLoginBoard_iPhone, SUCC_LOGIN, notification )
[
UIView
beginAnimations
:
HideLoginViewAnimationName
context
:
nil
];
[
UIView
setAnimationDuration
:
0
.
5
];
[
UIView
setAnimationCurve
:
UIViewAnimationCurveEaseOut
];
[
UIView
setAnimationTransition
:
UIViewAnimationTransition
CurlUp
forView
:
self
.
view
cache
:
YES
];
[
UIView
setAnimationTransition
:
UIViewAnimationTransition
FlipFromLeft
forView
:
self
.
view
cache
:
YES
];
[
UIView
setAnimationDelegate
:
self
];
[
UIView
commitAnimations
];
...
...
vanke/view_iPhone/templates/statement/VankeStatementDetailListBoard_iPhone.h
View file @
2f49dc76
...
...
@@ -25,6 +25,9 @@
@interface
VankeStatementDetailListBoard_iPhone
:
VankeBaseBoard
// 单据状态发生变化的通知
AS_NOTIFICATION
(
STATE_CHANGED
)
AS_MODEL
(
VankeStatementSubjectListModel
,
model
)
AS_OUTLET
(
BeeUIScrollView
,
list
)
AS_OUTLET
(
VankeStatementDetailMonthCell_iPhone
,
settlementBar
)
...
...
vanke/view_iPhone/templates/statement/VankeStatementDetailListBoard_iPhone.m
View file @
2f49dc76
...
...
@@ -47,6 +47,8 @@ SUPPORT_RESOURCE_LOADING( YES )
@synthesize
settleEquals
=
_settleEquals
;
@synthesize
contractEquals
=
_contractEquals
;
DEF_NOTIFICATION
(
STATE_CHANGED
)
DEF_MODEL
(
VankeStatementListModel
,
model
)
DEF_OUTLET
(
BeeUIScrollView
,
list
)
DEF_OUTLET
(
VankeStatementDetailMonthCell_iPhone
,
settlementBar
)
...
...
@@ -139,8 +141,8 @@ ON_SIGNAL3( VankeStatementSubjectListModel, RELOADED, signal )
if
(
nil
!=
respData
)
{
self
.
title
=
[
respData
codeName
];
$
(
self
.
settlementBar
).
DATA
(
respData
);
$
(
self
.
imgState
).
DATA
([
NSString
stringWithFormat
:
@"%@_big.png"
,
_d
ata
.
state
]);
[
self
showOperButtons
:
[
_d
ata
unconfirmed
]];
$
(
self
.
imgState
).
DATA
([
NSString
stringWithFormat
:
@"%@_big.png"
,
respD
ata
.
state
]);
[
self
showOperButtons
:
[
respD
ata
unconfirmed
]];
}
}
...
...
@@ -153,10 +155,11 @@ ON_SIGNAL3( VankeStatementConfirmModel, RELOADED, signal ) {
if
(
!
[
confirmModel
isOk
])
{
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"确认失败: %@"
,
confirmModel
.
serverResp
.
message
];
[
GEToast
showWithText
:
msg
bottomOffset
:
5
0
.
0
f
duration
:
2
.
0
f
];
[
GEToast
showWithText
:
msg
bottomOffset
:
6
0
.
0
f
duration
:
2
.
0
f
];
}
else
{
[
GEToast
showWithText
:
@"确认成功!"
bottomOffset
:
5
0
.
0
f
duration
:
2
.
0
f
];
[
GEToast
showWithText
:
@"确认成功!"
bottomOffset
:
6
0
.
0
f
duration
:
2
.
0
f
];
[
self
.
model
firstPage
];
[
self
postNotification
:
self
.
STATE_CHANGED
];
}
}
...
...
@@ -166,12 +169,13 @@ ON_SIGNAL3( VankeStatementRejectModel, RELOADING, signal ) {
ON_SIGNAL3
(
VankeStatementRejectModel
,
RELOADED
,
signal
)
{
[
GEToast
hideProgress
];
if
(
!
[
confirm
Model
isOk
])
{
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"拒绝失败: %@"
,
confirm
Model
.
serverResp
.
message
];
[
GEToast
showWithText
:
msg
bottomOffset
:
5
0
.
0
f
duration
:
2
.
0
f
];
if
(
!
[
reject
Model
isOk
])
{
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"拒绝失败: %@"
,
reject
Model
.
serverResp
.
message
];
[
GEToast
showWithText
:
msg
bottomOffset
:
6
0
.
0
f
duration
:
2
.
0
f
];
}
else
{
[
GEToast
showWithText
:
@"拒绝成功!"
bottomOffset
:
5
0
.
0
f
duration
:
2
.
0
f
];
[
GEToast
showWithText
:
@"拒绝成功!"
bottomOffset
:
6
0
.
0
f
duration
:
2
.
0
f
];
[
self
.
model
firstPage
];
[
self
postNotification
:
self
.
STATE_CHANGED
];
}
}
...
...
@@ -219,6 +223,9 @@ ON_SIGNAL3(VankeStatementDetailMonthCell_iPhone, pickerMask, signal) {
ON_SIGNAL3
(
VankeStatementDetailListBoard_iPhone
,
btnReject
,
signal
)
{
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"拒绝原因"
message
:
nil
delegate
:
self
cancelButtonTitle
:
@"取消"
otherButtonTitles
:
@"确定"
,
nil
];
alert
.
alertViewStyle
=
UIAlertViewStylePlainTextInput
;
UITextField
*
textField
=
[
alert
textFieldAtIndex
:
0
];
textField
.
placeholder
=
@"请输入拒绝原因..."
;
// textField.borderStyle=UITextBorderStyleRoundedRect;
alert
.
tag
=
ALERT_REJECT_TAG
;
[
alert
show
];
}
...
...
vanke/view_iPhone/templates/statement/VankeStatementListBoard_iPhone.m
View file @
2f49dc76
...
...
@@ -66,6 +66,7 @@ ON_CREATE_VIEWS( signal )
self
.
title
=
@"对账单"
;
[
self
initListAndModel
];
// [self.searchBar setBarTintColor :[VankeUtil rgbStringToColor: @"246,246,246"]];
[
self
observeNotification
:
VankeStatementDetailListBoard_iPhone
.
STATE_CHANGED
];
}
ON_DELETE_VIEWS
(
signal
)
...
...
@@ -183,6 +184,14 @@ ON_SIGNAL3(VankeStatementListItemCell_iPhone, mask, signal) {
[
self
.
stack
pushBoard
:
board
animated
:
YES
];
}
#pragma VankeStatementDetailListBoard_iPhone event
ON_NOTIFICATION3
(
VankeStatementDetailListBoard_iPhone
,
STATE_CHANGED
,
notification
)
{
INFO
(
@"state changed"
);
[
self
.
model
reload
];
}
#pragma private methods
-
(
void
)
initListAndModel
{
...
...
@@ -253,4 +262,5 @@ ON_SIGNAL3(VankeStatementListItemCell_iPhone, mask, signal) {
// _model.settleEquals = [df dateFromString:@"2015-10-11"];
}
@end
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