質問するログイン新規登録

質問編集履歴

1

ソースの追加

2018/11/29 08:36

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -5,4 +5,209 @@
5
5
  項目名が長く既定のままのサイズでは...表示になってしまいます。
6
6
  もうすこし長くdtの幅をとりつつ、dl-horizontalの機能を有したまま
7
7
  変更したいのです。
8
- 詳しい方おられましたらご教示のほどよろしくお願いします。
8
+ 詳しい方おられましたらご教示のほどよろしくお願いします。
9
+
10
+ .wideなしにしました。
11
+
12
+ @model kyoucyou_001.Models.P_N_T_N_A_Pull_20150801
13
+
14
+ @{
15
+ ViewData["Title"] = "Details";
16
+ }
17
+
18
+ <h2>詳細</h2>
19
+
20
+ <div>
21
+ <h4>引込工事 20150801</h4>
22
+ <hr />
23
+ <!--マンションの情報-->
24
+ <div id="result_0"></div>
25
+ <dl class="dl-horizontal">
26
+ <!--引込工事№-->
27
+ <dt>
28
+ @Html.DisplayNameFor(model => model.Id)
29
+ </dt>
30
+ <dd>
31
+ @Html.DisplayFor(model => model.Id)
32
+ </dd>
33
+
34
+ <!--ID-->
35
+ <dt>
36
+ @Html.DisplayNameFor(model => model.P_N_Apartment_List_Id)
37
+ </dt>
38
+ <dd>
39
+ @Html.DisplayFor(model => model.P_N_Apartment_List_Id)
40
+ </dd>
41
+
42
+ <!--完了日-->
43
+ <dt>
44
+ @Html.DisplayNameFor(model => model.kanryou_bi)
45
+ </dt>
46
+ <dd>
47
+ @Html.DisplayFor(model => model.kanryou_bi)
48
+ </dd>
49
+
50
+ <!--請求日-->
51
+ <dt>
52
+ @Html.DisplayNameFor(model => model.seikyu_bi)
53
+ </dt>
54
+ <dd>
55
+ @Html.DisplayFor(model => model.seikyu_bi)
56
+ </dd>
57
+
58
+ <!--支払日-->
59
+ <dt>
60
+ @Html.DisplayNameFor(model => model.shiharai_bi)
61
+ </dt>
62
+ <dd>
63
+ @Html.DisplayFor(model => model.shiharai_bi)
64
+ </dd>
65
+
66
+ <!--施工業者-->
67
+ <dt>
68
+ @Html.DisplayNameFor(model => model.P_N_T_N_A_Pull_20150801_Builder.builder_name)
69
+ </dt>
70
+ <dd>
71
+ @Html.DisplayFor(model => model.P_N_T_N_A_Pull_20150801_Builder.builder_name)
72
+ </dd>
73
+
74
+ <!--引・集合引込4芯融着1-->
75
+ <dt>
76
+ @Html.DisplayNameFor(model => model.s_4_yucyaku_1)
77
+ </dt>
78
+ <dd>
79
+ @Html.DisplayFor(model => model.s_4_yucyaku_1)
80
+ </dd>
81
+
82
+ <!--引・集合引込4芯融着2-->
83
+ <dt>
84
+ @Html.DisplayNameFor(model => model.s_4_yucyaku_2)
85
+ </dt>
86
+ <dd>
87
+ @Html.DisplayFor(model => model.s_4_yucyaku_2)
88
+ </dd>
89
+
90
+ <!--引・集合引込8芯融着1-->
91
+ <dt>
92
+ @Html.DisplayNameFor(model => model.s_8_yucyaku_1)
93
+ </dt>
94
+ <dd>
95
+ @Html.DisplayFor(model => model.s_8_yucyaku_1)
96
+ </dd>
97
+
98
+ <!--引・集合引込8芯融着2-->
99
+ <dt>
100
+ @Html.DisplayNameFor(model => model.s_8_yucyaku_2)
101
+ </dt>
102
+ <dd>
103
+ @Html.DisplayFor(model => model.s_8_yucyaku_2)
104
+ </dd>
105
+
106
+
107
+ <!--引・カプラー取付(引込クロージャー内)-->
108
+ <dt>
109
+ @Html.DisplayNameFor(model => model.kapura_toritsukke)
110
+ </dt>
111
+ <dd>
112
+ @Html.DisplayFor(model => model.kapura_toritsukke)
113
+ </dd>
114
+
115
+ <!--引・延線4芯-->
116
+ <dt>
117
+ @Html.DisplayNameFor(model => model.e_4)
118
+ </dt>
119
+ <dd>
120
+ @Html.DisplayFor(model => model.e_4)
121
+ </dd>
122
+
123
+ <!--引・延線8芯-->
124
+ <dt>
125
+ @Html.DisplayNameFor(model => model.e_8)
126
+ </dt>
127
+ <dd>
128
+ @Html.DisplayFor(model => model.e_8)
129
+ </dd>
130
+
131
+ <!--引・スパイラル新設-->
132
+ <dt>
133
+ @Html.DisplayNameFor(model => model.sp_shinsetsu)
134
+ </dt>
135
+ <dd>
136
+ @Html.DisplayFor(model => model.sp_shinsetsu)
137
+ </dd>
138
+
139
+ <!--引・スパイラル交換-->
140
+ <dt>
141
+ @Html.DisplayNameFor(model => model.sp_koukan)
142
+ </dt>
143
+ <dd>
144
+ @Html.DisplayFor(model => model.sp_koukan)
145
+ </dd>
146
+
147
+ <!--引・メッセン新設-->
148
+ <dt>
149
+ @Html.DisplayNameFor(model => model.m_shinsetsu)
150
+ </dt>
151
+ <dd>
152
+ @Html.DisplayFor(model => model.m_shinsetsu)
153
+ </dd>
154
+ </dl>
155
+ </div>
156
+ <div>
157
+ <a asp-action="Edit"
158
+ asp-route-id="@Model.Id"
159
+ asp-route-page="@ViewBag.Page"
160
+ asp-route-search_0="@ViewBag.Search_0"
161
+ asp-route-search_item_0="@ViewBag.Search_Item_0"
162
+ asp-route-search_1="@ViewBag.Search_1"
163
+ asp-route-search_item_1="@ViewBag.Search_Item_1"
164
+ asp-route-oya_id="@ViewBag.Oya_id" class="btn btn-default" role="button">編集</a> |
165
+
166
+ <a asp-action="Delete"
167
+ asp-route-id="@Model.Id"
168
+ asp-route-page="@ViewBag.Page"
169
+ asp-route-search_0="@ViewBag.Search_0"
170
+ asp-route-search_item_0="@ViewBag.Search_Item_0"
171
+ asp-route-search_1="@ViewBag.Search_1"
172
+ asp-route-search_item_1="@ViewBag.Search_Item_1"
173
+ asp-route-oya_id="@ViewBag.Oya_id" class="btn btn-default" role="button">削除</a> |
174
+
175
+ <a asp-action="Details"
176
+ asp-controller="P_N_Apartment_Lists"
177
+ asp-route-id="@ViewBag.Oya_id"
178
+ asp-route-page="@ViewBag.Page"
179
+ asp-route-search_0="@ViewBag.Search_0"
180
+ asp-route-search_item_0="@ViewBag.Search_Item_0"
181
+ asp-route-search_1="@ViewBag.Search_1"
182
+ asp-route-search_item_1="@ViewBag.Search_Item_1" class="btn btn-default" role="button">Back to List</a>
183
+ </div>
184
+ @section Scripts {
185
+ @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
186
+
187
+ <script>
188
+
189
+ $(document).ready(function () {
190
+ //読み込み時
191
+ $('#result_0').load('/Ajax/P_N_Apartment_List_Search_00/?id=' + @ViewBag.Oya_Id );
192
+ });
193
+
194
+
195
+ </script>
196
+ }
197
+
198
+ これはsite.cssに明記しました
199
+
200
+ @media (min-width: 768px) {
201
+ .dl-horizontal dt {
202
+ float: left;
203
+ width: 280px;
204
+ overflow: hidden;
205
+ clear: left;
206
+ text-align: right;
207
+ text-overflow: ellipsis;
208
+ white-space: nowrap;
209
+ }
210
+ .dl-horizontal dd {
211
+ margin-left: 300px;
212
+ }
213
+ }