ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
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
package com.vci.server.portal.delegate;
 
import org.omg.CORBA.IntHolder;
 
import com.vci.corba.common.VCIError;
import com.vci.corba.portal.data.Constraint;
import com.vci.corba.portal.data.PLAction;
import com.vci.corba.portal.data.PLActionCls;
import com.vci.corba.portal.data.PLActionParam;
import com.vci.corba.portal.data.PLCommandParameter;
import com.vci.corba.portal.data.PLPageDefination;
import com.vci.corba.portal.data.PLUILayout;
import com.vci.corba.portal.data.PLTabButton;
import com.vci.corba.portal.data.PLTabPage;
import com.vci.corba.portal.data.PLTypeAction;
import com.vci.corba.portal.data.PortalVI;
 
public interface IPortalServiceDelegate {
 
    public boolean savePortalVI(PortalVI portalVI) throws Throwable;
 
    public boolean batchSavePortalVI(PortalVI[] portalVIs) throws Throwable;
 
    public boolean updatePortalVI(PortalVI portalVI) throws Throwable;
 
    public boolean deletePortalVI(PortalVI portalVI) throws Throwable;
 
    public boolean deletePortalVIByID(String id) throws Throwable;
 
    public PortalVI[] getPortalVIArrayByTypeName(String typeName) throws Throwable;
 
    public PortalVI[] getPagePortalVIArrayByTypeName(String typeName, long startPage, long endPage) throws Throwable;
 
    public PortalVI[] getPagePortalVIArrayByCondition(String typeName, short sheetType, String sheetName,
            long startPage, long endPage) throws Throwable;
 
    /**
     * 根据翻页参数返回表单
     * 
     * @param typeName   表单所在类型名称
     * @param viName     表单名称 模糊查询
     * @param viType     表单类型 PortalVIType.Table|Form
     * @param viTypeFlag 表单类型标识 PortalVITypeFlag.BtmType|LinkType
     * @param pageIndex  页号
     * @param pageSize   页大小
     * @param total      输出参数总数
     * @return
     * @throws Throwable
     */
    public PortalVI[] getPagePortalVIArrayByPageInfo(String typeName, String viName, short viType, short viTypeFlag,
            long pageIndex, long pageSize, IntHolder total) throws Throwable;
 
    /**
     * 根据OID级联删除表单
     * 
     * @param oids 表单 oids
     * @return
     * @throws Throwable
     */
    public boolean deletePagePortalVIForCascade(String[] oids) throws Throwable;
 
    public int getPortalVICountByTypeName(String typeName) throws Throwable;
 
    public int getPortalVICountByCondition(String typeName, int sheetType, String sheetName) throws Throwable;
 
    public PortalVI getPortalVIById(String id) throws Throwable;
 
    public PortalVI getPortalVIBySymbol(String symbol) throws Throwable;
 
    public boolean savePLAction(PLAction plAction) throws Throwable;
 
    public boolean updatePLAction(PLAction plAction) throws Throwable;
 
    public boolean deletePLAction(PLAction plAction) throws Throwable;
 
    public boolean deletePLActionByID(String id) throws Throwable;
 
    public boolean savePLCommandParameter(PLCommandParameter plCommandParameter) throws Throwable;
 
    public boolean batchSavePLCommandParameter(PLCommandParameter[] plCommandParameters) throws Throwable;
 
    public boolean updatePLCommandParameter(PLCommandParameter plCommandParameter) throws Throwable;
 
    public boolean deletePLCommandParameter(PLCommandParameter plCommandParameter) throws Throwable;
 
    public boolean deletePLCommandParameterByID(String id) throws Throwable;
 
    public boolean deletePLCommandParameterByTabButtonId(String id) throws Throwable;
 
    public boolean savePLUILayout(PLUILayout plUILayout) throws Throwable;
 
    public boolean batchSavePLUILayout(PLUILayout[] plPageLayoutDefinations) throws Throwable;
 
    public boolean updatePLUILayout(PLUILayout plUILayout) throws Throwable;
 
    public boolean deletePLUILayout(PLUILayout plUILayout) throws Throwable;
 
    public boolean deletePLUILayoutByID(String id) throws Throwable;
 
    /**
     * 根据OID删除上下文(级联)
     * 
     * @param oids
     * @return
     * @throws Throwable
     */
    public boolean deletePLUILayoutByOidsForCascade(String[] oids) throws Throwable;
 
