@farris/jit-engine 1.3.223 → 1.3.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -9
- package/lib/domstructure/.DS_Store +0 -0
- package/lib/domstructure/devkit/.DS_Store +0 -0
- package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar.js.map +1 -1
- package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar.js.map +1 -1
- package/lib/domstructure/ui/.DS_Store +0 -0
- package/lib/domstructure/ui/common/appearance.js +3 -2
- package/lib/domstructure/ui/common/appearance.js.map +1 -1
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/lookup_edit.js +2 -2
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/lookup_edit.js.map +1 -1
- package/lib/domstructure/ui/farris-fileupload-preview/.DS_Store +0 -0
- package/lib/domstructure/ui/multi-select/multi-select.js +4 -1
- package/lib/domstructure/ui/multi-select/multi-select.js.map +1 -1
- package/lib/domstructure/ui/table/farris-table-column.js +1 -0
- package/lib/domstructure/ui/table/farris-table-column.js.map +1 -1
- package/lib/domstructure/ui/table/farris-table-static-text.js.map +1 -1
- package/lib/entity/.DS_Store +0 -0
- package/lib/entity/jit-input-options/jit-input-options.js +2 -0
- package/lib/entity/jit-input-options/jit-input-options.js.map +1 -1
- package/lib/generator/.DS_Store +0 -0
- package/lib/mobileapp/vue/static/.gitignore +13 -0
- package/lib/template/devkit/approuting.pug +19 -19
- package/lib/template/devkit/befproxy.pug +77 -77
- package/lib/template/devkit/commandhandler.pug +65 -65
- package/lib/template/devkit/common/validrules.pug +44 -44
- package/lib/template/devkit/component.pug +658 -658
- package/lib/template/devkit/entity.pug +119 -119
- package/lib/template/devkit/event.pug +29 -29
- package/lib/template/devkit/form.pug +56 -56
- package/lib/template/devkit/lang.pug +27 -27
- package/lib/template/devkit/module.pug +268 -268
- package/lib/template/devkit/repository.pug +51 -51
- package/lib/template/devkit/router.pug +55 -55
- package/lib/template/devkit/service.pug +23 -23
- package/lib/template/devkit/solution.1.pug +47 -47
- package/lib/template/devkit/solution.pug +58 -58
- package/lib/template/devkit/state.pug +18 -18
- package/lib/template/devkit/statemachine.pug +45 -45
- package/lib/template/devkit/viewmodel.pug +83 -83
- package/lib/template/ui/kendo/lookup.pug +1 -1
- package/lib/template/ui/kendo/multi-select.pug +1 -1
- package/lib/template/ui/kendo/table/farris-datepicker.pug +1 -0
- package/lib/template/ui/kendo/table/farris-static-text.pug +1 -2
- package/lib/template/ui/kendo/table/farris-time-picker.pug +1 -1
- package/lib/template/ui/kendo/table/lookup.pug +1 -1
- package/lib/template/ui/kendo/table/multi-select.pug +1 -1
- package/lib/template/ui/mobileapprove/attachment-panel-for-mobileapprove.pug +14 -14
- package/lib/template/ui/mobileapprove/content-container.pug +6 -6
- package/lib/template/ui/mobileapprove/detailheader-for-mobileapprove.pug +16 -16
- package/lib/template/ui/mobileapprove/fieldset-for-mobileapprove.pug +6 -6
- package/lib/template/ui/mobileapprove/html-panel-for-mobileapprove.pug +22 -22
- package/lib/template/ui/mobileapprove/html-template.pug +2 -2
- package/lib/template/ui/mobileapprove/panel-for-mobileapprove.pug +10 -10
- package/lib/template/ui/mobileapprove/statictext-for-mobileapprove.pug +22 -22
- package/lib/utility/devkit/component-external-container-parameter-creator.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js +14 -5
- package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js +14 -5
- package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js.map +1 -1
- package/lib/utility/farris-datagrid/lookup-editor.js +6 -2
- package/lib/utility/farris-datagrid/lookup-editor.js.map +1 -1
- package/lib/utility/i18n/i18n-resource-manager.js +1 -1
- package/lib/utility/i18n/i18n-resource-manager.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-farristabs-parameter-generator.js +87 -62
- package/lib/utility/template-generator/devkit/component-generator/component-farristabs-parameter-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js +2 -0
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js +2 -1
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/component-generator/component-section-parameter-generator.js +61 -38
- package/lib/utility/template-generator/devkit/component-generator/component-section-parameter-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/lang-template-generator.js +4 -3
- package/lib/utility/template-generator/devkit/lang-template-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +2 -1
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +3 -2
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-template-generator.js +1 -1
- package/lib/utility/template-generator/devkit/module-template-generator.js.map +1 -1
- package/lib/utility/template-generator/project/index-rollup-html-generator.js +14 -13
- package/lib/utility/template-generator/project/index-rollup-html-generator.js.map +1 -1
- package/lib/utility/template-generator/project-app/navigate-guard-generator.js +4 -3
- package/lib/utility/template-generator/project-app/navigate-guard-generator.js.map +1 -1
- package/lib/utility/template-generator/project-app/systemjs-lc-moduleloader-generator.js +5 -0
- package/lib/utility/template-generator/project-app/systemjs-lc-moduleloader-generator.js.map +1 -1
- package/lib/utility/template-generator/subcontext-path-generator.js +20 -0
- package/lib/utility/template-generator/subcontext-path-generator.js.map +1 -0
- package/package.json +56 -56
|
@@ -1,269 +1,269 @@
|
|
|
1
|
-
//- -var variable = {code:'SaleOrderModule',dependencies:[{name: 'SaleOrderDetailComponent', path: './sale-order-detail.component'}, {name: 'SaleOrderDetailComponent', path: './sale-order-detail.component'}, {name: 'SaleOrderDetailComponent', path: './sale-order-detail.component'}],imports:[{name: 'BrowserModule'}, {name: 'BrowserModule'}, {name: 'BrowserModule', import: '@angular/platform-browser'}],declarations:['SaleOrderDetailComponent', './sale-order-detail.component'],providers:[{name: 'RestfulService'}, {provide: 'service', useExisting: 'ServiceClass', multi: 'true'}, {name: 'RestfulService'}, {provide: 'service', useClass: 'ServiceClass', deps: [2,3], multi: 'true'}, {provide: 'service', useValue: 'ServiceClass', multi: 'true'}, {provide: 'service', useFactory: 'ServiceClass', deps: [1,2], multi: 'true'}]};
|
|
2
|
-
|
|
3
|
-
| import { LOCALE_ID, NgModule } from '@angular/core';
|
|
4
|
-
| import { CommonModule } from '@angular/common';
|
|
5
|
-
| import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
| import { GridModule } from '@progress/kendo-angular-grid';
|
|
7
|
-
| import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
8
|
-
| import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
9
|
-
| import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
10
|
-
| import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
11
|
-
| import { LayoutModule } from '@progress/kendo-angular-layout';
|
|
12
|
-
| import { IntlModule } from '@progress/kendo-angular-intl';
|
|
13
|
-
| import '@progress/kendo-angular-intl/locales/zh/all';
|
|
14
|
-
| import { KendoBindingModule } from '@farris/kendo-binding';
|
|
15
|
-
| import { FlexLayoutModule } from '@farris/ui-flex-layout';
|
|
16
|
-
| import {FarrisFormsModule} from '@farris/ui-forms';
|
|
17
|
-
| import { FormMessageModule } from '@farris/ui-forms/validation-message';
|
|
18
|
-
| import { LoadingModule } from '@farris/ui-loading';
|
|
19
|
-
| import { MessagerModule } from '@farris/ui-messager';
|
|
20
|
-
| import { NotifyModule } from '@farris/ui-notify';
|
|
21
|
-
| import { LookupModule } from '@farris/ui-lookup';
|
|
22
|
-
| import { TreeTableModule } from '@farris/ui-treetable';
|
|
23
|
-
| import { FieldGroupModule } from '@farris/ui-field-group';
|
|
24
|
-
| import { FResponseToolbarModule } from '@farris/ui-response-toolbar';
|
|
25
|
-
| import { BE_SERVER_URI_TOKEN } from '@farris/bef';
|
|
26
|
-
| import { #{variable.externalPrefix}LangPipe } from './lang/lang-pipe';
|
|
27
|
-
| import { FarrisTabsModule } from '@farris/ui-tabs';
|
|
28
|
-
| import { FarrisTagModule } from '@farris/ui-tag';
|
|
29
|
-
| import { FarrisSidebarModule } from '@farris/ui-sidebar';
|
|
30
|
-
| import { UploadDialogMoudle } from '@gsp-svc/formdoc-upload';
|
|
31
|
-
| import { FarrisSectionModule } from '@farris/ui-section';
|
|
32
|
-
| import { FarrisDatePickerModule } from '@farris/ui-datepicker';
|
|
33
|
-
| import { FarrisTimeSpinnerModule } from '@farris/ui-time-spinner';
|
|
34
|
-
| import { DatagridModule } from '@farris/ui-datagrid';
|
|
35
|
-
| import { WizardModule } from '@farris/ui-wizard';
|
|
36
|
-
| import { QuerySolutionModule } from '@gsp-cmp/querysolution';
|
|
37
|
-
| import {FarrisButtonModule} from '@farris/ui-button';
|
|
38
|
-
| import {FARRIS_DEVKIT_APP_PROVIDERS} from '@farris/devkit';
|
|
39
|
-
| import { CommandServicesModule } from '@farris/command-services';
|
|
40
|
-
| import { ListViewModule } from '@farris/ui-list-view';
|
|
41
|
-
| import { TimePickerModule } from '@farris/ui-time-picker';
|
|
42
|
-
| import { AngularDraggableModule } from '@farris/ui-draggable';
|
|
43
|
-
| import { SplitterModule } from '@farris/ui-splitter';
|
|
44
|
-
| import { ListNavModule } from '@farris/ui-list-nav';
|
|
45
|
-
| import { TextModule } from '@farris/ui-text';
|
|
46
|
-
| import { WFRuntimeModule } from '@gsp-wf/rtdevkit'
|
|
47
|
-
| import { MultiSelectModule } from '@farris/ui-multi-select';
|
|
48
|
-
| import { InputGroupModule } from '@farris/ui-input-group';
|
|
49
|
-
| import { ComboListModule } from '@farris/ui-combo-list';
|
|
50
|
-
| import { FarrisHtmlEditorModule } from '@farris/ui-html-editor';
|
|
51
|
-
| import { CloudPrintModule } from '@gsp-svc/cloudprint';
|
|
52
|
-
| import { DatagridEditorsModule, EditorProviders } from '@farris/ui-datagrid-editors';
|
|
53
|
-
| import { ViewChangeModule } from '@farris/ui-view-change';
|
|
54
|
-
| import { SwitchModule } from '@farris/ui-switch';
|
|
55
|
-
| import { ListFilterModule } from '@farris/ui-list-filter';
|
|
56
|
-
| import { AvatarModule } from '@farris/ui-avatar';
|
|
57
|
-
| import { CalendarModule } from '@farris/ui-calendar';
|
|
58
|
-
| import { UiFlowchartModule } from '@gsp-wf/ui-flowchart';
|
|
59
|
-
= '\n'
|
|
60
|
-
if (variable.isQdpForm)
|
|
61
|
-
| import { QueryFrameworkModule } from '@qdp/query-framework';
|
|
62
|
-
| import { SpreadModule } from '@qdp/spread';
|
|
63
|
-
| import { EchartsModule } from '@qdp/echarts';
|
|
64
|
-
| import { QdpCommonModule, Server_Host } from '@qdp/common';
|
|
65
|
-
| import { FinishLoadService } from '@qdp/condition-schema';
|
|
66
|
-
= '\n'
|
|
67
|
-
if(variable.isJointSearch)
|
|
68
|
-
| import { SearchJoinModule, MenuControllerService, SearchListService} from '@qdp/search-join';
|
|
69
|
-
| import { FrameworkService, FrmEventBus, FuncsService, LoadingService } from '@gsp-sys/rtf-common';
|
|
70
|
-
| import { HttpService, SessionService } from '@ecp-caf/caf-common';
|
|
71
|
-
= '\n'
|
|
72
|
-
each item in variable.dependencies
|
|
73
|
-
if(item.usePrefix == null || item.usePrefix == undefined || item.usePrefix == true)
|
|
74
|
-
| import { #{variable.externalPrefix}#{item.name} } from '#{item.path}';
|
|
75
|
-
else
|
|
76
|
-
| import { #{item.name} } from '#{item.path}';
|
|
77
|
-
= '\n'
|
|
78
|
-
= '\n'
|
|
79
|
-
| @NgModule({
|
|
80
|
-
| exports:[
|
|
81
|
-
each item,index in variable.exports
|
|
82
|
-
= '\n'
|
|
83
|
-
| #{variable.externalPrefix}#{item.name}
|
|
84
|
-
if (index< (variable.exports.length-1))
|
|
85
|
-
| ,
|
|
86
|
-
= '\n'
|
|
87
|
-
= '\n'
|
|
88
|
-
| ],
|
|
89
|
-
| entryComponents:[
|
|
90
|
-
= '\n'
|
|
91
|
-
each item,index in variable.entryComponents
|
|
92
|
-
| #{variable.externalPrefix}#{item.name}
|
|
93
|
-
if(index < (variable.entryComponents.length-1))
|
|
94
|
-
| ,
|
|
95
|
-
= '\n'
|
|
96
|
-
= '\n'
|
|
97
|
-
| ],
|
|
98
|
-
| declarations: [
|
|
99
|
-
| #{variable.externalPrefix}LangPipe,
|
|
100
|
-
= '\n'
|
|
101
|
-
each item, index in variable.declarations
|
|
102
|
-
| #{variable.externalPrefix}#{item}
|
|
103
|
-
if index<(variable.declarations.length-1)
|
|
104
|
-
| ,
|
|
105
|
-
= '\n'
|
|
106
|
-
| ],
|
|
107
|
-
| imports: [
|
|
108
|
-
| CommonModule,
|
|
109
|
-
| FormsModule,
|
|
110
|
-
| ReactiveFormsModule,
|
|
111
|
-
| GridModule,
|
|
112
|
-
| DateInputsModule,
|
|
113
|
-
| DropDownsModule,
|
|
114
|
-
| ButtonsModule,
|
|
115
|
-
| FarrisTabsModule,
|
|
116
|
-
| FarrisTagModule,
|
|
117
|
-
| FarrisSidebarModule,
|
|
118
|
-
| UploadDialogMoudle,
|
|
119
|
-
| InputsModule,
|
|
120
|
-
| LayoutModule,
|
|
121
|
-
| IntlModule,
|
|
122
|
-
| KendoBindingModule,
|
|
123
|
-
| FlexLayoutModule,
|
|
124
|
-
| LoadingModule.forRoot(),
|
|
125
|
-
| MessagerModule.forRoot(),
|
|
126
|
-
| NotifyModule.forRoot(),
|
|
127
|
-
| LookupModule,
|
|
128
|
-
| TreeTableModule,
|
|
129
|
-
| FieldGroupModule,
|
|
130
|
-
| FarrisSectionModule,
|
|
131
|
-
| DatagridModule,
|
|
132
|
-
| FarrisDatePickerModule,
|
|
133
|
-
| FarrisTimeSpinnerModule,
|
|
134
|
-
| WizardModule,
|
|
135
|
-
| QuerySolutionModule,
|
|
136
|
-
| FarrisButtonModule,
|
|
137
|
-
| CommandServicesModule,
|
|
138
|
-
| ListViewModule,
|
|
139
|
-
| TimePickerModule,
|
|
140
|
-
| AngularDraggableModule,
|
|
141
|
-
| SplitterModule,
|
|
142
|
-
| ListNavModule,
|
|
143
|
-
| TextModule,
|
|
144
|
-
| WFRuntimeModule,
|
|
145
|
-
| MultiSelectModule,
|
|
146
|
-
| InputGroupModule,
|
|
147
|
-
| ComboListModule,
|
|
148
|
-
| CloudPrintModule,
|
|
149
|
-
| DatagridEditorsModule,
|
|
150
|
-
| FarrisHtmlEditorModule,
|
|
151
|
-
| ViewChangeModule,
|
|
152
|
-
| ListFilterModule,
|
|
153
|
-
| AvatarModule,
|
|
154
|
-
| UiFlowchartModule,
|
|
155
|
-
| CalendarModule,
|
|
156
|
-
| SwitchModule.forRoot(),
|
|
157
|
-
| DatagridModule.forRoot([
|
|
158
|
-
| ...EditorProviders
|
|
159
|
-
| ]),
|
|
160
|
-
if (variable.isQdpForm)
|
|
161
|
-
| QdpCommonModule.forRoot(),
|
|
162
|
-
| QueryFrameworkModule,
|
|
163
|
-
| SpreadModule.forRoot(),
|
|
164
|
-
| EchartsModule,
|
|
165
|
-
if (variable.isJointSearch)
|
|
166
|
-
| SearchJoinModule,
|
|
167
|
-
| FResponseToolbarModule,
|
|
168
|
-
| FarrisFormsModule,
|
|
169
|
-
| FormMessageModule,
|
|
170
|
-
= '\n'
|
|
171
|
-
each item, index in variable.imports
|
|
172
|
-
if item.import
|
|
173
|
-
if(item.userPrefix)
|
|
174
|
-
| #{variable.externalPrefix}#{item.import}
|
|
175
|
-
else
|
|
176
|
-
| #{item.import}
|
|
177
|
-
else
|
|
178
|
-
if(item.usePrefix)
|
|
179
|
-
| #{variable.externalPrefix}#{item.name}
|
|
180
|
-
else
|
|
181
|
-
| #{item.name}
|
|
182
|
-
if index<(variable.imports.length-1)
|
|
183
|
-
| ,
|
|
184
|
-
= '\n'
|
|
185
|
-
| ],
|
|
186
|
-
| providers: [
|
|
187
|
-
| { provide: LOCALE_ID, useValue: localStorage.getItem('languageCode') || 'zh-CHS' },
|
|
188
|
-
| FARRIS_DEVKIT_APP_PROVIDERS,
|
|
189
|
-
if (variable.isJointSearch)
|
|
190
|
-
= '\n'
|
|
191
|
-
| MenuControllerService,
|
|
192
|
-
| SearchListService,
|
|
193
|
-
| FrameworkService,
|
|
194
|
-
| FrmEventBus,
|
|
195
|
-
| FuncsService,
|
|
196
|
-
| LoadingService,
|
|
197
|
-
| HttpService,
|
|
198
|
-
| SessionService,
|
|
199
|
-
= '\n'
|
|
200
|
-
if (variable.isQdpForm)
|
|
201
|
-
| FinishLoadService,
|
|
202
|
-
| { provide: Server_Host, useFactory: function () { return `${window.location.protocol}//${window.location.hostname}:${window.location.port}`; } },
|
|
203
|
-
= '\n'
|
|
204
|
-
each item, index in variable.providers
|
|
205
|
-
if !item.provide
|
|
206
|
-
if(item.usePrefix==null || item.usePrefix==undefined || item.usePrefix==true)
|
|
207
|
-
| #{variable.externalPrefix}#{item.name}
|
|
208
|
-
else
|
|
209
|
-
| #{item.name}
|
|
210
|
-
= '\n'
|
|
211
|
-
if index<(variable.providers.length-1)
|
|
212
|
-
| ,
|
|
213
|
-
else
|
|
214
|
-
| {
|
|
215
|
-
| provide: #{item.provide},
|
|
216
|
-
= '\n'
|
|
217
|
-
if item.useClass
|
|
218
|
-
| useClass: #{item.useClass}
|
|
219
|
-
if item.deps || item.multi
|
|
220
|
-
| ,
|
|
221
|
-
= '\n'
|
|
222
|
-
if item.deps
|
|
223
|
-
| deps: [#{item.deps}]
|
|
224
|
-
if item.multi
|
|
225
|
-
| ,
|
|
226
|
-
= '\n'
|
|
227
|
-
| multi: #{item.multi}
|
|
228
|
-
else if item.multi
|
|
229
|
-
| multi: #{item.multi}
|
|
230
|
-
|
|
231
|
-
if item.useValue
|
|
232
|
-
| useValue: #{item.useValue}
|
|
233
|
-
if item.multi
|
|
234
|
-
| ,
|
|
235
|
-
= '\n'
|
|
236
|
-
| multi: #{item.multi}
|
|
237
|
-
if item.useExisting
|
|
238
|
-
| useExisting: #{item.useExisting}
|
|
239
|
-
if item.multi
|
|
240
|
-
| ,
|
|
241
|
-
= '\n'
|
|
242
|
-
| multi: #{item.multi}
|
|
243
|
-
|
|
244
|
-
if item.useFactory
|
|
245
|
-
| useFactory: #{item.useFactory}
|
|
246
|
-
if item.deps || item.multi
|
|
247
|
-
| ,
|
|
248
|
-
= '\n'
|
|
249
|
-
if item.deps
|
|
250
|
-
| deps: [#{item.deps}]
|
|
251
|
-
if item.multi
|
|
252
|
-
| ,
|
|
253
|
-
= '\n'
|
|
254
|
-
| multi: #{item.multi}
|
|
255
|
-
else if item.multi
|
|
256
|
-
| multi: #{item.multi}
|
|
257
|
-
= '\n'
|
|
258
|
-
| }
|
|
259
|
-
if index<(variable.providers.length-1)
|
|
260
|
-
| ,
|
|
261
|
-
= '\n'
|
|
262
|
-
= '\n'
|
|
263
|
-
| ]
|
|
264
|
-
| })
|
|
265
|
-
| export class #{variable.externalPrefix}#{variable.code}Module {
|
|
266
|
-
| constructor() {}
|
|
267
|
-
|}
|
|
268
|
-
= '\n'
|
|
1
|
+
//- -var variable = {code:'SaleOrderModule',dependencies:[{name: 'SaleOrderDetailComponent', path: './sale-order-detail.component'}, {name: 'SaleOrderDetailComponent', path: './sale-order-detail.component'}, {name: 'SaleOrderDetailComponent', path: './sale-order-detail.component'}],imports:[{name: 'BrowserModule'}, {name: 'BrowserModule'}, {name: 'BrowserModule', import: '@angular/platform-browser'}],declarations:['SaleOrderDetailComponent', './sale-order-detail.component'],providers:[{name: 'RestfulService'}, {provide: 'service', useExisting: 'ServiceClass', multi: 'true'}, {name: 'RestfulService'}, {provide: 'service', useClass: 'ServiceClass', deps: [2,3], multi: 'true'}, {provide: 'service', useValue: 'ServiceClass', multi: 'true'}, {provide: 'service', useFactory: 'ServiceClass', deps: [1,2], multi: 'true'}]};
|
|
2
|
+
|
|
3
|
+
| import { LOCALE_ID, NgModule } from '@angular/core';
|
|
4
|
+
| import { CommonModule } from '@angular/common';
|
|
5
|
+
| import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
| import { GridModule } from '@progress/kendo-angular-grid';
|
|
7
|
+
| import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
8
|
+
| import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
9
|
+
| import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
10
|
+
| import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
11
|
+
| import { LayoutModule } from '@progress/kendo-angular-layout';
|
|
12
|
+
| import { IntlModule } from '@progress/kendo-angular-intl';
|
|
13
|
+
| import '@progress/kendo-angular-intl/locales/zh/all';
|
|
14
|
+
| import { KendoBindingModule } from '@farris/kendo-binding';
|
|
15
|
+
| import { FlexLayoutModule } from '@farris/ui-flex-layout';
|
|
16
|
+
| import {FarrisFormsModule} from '@farris/ui-forms';
|
|
17
|
+
| import { FormMessageModule } from '@farris/ui-forms/validation-message';
|
|
18
|
+
| import { LoadingModule } from '@farris/ui-loading';
|
|
19
|
+
| import { MessagerModule } from '@farris/ui-messager';
|
|
20
|
+
| import { NotifyModule } from '@farris/ui-notify';
|
|
21
|
+
| import { LookupModule } from '@farris/ui-lookup';
|
|
22
|
+
| import { TreeTableModule } from '@farris/ui-treetable';
|
|
23
|
+
| import { FieldGroupModule } from '@farris/ui-field-group';
|
|
24
|
+
| import { FResponseToolbarModule } from '@farris/ui-response-toolbar';
|
|
25
|
+
| import { BE_SERVER_URI_TOKEN } from '@farris/bef';
|
|
26
|
+
| import { #{variable.externalPrefix}LangPipe } from './lang/lang-pipe';
|
|
27
|
+
| import { FarrisTabsModule } from '@farris/ui-tabs';
|
|
28
|
+
| import { FarrisTagModule } from '@farris/ui-tag';
|
|
29
|
+
| import { FarrisSidebarModule } from '@farris/ui-sidebar';
|
|
30
|
+
| import { UploadDialogMoudle } from '@gsp-svc/formdoc-upload';
|
|
31
|
+
| import { FarrisSectionModule } from '@farris/ui-section';
|
|
32
|
+
| import { FarrisDatePickerModule } from '@farris/ui-datepicker';
|
|
33
|
+
| import { FarrisTimeSpinnerModule } from '@farris/ui-time-spinner';
|
|
34
|
+
| import { DatagridModule } from '@farris/ui-datagrid';
|
|
35
|
+
| import { WizardModule } from '@farris/ui-wizard';
|
|
36
|
+
| import { QuerySolutionModule } from '@gsp-cmp/querysolution';
|
|
37
|
+
| import {FarrisButtonModule} from '@farris/ui-button';
|
|
38
|
+
| import {FARRIS_DEVKIT_APP_PROVIDERS} from '@farris/devkit';
|
|
39
|
+
| import { CommandServicesModule } from '@farris/command-services';
|
|
40
|
+
| import { ListViewModule } from '@farris/ui-list-view';
|
|
41
|
+
| import { TimePickerModule } from '@farris/ui-time-picker';
|
|
42
|
+
| import { AngularDraggableModule } from '@farris/ui-draggable';
|
|
43
|
+
| import { SplitterModule } from '@farris/ui-splitter';
|
|
44
|
+
| import { ListNavModule } from '@farris/ui-list-nav';
|
|
45
|
+
| import { TextModule } from '@farris/ui-text';
|
|
46
|
+
| import { WFRuntimeModule } from '@gsp-wf/rtdevkit'
|
|
47
|
+
| import { MultiSelectModule } from '@farris/ui-multi-select';
|
|
48
|
+
| import { InputGroupModule } from '@farris/ui-input-group';
|
|
49
|
+
| import { ComboListModule } from '@farris/ui-combo-list';
|
|
50
|
+
| import { FarrisHtmlEditorModule } from '@farris/ui-html-editor';
|
|
51
|
+
| import { CloudPrintModule } from '@gsp-svc/cloudprint';
|
|
52
|
+
| import { DatagridEditorsModule, EditorProviders } from '@farris/ui-datagrid-editors';
|
|
53
|
+
| import { ViewChangeModule } from '@farris/ui-view-change';
|
|
54
|
+
| import { SwitchModule } from '@farris/ui-switch';
|
|
55
|
+
| import { ListFilterModule } from '@farris/ui-list-filter';
|
|
56
|
+
| import { AvatarModule } from '@farris/ui-avatar';
|
|
57
|
+
| import { CalendarModule } from '@farris/ui-calendar';
|
|
58
|
+
| import { UiFlowchartModule } from '@gsp-wf/ui-flowchart';
|
|
59
|
+
= '\n'
|
|
60
|
+
if (variable.isQdpForm)
|
|
61
|
+
| import { QueryFrameworkModule } from '@qdp/query-framework';
|
|
62
|
+
| import { SpreadModule } from '@qdp/spread';
|
|
63
|
+
| import { EchartsModule } from '@qdp/echarts';
|
|
64
|
+
| import { QdpCommonModule, Server_Host } from '@qdp/common';
|
|
65
|
+
| import { FinishLoadService } from '@qdp/condition-schema';
|
|
66
|
+
= '\n'
|
|
67
|
+
if(variable.isJointSearch)
|
|
68
|
+
| import { SearchJoinModule, MenuControllerService, SearchListService} from '@qdp/search-join';
|
|
69
|
+
| import { FrameworkService, FrmEventBus, FuncsService, LoadingService } from '@gsp-sys/rtf-common';
|
|
70
|
+
| import { HttpService, SessionService } from '@ecp-caf/caf-common';
|
|
71
|
+
= '\n'
|
|
72
|
+
each item in variable.dependencies
|
|
73
|
+
if(item.usePrefix == null || item.usePrefix == undefined || item.usePrefix == true)
|
|
74
|
+
| import { #{variable.externalPrefix}#{item.name} } from '#{item.path}';
|
|
75
|
+
else
|
|
76
|
+
| import { #{item.name} } from '#{item.path}';
|
|
77
|
+
= '\n'
|
|
78
|
+
= '\n'
|
|
79
|
+
| @NgModule({
|
|
80
|
+
| exports:[
|
|
81
|
+
each item,index in variable.exports
|
|
82
|
+
= '\n'
|
|
83
|
+
| #{variable.externalPrefix}#{item.name}
|
|
84
|
+
if (index< (variable.exports.length-1))
|
|
85
|
+
| ,
|
|
86
|
+
= '\n'
|
|
87
|
+
= '\n'
|
|
88
|
+
| ],
|
|
89
|
+
| entryComponents:[
|
|
90
|
+
= '\n'
|
|
91
|
+
each item,index in variable.entryComponents
|
|
92
|
+
| #{variable.externalPrefix}#{item.name}
|
|
93
|
+
if(index < (variable.entryComponents.length-1))
|
|
94
|
+
| ,
|
|
95
|
+
= '\n'
|
|
96
|
+
= '\n'
|
|
97
|
+
| ],
|
|
98
|
+
| declarations: [
|
|
99
|
+
| #{variable.externalPrefix}LangPipe,
|
|
100
|
+
= '\n'
|
|
101
|
+
each item, index in variable.declarations
|
|
102
|
+
| #{variable.externalPrefix}#{item}
|
|
103
|
+
if index<(variable.declarations.length-1)
|
|
104
|
+
| ,
|
|
105
|
+
= '\n'
|
|
106
|
+
| ],
|
|
107
|
+
| imports: [
|
|
108
|
+
| CommonModule,
|
|
109
|
+
| FormsModule,
|
|
110
|
+
| ReactiveFormsModule,
|
|
111
|
+
| GridModule,
|
|
112
|
+
| DateInputsModule,
|
|
113
|
+
| DropDownsModule,
|
|
114
|
+
| ButtonsModule,
|
|
115
|
+
| FarrisTabsModule,
|
|
116
|
+
| FarrisTagModule,
|
|
117
|
+
| FarrisSidebarModule,
|
|
118
|
+
| UploadDialogMoudle,
|
|
119
|
+
| InputsModule,
|
|
120
|
+
| LayoutModule,
|
|
121
|
+
| IntlModule,
|
|
122
|
+
| KendoBindingModule,
|
|
123
|
+
| FlexLayoutModule,
|
|
124
|
+
| LoadingModule.forRoot(),
|
|
125
|
+
| MessagerModule.forRoot(),
|
|
126
|
+
| NotifyModule.forRoot(),
|
|
127
|
+
| LookupModule,
|
|
128
|
+
| TreeTableModule,
|
|
129
|
+
| FieldGroupModule,
|
|
130
|
+
| FarrisSectionModule,
|
|
131
|
+
| DatagridModule,
|
|
132
|
+
| FarrisDatePickerModule,
|
|
133
|
+
| FarrisTimeSpinnerModule,
|
|
134
|
+
| WizardModule,
|
|
135
|
+
| QuerySolutionModule,
|
|
136
|
+
| FarrisButtonModule,
|
|
137
|
+
| CommandServicesModule,
|
|
138
|
+
| ListViewModule,
|
|
139
|
+
| TimePickerModule,
|
|
140
|
+
| AngularDraggableModule,
|
|
141
|
+
| SplitterModule,
|
|
142
|
+
| ListNavModule,
|
|
143
|
+
| TextModule,
|
|
144
|
+
| WFRuntimeModule,
|
|
145
|
+
| MultiSelectModule,
|
|
146
|
+
| InputGroupModule,
|
|
147
|
+
| ComboListModule,
|
|
148
|
+
| CloudPrintModule,
|
|
149
|
+
| DatagridEditorsModule,
|
|
150
|
+
| FarrisHtmlEditorModule,
|
|
151
|
+
| ViewChangeModule,
|
|
152
|
+
| ListFilterModule,
|
|
153
|
+
| AvatarModule,
|
|
154
|
+
| UiFlowchartModule,
|
|
155
|
+
| CalendarModule,
|
|
156
|
+
| SwitchModule.forRoot(),
|
|
157
|
+
| DatagridModule.forRoot([
|
|
158
|
+
| ...EditorProviders
|
|
159
|
+
| ]),
|
|
160
|
+
if (variable.isQdpForm)
|
|
161
|
+
| QdpCommonModule.forRoot(),
|
|
162
|
+
| QueryFrameworkModule,
|
|
163
|
+
| SpreadModule.forRoot(),
|
|
164
|
+
| EchartsModule,
|
|
165
|
+
if (variable.isJointSearch)
|
|
166
|
+
| SearchJoinModule,
|
|
167
|
+
| FResponseToolbarModule,
|
|
168
|
+
| FarrisFormsModule,
|
|
169
|
+
| FormMessageModule,
|
|
170
|
+
= '\n'
|
|
171
|
+
each item, index in variable.imports
|
|
172
|
+
if item.import
|
|
173
|
+
if(item.userPrefix)
|
|
174
|
+
| #{variable.externalPrefix}#{item.import}
|
|
175
|
+
else
|
|
176
|
+
| #{item.import}
|
|
177
|
+
else
|
|
178
|
+
if(item.usePrefix)
|
|
179
|
+
| #{variable.externalPrefix}#{item.name}
|
|
180
|
+
else
|
|
181
|
+
| #{item.name}
|
|
182
|
+
if index<(variable.imports.length-1)
|
|
183
|
+
| ,
|
|
184
|
+
= '\n'
|
|
185
|
+
| ],
|
|
186
|
+
| providers: [
|
|
187
|
+
| { provide: LOCALE_ID, useValue: localStorage.getItem('languageCode') || 'zh-CHS' },
|
|
188
|
+
| FARRIS_DEVKIT_APP_PROVIDERS,
|
|
189
|
+
if (variable.isJointSearch)
|
|
190
|
+
= '\n'
|
|
191
|
+
| MenuControllerService,
|
|
192
|
+
| SearchListService,
|
|
193
|
+
| FrameworkService,
|
|
194
|
+
| FrmEventBus,
|
|
195
|
+
| FuncsService,
|
|
196
|
+
| LoadingService,
|
|
197
|
+
| HttpService,
|
|
198
|
+
| SessionService,
|
|
199
|
+
= '\n'
|
|
200
|
+
if (variable.isQdpForm)
|
|
201
|
+
| FinishLoadService,
|
|
202
|
+
| { provide: Server_Host, useFactory: function () { return `${window.location.protocol}//${window.location.hostname}:${window.location.port}`; } },
|
|
203
|
+
= '\n'
|
|
204
|
+
each item, index in variable.providers
|
|
205
|
+
if !item.provide
|
|
206
|
+
if(item.usePrefix==null || item.usePrefix==undefined || item.usePrefix==true)
|
|
207
|
+
| #{variable.externalPrefix}#{item.name}
|
|
208
|
+
else
|
|
209
|
+
| #{item.name}
|
|
210
|
+
= '\n'
|
|
211
|
+
if index<(variable.providers.length-1)
|
|
212
|
+
| ,
|
|
213
|
+
else
|
|
214
|
+
| {
|
|
215
|
+
| provide: #{item.provide},
|
|
216
|
+
= '\n'
|
|
217
|
+
if item.useClass
|
|
218
|
+
| useClass: #{item.useClass}
|
|
219
|
+
if item.deps || item.multi
|
|
220
|
+
| ,
|
|
221
|
+
= '\n'
|
|
222
|
+
if item.deps
|
|
223
|
+
| deps: [#{item.deps}]
|
|
224
|
+
if item.multi
|
|
225
|
+
| ,
|
|
226
|
+
= '\n'
|
|
227
|
+
| multi: #{item.multi}
|
|
228
|
+
else if item.multi
|
|
229
|
+
| multi: #{item.multi}
|
|
230
|
+
|
|
231
|
+
if item.useValue
|
|
232
|
+
| useValue: #{item.useValue}
|
|
233
|
+
if item.multi
|
|
234
|
+
| ,
|
|
235
|
+
= '\n'
|
|
236
|
+
| multi: #{item.multi}
|
|
237
|
+
if item.useExisting
|
|
238
|
+
| useExisting: #{item.useExisting}
|
|
239
|
+
if item.multi
|
|
240
|
+
| ,
|
|
241
|
+
= '\n'
|
|
242
|
+
| multi: #{item.multi}
|
|
243
|
+
|
|
244
|
+
if item.useFactory
|
|
245
|
+
| useFactory: #{item.useFactory}
|
|
246
|
+
if item.deps || item.multi
|
|
247
|
+
| ,
|
|
248
|
+
= '\n'
|
|
249
|
+
if item.deps
|
|
250
|
+
| deps: [#{item.deps}]
|
|
251
|
+
if item.multi
|
|
252
|
+
| ,
|
|
253
|
+
= '\n'
|
|
254
|
+
| multi: #{item.multi}
|
|
255
|
+
else if item.multi
|
|
256
|
+
| multi: #{item.multi}
|
|
257
|
+
= '\n'
|
|
258
|
+
| }
|
|
259
|
+
if index<(variable.providers.length-1)
|
|
260
|
+
| ,
|
|
261
|
+
= '\n'
|
|
262
|
+
= '\n'
|
|
263
|
+
| ]
|
|
264
|
+
| })
|
|
265
|
+
| export class #{variable.externalPrefix}#{variable.code}Module {
|
|
266
|
+
| constructor() {}
|
|
267
|
+
|}
|
|
268
|
+
= '\n'
|
|
269
269
|
= '\n'
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
//- -var variable = {name: 'SaleOrderDetailRepository', storage: 'SaleOrderDetailStorage', entity: 'SaleOrderDetailEntity',restUri:'a'};
|
|
2
|
-
|
|
3
|
-
| import { Injectable, Injector } from '@angular/core';
|
|
4
|
-
| import { NgRepository } from '@farris/devkit';
|
|
5
|
-
| import { BefRepository, NgVariable } from '@farris/bef';
|
|
6
|
-
| import { #{variable.externalPrefix}#{variable.entity} } from './entities/#{variable.entity.toLowerCase()}';
|
|
7
|
-
if(variable.includeProxyReference)
|
|
8
|
-
| import { #{variable.externalPrefix}#{variable.originalEntity}Proxy } from './#{variable.originalEntity.toLowerCase()}proxy';
|
|
9
|
-
|
|
|
10
|
-
| @Injectable()
|
|
11
|
-
| @NgRepository({
|
|
12
|
-
= '\n'
|
|
13
|
-
if (variable.restUri)
|
|
14
|
-
| apiUrl: '#{variable.restUri.toLowerCase()}',
|
|
15
|
-
= '\n'
|
|
16
|
-
else
|
|
17
|
-
| apiUrl: 'api/scm/sd/v1.0/#{variable.entity.toLowerCase().replace("entity","service")}',
|
|
18
|
-
= '\n'
|
|
19
|
-
| entityType: #{variable.externalPrefix}#{variable.entity}
|
|
20
|
-
| })
|
|
21
|
-
| export class #{variable.externalPrefix}#{variable.name} extends BefRepository<#{variable.externalPrefix}#{variable.entity}> {
|
|
22
|
-
= '\n'
|
|
23
|
-
| public name= '#{variable.externalPrefix}#{variable.name}';
|
|
24
|
-
= '\n'
|
|
25
|
-
if(variable.includeProxyReference)
|
|
26
|
-
| public proxy:#{variable.externalPrefix}#{variable.originalEntity}Proxy;
|
|
27
|
-
= '\n'
|
|
28
|
-
each state in variable.states
|
|
29
|
-
| @NgVariable({
|
|
30
|
-
| mapping: '#{state.code}'
|
|
31
|
-
| })
|
|
32
|
-
| public #{state.code}: #{state.type};
|
|
33
|
-
= '\n'
|
|
34
|
-
= '\n'
|
|
35
|
-
| public paginationInfo={
|
|
36
|
-
if (variable.paginations)
|
|
37
|
-
each pagination in variable.paginations
|
|
38
|
-
= '\n'
|
|
39
|
-
| #{variable.externalPrefix}#{variable.entity}:{
|
|
40
|
-
| pageSize:#{pagination.pagination.pageSize} ,
|
|
41
|
-
= '\n'
|
|
42
|
-
| }
|
|
43
|
-
= '\n'
|
|
44
|
-
| };
|
|
45
|
-
| constructor(injector: Injector) {
|
|
46
|
-
| super(injector);
|
|
47
|
-
if(variable.includeProxyReference)
|
|
48
|
-
| this.proxy=injector.get(#{variable.externalPrefix}#{variable.originalEntity}Proxy,null);
|
|
49
|
-
| }
|
|
50
|
-
| }
|
|
51
|
-
= '\n'
|
|
1
|
+
//- -var variable = {name: 'SaleOrderDetailRepository', storage: 'SaleOrderDetailStorage', entity: 'SaleOrderDetailEntity',restUri:'a'};
|
|
2
|
+
|
|
3
|
+
| import { Injectable, Injector } from '@angular/core';
|
|
4
|
+
| import { NgRepository } from '@farris/devkit';
|
|
5
|
+
| import { BefRepository, NgVariable } from '@farris/bef';
|
|
6
|
+
| import { #{variable.externalPrefix}#{variable.entity} } from './entities/#{variable.entity.toLowerCase()}';
|
|
7
|
+
if(variable.includeProxyReference)
|
|
8
|
+
| import { #{variable.externalPrefix}#{variable.originalEntity}Proxy } from './#{variable.originalEntity.toLowerCase()}proxy';
|
|
9
|
+
|
|
|
10
|
+
| @Injectable()
|
|
11
|
+
| @NgRepository({
|
|
12
|
+
= '\n'
|
|
13
|
+
if (variable.restUri)
|
|
14
|
+
| apiUrl: '#{variable.restUri.toLowerCase()}',
|
|
15
|
+
= '\n'
|
|
16
|
+
else
|
|
17
|
+
| apiUrl: 'api/scm/sd/v1.0/#{variable.entity.toLowerCase().replace("entity","service")}',
|
|
18
|
+
= '\n'
|
|
19
|
+
| entityType: #{variable.externalPrefix}#{variable.entity}
|
|
20
|
+
| })
|
|
21
|
+
| export class #{variable.externalPrefix}#{variable.name} extends BefRepository<#{variable.externalPrefix}#{variable.entity}> {
|
|
22
|
+
= '\n'
|
|
23
|
+
| public name= '#{variable.externalPrefix}#{variable.name}';
|
|
24
|
+
= '\n'
|
|
25
|
+
if(variable.includeProxyReference)
|
|
26
|
+
| public proxy:#{variable.externalPrefix}#{variable.originalEntity}Proxy;
|
|
27
|
+
= '\n'
|
|
28
|
+
each state in variable.states
|
|
29
|
+
| @NgVariable({
|
|
30
|
+
| mapping: '#{state.code}'
|
|
31
|
+
| })
|
|
32
|
+
| public #{state.code}: #{state.type};
|
|
33
|
+
= '\n'
|
|
34
|
+
= '\n'
|
|
35
|
+
| public paginationInfo={
|
|
36
|
+
if (variable.paginations)
|
|
37
|
+
each pagination in variable.paginations
|
|
38
|
+
= '\n'
|
|
39
|
+
| #{variable.externalPrefix}#{variable.entity}:{
|
|
40
|
+
| pageSize:#{pagination.pagination.pageSize} ,
|
|
41
|
+
= '\n'
|
|
42
|
+
| }
|
|
43
|
+
= '\n'
|
|
44
|
+
| };
|
|
45
|
+
| constructor(injector: Injector) {
|
|
46
|
+
| super(injector);
|
|
47
|
+
if(variable.includeProxyReference)
|
|
48
|
+
| this.proxy=injector.get(#{variable.externalPrefix}#{variable.originalEntity}Proxy,null);
|
|
49
|
+
| }
|
|
50
|
+
| }
|
|
51
|
+
= '\n'
|
|
52
52
|
= '\n'
|