Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
da798323
Commit
da798323
authored
Jan 22, 2017
by
季圣华
Browse files
账户的当前余额改为只读
parent
fddbfd5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
WebRoot/WEB-INF/classes/com/jsh/action/basic/AccountAction.class
View file @
da798323
No preview for this file type
WebRoot/pages/manage/account.jsp
View file @
da798323
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
</div>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"currentAmountLabel"
>
当前余额
</label>
<label
id=
"currentAmountLabel"
>
当前余额
</label>
<input
name=
"currentAmount"
id=
"currentAmount"
type=
"text"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 230px;height: 20px"
></input>
<input
name=
"currentAmount"
id=
"currentAmount"
type=
"text"
disabled=
"disabled"
class=
"easyui-numberbox"
data-options=
"min:0,precision:2"
style=
"width: 230px;height: 20px"
></input>
</div>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"remarkLabel"
>
备
注
</label>
<label
id=
"remarkLabel"
>
备
注
</label>
...
...
src/com/jsh/action/basic/AccountAction.java
View file @
da798323
...
@@ -64,7 +64,7 @@ public class AccountAction extends BaseAction<AccountModel>
...
@@ -64,7 +64,7 @@ public class AccountAction extends BaseAction<AccountModel>
Account
Account
=
new
Account
();
Account
Account
=
new
Account
();
Account
.
setName
(
model
.
getName
());
Account
.
setName
(
model
.
getName
());
Account
.
setSerialNo
(
model
.
getSerialNo
());
Account
.
setSerialNo
(
model
.
getSerialNo
());
Account
.
setInitialAmount
(
model
.
getInitialAmount
());
Account
.
setInitialAmount
(
model
.
getInitialAmount
()
!=
null
?
model
.
getInitialAmount
()
:
0
);
Account
.
setCurrentAmount
(
model
.
getCurrentAmount
());
Account
.
setCurrentAmount
(
model
.
getCurrentAmount
());
Account
.
setRemark
(
model
.
getRemark
());
Account
.
setRemark
(
model
.
getRemark
());
accountService
.
create
(
Account
);
accountService
.
create
(
Account
);
...
@@ -139,7 +139,7 @@ public class AccountAction extends BaseAction<AccountModel>
...
@@ -139,7 +139,7 @@ public class AccountAction extends BaseAction<AccountModel>
Account
Account
=
accountService
.
get
(
model
.
getAccountID
());
Account
Account
=
accountService
.
get
(
model
.
getAccountID
());
Account
.
setName
(
model
.
getName
());
Account
.
setName
(
model
.
getName
());
Account
.
setSerialNo
(
model
.
getSerialNo
());
Account
.
setSerialNo
(
model
.
getSerialNo
());
Account
.
setInitialAmount
(
model
.
getInitialAmount
());
Account
.
setInitialAmount
(
model
.
getInitialAmount
()
!=
null
?
model
.
getInitialAmount
()
:
0
);
Account
.
setCurrentAmount
(
model
.
getCurrentAmount
());
Account
.
setCurrentAmount
(
model
.
getCurrentAmount
());
Account
.
setRemark
(
model
.
getRemark
());
Account
.
setRemark
(
model
.
getRemark
());
accountService
.
update
(
Account
);
accountService
.
update
(
Account
);
...
...
Write
Preview
Supports
Markdown
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