    public boolean savePLTabButton(PLTabButton plTabButton) throws Throwable;
 
    public boolean savePLTabButtonAndParams(PLTabButton[] plTabButton, PLCommandParameter[] btnParams) throws Throwable;
 
    public boolean batchSavePLTabButton(PLTabButton[] plTabButtons) throws Throwable;
 
    public boolean updatePLTabButton(PLTabButton plTabButton) throws Throwable;
 
    public boolean deletePLTabButton(PLTabButton plTabButton) throws Throwable;
 
    /**
     * 删除页签按钮
     */
    public boolean deletePLTabButtonByID(String id) throws Throwable;
 
    /**
     * 根据OID删除UI组件按钮(级联)
     * 
     * @param oids
     * @return
     * @throws Throwable
     */
    public boolean deletePLTabButtonByOidsForCascade(String[] oids) throws Throwable;
 
    /**
     * 保存页签
     */
    public boolean savePLTabPage(PLTabPage plTabPage) throws Throwable;
 
    public boolean batchSavePLTabPage(PLTabPage[] plTabPages) throws Throwable;
 
    /**
     * 更新页签
     */
    public boolean updatePLTabPage(PLTabPage plTabPage) throws Throwable;
 
    /**
     * 删除页签
     */
    public boolean deletePLTabPage(PLTabPage plTabPage) throws Throwable;
 
    /**
     * 删除页签
     */
    public boolean deletePLTabPageByID(String id) throws Throwable;
 
    /**
     * 根据OID删除页签(级联)
     * 
     * @param oids
     * @return
     * @throws Throwable
     */
    public boolean deletePLTabPageByOidsForCascade(String[] oids) throws Throwable;
 
    /**
     * 根据ID获取指定的PLAction
     */
    public PLAction getPLActionById(String plOId) throws Throwable;
 
    /**
     * 获取所有PLAction
     */
    public PLAction[] getAllPLAction() throws Throwable;
 
    /**
     * 根据ID获取指定的PLCommandParameter
     */
    public PLCommandParameter getPLCommandParameterById(String plOId) throws Throwable;
 
    /**
     * 根据plCommandOId获取PLCommandParameterArray
     */
    public PLCommandParameter[] getPLCommandParametersByCommandOId(String plCommandOId) throws Throwable;
 
    /**
     * 根据ID获取指定的PLUILayout
     */
    public PLUILayout getPLUILayoutById(String plOId) throws Throwable;
 
    public PLUILayout[] getPLUILayoutEntity(String contentStr) throws Throwable;
 
    /**
     * 根据关联类型获取PLUILayoutArray
     */
    public PLUILayout[] getPLUILayoutsByRelatedType(String plRelatedType) throws Throwable;
 
    public PLUILayout[] getPLUILayoutsByRelatedTypeAndQueryInfo(String plRelatedType, String name, String code,
            int pageIndex, int pageSize, IntHolder total) throws Throwable;
 
    /**
     * 根据关联类型和编号获取PLUILayoutArray
     */
    public PLUILayout[] getPLUILayoutEntity(String plRelatedType, String code) throws Throwable;
 
    /**
     * 根据ID获取指定的PLTabPage
     */
    public PLTabPage getPLTabPageById(String plOId) throws Throwable;
 
    /**
     * 根据plPageDefinationOId获取PLUILayoutArray
     */
    public PLTabPage[] getPLTabPagesByPageDefinationOId(String plPageDefinationOId) throws Throwable;
 
    /**
     * 根据上下文ID和区域类型,按顺序获取当前区域的tab页
     */
    public PLTabPage[] getTabPagesByContextIdAndType(String contextId, int type) throws Throwable;
 
    /**
     * 根据ID获取指定的PLTabButton
     */
    public PLTabButton getPLTabButtonById(String plOId) throws Throwable;
 
    /**
     * 根据plTableOId获取PLTabButtonArray
     */
    public PLTabButton[] getPLTabButtonsByTableOId(String plTableOId) throws Throwable;
 
    /**
     * 保存界面
     */
    public boolean savePLPageDefination(PLPageDefination plPageDefination) throws Throwable;
 
    public boolean batchSavePLPageDefination(PLPageDefination[] plPageDefinations) throws Throwable;
 
