czt
2024-07-13 b030109e665301e7edd6ad0fe5c832ee10fe39b4
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
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.ld.igds.models.SecureManager</Property>
      <PropertyDef name="fxdbm">
        <Property></Property>
        <Property name="label">风险点编码</Property>
        <Property name="readOnly">true</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>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="dd">
        <Property></Property>
        <Property name="label">地点</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="sbr">
        <Property></Property>
        <Property name="label">识别人</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="hjbw">
        <Property></Property>
        <Property name="label">环节/部位</Property>
      </PropertyDef>
      <PropertyDef name="fxxx">
        <Property></Property>
        <Property name="label">风险信息</Property>
      </PropertyDef>
      <PropertyDef name="fxlx">
        <Property name="label">风险类型</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">1-基础设施</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">2-网络安全</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">3-消防安全</Property>
              </Entity>
              <Entity>
                <Property name="key">4</Property>
                <Property name="value">4-用电安全</Property>
              </Entity>
              <Entity>
                <Property name="key">5</Property>
                <Property name="value">5-作业安全</Property>
              </Entity>
              <Entity>
                <Property name="key">6</Property>
                <Property name="value">6-用药风险</Property>
              </Entity>
              <Entity>
                <Property name="key">7</Property>
                <Property name="value">7-管理风险</Property>
              </Entity>
              <Entity>
                <Property name="key">8</Property>
                <Property name="value">8-其他风险</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="fxfj">
        <Property name="label">风险等级</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">1-低风险</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">2-一般风险</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">3-较大风险</Property>
              </Entity>
              <Entity>
                <Property name="key">4</Property>
                <Property name="value">4-重大风险</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="fxglcs">
        <Property></Property>
        <Property name="label">风险管控措施</Property>
      </PropertyDef>
      <PropertyDef name="yhxx">
        <Property></Property>
        <Property name="label">隐患信息</Property>
      </PropertyDef>
      <PropertyDef name="yhpcxx">
        <Property></Property>
        <Property name="label">隐患排查信息</Property>
      </PropertyDef>
      <PropertyDef name="yhzgxx">
        <Property></Property>
        <Property name="label">隐患整改信息</Property>
      </PropertyDef>
      <PropertyDef name="yhysxx">
        <Property></Property>
        <Property name="label">隐患整改验收信息</Property>
      </PropertyDef>
      <PropertyDef name="sgjbxx">
        <Property></Property>
        <Property name="label">事故基本信息</Property>
      </PropertyDef>
      <PropertyDef name="zgsx">
        <Property></Property>
        <Property name="label">整改时限</Property>
      </PropertyDef>
      <PropertyDef name="zrdw">
        <Property></Property>
        <Property name="label">责任单位</Property>
      </PropertyDef>
      <PropertyDef name="zrr">
        <Property></Property>
        <Property name="label">责任人</Property>
      </PropertyDef>
      <PropertyDef name="zgysxx">
        <Property></Property>
        <Property name="label">整改验收信息</Property>
      </PropertyDef>
      <PropertyDef name="fxgzjgzrr">
        <Property name="label">风险跟踪监管责任人</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">DateTime</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtParam">
      <PropertyDef name="sbr">
        <Property name="label">识别人</Property>
      </PropertyDef>
      <PropertyDef name="dd">
        <Property name="label">地点</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="padding:5;regionPadding:5">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">secureManagerPR#pageList</Property>
      <Property name="pageSize">15</Property>
    </DataSet>
    <DataSet id="dsParam">
      <ClientEvent name="onReady">self.insert({})&#xD;
</ClientEvent>
      <Property name="dataType">[dtParam]</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="height">55</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="exClassName">btn-normal</Property>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="caption">新增</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var dialog= view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(dialog){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请选中需要修改的数据&quot;)&#xD;
}</ClientEvent>
        <Property name="caption">编辑</Property>
        <Property name="exClassName">btn-warm</Property>
        <Property name="iconClass">fa fa-pencil</Property>
      </Button>
      <Button>
        <ClientEvent name="onClick">var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(!cur) return;&#xD;
