jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.ld.igds.models.MAreationData</Property>
      <PropertyDef name="id">
        <Property></Property>
        <Property name="label">ID</Property>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property></Property>
        <Property name="label">组织编码</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property></Property>
        <Property name="label">所属分库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="depotId">
        <Property></Property>
        <Property name="label">所属仓库</Property>
        <Property name="required">true</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getAllCache&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="objective">
        <Property></Property>
        <Property name="label">通风目的</Property>
      </PropertyDef>
      <PropertyDef name="type">
        <Property></Property>
        <Property name="label">通风类型</Property>
        <Property name="mapping">
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">自然空气通风</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">加热空气通风</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">冷却空气通风</Property>
              </Entity>
              <Entity>
                <Property name="key">4</Property>
                <Property name="value">内循环控温</Property>
              </Entity>
              <Entity>
                <Property name="key">5</Property>
                <Property name="value">空调控温通风</Property>
              </Entity>
              <Entity>
                <Property name="key">6</Property>
                <Property name="value">维持通风</Property>
              </Entity>
            </Collection>
          </Property>
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="windNetType">
        <Property></Property>
        <Property name="label">风网类型</Property>
        <Property name="mapping">
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">地槽</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">地上笼</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">移动式</Property>
              </Entity>
              <Entity>
                <Property name="key">4</Property>
                <Property name="value">箱式</Property>
              </Entity>
              <Entity>
                <Property name="key">5</Property>
                <Property name="value">径向</Property>
              </Entity>
              <Entity>
                <Property name="key">6</Property>
                <Property name="value">夹底</Property>
              </Entity>
              <Entity>
                <Property name="key">9</Property>
                <Property name="value">其他</Property>
              </Entity>
            </Collection>
          </Property>
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="airSupplyMode">
        <Property></Property>
        <Property name="label">送风方式</Property>
        <Property name="mapping">
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">压入式通风</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">吸出式通风</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">压入与吸出相结合式通风</Property>
              </Entity>
              <Entity>
                <Property name="key">4</Property>
                <Property name="value">环流通风</Property>
              </Entity>
              <Entity>
                <Property name="key">9</Property>
                <Property name="value">其他</Property>
              </Entity>
            </Collection>
          </Property>
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="totalEs">
        <Property name="dataType">Double</Property>
        <Property name="label">总耗电量</Property>
      </PropertyDef>
      <PropertyDef name="beforeTempAvg">
        <Property name="dataType">Double</Property>
        <Property name="label">作业前平均粮温</Property>
      </PropertyDef>
      <PropertyDef name="afterTempAvg">
        <Property name="dataType">Double</Property>
        <Property name="label">作业后平均粮温</Property>
      </PropertyDef>
      <PropertyDef name="beforPerWetAvg">
        <Property name="dataType">Double</Property>
        <Property name="label">作业前平均水分</Property>
      </PropertyDef>
      <PropertyDef name="afterPerWetAvg">
        <Property name="dataType">Double</Property>
        <Property name="label">作业后平均水分</Property>
      </PropertyDef>
      <PropertyDef name="chargeUser">
        <Property></Property>
        <Property name="label">负责人</Property>
      </PropertyDef>
      <PropertyDef name="operators">
        <Property></Property>
        <Property name="label">作业人员</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">修改时间</Property>
      </PropertyDef>
      <PropertyDef name="startTime">
        <Property name="dataType">DateTime</Property>
        <Property name="label">通风作业时间</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="longTime">
        <Property name="dataType">Double</Property>
        <Property name="label">通风时长(小时)</Property>
      </PropertyDef>
      <PropertyDef name="updateUser">
        <Property></Property>
        <Property name="label">修改人</Property>
      </PropertyDef>
      <PropertyDef name="remark">
        <Property></Property>
        <Property name="label">备注信息</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtParam">
      <PropertyDef name="deptId">
        <Property></Property>
        <Property name="label">所属分库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="depotId">
        <Property></Property>
        <Property name="label">所属仓库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getAllCache&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="padding:5;regionPadding:5">
    <ClientEvent name="onReady">&#xD;
view.get(&quot;#dsParam&quot;).insert({});&#xD;
&#xD;
&#xD;
addMain = function(){&#xD;
    view.get(&quot;#dsMain&quot;).insert({&#xD;
    });&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="loadMode">lazy</Property>
      <Property name="dataProvider">areationDataPR#pageData</Property>
      <Property name="dataType">[dtMain]</Property>
      <Property name="pageSize">15</Property>
      <Property name="parameter"></Property>
    </DataSet>
    <DataSet id="dsParam">
      <Property name="dataType">dtParam</Property>
    </DataSet>
    <ToolBar>
      <ClientEvent name="onReady">var width = window.innerWidth;&#xD;
width = (width-1000)/2;&#xD;
self.set(&quot;style&quot;, &quot;margin-left:&quot;+width+&quot;px&quot;);</ClientEvent>
      <Property name="style">
        <Property name="color">#8f7f5d</Property>
        <Property name="background">#FFEFD5</Property>
      </Property>
      <Property name="hideMode">display</Property>
      <Property name="width">1000</Property>
      <SimpleIconButton>
        <Property name="iconClass">fa fa-smile-o</Property>
      </SimpleIconButton>
      <ToolBarLabel layoutConstraint="padding:5">
        <Property name="text">手动记录通风记录情况,作为通风日志上报上级监管平台</Property>
      </ToolBarLabel>
      <Fill/>
      <SimpleIconButton>
        <ClientEvent name="onClick">self.get(&quot;parent&quot;).set(&quot;visible&quot;,false);&#xD;
</ClientEvent>
        <Property name="iconClass">fa fa-times</Property>
      </SimpleIconButton>
    </ToolBar>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="contentOverflow">hidden</Property>
      <Property name="height">55</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">addMain();&#xD;
</ClientEvent>
        <Property name="caption">新增</Property>
        <Property name="exClassName">btn-default</Property>
        <Property name="iconClass">fa fa-plus</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="caption">调整</Property>
        <Property name="exClassName">btn-warm</Property>
        <Property name="iconClass">fa fa-pencil</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(!data){&#xD;
    return;&#xD;
}&#xD;
view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
        return;&#xD;
    }else{&#xD;
        data.remove();&#xD;
    }&#xD;
});</ClientEvent>
        <Property name="caption">删除</Property>
        <Property name="exClassName">btn-warn</Property>
        <Property name="iconClass">fa fa-minus</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
