Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BudgetManagementSystem
Overview
Overview
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
王利雷
BudgetManagementSystem
Commits
90506276
Commit
90506276
authored
May 25, 2019
by
shj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成燃料动力费和测试化验加工费的策略改变,直接取用户输入;生成预算和预算属性页面取消项目年限相关字段;
parent
608b7358
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
16 deletions
+26
-16
BudgetService.java
src/main/java/service/impl/BudgetService.java
+10
-4
BudgetExportUtil.java
src/main/java/util/BudgetExportUtil.java
+2
-2
budgetSetting.jsp
src/main/webapp/budgetSetting.jsp
+4
-4
index.jsp
src/main/webapp/index.jsp
+10
-6
No files found.
src/main/java/service/impl/BudgetService.java
View file @
90506276
...
...
@@ -161,8 +161,11 @@ public class BudgetService implements IBudgetService {
*/
@Override
public
Map
<
TestAndProcess
,
Integer
>
doTestAndProcess
(
Double
number
)
{
List
<
TestAndProcess
>
testAndProcesses
=
testAndProcessDao
.
selectAll
();
return
generateMap
((
List
)
testAndProcesses
,
number
);
Map
<
TestAndProcess
,
Integer
>
result
=
new
HashMap
<>();
TestAndProcess
testAndProcess
=
new
TestAndProcess
();
testAndProcess
.
setPrice
(
number
);
result
.
put
(
testAndProcess
,
1
);
return
result
;
}
/**
...
...
@@ -173,8 +176,11 @@ public class BudgetService implements IBudgetService {
*/
@Override
public
Map
<
Power
,
Integer
>
doPower
(
Double
number
)
{
List
<
Power
>
powers
=
powerDao
.
selectAll
();
return
generateMap
((
List
)
powers
,
number
);
Map
<
Power
,
Integer
>
result
=
new
HashMap
<>();
Power
power
=
new
Power
();
power
.
setPrice
(
number
);
result
.
put
(
power
,
1
);
return
result
;
}
/**
...
...
src/main/java/util/BudgetExportUtil.java
View file @
90506276
...
...
@@ -111,7 +111,7 @@ public class BudgetExportUtil {
paragraph
=
document
.
createParagraph
();
run
=
paragraph
.
createRun
();
run
.
addTab
();
run
.
setText
(
"测试化验加工费:
万元
"
);
run
.
setText
(
"测试化验加工费:
"
+
detailService
.
sumTestAndProcess
(
budget
.
getTestAndProcesses
())+
"万元。【具体用途自行填写】
"
);
//燃料动力费
...
...
@@ -123,7 +123,7 @@ public class BudgetExportUtil {
paragraph
=
document
.
createParagraph
();
run
=
paragraph
.
createRun
();
run
.
addTab
();
run
.
setText
(
"燃料动力费:
万元
"
);
run
.
setText
(
"燃料动力费:
"
+
detailService
.
sumPower
(
budget
.
getPowers
())+
"万元。【具体用途自行填写】
"
);
//差旅费
...
...
src/main/webapp/budgetSetting.jsp
View file @
90506276
...
...
@@ -78,12 +78,12 @@
</div>
</div>
<div
class=
"form-group"
>
<
%
--
<
div
class=
"form-group"
>
<label
class=
"control-label col-sm-4"
>
项目周期(年)
</label>
<div
class=
"col-sm-4"
>
<input
name=
"years"
type=
"number"
placeholder=
"填写大于0的数字"
class=
"form-control"
required
>
</div>
</div>
</div>
--%>
<hr>
...
...
@@ -97,9 +97,9 @@
<div
class=
"col-sm-4"
>
<input
name=
"equipment-number"
class=
"form-control"
type=
"number"
v-model=
"budget.equipment.req"
>
</div>
<div
class=
"col-sm-2"
>
<
%
--
<
div
class=
"col-sm-2"
>
<input
name=
"equipment-distribution"
class=
"form-control"
type=
"text"
required
>
</div>
</div>
--%>
</div>
<div
class=
"form-group"
>
...
...
src/main/webapp/index.jsp
View file @
90506276
...
...
@@ -85,12 +85,12 @@
</div>
</div>
<div
class=
"form-group"
>
<
%
--
<
div
class=
"form-group"
>
<label
class=
"control-label col-sm-4"
>
项目周期(年)
</label>
<div
class=
"col-sm-4"
>
<input
name=
"years"
type=
"number"
placeholder=
"填写大于0的数字"
class=
"form-control"
required
>
</div>
</div>
</div>
--%>
<hr>
...
...
@@ -104,9 +104,9 @@
<div
class=
"col-sm-4"
>
<input
name=
"equipment-number"
class=
"form-control"
type=
"number"
v-model=
"arr[0]"
>
</div>
<div
class=
"col-sm-2"
>
<
%
--
<
div
class=
"col-sm-2"
>
<input
name=
"equipment-distribution"
class=
"form-control"
type=
"text"
required
>
</div>
</div>
--%>
</div>
<div
class=
"form-group"
>
...
...
@@ -208,7 +208,11 @@
<!-- Button -->
<div
title=
"所有复选框必须勾选,如果不需要某类费用,后面的数字填0即可"
>
<button
class=
"btn btn-default btn-lg center-block"
type=
"submit"
>
生成预算
</button>
<p
class=
"help-block"
style=
"color:red"
>
所有复选框必须勾选,如果不需要某类费用,后面的数字填0即可
</p>
<p
class=
"help-block"
style=
"color:red"
>
所有复选框必须勾选,如果不需要某类费用,后面的数字填0即可
<br>
由于间接经费是自动生成的,并且参与总经费计算,因此最好预留一些经费给间接经费(间接经费等于除设备费之外的其他所有直接经费总和的约20%)。
<br>
例如,总经费150万,则以上表单总和建议在120万。
</p>
</div>
</form>
</div>
...
...
@@ -217,7 +221,7 @@
var
formVue
=
new
Vue
({
el
:
"#form"
,
data
:{
arr
:[
20
,
12
,
1
5
,
0
,
12
,
5
,
6
,
8
,
66
,
2
,
0
],
arr
:[
20
,
12
,
1
0
,
0
,
12
,
3
,
6
,
5
,
60
,
2
,
0
],
total
:
150
},
computed
:{
...
...
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