view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
        return;&#xD;
    }else{&#xD;
        cur.remove();&#xD;
    }&#xD;
});</ClientEvent>
        <Property name="exClassName">btn-warn</Property>
        <Property name="iconClass">fa fa-pencil</Property>
        <Property name="caption">删除</Property>
      </Button>
    </Container>
    <Container>
      <AutoForm>
        <Property name="dataSet">dsParam</Property>
        <Property name="cols">*,*,*,*</Property>
        <AutoFormElement>
          <Property name="name">sbr</Property>
          <Property name="property">sbr</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">dd</Property>
          <Property name="property">dd</Property>
          <Editor/>
        </AutoFormElement>
        <Container layout="regionPadding:10">
          <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).flushAsync();</ClientEvent>
            <Property name="caption">查询</Property>
            <Property name="exClassName">btn-normal</Property>
            <Property name="iconClass">fa fa-search</Property>
          </Button>
          <Button layoutConstraint="left">
            <ClientEvent name="onClick">view.get(&quot;#dsParam&quot;).insert({})</ClientEvent>
            <Property name="caption">重置</Property>
            <Property name="iconClass">fa fa-refresh</Property>
            <Property name="exClassName">btn-default</Property>
          </Button>
        </Container>
      </AutoForm>
      <DataGrid id="dgMain">
        <ClientEvent name="onDataRowDoubleClick">view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <DataColumn name="fxdbm">
          <Property name="property">fxdbm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sbr">
          <Property name="property">sbr</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="dd">
          <Property name="property">dd</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="hjbw">
          <Property name="property">hjbw</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fxxx">
          <Property name="property">fxxx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fxlx">
          <Property name="property">fxlx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
      <ToolBar layoutConstraint="bottom">
        <Fill/>
        <DataPilot>
          <Property name="dataSet">dsMain</Property>
          <Property name="itemCodes">pageSize,pages</Property>
        </DataPilot>
      </ToolBar>
    </Container>
    <Dialog id="dialogMain">
      <Property name="caption">基本信息</Property>
      <Property name="width">80%</Property>
      <Property name="closeable">false</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
view.get(&quot;#uaAction&quot;).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
    }else{&#xD;
        self.get(&quot;parent&quot;).hide();&#xD;
    }&#xD;
});</ClientEvent>
          <Property name="caption">保存</Property>
          <Property name="iconClass">fa fa-check</Property>
          <Property name="exClassName">btn-normal</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</Property>
          <Property name="exClassName">btn-warn</Property>
        </Button>
      </Buttons>
      <Children>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="readOnly">false</Property>
          <Property name="labelSeparator"> : </Property>
          <Property name="labelAlign">right</Property>
          <Property name="cols">*,*</Property>
          <Property name="labelWidth">160</Property>
          <AutoFormElement>
            <Property name="name">fxdbm</Property>
            <Property name="property">fxdbm</Property>
            <Editor>
              <TextEditor>
                <Property name="blankText">--系统自动生成--</Property>
              </TextEditor>
            </Editor>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">deptId</Property>
            <Property name="property">deptId</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dd</Property>
            <Property name="property">dd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sbr</Property>
            <Property name="property">sbr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">hjbw</Property>
            <Property name="property">hjbw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fxxx</Property>
            <Property name="property">fxxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fxlx</Property>
            <Property name="property">fxlx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fxfj</Property>
            <Property name="property">fxfj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fxglcs</Property>
            <Property name="property">fxglcs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yhxx</Property>
            <Property name="property">yhxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yhpcxx</Property>
            <Property name="property">yhpcxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yhzgxx</Property>
            <Property name="property">yhzgxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yhysxx</Property>
            <Property name="property">yhysxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sgjbxx</Property>
            <Property name="property">sgjbxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zgsx</Property>
            <Property name="property">zgsx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zrdw</Property>
            <Property name="property">zrdw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zrr</Property>
            <Property name="property">zrr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zgysxx</Property>
            <Property name="property">zgysxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fxgzjgzrr</Property>
            <Property name="property">fxgzjgzrr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="uaAction">
      <Property name="successMessage">执行成功!</Property>
      <Property name="dataResolver">secureManagerPR#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">secureManagerPR#delData</Property>
    </AjaxAction>
    <MonthDropDown id="monthDropDown1">
      <ClientEvent name="onClose">var date = arg.selectedValue+1;&#xD;
if(date&lt;10){&#xD;
    arg.selectedValue=&quot;0&quot;+date&#xD;
}else if(date>=10){&#xD;
    arg.selectedValue=date&#xD;
}&#xD;
</ClientEvent>
    </MonthDropDown>
  </View>
</ViewConfig>