質問編集履歴
1
jspを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,3 +15,40 @@
|
|
15
15
|
・実装するコードの書き方
|
16
16
|
|
17
17
|
よろしくお願いします。
|
18
|
+
|
19
|
+
```ClientInsert.jsp
|
20
|
+
<!-- 売上登録画面 -->
|
21
|
+
<table border="1" style="border-collapse: collapse">
|
22
|
+
<tr style="background-color: #ffdab9;">
|
23
|
+
<th>受注日</th>
|
24
|
+
<th>取引先</th>
|
25
|
+
<th>商品名</th>
|
26
|
+
<th>売上個数</th>
|
27
|
+
<th>売上金額</th>
|
28
|
+
</tr>
|
29
|
+
<tr>
|
30
|
+
<td>
|
31
|
+
<input type="text" name="orderDate" value="<%=src0101Dto.getOrderDate() %>"> <!-- 受注日 -->
|
32
|
+
</td>
|
33
|
+
<td>
|
34
|
+
<select name="clientCode">
|
35
|
+
<% for(ClientDto dt : src0101Dto.getListClientNames()){ %>
|
36
|
+
<option value="<%=dt.getClientCode() %>"><%=dt.getClientName() %></option> <!-- 取引先 -->
|
37
|
+
<% } %>
|
38
|
+
</select>
|
39
|
+
</td>
|
40
|
+
<td>
|
41
|
+
<select name="productCode">
|
42
|
+
<% for(ProductDto dt : src0101Dto.getListProductNames()){ %>
|
43
|
+
<option value="<%=dt.getProductCode() %>"><%=dt.getProductName() %></option> <!-- 商品名 -->
|
44
|
+
<% } %>
|
45
|
+
</select>
|
46
|
+
</td>
|
47
|
+
<td><input type="text" name="salesQuantity"></td> <!-- 売上個数 -->
|
48
|
+
<td><input type="text" name="salesPrice"></td> <!-- 売上金額 -->
|
49
|
+
</tr>
|
50
|
+
</table>
|
51
|
+
|
52
|
+
<!-- 売上登録ボタン -->
|
53
|
+
<input type="button" onclick="salesInsert();" value="売上登録"><br>
|
54
|
+
```
|