czt
2025-09-25 cbaff53b2c82cfaa7ad8cb22f5a33a1b7caecd7c
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
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.api.entity.GbUnifiedCoding</Property>
      <PropertyDef name="ajdm">
        <Property></Property>
        <Property name="label">国家统一廒间编码</Property>
      </PropertyDef>
      <PropertyDef name="ajmc">
        <Property></Property>
        <Property name="label">廒间名称</Property>
      </PropertyDef>
      <PropertyDef name="dwmc">
        <Property></Property>
        <Property name="label">单位名称</Property>
      </PropertyDef>
      <PropertyDef name="frdwdm">
        <Property></Property>
        <Property name="label">国家统一单位编码</Property>
      </PropertyDef>
      <PropertyDef name="qyxz">
        <Property></Property>
        <Property name="label">企业性质</Property>
        <Property name="mapping">
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="code">10</Property>
                <Property name="name">10-中储粮直属企业(包括分库及控股企业)</Property>
              </Entity>
              <Entity>
                <Property name="code">20</Property>
                <Property name="name">20-其他中央企业(中粮、供销、中化等,不含租仓库点)</Property>
              </Entity>
              <Entity>
                <Property name="code">30</Property>
                <Property name="name">30-省属国有及国有控股企业</Property>
              </Entity>
              <Entity>
                <Property name="code">31</Property>
                <Property name="name">31-市属国有及国有控股企业</Property>
              </Entity>
              <Entity>
                <Property name="code">32</Property>
                <Property name="name">32-县级国有及国有控股企业</Property>
              </Entity>
              <Entity>
                <Property name="code">40</Property>
                <Property name="name">40-民营及其他非国有控股股份制企业</Property>
              </Entity>
              <Entity>
                <Property name="code">50</Property>
                <Property name="name">50-外资企业</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="kqmc">
        <Property></Property>
        <Property name="label">库区名称</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">国家统一库区编码</Property>
      </PropertyDef>
      <PropertyDef name="cfdm">
        <Property></Property>
        <Property name="label">国家统一仓房编码</Property>
      </PropertyDef>
      <PropertyDef name="cfmc">
        <Property></Property>
        <Property name="label">仓房名称</Property>
      </PropertyDef>
      <PropertyDef name="createTime">
        <Property name="dataType">DateTime</Property>
        <Property name="label">创建时间</Property>
      </PropertyDef>
      <PropertyDef name="sjDeptName">
        <Property></Property>
        <Property name="label">上级单位名称</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">DateTime</Property>
        <Property name="label">更新时间</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtParam">
      <PropertyDef name="dwmc">
        <Property></Property>
        <Property name="label">单位名称</Property>
      </PropertyDef>
      <PropertyDef name="kqmc">
        <Property></Property>
        <Property name="label">库区名称</Property>
      </PropertyDef>
      <PropertyDef name="ajmc">
        <Property></Property>
        <Property name="label">廒间名称</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtParam2">
      <Property name="creationType">com.fzzy.api.data.ApiParam</Property>
      <PropertyDef name="dwdm">
        <Property></Property>
        <Property name="label">单位信息</Property>
        <Property name="required">true</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">gbUnifiedCodingPR#pageList</Property>
      <Property name="pageSize">20</Property>
    </DataSet>
    <DataSet id="dsQuery">
      <ClientEvent name="onReady">self.insert();</ClientEvent>
      <Property name="dataType">dtParam</Property>
    </DataSet>
    <DataSet id="dsQuery2">
      <ClientEvent name="onReady">self.insert();</ClientEvent>
      <Property name="dataType">dtParam2</Property>
    </DataSet>
    <AutoForm>
      <Property name="dataSet">dsQuery</Property>
      <Property name="cols">*,*,*,500px</Property>
      <Property name="labelAlign">right</Property>
      <Property name="labelSeparator">:</Property>
      <Property name="labelWidth">90</Property>
      <AutoFormElement>
        <Property name="name">dwmc</Property>
        <Property name="property">dwmc</Property>
        <Editor/>
      </AutoFormElement>
      <AutoFormElement>
        <Property name="name">kqmc</Property>
        <Property name="property">kqmc</Property>
        <Editor/>
      </AutoFormElement>
      <AutoFormElement>
        <Property name="name">ajmc</Property>
        <Property name="property">ajmc</Property>
        <Editor/>
      </AutoFormElement>
      <ToolBar>
        <ToolBarButton>
          <ClientEvent name="onClick">var query = view.get(&quot;#dsQuery&quot;).getData();&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,query).flushAsync();</ClientEvent>
          <Property name="caption">查询</Property>
          <Property name="iconClass">fa fa-search</Property>
          <Property name="width">100</Property>
          <Property name="exClassName">toolbar-button-push</Property>
        </ToolBarButton>
        <ToolBarButton>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选想要查看的数据!&quot;);&#xD;
}&#xD;
</ClientEvent>
          <Property name="caption">详情</Property>
          <Property name="iconClass">fa fa-search</Property>
          <Property name="width">100</Property>
          <Property name="exClassName">toolbar-button</Property>
          <Property name="hideMode">display</Property>
          <Property name="visible">true</Property>
        </ToolBarButton>
        <ToolBarButton>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
    } else{&#xD;
        cur.remove();&#xD;
    }&#xD;
});&#xD;
</ClientEvent>
          <Property name="caption">删除</Property>
          <Property name="iconClass">fa fa-minus</Property>
          <Property name="exClassName">toolbar-button-warn</Property>
          <Property name="width">100</Property>
          <Property name="visible">true</Property>
          <Property name="hideMode">display</Property>
        </ToolBarButton>
        <ToolBarButton>
          <ClientEvent name="onClick">view.get(&quot;#dialogPull&quot;).show();</ClientEvent>
          <Property name="caption">拉取统一编码</Property>
          <Property name="iconClass">fa fa-minus</Property>
          <Property name="exClassName">toolbar-button-warm</Property>
          <Property name="width">150</Property>
        </ToolBarButton>
      </ToolBar>
    </AutoForm>
    <DataGrid id="dgMain">
      <Property name="dataSet">dsMain</Property>
      <Property name="selectionMode">multiRows</Property>
      <Property name="readOnly">true</Property>
      <RowNumColumn/>
      <RowSelectorColumn>
        <Property name="caption">上传</Property>
      </RowSelectorColumn>
      <DataColumn>
        <Property name="property">ajdm</Property>
        <Property name="align">center</Property>
        <Property name="name">ajdm</Property>
        <Property name="width">240</Property>
      </DataColumn>
      <DataColumn>
        <Property name="property">ajmc</Property>
        <Property name="align">center</Property>
        <Property name="name">ajmc</Property>
        <Property name="width">100</Property>
      </DataColumn>
      <DataColumn>
        <Property name="property">cfdm</Property>
        <Property name="align">center</Property>
        <Property name="name">cfdm</Property>
        <Property name="width">220</Property>
      </DataColumn>
      <DataColumn>
        <Property name="property">cfmc</Property>
        <Property name="align">center</Property>
        <Property name="name">cfmc</Property>
        <Property name="width">100</Property>
      </DataColumn>
      <DataColumn>
        <Property name="property">kqdm</Property>
        <Property name="visible">true</Property>
        <Property name="align">center</Property>
        <Property name="name">kqdm</Property>
        <Property name="width">200</Property>
      </DataColumn>
      <DataColumn>
        <Property name="property">kqmc</Property>
        <Property name="name">kqmc</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn>
        <Property name="property">frdwdm</Property>
        <Property name="name">frdwdm</Property>
        <Property name="width">190</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn>
        <Property name="property">qyxz</Property>
        <Property name="name">qyxz</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn>
        <Property name="property">updateTime</Property>
        <Property name="name">updateTime</Property>
        <Property name="align">center</Property>
        <Property name="width">150</Property>
      </DataColumn>
    </DataGrid>
    <ToolBar layoutConstraint="bottom">
      <Fill/>
      <DataPilot>
        <Property name="itemCodes">pageSize,pages</Property>
        <Property name="dataSet">dsMain</Property>
      </DataPilot>
    </ToolBar>
    <Dialog id="dialogMain">
      <Property name="width">1000</Property>
      <Property name="caption">详细信息</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="closeable">false</Property>
      <Property name="height">90%</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
if(cur) cur.cancel();</ClientEvent>
          <Property name="caption">关闭</Property>
          <Property name="iconClass">fa fa-times</Property>
          <Property name="exClassName">toolbar-button-warn</Property>
        </Button>
      </Buttons>
      <Children>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*</Property>
          <Property name="labelWidth">100</Property>
          <Property name="labelAlign">left</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelPosition">top</Property>
          <AutoFormElement>
            <Property name="name">ajdm</Property>
            <Property name="property">ajdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ajmc</Property>
            <Property name="property">ajmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cfdm</Property>
            <Property name="property">cfdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cfmc</Property>
            <Property name="property">cfmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kqdm</Property>
            <Property name="property">kqdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kqmc</Property>
            <Property name="property">kqmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">frdwdm</Property>
            <Property name="property">frdwdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dwmc</Property>
            <Property name="property">dwmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyxz</Property>
            <Property name="property">qyxz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjDeptName</Property>
            <Property name="property">sjDeptName</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">createTime</Property>
            <Property name="property">createTime</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <Dialog id="dialogPull">
      <Property name="width">600</Property>
      <Property name="caption">统一编码数据拉取</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var data = view.get(&quot;#dsQuery2.data&quot;);&#xD;
&#xD;
if (data.validate() != 'ok') {&#xD;
    $alert(&quot;请填写完成参数&quot;);&#xD;
    return;&#xD;
}&#xD;
&#xD;
var dwdm = data.get(&quot;dwdm&quot;);&#xD;
&#xD;
view.get(&quot;#ajaxPullData&quot;).set(&quot;parameter&quot;,dwdm).execute(function(result){&#xD;
    view.get(&quot;#dialogPull&quot;).hide();&#xD;
    $alert(result);&#xD;
});</ClientEvent>
          <Property name="caption">确认执行</Property>
          <Property name="iconClass">fa fa-check</Property>
          <Property name="exClassName">toolbar-button</Property>
        </Button>
        <Button>
          <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">取消关闭</Property>
          <Property name="iconClass">fa fa-times</Property>
          <Property name="exClassName">toolbar-button-warn</Property>
        </Button>
      </Buttons>
      <Children>
        <AutoForm>
          <Property name="dataSet">dsQuery2</Property>
          <Property name="cols">*</Property>
          <AutoFormElement layoutConstraint="colSpan:2">
            <Property name="name">dwdm</Property>
            <Property name="property">dwdm</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <AjaxAction id="ajaxDel">
      <Property name="service">gbUnifiedCodingPR#delData</Property>
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPullData">
      <Property name="service">gbUnifiedCodingPR#pullData</Property>
    </AjaxAction>
  </View>
</ViewConfig>