質問編集履歴
3
一部変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
<label for="co_id">会社名:</label>
|
73
73
|
<select id="co_id" name="co_id" class="form-control" style="width: 200px;">
|
74
74
|
<%while((rec!=null) && (rec.next())) { %>
|
75
|
-
<% if (rec.getString("co_id")
|
75
|
+
<% if (Objects.equals(rec.getString("co_id"), String.valueOf(Co_id))) {%>
|
76
76
|
<option value="<%=rec.getString("co_id")%> selected"><%=rec.getString("company")%></option>
|
77
77
|
<% }else{%>
|
78
78
|
<option value="<%=rec.getString("co_id")%>"><%=rec.getString("company")%></option>
|
2
質問追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -80,4 +80,26 @@
|
|
80
80
|
<%}%>
|
81
81
|
</select>
|
82
82
|
```
|
83
|
+
```java
|
84
|
+
[DBから(一覧)のデータソース部分]
|
85
|
+
<%
|
86
|
+
List<Production_daily_report> list=(List<Production_daily_report>)request.getAttribute("list");
|
87
|
+
Production_daily_report production_daily_report_model=(Production_daily_report)request.getAttribute("production_daily_report");
|
88
|
+
String Pdr_id=production_daily_report_model==null ? "":String.valueOf(production_daily_report_model.getPdr_id());
|
89
|
+
String Record_date=production_daily_report_model == null ? "":production_daily_report_model.getRecord_date();
|
90
|
+
String Co_id=production_daily_report_model == null ? "":String.valueOf(production_daily_report_model.getCo_id());
|
91
|
+
String Fi_id=production_daily_report_model == null ? "":String.valueOf(production_daily_report_model.getFi_id());
|
92
|
+
String St_id=production_daily_report_model == null ? "":String.valueOf(production_daily_report_model.getSt_id());
|
93
|
+
String Ag_id=production_daily_report_model == null ? "":String.valueOf(production_daily_report_model.getAg_id());
|
94
|
+
String Sl_id=production_daily_report_model == null ? "":String.valueOf(production_daily_report_model.getSl_id());
|
95
|
+
String Quantity=production_daily_report_model == null ? "":production_daily_report_model.getQuantity();
|
96
|
+
|
97
|
+
String title=(String)request.getAttribute("title");
|
98
|
+
title=title==null? "登録してください。":title;
|
99
|
+
String err=(String)request.getAttribute("err");
|
100
|
+
String msg=(String)request.getAttribute("msg");
|
101
|
+
%>
|
102
|
+
```
|
103
|
+
本やWebで調べながらですがよくわからないことが多く
|
104
|
+
意味不明なことがあればすいません
|
83
105
|
よろしくご指導お願いいたします。
|
1
コード全体を掲載します。
title
CHANGED
File without changes
|
body
CHANGED
@@ -68,8 +68,6 @@
|
|
68
68
|
}
|
69
69
|
%>
|
70
70
|
```
|
71
|
-
|
72
|
-
|
73
71
|
```html
|
74
72
|
<label for="co_id">会社名:</label>
|
75
73
|
<select id="co_id" name="co_id" class="form-control" style="width: 200px;">
|