    /**
     * 更新界面
     */
    public boolean updatePLPageDefination(PLPageDefination plPageDefination) throws Throwable;
 
    /**
     * 删除界面
     */
    public boolean deletePLPageDefination(PLPageDefination plPageDefination) throws Throwable;
 
    /**
     * 删除界面
     */
    public boolean deletePLPageDefinationByID(String id) throws Throwable;
 
    /**
     * 根据OID删除UI组件(级联)
     * 
     * @param oids
     * @return
     * @throws Throwable
     */
    public boolean deletePLPageDefinationByOidsForCascade(String[] oids) throws Throwable;
 
    /**
     * 根据ID获取指定的PLPageDefination
     */
    public PLPageDefination getPLPageDefinationById(String plOId) throws Throwable;
 
    /**
     * 根据plPageContextOId获取指定的PLPageDefinationArray
     */
    public PLPageDefination[] getPLPageDefinationsByPageContextOId(String plPageContextOId) throws Throwable;
 
    /**
     * 根据type,code获取指定的PLTabPage
     */
    public PLTabPage[] getPLTabPagesByTypeANDCode(String type, String code) throws Throwable;
 
    /**
     * 根据类型名和视图名获取视图
     */
    public PortalVI getPortalVIByTypeNameAndVIName(String typeName, String viName) throws Throwable;
 
    /**
     * 根据约束条件组查询数组, 查询PLActions
     */
    public PLAction[] getPLActionsByConsArray(Constraint[] consArray) throws Throwable;
 
    /**
     * 查询所有Action分类
     */
    public PLActionCls[] getPLActionClsArray() throws VCIError;
 
    /**
     * 创建Action分类
     */
    public String creaetePLActionCls(PLActionCls cls);
 
    /**
     * 修改Action分类信息
     */
    public String editPLActionCls(PLActionCls cls);
 
    /**
     * 删除分类
     */
    public String deletePLActionClsById(String id);
 
    /**
     * 根据ActionID查询按钮参数列表
     */
    public PLActionParam[] getPLActionParamArrayByActionId(String actionId) throws VCIError;
 
    /**
     * 创建参数分类
     */
    public String createPLActionParam(PLActionParam param);
 
    /**
     * 批量创建分类
     */
    public String createPLActionParamBatch(PLActionParam[] params);
 
    /**
     * 修改参数
     */
    public String editPLActionParam(PLActionParam param);
 
    /**
     * 删除参数
     */
    public String deletePLActionParam(String id);
 
    public boolean savePLTypeActionEntity(PLTypeAction plTypeAction) throws Throwable;
 
    public boolean deletePLTypeActionEntityByTypeAndAction(String type, String actionoId) throws Throwable;
 
    public PLAction[] getAllPLActionEntityByType(String type) throws Throwable;
 
    /**
     * 根据type和formName判断表单是否能被修改
     * 
     * @param type
     * @param name
     * @return
     */
    public boolean judgeUpdateButton(int type, String viName, String typeName) throws Throwable;
 
    /**
     * 根据id判断表单是否能被删除
     * 
     * @param type
     * @param name
     * @return
     */
    public boolean judgeDeleteButton(String id, String typeName) throws Throwable;
 
    public PLUILayout[] getAllPLUILayouts() throws Throwable;
 
    public PLTabPage[] getAllPLTabPages() throws Throwable;
 
    public PLPageDefination[] getAllPLPageDefinations() throws Throwable;
 
    public PLTabButton[] getAllPLTabButtons() throws Throwable;
 
    public PLCommandParameter[] getAllPLCommandParameters() throws Throwable;
 
    public PortalVI[] getAllPortalVI() throws Throwable;
 
    public PortalVI[] getPortalVIBySymbolAndTypeName(String viName, String type) throws Throwable;
 
    public PortalVI[] getPortalVIByQueryInfo(String typeName, int typeFlag, String viName, int viType, IntHolder total)
            throws Throwable;
 
    public PLPageDefination[] getAllPLPageDefinationsWithNoConf() throws Throwable;
 
    public boolean copyTabPageToPageLayout(String[] tabPageOids, PLUILayout plUILayout, short areaType)
            throws Throwable;
 
    public boolean copyComptToTabPage(String[] comptOids, PLTabPage plTabPage) throws Throwable;
}