</ClientEvent>
        <Property name="caption">刷新</Property>
        <Property name="exClassName">btn-default</Property>
        <Property name="iconClass">fa fa-refresh</Property>
      </Button>
      <AutoForm layoutConstraint="right">
        <Property name="cols">*,*,*,*</Property>
        <Property name="dataSet">dsParam</Property>
        <Property name="labelAlign">right</Property>
        <Property name="labelSeparator">:</Property>
        <Property name="labelWidth">100</Property>
        <AutoFormElement>
          <Property name="name">depotId</Property>
          <Property name="property">depotId</Property>
          <Property name="trigger">autoMappingDropDown2</Property>
          <Property name="width">400</Property>
          <Editor/>
        </AutoFormElement>
        <Button layoutConstraint="left">
          <ClientEvent name="onClick">var param = view.get(&quot;#dsParam.data&quot;);&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param.toJSON()).flushAsync();</ClientEvent>
          <Property name="caption">查询</Property>
          <Property name="exClassName">btn-default</Property>
          <Property name="iconClass">fa fa-refresh</Property>
        </Button>
      </AutoForm>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <DataGrid layoutConstraint="center padding:5px">
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <DataColumn name="depotId">
          <Property name="property">depotId</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="objective">
          <Property name="property">objective</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="type">
          <Property name="property">type</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="windNetType">
          <Property name="property">windNetType</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="airSupplyMode">
          <Property name="property">airSupplyMode</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="chargeUser">
          <Property name="property">chargeUser</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="operators">
          <Property name="property">operators</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="startTime">
          <Property name="property">startTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateUser">
          <Property name="property">updateUser</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="remark">
          <Property name="property">remark</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="itemCodes">pageSize,pages</Property>
        <Property name="dataSet">dsMain</Property>
      </DataPilot>
    </Container>
    <Dialog id="dialogMain" layout="padding:5;regionPadding:10">
      <Property name="width">60%</Property>
      <Property name="caption">详细信息</Property>
      <Property name="iconClass">fa fa-flag-o</Property>
      <Property name="closeable">false</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data.validate() != 'ok'){&#xD;
    $notify(&quot;数据校验失败!!&quot;);&#xD;
    return;&#xD;
}&#xD;
view.get(&quot;#uaAction&quot;).set(&quot;parameter&quot;,data).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
});</ClientEvent>
          <Property name="caption">确认</Property>
          <Property name="iconClass">fa fa-check-circle</Property>
          <Property name="width">90</Property>
        </Button>
        <Button>
          <ClientEvent name="onClick">view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">取消</Property>
          <Property name="iconClass">fa fa-times-circle</Property>
          <Property name="width">90</Property>
        </Button>
      </Buttons>
      <Children>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*</Property>
          <Property name="labelWidth">140</Property>
          <Property name="labelAlign">right</Property>
          <Property name="labelSeparator">:</Property>
          <AutoFormElement>
            <Property name="name">depotId</Property>
            <Property name="property">depotId</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">objective</Property>
            <Property name="property">objective</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">type</Property>
            <Property name="property">type</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">windNetType</Property>
            <Property name="property">windNetType</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">airSupplyMode</Property>
            <Property name="property">airSupplyMode</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">totalEs</Property>
            <Property name="property">totalEs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">startTime</Property>
            <Property name="property">startTime</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">longTime</Property>
            <Property name="property">longTime</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">beforeTempAvg</Property>
            <Property name="property">beforeTempAvg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">afterTempAvg</Property>
            <Property name="property">afterTempAvg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">beforPerWetAvg</Property>
            <Property name="property">beforPerWetAvg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">afterPerWetAvg</Property>
            <Property name="property">afterPerWetAvg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">chargeUser</Property>
            <Property name="property">chargeUser</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">operators</Property>
            <Property name="property">operators</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement layoutConstraint="colSpan:3">
            <Property name="name">remark</Property>
            <Property name="property">remark</Property>
            <Property name="editorType">TextArea</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="uaAction">
      <Property name="dataResolver">areationDataPR#saveData</Property>
      <UpdateItem>
        <Property name="dataSet">dsMain</Property>
        <Property name="dataPath">[#current]</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">确定要删除吗?</Property>
      <Property name="service">areationDataPR#delData</Property>
    </AjaxAction>
  </View>
</ViewConfig>