Index.cshtml
23.7 KB
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@section header
{
<style type="text/css">
div, ul {
box-sizing: content-box;
}
#modifyForm .layui-form-label, #modifyFormDesc .layui-form-label {
width: 160px;
text-align: right;
}
.btnPrint {
border: 1px solid black;
}
</style>
}
<script type="text/html" id="barDemo">
<a lay-event="BtnPrint" class="layui-btn layui-btn-danger layui-btn-xs" >打印</a>
@*<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>*@
</script>
<div id="listForm" class="layui-tab-item layui-show">
<div id="ImportData" style="padding: 60px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;display: none;">
<div style="overflow:hidden">
<a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-normal" data-type="btnTemplate"><i class="layui-icon"></i>生成模板</a>
<br />
<br />
<input type="file" name="excelfile" id="excelfile" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
</div>
</div>
<form class="layui-form layui-form-pane" action="" lay-filter="listForm">
<div class="layui-form-item" id="panelSearch" hidden>
<fieldset class="layui-elem-field">
<div class="layui-field-box" id="qform">
<div class="layui-form-item layui-col-sm12">
<div class="layui-inline toolList">
<a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius" data-type="btnQuery"><i class="layui-icon"></i>查询</a>
<a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-warm" data-type="btnReset"><i class="layui-icon"></i>重置</a>
<a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger" data-type="btnClose"><i class="layui-icon"></i>关闭</a>
</div>
</div>
<div class="layui-row">
<div class="layui-col-sm3">
<label class="layui-form-label">母材</label>
<div class="layui-input-inline">
<input name="MaterialCode" type="text" class="layui-input">
</div>
</div>
<div class="layui-col-sm3">
<label class="layui-form-label">焊丝</label>
<div class="layui-input-inline">
<input name="WeldingWire" type="text" class="layui-input">
</div>
</div>
</div>
</div>
</fieldset>
</div>
</form>
<div class="layui-col-xs12">
<div class="layui-tab layui-tab-brief" lay-filter="tableTabBody">
<ul class="layui-tab-title">
<li class="layui-this" lay-id="1">焊接工艺</li>
<li lay-id="2">明细</li>
</ul>
<div class="layui-tab-content">
<div class="layui-tab-item layui-show">
<table id="mainList" lay-filter="mainList"></table>
</div>
<div class="layui-tab-item">
<table id="mainListDesc" lay-filter="mainListDesc"></table>
</div>
</div>
</div>
</div>
</div>
<div id="modifyForm" class="layui-tab-item">
<form class="layui-form layui-form-pane" action="" lay-filter="modifyForm" onsubmit="return false;">
<div class="layui-card">
<div class="layui-row">
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">母材<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="MaterialCode" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊丝<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingWire" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">管径(mm)<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="Diameter" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">壁厚(mm)δ <label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="Thickness" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">坡口角度α<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="GrooveAngle" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">钝边(mm)p<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="RootFace" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">间隙(mm)b <label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="Interval" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">错边量(mm)<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="ErrorVariable" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">工件温度<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="PreheatingTemperature" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">工件工件时间<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="PreheatingTime" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">层间温度<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="InterlaminarTemperature" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊后热处理温度<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="TreatmentTemperature" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊后热处理时间<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="ProcessingTime" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">工装系统<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="ToolingSystem" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">工件外形及尺寸<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="ToolingShapeAndSize" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊接电源<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingPowerSource" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊接型号<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingGunModel" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊丝型牌号<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingBrand" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊丝规格<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingSpecs" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊接气体<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingGas" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊接位置<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingPosition" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊接方向<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingDirection" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊接行程<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingStroke" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">电流形式<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="ElectricCurrentForm" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">输出极性<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="OutputPolarity" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">备注<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="Remark" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">记录员<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="Recorder" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">记录时间<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="RecordingTime" type="text" autocomplete="off" value="@DateTime.Now.ToString("yyyy-MM-dd")" class="layui-input layui-date">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">校核<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="AuditBy" type="text" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">校核时间<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="AuditTime" type="text" autocomplete="off" value="@DateTime.Now.ToString("yyyy-MM-dd")" class="layui-input layui-date">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">图片</label>
<div class="ayui-input-inline layui-col-sm6">
@*<input type="file" id="image" name="image" required lay-verify="required" placeholder="请选择一张图片" autocomplete="off" class="layui-input">*@
<input type="file" id="weldTechFile" />
</div>
</div>
<div class="layui-col-sm6">
@*<img style="width:200px;height:200px;" src="~/UploadFile/images/1.png" />*@
<img id="weldTechFileShow" class="showImg" alt="show-img" src="#" style="width:200px;height:200px;" />
</div>
<!--表单验证按钮-->
<button class="layui-btn" style="display:none" name="fromAdd" lay-filter="fromAdd" lay-submit>fromAdd</button>
<button class="layui-btn" style="display:none" name="fromUpdate" lay-filter="fromUpdate" lay-submit>fromUpdate</button>
</div>
</div>
<div hidden>
<input name="id" readonly type="text" class="layui-input">
<input name="createBy" type="text" readonly class="layui-input">
<input name="createTime" type="text" readonly class="layui-input">
<input name="updateTime" type="text" readonly class="layui-input">
<input name="updateBy" type="text" readonly class="layui-input">
</div>
</form>
</div>
<div id="modifyFormDesc" class="layui-tab-item">
<form class="layui-form layui-form-pane" action="" lay-filter="modifyFormDesc">
<div class="layui-card">
<div class="layui-row">
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">主表ID<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="TechnologyHeadId" readonly type="text" lay-verify="required" class="layui-input form-readonly-color">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">层道数<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="Floor" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">电流I(A)<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="ElectricCurrent" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">
送丝速度(mm/min)
<label class="lable-required">*</label>
</label>
<div class="layui-input-inline layui-col-sm6">
<input name="WireFeederSpeed" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">电压U(V)<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="Voltage" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">焊接速度(mm/min)<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="WeldingSpeed" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">摆动速度(mm/min)<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="SwingSpeed" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">摆动宽度(mm)<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="SwingWidth" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<div class="layui-col-sm6">
<label class="layui-form-label layui-col-sm3">停留时间(s)<label class="lable-required">*</label></label>
<div class="layui-input-inline layui-col-sm6">
<input name="StopTime" type="number" autocomplete="off" lay-verify="required" maxlength="32" class="layui-input">
</div>
</div>
<button class="layui-btn" style="display:none" name="fromAddDesc" lay-filter="fromAddDesc" lay-submit>fromAddDesc</button>
<button class="layui-btn" style="display:none" name="fromUpdateDesc" lay-filter="fromUpdateDesc" lay-submit>fromUpdateDesc</button>
</div>
</div>
<div hidden>
<input name="id" readonly type="text" class="layui-input">
<input name="createBy" type="text" readonly class="layui-input">
<input name="createTime" type="text" readonly class="layui-input">
<input name="updateTime" type="text" readonly class="layui-input">
<input name="updateBy" type="text" readonly class="layui-input">
</div>
</form>
</div>
<script type="text/html" id="toolbarTable">
<div class="layui-btn-container">
<a href="javascript:;" class="layui-btn layui-btn-sm" lay-event="btnSelect"><i class="layui-icon"></i>检索</a>
<a href="javascript:;" class="layui-btn layui-btn-sm" lay-event="btnRefresh"><i class="layui-icon"></i>刷新</a>
{{ loadMenus("WeldTechnology", 1) }}
</div>
</script>
<script type="text/html" id="toolbarTableDesc">
<div class="layui-btn-container">
<a href="javascript:;" class="layui-btn layui-btn-sm" lay-event="btnRefresh"><i class="layui-icon"></i>刷新</a>
{{ loadMenus("WeldTechnology", 2) }}
</div>
</script>
@section Scripts
{
<script type="text/javascript" src="/productjs/configure/WeldTechnology.js" asp-append-version="true"></script>
}