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
612b691c
Commit
612b691c
authored
Mar 18, 2018
by
季圣华
Browse files
增加报表中单据点击后展示的功能(续增)
parent
87db2641
Changes
4
Show whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/action/materials/DepotHeadAction.java
View file @
612b691c
...
...
@@ -722,6 +722,7 @@ public class DepotHeadAction extends BaseAction<DepotHeadModel>
item
.
put
(
"supplierName"
,
arr
[
6
]);
//供应商
item
.
put
(
"depotName"
,
arr
[
7
]);
//仓库
item
.
put
(
"operTime"
,
arr
[
8
]);
//入库出库日期
item
.
put
(
"type"
,
arr
[
9
]);
//入库出库日期
dataArray
.
add
(
item
);
}
}
...
...
src/main/java/com/jsh/dao/materials/DepotHeadDAO.java
View file @
612b691c
...
...
@@ -54,7 +54,8 @@ public class DepotHeadDAO extends BaseDAO<DepotHead> implements DepotHeadIDAO {
@SuppressWarnings
(
"unchecked"
)
public
void
findInDetail
(
PageUtil
pageUtil
,
String
beginTime
,
String
endTime
,
String
type
,
Long
pid
,
String
dids
,
Long
oId
)
throws
JshException
{
StringBuffer
queryString
=
new
StringBuffer
();
queryString
.
append
(
"select dh.Number,m.`name`,m.Model,di.UnitPrice,di.OperNumber,di.AllPrice,s.supplier,d.dName,date_format(dh.OperTime, '%Y-%m-%d') "
+
queryString
.
append
(
"select dh.Number,m.`name`,m.Model,di.UnitPrice,di.OperNumber,di.AllPrice,s.supplier,d.dName,"
+
"date_format(dh.OperTime, '%Y-%m-%d'), concat(dh.SubType,dh.Type) as newType "
+
"from jsh_depothead dh inner join jsh_depotitem di on di.HeaderId=dh.id "
+
"inner join jsh_material m on m.id=di.MaterialId "
+
"inner join jsh_supplier s on s.id=dh.OrganId "
+
...
...
src/main/webapp/pages/reports/in_detail.jsp
View file @
612b691c
...
...
@@ -19,6 +19,7 @@
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/common/outlook_in.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script>
...
...
@@ -210,7 +211,12 @@
pageSize
:
10
,
pageList
:
[
10
,
50
,
100
],
columns
:[[
{
title
:
'
单据编号
'
,
field
:
'
number
'
,
width
:
140
},
{
title
:
'
单据编号
'
,
field
:
'
number
'
,
width
:
140
,
formatter
:
function
(
value
,
row
)
{
return
"
<a class='n-link' onclick=
\"
newTab('
"
+
row
.
number
+
"
','../materials/bill_detail.jsp?n=
"
+
row
.
number
+
"
&type=
"
+
row
.
type
+
"
','')
\"
>
"
+
row
.
number
+
"
</a>
"
;
}
},
{
title
:
'
商品名称
'
,
field
:
'
materialName
'
,
width
:
120
},
{
title
:
'
商品型号
'
,
field
:
'
materialModel
'
,
width
:
100
},
{
title
:
'
单价
'
,
field
:
'
unitPrice
'
,
width
:
60
},
...
...
src/main/webapp/pages/reports/out_detail.jsp
View file @
612b691c
...
...
@@ -19,6 +19,7 @@
<link
type=
"text/css"
rel=
"stylesheet"
href=
"
<%=
path
%>
/css/common.css"
/>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/common/outlook_in.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script>
...
...
@@ -210,7 +211,12 @@
pageSize
:
10
,
pageList
:
[
10
,
50
,
100
],
columns
:[[
{
title
:
'
单据编号
'
,
field
:
'
number
'
,
width
:
140
},
{
title
:
'
单据编号
'
,
field
:
'
number
'
,
width
:
140
,
formatter
:
function
(
value
,
row
)
{
return
"
<a class='n-link' onclick=
\"
newTab('
"
+
row
.
number
+
"
','../materials/bill_detail.jsp?n=
"
+
row
.
number
+
"
&type=
"
+
row
.
type
+
"
','')
\"
>
"
+
row
.
number
+
"
</a>
"
;
}
},
{
title
:
'
商品名称
'
,
field
:
'
materialName
'
,
width
:
120
},
{
title
:
'
商品型号
'
,
field
:
'
materialModel
'
,
width
:
100
},
{
title
:
'
单价
'
,
field
:
'
unitPrice
'
,
width
:
60
},
...
...
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