-
Notifications
You must be signed in to change notification settings - Fork 433
/
Copy pathstockDetail.jsp
154 lines (154 loc) · 6.41 KB
/
stockDetail.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<%@page contentType="text/html; charset=gb2312" language="java"%>
<%@page import="com.actionForm.GoodsForm"%>
<%@page import="com.actionForm.ProviderForm"%>
<%@page import="com.dao.GoodsDAO"%>
<%@page import="com.actionForm.StockGoodsForm"%>
<%@page import="com.actionForm.StockMainViewForm"%>
<%@page import="com.actionForm.StockDetailForm"%>
<%@page import="com.dao.ProviderDAO"%>
<%@page import="com.core.GetTime"%>
<%@page import="java.util.*"%>
<%
boolean flag=false;
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>物资管理系统</title>
<link rel="stylesheet" href="Css/style.css">
</head>
<body>
<table width="757" height="174" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="133" align="center" valign="top"><%@include file="top.jsp"%>
</td>
</tr>
<tr>
<td><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0" background="images/area_bg.jpg">
<tr>
<td width="26%" align="center" class='word_white'>当前登录用户:<%=session.getAttribute("username")%></td>
<td width="4%"> </td>
<td width="70%" valign="bottom"> 当前位置:查询统计
> <a href="ifDeal.do?action=stockQuery">采购单查询</a> > 采购单详细信息 >>> </td>
</tr>
</table>
<table width="100%" height="385" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="5" valign="top" background="images/left.gif"> </td>
<td align="center" valign="top">
<table width="96%" height="487" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><%
StockMainViewForm stockMVF=(StockMainViewForm)request.getAttribute("stockDetail");
if(stockMVF==null){
%>
<table width="98%" height="30" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td height="36" align="center">没有符合条件的采购单信息!</td>
</tr>
</table>
<%
}else{
int id=0;
String sno="";
String provider="";
String principal="";
String username="";
String createTime="";
int state=-1;
String strState="";
sno=stockMVF.getSno();
provider=stockMVF.getProvider();
principal=stockMVF.getPrincipal();
username=stockMVF.getUsername();
GetTime getTime=new GetTime();
createTime=getTime.formatTime(stockMVF.getCreateTime());
state=stockMVF.getState();
switch(state){
case 0:
strState="未审核";
break;
case 1:
strState="已入库";
break;
default:
strState="不合格";
}
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableBorder">
<tr>
<td align="center"><table width="98%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
<tr>
<td width="28%" height="24" style="padding:4px;">采购单号:<span style="padding:5px;"><%=sno%></span></td>
<td width="41%">供应商名称:<span style="padding:5px;"><%=provider%></span></td>
<td width="31%">采购时间:<span style="padding:5px;"><%=createTime%></span></td>
</tr>
</table>
<table width="98%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
<tr>
<td align="center" bgcolor="#D7F6FB">物资名称</td>
<td align="center" bgcolor="#D7F6FB">规格</td>
<td align="center" bgcolor="#D7F6FB">生产厂家</td>
<td align="center" bgcolor="#D7F6FB">单价</td>
<td align="center" bgcolor="#D7F6FB">数量</td>
<td align="center" bgcolor="#D7F6FB">金额</td>
</tr>
<%
String goodsname="";
String spec="";
String producer="";
String unit="";
float price=0.0f;
int number=0;
Set detail=stockMVF.getStockDetail();
Iterator it=detail.iterator();
while(it.hasNext()){
StockDetailForm stockDF=(StockDetailForm)it.next();
price=stockDF.getPrice();
number=stockDF.getNumber();
GoodsForm goodsF=(GoodsForm)stockDF.getGoods();
goodsname=goodsF.getName();
spec=goodsF.getSpec();
producer=goodsF.getProducer();
unit=goodsF.getUnit();
%>
<tr>
<td> <%=goodsname%></td>
<td> <%=spec%></td>
<td> <%=producer%></td>
<td> <%=price%>(元)</td>
<td> <%=number%>(<%=unit%>)</td>
<td> <%=price*number%>(元)</td>
</tr>
<%}%>
</table>
<table width="98%" height="35" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="36%"> </td>
<td width="23%">负责人:<span style="padding:5px;"><%=principal%></span></td>
<td width="23%">操作员:<span style="padding:5px;"><%=username%></span></td>
<td width="18%">状态:<span style="padding:5px;"><%=strState%></span></td>
</tr>
</table>
<%}%>
</td>
</tr>
</table>
<table width="98%" height="46" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right"> <a href="#" onclick="history.back()">[返回]</a></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="10" valign="top" background="images/right.jpg"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="55" valign="top" background="images/bottom.jpg"><%@include file="copyright.jsp"%>
</td>
</tr>
</table>
</body>
</html>