提交 886a7a3a 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [后台服务,演示应用]

上级 a136c909
...@@ -122,9 +122,10 @@ export default class DYNADASHBOARDUIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class DYNADASHBOARDUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof DYNADASHBOARDUIServiceBase * @memberof DYNADASHBOARDUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({dynadashboard:srfkey}); let result:any = await this.dataService.Get({dynadashboard:srfkey});
...@@ -136,18 +137,12 @@ export default class DYNADASHBOARDUIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class DYNADASHBOARDUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZAccountUIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZAccountUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZAccountUIServiceBase * @memberof IBIZAccountUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizaccount:srfkey}); let result:any = await this.dataService.Get({ibizaccount:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZAccountUIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZAccountUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,9 +98,9 @@ export default class IBIZAPPCTRLUIServiceBase extends UIService { ...@@ -98,9 +98,9 @@ export default class IBIZAPPCTRLUIServiceBase extends UIService {
* @memberof IBIZAPPCTRLUIServiceBase * @memberof IBIZAPPCTRLUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappctrls',component:'ibizappctrledit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizappctrls',component:'ibizappctrledit-view'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappctrls',component:'ibizappctrllist-view'}); this.allViewMap.set(':',{viewname:'listview',viewType:'DELISTVIEW',srfappde:'ibizappctrls',component:'ibizappctrllist-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappctrls',component:'ibizappctrlgrid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizappctrls',component:'ibizappctrlgrid-view'});
} }
/** /**
...@@ -214,9 +214,10 @@ export default class IBIZAPPCTRLUIServiceBase extends UIService { ...@@ -214,9 +214,10 @@ export default class IBIZAPPCTRLUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZAPPCTRLUIServiceBase * @memberof IBIZAPPCTRLUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizappctrl:srfkey}); let result:any = await this.dataService.Get({ibizappctrl:srfkey});
...@@ -228,18 +229,12 @@ export default class IBIZAPPCTRLUIServiceBase extends UIService { ...@@ -228,18 +229,12 @@ export default class IBIZAPPCTRLUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,9 +98,9 @@ export default class IBIZAPPEDITORUIServiceBase extends UIService { ...@@ -98,9 +98,9 @@ export default class IBIZAPPEDITORUIServiceBase extends UIService {
* @memberof IBIZAPPEDITORUIServiceBase * @memberof IBIZAPPEDITORUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappeditors',component:'ibizappeditorlist-view'}); this.allViewMap.set(':',{viewname:'listview',viewType:'DELISTVIEW',srfappde:'ibizappeditors',component:'ibizappeditorlist-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappeditors',component:'ibizappeditorgrid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizappeditors',component:'ibizappeditorgrid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappeditors',component:'ibizappeditoredit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizappeditors',component:'ibizappeditoredit-view'});
} }
/** /**
...@@ -214,9 +214,10 @@ export default class IBIZAPPEDITORUIServiceBase extends UIService { ...@@ -214,9 +214,10 @@ export default class IBIZAPPEDITORUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZAPPEDITORUIServiceBase * @memberof IBIZAPPEDITORUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizappeditor:srfkey}); let result:any = await this.dataService.Get({ibizappeditor:srfkey});
...@@ -228,18 +229,12 @@ export default class IBIZAPPEDITORUIServiceBase extends UIService { ...@@ -228,18 +229,12 @@ export default class IBIZAPPEDITORUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,9 +98,9 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService { ...@@ -98,9 +98,9 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService {
* @memberof IBIZAPPEXTENDEDITORUIServiceBase * @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappextendeditors',component:'ibizappextendeditorgrid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizappextendeditors',component:'ibizappextendeditorgrid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappextendeditors',component:'ibizappextendeditoredit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizappextendeditors',component:'ibizappextendeditoredit-view'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappextendeditors',component:'ibizappextendeditorlist-view'}); this.allViewMap.set(':',{viewname:'listview',viewType:'DELISTVIEW',srfappde:'ibizappextendeditors',component:'ibizappextendeditorlist-view'});
} }
/** /**
...@@ -214,9 +214,10 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService { ...@@ -214,9 +214,10 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZAPPEXTENDEDITORUIServiceBase * @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizappextendeditor:srfkey}); let result:any = await this.dataService.Get({ibizappextendeditor:srfkey});
...@@ -228,18 +229,12 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService { ...@@ -228,18 +229,12 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,9 +98,9 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService { ...@@ -98,9 +98,9 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
* @memberof IBIZAPPVIEWUIServiceBase * @memberof IBIZAPPVIEWUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappviews',component:'ibizappviewedit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizappviews',component:'ibizappviewedit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappviews',component:'ibizappviewgrid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizappviews',component:'ibizappviewgrid-view'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappviews',component:'ibizappviewlist-view'}); this.allViewMap.set(':',{viewname:'listview',viewType:'DELISTVIEW',srfappde:'ibizappviews',component:'ibizappviewlist-view'});
} }
/** /**
...@@ -259,9 +259,10 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService { ...@@ -259,9 +259,10 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZAPPVIEWUIServiceBase * @memberof IBIZAPPVIEWUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizappview:srfkey}); let result:any = await this.dataService.Get({ibizappview:srfkey});
...@@ -273,18 +274,12 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService { ...@@ -273,18 +274,12 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -106,89 +106,89 @@ export default class IBIZBOOKUIServiceBase extends UIService { ...@@ -106,89 +106,89 @@ export default class IBIZBOOKUIServiceBase extends UIService {
* @memberof IBIZBOOKUIServiceBase * @memberof IBIZBOOKUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'treeview',srfappde:'ibizbooks',component:'ibizbooktree-view'}); this.allViewMap.set(':',{viewname:'treeview',viewType:'DETREEVIEW',srfappde:'ibizbooks',component:'ibizbooktree-view'});
this.allViewMap.set(':',{viewname:'internalfuncgridview',srfappde:'ibizbooks',component:'ibizbookinternal-func-grid-view'}); this.allViewMap.set(':',{viewname:'internalfuncgridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookinternal-func-grid-view'});
this.allViewMap.set(':',{viewname:'gridexpview',srfappde:'ibizbooks',component:'ibizbookgrid-exp-view'}); this.allViewMap.set(':',{viewname:'gridexpview',viewType:'DEGRIDEXPVIEW',srfappde:'ibizbooks',component:'ibizbookgrid-exp-view'});
this.allViewMap.set(':',{viewname:'gridloadcustomview',srfappde:'ibizbooks',component:'ibizbookgrid-load-custom-view'}); this.allViewMap.set(':',{viewname:'gridloadcustomview',viewType:'DECUSTOMVIEW',srfappde:'ibizbooks',component:'ibizbookgrid-load-custom-view'});
this.allViewMap.set(':',{viewname:'haspanelkanbanview',srfappde:'ibizbooks',component:'ibizbookhas-panel-kan-ban-view'}); this.allViewMap.set(':',{viewname:'haspanelkanbanview',viewType:'DEKANBANVIEW',srfappde:'ibizbooks',component:'ibizbookhas-panel-kan-ban-view'});
this.allViewMap.set(':',{viewname:'testcldataview',srfappde:'ibizbooks',component:'ibizbooktest-cldata-view'}); this.allViewMap.set(':',{viewname:'testcldataview',viewType:'DEDATAVIEW',srfappde:'ibizbooks',component:'ibizbooktest-cldata-view'});
this.allViewMap.set(':',{viewname:'usr6gridview_layout',srfappde:'ibizbooks',component:'ibizbookusr6-grid-view-layout'}); this.allViewMap.set(':',{viewname:'usr6gridview_layout',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr6-grid-view-layout'});
this.allViewMap.set(':',{viewname:'usr7gridview',srfappde:'ibizbooks',component:'ibizbookusr7-grid-view'}); this.allViewMap.set(':',{viewname:'usr7gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr7-grid-view'});
this.allViewMap.set(':',{viewname:'interfunctreeview',srfappde:'ibizbooks',component:'ibizbookinter-func-tree-view'}); this.allViewMap.set(':',{viewname:'interfunctreeview',viewType:'DETREEVIEW',srfappde:'ibizbooks',component:'ibizbookinter-func-tree-view'});
this.allViewMap.set(':',{viewname:'dashboardview',srfappde:'ibizbooks',component:'ibizbookdashboard-view'}); this.allViewMap.set(':',{viewname:'dashboardview',viewType:'DEPORTALVIEW',srfappde:'ibizbooks',component:'ibizbookdashboard-view'});
this.allViewMap.set(':',{viewname:'usr4dataview',srfappde:'ibizbooks',component:'ibizbookusr4-data-view'}); this.allViewMap.set(':',{viewname:'usr4dataview',viewType:'DEDATAVIEW',srfappde:'ibizbooks',component:'ibizbookusr4-data-view'});
this.allViewMap.set(':',{viewname:'editview4',srfappde:'ibizbooks',component:'ibizbookedit-view4'}); this.allViewMap.set(':',{viewname:'editview4',viewType:'DEEDITVIEW4',srfappde:'ibizbooks',component:'ibizbookedit-view4'});
this.allViewMap.set(':',{viewname:'testcltreeview',srfappde:'ibizbooks',component:'ibizbooktest-cltree-view'}); this.allViewMap.set(':',{viewname:'testcltreeview',viewType:'DETREEVIEW',srfappde:'ibizbooks',component:'ibizbooktest-cltree-view'});
this.allViewMap.set(':',{viewname:'usr2calendarview',srfappde:'ibizbooks',component:'ibizbookusr2-calendar-view'}); this.allViewMap.set(':',{viewname:'usr2calendarview',viewType:'DECALENDARVIEW',srfappde:'ibizbooks',component:'ibizbookusr2-calendar-view'});
this.allViewMap.set(':',{viewname:'usr1110030546customview',srfappde:'ibizbooks',component:'ibizbookusr1110030546-custom-view'}); this.allViewMap.set(':',{viewname:'usr1110030546customview',viewType:'DECUSTOMVIEW',srfappde:'ibizbooks',component:'ibizbookusr1110030546-custom-view'});
this.allViewMap.set(':',{viewname:'formloadcustomview',srfappde:'ibizbooks',component:'ibizbookform-load-custom-view'}); this.allViewMap.set(':',{viewname:'formloadcustomview',viewType:'DECUSTOMVIEW',srfappde:'ibizbooks',component:'ibizbookform-load-custom-view'});
this.allViewMap.set(':',{viewname:'usr2listview',srfappde:'ibizbooks',component:'ibizbookusr2-list-view'}); this.allViewMap.set(':',{viewname:'usr2listview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookusr2-list-view'});
this.allViewMap.set(':',{viewname:'usr2editview_layout',srfappde:'ibizbooks',component:'ibizbookusr2-edit-view-layout'}); this.allViewMap.set(':',{viewname:'usr2editview_layout',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookusr2-edit-view-layout'});
this.allViewMap.set(':',{viewname:'valuerulesgridview',srfappde:'ibizbooks',component:'ibizbookvalue-rules-grid-view'}); this.allViewMap.set(':',{viewname:'valuerulesgridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookvalue-rules-grid-view'});
this.allViewMap.set(':',{viewname:'usr2meditview9',srfappde:'ibizbooks',component:'ibizbookusr2-medit-view9'}); this.allViewMap.set(':',{viewname:'usr2meditview9',viewType:'DEMEDITVIEW9',srfappde:'ibizbooks',component:'ibizbookusr2-medit-view9'});
this.allViewMap.set(':',{viewname:'interfunceditview',srfappde:'ibizbooks',component:'ibizbookinter-func-edit-view'}); this.allViewMap.set(':',{viewname:'interfunceditview',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookinter-func-edit-view'});
this.allViewMap.set(':',{viewname:'usr4calendarview',srfappde:'ibizbooks',component:'ibizbookusr4-calendar-view'}); this.allViewMap.set(':',{viewname:'usr4calendarview',viewType:'DECALENDARVIEW',srfappde:'ibizbooks',component:'ibizbookusr4-calendar-view'});
this.allViewMap.set(':',{viewname:'editview2',srfappde:'ibizbooks',component:'ibizbookedit-view2'}); this.allViewMap.set(':',{viewname:'editview2',viewType:'DEEDITVIEW2',srfappde:'ibizbooks',component:'ibizbookedit-view2'});
this.allViewMap.set(':',{viewname:'wizardiwithstateview',srfappde:'ibizbooks',component:'ibizbookwizard-iwith-state-view'}); this.allViewMap.set(':',{viewname:'wizardiwithstateview',viewType:'DEWIZARDVIEW',srfappde:'ibizbooks',component:'ibizbookwizard-iwith-state-view'});
this.allViewMap.set(':',{viewname:'usr4gridview',srfappde:'ibizbooks',component:'ibizbookusr4-grid-view'}); this.allViewMap.set(':',{viewname:'usr4gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr4-grid-view'});
this.allViewMap.set(':',{viewname:'usr6gridview',srfappde:'ibizbooks',component:'ibizbookusr6-grid-view'}); this.allViewMap.set(':',{viewname:'usr6gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr6-grid-view'});
this.allViewMap.set(':',{viewname:'usr5calendarview',srfappde:'ibizbooks',component:'ibizbookusr5-calendar-view'}); this.allViewMap.set(':',{viewname:'usr5calendarview',viewType:'DECALENDARVIEW',srfappde:'ibizbooks',component:'ibizbookusr5-calendar-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizbooks',component:'ibizbookedit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookedit-view'});
this.allViewMap.set(':',{viewname:'interfunckanbanview_layout',srfappde:'ibizbooks',component:'ibizbookinter-func-kan-ban-view-layout'}); this.allViewMap.set(':',{viewname:'interfunckanbanview_layout',viewType:'DEKANBANVIEW',srfappde:'ibizbooks',component:'ibizbookinter-func-kan-ban-view-layout'});
this.allViewMap.set(':',{viewname:'usr3calendarview',srfappde:'ibizbooks',component:'ibizbookusr3-calendar-view'}); this.allViewMap.set(':',{viewname:'usr3calendarview',viewType:'DECALENDARVIEW',srfappde:'ibizbooks',component:'ibizbookusr3-calendar-view'});
this.allViewMap.set(':',{viewname:'optionview',srfappde:'ibizbooks',component:'ibizbookoption-view'}); this.allViewMap.set(':',{viewname:'optionview',viewType:'DEOPTVIEW',srfappde:'ibizbooks',component:'ibizbookoption-view'});
this.allViewMap.set(':',{viewname:'treegridexview',srfappde:'ibizbooks',component:'ibizbooktree-grid-ex-view'}); this.allViewMap.set(':',{viewname:'treegridexview',viewType:'DETREEGRIDEXVIEW',srfappde:'ibizbooks',component:'ibizbooktree-grid-ex-view'});
this.allViewMap.set(':',{viewname:'roweditgridview',srfappde:'ibizbooks',component:'ibizbookrow-edit-grid-view'}); this.allViewMap.set(':',{viewname:'roweditgridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookrow-edit-grid-view'});
this.allViewMap.set(':',{viewname:'optionview_layout',srfappde:'ibizbooks',component:'ibizbookoption-view-layout'}); this.allViewMap.set(':',{viewname:'optionview_layout',viewType:'DEOPTVIEW',srfappde:'ibizbooks',component:'ibizbookoption-view-layout'});
this.allViewMap.set(':',{viewname:'interfunceditview_layout',srfappde:'ibizbooks',component:'ibizbookinter-func-edit-view-layout'}); this.allViewMap.set(':',{viewname:'interfunceditview_layout',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookinter-func-edit-view-layout'});
this.allViewMap.set(':',{viewname:'testclcalendarview',srfappde:'ibizbooks',component:'ibizbooktest-clcalendar-view'}); this.allViewMap.set(':',{viewname:'testclcalendarview',viewType:'DECALENDARVIEW',srfappde:'ibizbooks',component:'ibizbooktest-clcalendar-view'});
this.allViewMap.set(':',{viewname:'testcllistview',srfappde:'ibizbooks',component:'ibizbooktest-cllist-view'}); this.allViewMap.set(':',{viewname:'testcllistview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbooktest-cllist-view'});
this.allViewMap.set(':',{viewname:'usr2meditview9_layout',srfappde:'ibizbooks',component:'ibizbookusr2-medit-view9-layout'}); this.allViewMap.set(':',{viewname:'usr2meditview9_layout',viewType:'DEMEDITVIEW9',srfappde:'ibizbooks',component:'ibizbookusr2-medit-view9-layout'});
this.allViewMap.set(':',{viewname:'usr3editview',srfappde:'ibizbooks',component:'ibizbookusr3-edit-view'}); this.allViewMap.set(':',{viewname:'usr3editview',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookusr3-edit-view'});
this.allViewMap.set(':',{viewname:'groupbycodelistkanbanview',srfappde:'ibizbooks',component:'ibizbookgroup-by-codelist-kan-ban-view'}); this.allViewMap.set(':',{viewname:'groupbycodelistkanbanview',viewType:'DEKANBANVIEW',srfappde:'ibizbooks',component:'ibizbookgroup-by-codelist-kan-ban-view'});
this.allViewMap.set(':',{viewname:'usr6listview',srfappde:'ibizbooks',component:'ibizbookusr6-list-view'}); this.allViewMap.set(':',{viewname:'usr6listview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookusr6-list-view'});
this.allViewMap.set(':',{viewname:'exportandimportgridview',srfappde:'ibizbooks',component:'ibizbookexport-and-import-grid-view'}); this.allViewMap.set(':',{viewname:'exportandimportgridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookexport-and-import-grid-view'});
this.allViewMap.set(':',{viewname:'autogrouplistview',srfappde:'ibizbooks',component:'ibizbookauto-group-list-view'}); this.allViewMap.set(':',{viewname:'autogrouplistview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookauto-group-list-view'});
this.allViewMap.set(':',{viewname:'usr3listview',srfappde:'ibizbooks',component:'ibizbookusr3-list-view'}); this.allViewMap.set(':',{viewname:'usr3listview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookusr3-list-view'});
this.allViewMap.set(':',{viewname:'meditview9',srfappde:'ibizbooks',component:'ibizbookmedit-view9'}); this.allViewMap.set(':',{viewname:'meditview9',viewType:'DEMEDITVIEW9',srfappde:'ibizbooks',component:'ibizbookmedit-view9'});
this.allViewMap.set(':',{viewname:'usr2treeview',srfappde:'ibizbooks',component:'ibizbookusr2-tree-view'}); this.allViewMap.set(':',{viewname:'usr2treeview',viewType:'DETREEVIEW',srfappde:'ibizbooks',component:'ibizbookusr2-tree-view'});
this.allViewMap.set(':',{viewname:'customview',srfappde:'ibizbooks',component:'ibizbookcustom-view'}); this.allViewMap.set(':',{viewname:'customview',viewType:'DECUSTOMVIEW',srfappde:'ibizbooks',component:'ibizbookcustom-view'});
this.allViewMap.set(':',{viewname:'usr4listview',srfappde:'ibizbooks',component:'ibizbookusr4-list-view'}); this.allViewMap.set(':',{viewname:'usr4listview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookusr4-list-view'});
this.allViewMap.set(':',{viewname:'ganttview',srfappde:'ibizbooks',component:'ibizbookgantt-view'}); this.allViewMap.set(':',{viewname:'ganttview',viewType:'DEGANTTVIEW',srfappde:'ibizbooks',component:'ibizbookgantt-view'});
this.allViewMap.set(':',{viewname:'usr2dataview',srfappde:'ibizbooks',component:'ibizbookusr2-data-view'}); this.allViewMap.set(':',{viewname:'usr2dataview',viewType:'DEDATAVIEW',srfappde:'ibizbooks',component:'ibizbookusr2-data-view'});
this.allViewMap.set(':',{viewname:'dataview',srfappde:'ibizbooks',component:'ibizbookdata-view'}); this.allViewMap.set(':',{viewname:'dataview',viewType:'DEDATAVIEW',srfappde:'ibizbooks',component:'ibizbookdata-view'});
this.allViewMap.set(':',{viewname:'usr6dataview',srfappde:'ibizbooks',component:'ibizbookusr6-data-view'}); this.allViewMap.set(':',{viewname:'usr6dataview',viewType:'DEDATAVIEW',srfappde:'ibizbooks',component:'ibizbookusr6-data-view'});
this.allViewMap.set(':',{viewname:'dataviewexpview',srfappde:'ibizbooks',component:'ibizbookdata-view-exp-view'}); this.allViewMap.set(':',{viewname:'dataviewexpview',viewType:'DEDATAVIEWEXPVIEW',srfappde:'ibizbooks',component:'ibizbookdata-view-exp-view'});
this.allViewMap.set(':',{viewname:'newdefaultvaluegridview',srfappde:'ibizbooks',component:'ibizbooknew-default-value-grid-view'}); this.allViewMap.set(':',{viewname:'newdefaultvaluegridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbooknew-default-value-grid-view'});
this.allViewMap.set(':',{viewname:'usr3dataview',srfappde:'ibizbooks',component:'ibizbookusr3-data-view'}); this.allViewMap.set(':',{viewname:'usr3dataview',viewType:'DEDATAVIEW',srfappde:'ibizbooks',component:'ibizbookusr3-data-view'});
this.allViewMap.set(':',{viewname:'wizardview',srfappde:'ibizbooks',component:'ibizbookwizard-view'}); this.allViewMap.set(':',{viewname:'wizardview',viewType:'DEWIZARDVIEW',srfappde:'ibizbooks',component:'ibizbookwizard-view'});
this.allViewMap.set(':',{viewname:'usr5listview',srfappde:'ibizbooks',component:'ibizbookusr5-list-view'}); this.allViewMap.set(':',{viewname:'usr5listview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookusr5-list-view'});
this.allViewMap.set(':',{viewname:'wizardview_layout',srfappde:'ibizbooks',component:'ibizbookwizard-view-layout'}); this.allViewMap.set(':',{viewname:'wizardview_layout',viewType:'DEWIZARDVIEW',srfappde:'ibizbooks',component:'ibizbookwizard-view-layout'});
this.allViewMap.set(':',{viewname:'interfunckanbanview',srfappde:'ibizbooks',component:'ibizbookinter-func-kan-ban-view'}); this.allViewMap.set(':',{viewname:'interfunckanbanview',viewType:'DEKANBANVIEW',srfappde:'ibizbooks',component:'ibizbookinter-func-kan-ban-view'});
this.allViewMap.set(':',{viewname:'usr2customview',srfappde:'ibizbooks',component:'ibizbookusr2-custom-view'}); this.allViewMap.set(':',{viewname:'usr2customview',viewType:'DECUSTOMVIEW',srfappde:'ibizbooks',component:'ibizbookusr2-custom-view'});
this.allViewMap.set(':',{viewname:'panelview',srfappde:'ibizbooks',component:'ibizbookpanel-view'}); this.allViewMap.set(':',{viewname:'panelview',viewType:'DEPANELVIEW',srfappde:'ibizbooks',component:'ibizbookpanel-view'});
this.allViewMap.set(':',{viewname:'haspanellistview',srfappde:'ibizbooks',component:'ibizbookhas-panel-list-view'}); this.allViewMap.set(':',{viewname:'haspanellistview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookhas-panel-list-view'});
this.allViewMap.set(':',{viewname:'usr10gridview',srfappde:'ibizbooks',component:'ibizbookusr10-grid-view'}); this.allViewMap.set(':',{viewname:'usr10gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr10-grid-view'});
this.allViewMap.set(':',{viewname:'calendarview',srfappde:'ibizbooks',component:'ibizbookcalendar-view'}); this.allViewMap.set(':',{viewname:'calendarview',viewType:'DECALENDARVIEW',srfappde:'ibizbooks',component:'ibizbookcalendar-view'});
this.allViewMap.set(':',{viewname:'updatedefaultgridview',srfappde:'ibizbooks',component:'ibizbookupdate-default-grid-view'}); this.allViewMap.set(':',{viewname:'updatedefaultgridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookupdate-default-grid-view'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizbooks',component:'ibizbooklist-view'}); this.allViewMap.set(':',{viewname:'listview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbooklist-view'});
this.allViewMap.set(':',{viewname:'ruleseditview',srfappde:'ibizbooks',component:'ibizbookrules-edit-view'}); this.allViewMap.set(':',{viewname:'ruleseditview',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookrules-edit-view'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizbooks',component:'ibizbookusr2-edit-view'}); this.allViewMap.set(':',{viewname:'usr2editview',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookusr2-edit-view'});
this.allViewMap.set(':',{viewname:'testlogiccustomview',srfappde:'ibizbooks',component:'ibizbooktest-logic-custom-view'}); this.allViewMap.set(':',{viewname:'testlogiccustomview',viewType:'DECUSTOMVIEW',srfappde:'ibizbooks',component:'ibizbooktest-logic-custom-view'});
this.allViewMap.set(':',{viewname:'usr4listview_layout',srfappde:'ibizbooks',component:'ibizbookusr4-list-view-layout'}); this.allViewMap.set(':',{viewname:'usr4listview_layout',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookusr4-list-view-layout'});
this.allViewMap.set(':',{viewname:'usr5dataview',srfappde:'ibizbooks',component:'ibizbookusr5-data-view'}); this.allViewMap.set(':',{viewname:'usr5dataview',viewType:'DEDATAVIEW',srfappde:'ibizbooks',component:'ibizbookusr5-data-view'});
this.allViewMap.set(':',{viewname:'pickuptreeview',srfappde:'ibizbooks',component:'ibizbookpickup-tree-view'}); this.allViewMap.set(':',{viewname:'pickuptreeview',viewType:'DEPICKUPTREEVIEW',srfappde:'ibizbooks',component:'ibizbookpickup-tree-view'});
this.allViewMap.set(':',{viewname:'usr3gridview',srfappde:'ibizbooks',component:'ibizbookusr3-grid-view'}); this.allViewMap.set(':',{viewname:'usr3gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr3-grid-view'});
this.allViewMap.set(':',{viewname:'uiactiongridview',srfappde:'ibizbooks',component:'ibizbookui-action-grid-view'}); this.allViewMap.set(':',{viewname:'uiactiongridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookui-action-grid-view'});
this.allViewMap.set(':',{viewname:'usr4editview',srfappde:'ibizbooks',component:'ibizbookusr4-edit-view'}); this.allViewMap.set(':',{viewname:'usr4editview',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookusr4-edit-view'});
this.allViewMap.set(':',{viewname:'editview3',srfappde:'ibizbooks',component:'ibizbookedit-view3'}); this.allViewMap.set(':',{viewname:'editview3',viewType:'DEEDITVIEW3',srfappde:'ibizbooks',component:'ibizbookedit-view3'});
this.allViewMap.set(':',{viewname:'usr5gridview',srfappde:'ibizbooks',component:'ibizbookusr5-grid-view'}); this.allViewMap.set(':',{viewname:'usr5gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr5-grid-view'});
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizbooks',component:'ibizbookusr2-grid-view'}); this.allViewMap.set(':',{viewname:'usr2gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr2-grid-view'});
this.allViewMap.set(':',{viewname:'groupbycodelistlistview',srfappde:'ibizbooks',component:'ibizbookgroup-by-codelist-list-view'}); this.allViewMap.set(':',{viewname:'groupbycodelistlistview',viewType:'DELISTVIEW',srfappde:'ibizbooks',component:'ibizbookgroup-by-codelist-list-view'});
this.allViewMap.set(':',{viewname:'usr8gridview',srfappde:'ibizbooks',component:'ibizbookusr8-grid-view'}); this.allViewMap.set(':',{viewname:'usr8gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr8-grid-view'});
this.allViewMap.set(':',{viewname:'customview_layout',srfappde:'ibizbooks',component:'ibizbookcustom-view-layout'}); this.allViewMap.set(':',{viewname:'customview_layout',viewType:'DECUSTOMVIEW',srfappde:'ibizbooks',component:'ibizbookcustom-view-layout'});
this.allViewMap.set(':',{viewname:'usr9gridview',srfappde:'ibizbooks',component:'ibizbookusr9-grid-view'}); this.allViewMap.set(':',{viewname:'usr9gridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr9-grid-view'});
this.allViewMap.set(':',{viewname:'dashboardview_layout',srfappde:'ibizbooks',component:'ibizbookdashboard-view-layout'}); this.allViewMap.set(':',{viewname:'dashboardview_layout',viewType:'DEPORTALVIEW',srfappde:'ibizbooks',component:'ibizbookdashboard-view-layout'});
} }
/** /**
...@@ -787,9 +787,10 @@ export default class IBIZBOOKUIServiceBase extends UIService { ...@@ -787,9 +787,10 @@ export default class IBIZBOOKUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZBOOKUIServiceBase * @memberof IBIZBOOKUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizbook:srfkey}); let result:any = await this.dataService.Get({ibizbook:srfkey});
...@@ -801,18 +802,12 @@ export default class IBIZBOOKUIServiceBase extends UIService { ...@@ -801,18 +802,12 @@ export default class IBIZBOOKUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,7 +98,7 @@ export default class IBIZCPUUIServiceBase extends UIService { ...@@ -98,7 +98,7 @@ export default class IBIZCPUUIServiceBase extends UIService {
* @memberof IBIZCPUUIServiceBase * @memberof IBIZCPUUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizcpus',component:'ibizcpuedit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizcpus',component:'ibizcpuedit-view'});
} }
/** /**
...@@ -123,9 +123,10 @@ export default class IBIZCPUUIServiceBase extends UIService { ...@@ -123,9 +123,10 @@ export default class IBIZCPUUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZCPUUIServiceBase * @memberof IBIZCPUUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizcpu:srfkey}); let result:any = await this.dataService.Get({ibizcpu:srfkey});
...@@ -137,18 +138,12 @@ export default class IBIZCPUUIServiceBase extends UIService { ...@@ -137,18 +138,12 @@ export default class IBIZCPUUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -100,8 +100,8 @@ export default class IBIZCustomUIServiceBase extends UIService { ...@@ -100,8 +100,8 @@ export default class IBIZCustomUIServiceBase extends UIService {
* @memberof IBIZCustomUIServiceBase * @memberof IBIZCustomUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'customeditview',srfappde:'ibizcustoms',component:'ibizcustom-custom-edit-view'}); this.allViewMap.set(':',{viewname:'customeditview',viewType:'DECUSTOMVIEW',srfappde:'ibizcustoms',component:'ibizcustom-custom-edit-view'});
this.allViewMap.set(':',{viewname:'customgridview',srfappde:'ibizcustoms',component:'ibizcustom-custom-grid-view'}); this.allViewMap.set(':',{viewname:'customgridview',viewType:'DECUSTOMVIEW',srfappde:'ibizcustoms',component:'ibizcustom-custom-grid-view'});
} }
/** /**
...@@ -126,9 +126,10 @@ export default class IBIZCustomUIServiceBase extends UIService { ...@@ -126,9 +126,10 @@ export default class IBIZCustomUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZCustomUIServiceBase * @memberof IBIZCustomUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizcustom:srfkey}); let result:any = await this.dataService.Get({ibizcustom:srfkey});
...@@ -140,18 +141,12 @@ export default class IBIZCustomUIServiceBase extends UIService { ...@@ -140,18 +141,12 @@ export default class IBIZCustomUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,9 +98,9 @@ export default class IBIZCustomer_INTFUIServiceBase extends UIService { ...@@ -98,9 +98,9 @@ export default class IBIZCustomer_INTFUIServiceBase extends UIService {
* @memberof IBIZCustomer_INTFUIServiceBase * @memberof IBIZCustomer_INTFUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfmpickup-view'}); this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',viewType:'DEMPICKUPVIEW',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfmpickup-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfpickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfpickup-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfpickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfpickup-grid-view'});
} }
/** /**
...@@ -125,9 +125,10 @@ export default class IBIZCustomer_INTFUIServiceBase extends UIService { ...@@ -125,9 +125,10 @@ export default class IBIZCustomer_INTFUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZCustomer_INTFUIServiceBase * @memberof IBIZCustomer_INTFUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizcustomer_intf:srfkey}); let result:any = await this.dataService.Get({ibizcustomer_intf:srfkey});
...@@ -139,18 +140,12 @@ export default class IBIZCustomer_INTFUIServiceBase extends UIService { ...@@ -139,18 +140,12 @@ export default class IBIZCustomer_INTFUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZCustomerMGUIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZCustomerMGUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZCustomerMGUIServiceBase * @memberof IBIZCustomerMGUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizcustomermg:srfkey}); let result:any = await this.dataService.Get({ibizcustomermg:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZCustomerMGUIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZCustomerMGUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -99,23 +99,23 @@ export default class IBIZCustomerUIServiceBase extends UIService { ...@@ -99,23 +99,23 @@ export default class IBIZCustomerUIServiceBase extends UIService {
* @memberof IBIZCustomerUIServiceBase * @memberof IBIZCustomerUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-grid-view'}); this.allViewMap.set(':',{viewname:'usr2gridview',viewType:'DEGRIDVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-grid-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-grid-view'});
this.allViewMap.set(':',{viewname:'pickuptreeview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-tree-view-layout'}); this.allViewMap.set(':',{viewname:'pickuptreeview_layout',viewType:'DEPICKUPTREEVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-tree-view-layout'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-edit-view'}); this.allViewMap.set(':',{viewname:'usr2editview',viewType:'DEEDITVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'usr2pickupview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-pickup-view'}); this.allViewMap.set(':',{viewname:'usr2pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-pickup-view'});
this.allViewMap.set(':',{viewname:'usr2mpickupview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-mpickup-view'}); this.allViewMap.set(':',{viewname:'usr2mpickupview',viewType:'DEMPICKUPVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-mpickup-view'});
this.allViewMap.set(':',{viewname:'mpickupview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-mpickup-view-layout'}); this.allViewMap.set(':',{viewname:'mpickupview_layout',viewType:'DEMPICKUPVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-mpickup-view-layout'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizcustomers',component:'ibizcustomer-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-edit-view'});
this.allViewMap.set(':',{viewname:'pickuptreeview',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-tree-view'}); this.allViewMap.set(':',{viewname:'pickuptreeview',viewType:'DEPICKUPTREEVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-tree-view'});
this.allViewMap.set(':',{viewname:'mediatesteditview',srfappde:'ibizcustomers',component:'ibizcustomer-media-test-edit-view'}); this.allViewMap.set(':',{viewname:'mediatesteditview',viewType:'DEEDITVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-media-test-edit-view'});
this.allViewMap.set(':',{viewname:'usr2mpickupview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-mpickup-view-layout'}); this.allViewMap.set(':',{viewname:'usr2mpickupview_layout',viewType:'DEMPICKUPVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-mpickup-view-layout'});
this.allViewMap.set(':',{viewname:'usr3editview',srfappde:'ibizcustomers',component:'ibizcustomer-usr3-edit-view'}); this.allViewMap.set(':',{viewname:'usr3editview',viewType:'DEEDITVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-usr3-edit-view'});
this.allViewMap.set(':',{viewname:'pickupview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-view-layout'}); this.allViewMap.set(':',{viewname:'pickupview_layout',viewType:'DEPICKUPVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-view-layout'});
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',srfappde:'ibizcustomers',component:'ibizcustomer-mpickup-view'}); this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',viewType:'DEMPICKUPVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-mpickup-view'});
this.allViewMap.set(':',{viewname:'usr2pickupview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-pickup-view-layout'}); this.allViewMap.set(':',{viewname:'usr2pickupview_layout',viewType:'DEPICKUPVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-pickup-view-layout'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizcustomers',component:'ibizcustomer-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizcustomers',component:'ibizcustomer-grid-view'});
} }
/** /**
...@@ -314,9 +314,10 @@ export default class IBIZCustomerUIServiceBase extends UIService { ...@@ -314,9 +314,10 @@ export default class IBIZCustomerUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZCustomerUIServiceBase * @memberof IBIZCustomerUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizcustomer:srfkey}); let result:any = await this.dataService.Get({ibizcustomer:srfkey});
...@@ -328,18 +329,12 @@ export default class IBIZCustomerUIServiceBase extends UIService { ...@@ -328,18 +329,12 @@ export default class IBIZCustomerUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,11 +98,11 @@ export default class IBIZHardwareUIServiceBase extends UIService { ...@@ -98,11 +98,11 @@ export default class IBIZHardwareUIServiceBase extends UIService {
* @memberof IBIZHardwareUIServiceBase * @memberof IBIZHardwareUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'indexpickupdataview',srfappde:'ibizhardwares',component:'ibizhardware-index-pickup-data-view'}); this.allViewMap.set(':',{viewname:'indexpickupdataview',viewType:'DEINDEXPICKUPDATAVIEW',srfappde:'ibizhardwares',component:'ibizhardware-index-pickup-data-view'});
this.allViewMap.set(':',{viewname:'gridview9',srfappde:'ibizhardwares',component:'ibizhardware-grid-view9'}); this.allViewMap.set(':',{viewname:'gridview9',viewType:'DEGRIDVIEW9',srfappde:'ibizhardwares',component:'ibizhardware-grid-view9'});
this.allViewMap.set('INDEXDEPICKUPVIEW:',{viewname:'indexpickupview',srfappde:'ibizhardwares',component:'ibizhardware-index-pickup-view'}); this.allViewMap.set('INDEXDEPICKUPVIEW:',{viewname:'indexpickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizhardwares',component:'ibizhardware-index-pickup-view'});
this.allViewMap.set(':',{viewname:'sgridview',srfappde:'ibizhardwares',component:'ibizhardware-sgrid-view'}); this.allViewMap.set(':',{viewname:'sgridview',viewType:'DEGRIDVIEW',srfappde:'ibizhardwares',component:'ibizhardware-sgrid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizhardwares',component:'ibizhardware-edit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizhardwares',component:'ibizhardware-edit-view'});
} }
/** /**
...@@ -127,9 +127,10 @@ export default class IBIZHardwareUIServiceBase extends UIService { ...@@ -127,9 +127,10 @@ export default class IBIZHardwareUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZHardwareUIServiceBase * @memberof IBIZHardwareUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizhardware:srfkey}); let result:any = await this.dataService.Get({ibizhardware:srfkey});
...@@ -141,18 +142,12 @@ export default class IBIZHardwareUIServiceBase extends UIService { ...@@ -141,18 +142,12 @@ export default class IBIZHardwareUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,25 +98,25 @@ export default class IBIZOrderDetailUIServiceBase extends UIService { ...@@ -98,25 +98,25 @@ export default class IBIZOrderDetailUIServiceBase extends UIService {
* @memberof IBIZOrderDetailUIServiceBase * @memberof IBIZOrderDetailUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'sf1editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-sf1-edit-view'}); this.allViewMap.set(':',{viewname:'sf1editview',viewType:'DEEDITVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-sf1-edit-view'});
this.allViewMap.set(':',{viewname:'smeditview9',srfappde:'ibizorderdetails',component:'ibizorder-detail-smedit-view9'}); this.allViewMap.set(':',{viewname:'smeditview9',viewType:'DEMEDITVIEW9',srfappde:'ibizorderdetails',component:'ibizorder-detail-smedit-view9'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizorderdetails',component:'ibizorder-detail-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-grid-view'});
this.allViewMap.set(':',{viewname:'usr2gridview9',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr2-grid-view9'}); this.allViewMap.set(':',{viewname:'usr2gridview9',viewType:'DEGRIDVIEW9',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr2-grid-view9'});
this.allViewMap.set(':',{viewname:'f7editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-f7-edit-view'}); this.allViewMap.set(':',{viewname:'f7editview',viewType:'DEEDITVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-f7-edit-view'});
this.allViewMap.set(':',{viewname:'f6editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-f6-edit-view'}); this.allViewMap.set(':',{viewname:'f6editview',viewType:'DEEDITVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-f6-edit-view'});
this.allViewMap.set(':',{viewname:'tempmodegridview',srfappde:'ibizorderdetails',component:'ibizorder-detail-temp-mode-grid-view'}); this.allViewMap.set(':',{viewname:'tempmodegridview',viewType:'DEGRIDVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-temp-mode-grid-view'});
this.allViewMap.set(':',{viewname:'seditview9',srfappde:'ibizorderdetails',component:'ibizorder-detail-sedit-view9'}); this.allViewMap.set(':',{viewname:'seditview9',viewType:'DEEDITVIEW9',srfappde:'ibizorderdetails',component:'ibizorder-detail-sedit-view9'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr2-edit-view'}); this.allViewMap.set(':',{viewname:'usr2editview',viewType:'DEEDITVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-edit-view'});
this.allViewMap.set(':',{viewname:'chartview',srfappde:'ibizorderdetails',component:'ibizorder-detail-chart-view'}); this.allViewMap.set(':',{viewname:'chartview',viewType:'DECHARTVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-chart-view'});
this.allViewMap.set(':',{viewname:'sf2editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-sf2-edit-view'}); this.allViewMap.set(':',{viewname:'sf2editview',viewType:'DEEDITVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-sf2-edit-view'});
this.allViewMap.set(':',{viewname:'f6gridview',srfappde:'ibizorderdetails',component:'ibizorder-detail-f6-grid-view'}); this.allViewMap.set(':',{viewname:'f6gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-f6-grid-view'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizorderdetails',component:'ibizorder-detail-list-view'}); this.allViewMap.set(':',{viewname:'listview',viewType:'DELISTVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-list-view'});
this.allViewMap.set(':',{viewname:'gridview9',srfappde:'ibizorderdetails',component:'ibizorder-detail-grid-view9'}); this.allViewMap.set(':',{viewname:'gridview9',viewType:'DEGRIDVIEW9',srfappde:'ibizorderdetails',component:'ibizorder-detail-grid-view9'});
this.allViewMap.set(':',{viewname:'sgridview9',srfappde:'ibizorderdetails',component:'ibizorder-detail-sgrid-view9'}); this.allViewMap.set(':',{viewname:'sgridview9',viewType:'DEGRIDVIEW9',srfappde:'ibizorderdetails',component:'ibizorder-detail-sgrid-view9'});
this.allViewMap.set(':',{viewname:'sgridview',srfappde:'ibizorderdetails',component:'ibizorder-detail-sgrid-view'}); this.allViewMap.set(':',{viewname:'sgridview',viewType:'DEGRIDVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-sgrid-view'});
this.allViewMap.set(':',{viewname:'usr3editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr3-edit-view'}); this.allViewMap.set(':',{viewname:'usr3editview',viewType:'DEEDITVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr3-edit-view'});
this.allViewMap.set(':',{viewname:'f7gridview',srfappde:'ibizorderdetails',component:'ibizorder-detail-f7-grid-view'}); this.allViewMap.set(':',{viewname:'f7gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorderdetails',component:'ibizorder-detail-f7-grid-view'});
} }
/** /**
...@@ -141,9 +141,10 @@ export default class IBIZOrderDetailUIServiceBase extends UIService { ...@@ -141,9 +141,10 @@ export default class IBIZOrderDetailUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZOrderDetailUIServiceBase * @memberof IBIZOrderDetailUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizorderdetail:srfkey}); let result:any = await this.dataService.Get({ibizorderdetail:srfkey});
...@@ -155,18 +156,12 @@ export default class IBIZOrderDetailUIServiceBase extends UIService { ...@@ -155,18 +156,12 @@ export default class IBIZOrderDetailUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,11 +98,11 @@ export default class IBIZOrderTypeUIServiceBase extends UIService { ...@@ -98,11 +98,11 @@ export default class IBIZOrderTypeUIServiceBase extends UIService {
* @memberof IBIZOrderTypeUIServiceBase * @memberof IBIZOrderTypeUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizordertypes',component:'ibizorder-type-pickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizordertypes',component:'ibizorder-type-pickup-view'});
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizordertypes',component:'ibizorder-type-usr2-grid-view'}); this.allViewMap.set(':',{viewname:'usr2gridview',viewType:'DEGRIDVIEW',srfappde:'ibizordertypes',component:'ibizorder-type-usr2-grid-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizordertypes',component:'ibizorder-type-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizordertypes',component:'ibizorder-type-edit-view'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizordertypes',component:'ibizorder-type-usr2-edit-view'}); this.allViewMap.set(':',{viewname:'usr2editview',viewType:'DEEDITVIEW',srfappde:'ibizordertypes',component:'ibizorder-type-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizordertypes',component:'ibizorder-type-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizordertypes',component:'ibizorder-type-pickup-grid-view'});
} }
/** /**
...@@ -127,9 +127,10 @@ export default class IBIZOrderTypeUIServiceBase extends UIService { ...@@ -127,9 +127,10 @@ export default class IBIZOrderTypeUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZOrderTypeUIServiceBase * @memberof IBIZOrderTypeUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizordertype:srfkey}); let result:any = await this.dataService.Get({ibizordertype:srfkey});
...@@ -141,18 +142,12 @@ export default class IBIZOrderTypeUIServiceBase extends UIService { ...@@ -141,18 +142,12 @@ export default class IBIZOrderTypeUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -100,82 +100,82 @@ export default class IBIZOrderUIServiceBase extends UIService { ...@@ -100,82 +100,82 @@ export default class IBIZOrderUIServiceBase extends UIService {
* @memberof IBIZOrderUIServiceBase * @memberof IBIZOrderUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'pickuptreeview',srfappde:'ibizorders',component:'ibizorder-pickup-tree-view'}); this.allViewMap.set(':',{viewname:'pickuptreeview',viewType:'DEPICKUPTREEVIEW',srfappde:'ibizorders',component:'ibizorder-pickup-tree-view'});
this.allViewMap.set(':',{viewname:'f10editview',srfappde:'ibizorders',component:'ibizorder-f10-edit-view'}); this.allViewMap.set(':',{viewname:'f10editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-f10-edit-view'});
this.allViewMap.set(':',{viewname:'usr5editview',srfappde:'ibizorders',component:'ibizorder-usr5-edit-view'}); this.allViewMap.set(':',{viewname:'usr5editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-usr5-edit-view'});
this.allViewMap.set(':',{viewname:'seditview2_layout',srfappde:'ibizorders',component:'ibizorder-sedit-view2-layout'}); this.allViewMap.set(':',{viewname:'seditview2_layout',viewType:'DEEDITVIEW2',srfappde:'ibizorders',component:'ibizorder-sedit-view2-layout'});
this.allViewMap.set(':',{viewname:'sgridview',srfappde:'ibizorders',component:'ibizorder-sgrid-view'}); this.allViewMap.set(':',{viewname:'sgridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-sgrid-view'});
this.allViewMap.set(':',{viewname:'sf2editview',srfappde:'ibizorders',component:'ibizorder-sf2-edit-view'}); this.allViewMap.set(':',{viewname:'sf2editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-sf2-edit-view'});
this.allViewMap.set(':',{viewname:'f9editview',srfappde:'ibizorders',component:'ibizorder-f9-edit-view'}); this.allViewMap.set(':',{viewname:'f9editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-f9-edit-view'});
this.allViewMap.set(':',{viewname:'selecteditview',srfappde:'ibizorders',component:'ibizorder-select-edit-view'}); this.allViewMap.set(':',{viewname:'selecteditview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-select-edit-view'});
this.allViewMap.set(':',{viewname:'dataviewexpview',srfappde:'ibizorders',component:'ibizorder-data-view-exp-view'}); this.allViewMap.set(':',{viewname:'dataviewexpview',viewType:'DEDATAVIEWEXPVIEW',srfappde:'ibizorders',component:'ibizorder-data-view-exp-view'});
this.allViewMap.set(':',{viewname:'sf15gridview',srfappde:'ibizorders',component:'ibizorder-sf15-grid-view'}); this.allViewMap.set(':',{viewname:'sf15gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-sf15-grid-view'});
this.allViewMap.set(':',{viewname:'testcustomlayoutpanelgridexpview',srfappde:'ibizorders',component:'ibizorder-test-custom-layout-panel-grid-exp-view'}); this.allViewMap.set(':',{viewname:'testcustomlayoutpanelgridexpview',viewType:'DEGRIDEXPVIEW',srfappde:'ibizorders',component:'ibizorder-test-custom-layout-panel-grid-exp-view'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizorders',component:'ibizorder-list-view'}); this.allViewMap.set(':',{viewname:'listview',viewType:'DELISTVIEW',srfappde:'ibizorders',component:'ibizorder-list-view'});
this.allViewMap.set(':',{viewname:'dataviewexpview_layout',srfappde:'ibizorders',component:'ibizorder-data-view-exp-view-layout'}); this.allViewMap.set(':',{viewname:'dataviewexpview_layout',viewType:'DEDATAVIEWEXPVIEW',srfappde:'ibizorders',component:'ibizorder-data-view-exp-view-layout'});
this.allViewMap.set(':',{viewname:'wfactionview',srfappde:'ibizorders',component:'ibizorder-wfaction-view'}); this.allViewMap.set(':',{viewname:'wfactionview',viewType:'DEWFACTIONVIEW',srfappde:'ibizorders',component:'ibizorder-wfaction-view'});
this.allViewMap.set(':',{viewname:'sf4gridview',srfappde:'ibizorders',component:'ibizorder-sf4-grid-view'}); this.allViewMap.set(':',{viewname:'sf4gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-sf4-grid-view'});
this.allViewMap.set(':',{viewname:'sgridview2',srfappde:'ibizorders',component:'ibizorder-sgrid-view2'}); this.allViewMap.set(':',{viewname:'sgridview2',viewType:'DEGRIDVIEW2',srfappde:'ibizorders',component:'ibizorder-sgrid-view2'});
this.allViewMap.set(':',{viewname:'sf5gridview',srfappde:'ibizorders',component:'ibizorder-sf5-grid-view'}); this.allViewMap.set(':',{viewname:'sf5gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-sf5-grid-view'});
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizorders',component:'ibizorder-usr2-grid-view'}); this.allViewMap.set(':',{viewname:'usr2gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-usr2-grid-view'});
this.allViewMap.set(':',{viewname:'seditview2',srfappde:'ibizorders',component:'ibizorder-sedit-view2'}); this.allViewMap.set(':',{viewname:'seditview2',viewType:'DEEDITVIEW2',srfappde:'ibizorders',component:'ibizorder-sedit-view2'});
this.allViewMap.set(':',{viewname:'seditview4',srfappde:'ibizorders',component:'ibizorder-sedit-view4'}); this.allViewMap.set(':',{viewname:'seditview4',viewType:'DEEDITVIEW4',srfappde:'ibizorders',component:'ibizorder-sedit-view4'});
this.allViewMap.set(':',{viewname:'testcltreeexpview',srfappde:'ibizorders',component:'ibizorder-test-cltree-exp-view'}); this.allViewMap.set(':',{viewname:'testcltreeexpview',viewType:'DETREEEXPVIEW',srfappde:'ibizorders',component:'ibizorder-test-cltree-exp-view'});
this.allViewMap.set(':',{viewname:'sf3gridview',srfappde:'ibizorders',component:'ibizorder-sf3-grid-view'}); this.allViewMap.set(':',{viewname:'sf3gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-sf3-grid-view'});
this.allViewMap.set('EDITVIEW:MSTAG:30',{viewname:'state30editview2',srfappde:'ibizorders',component:'ibizorder-state30-edit-view2'}); this.allViewMap.set('EDITVIEW:MSTAG:30',{viewname:'state30editview2',viewType:'DEEDITVIEW2',srfappde:'ibizorders',component:'ibizorder-state30-edit-view2'});
this.allViewMap.set(':',{viewname:'f8editview',srfappde:'ibizorders',component:'ibizorder-f8-edit-view'}); this.allViewMap.set(':',{viewname:'f8editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-f8-edit-view'});
this.allViewMap.set(':',{viewname:'seditview3_layout',srfappde:'ibizorders',component:'ibizorder-sedit-view3-layout'}); this.allViewMap.set(':',{viewname:'seditview3_layout',viewType:'DEEDITVIEW3',srfappde:'ibizorders',component:'ibizorder-sedit-view3-layout'});
this.allViewMap.set(':',{viewname:'sf20gridview',srfappde:'ibizorders',component:'ibizorder-sf20-grid-view'}); this.allViewMap.set(':',{viewname:'sf20gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-sf20-grid-view'});
this.allViewMap.set(':',{viewname:'usr2chartview',srfappde:'ibizorders',component:'ibizorder-usr2-chart-view'}); this.allViewMap.set(':',{viewname:'usr2chartview',viewType:'DECHARTVIEW',srfappde:'ibizorders',component:'ibizorder-usr2-chart-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizorders',component:'ibizorder-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-grid-view'});
this.allViewMap.set(':',{viewname:'wfdynaactionview',srfappde:'ibizorders',component:'ibizorder-wfdyna-action-view'}); this.allViewMap.set(':',{viewname:'wfdynaactionview',viewType:'DEWFDYNAACTIONVIEW',srfappde:'ibizorders',component:'ibizorder-wfdyna-action-view'});
this.allViewMap.set(':',{viewname:'zdytpgridview',srfappde:'ibizorders',component:'ibizorder-zdytpgrid-view'}); this.allViewMap.set(':',{viewname:'zdytpgridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-zdytpgrid-view'});
this.allViewMap.set(':',{viewname:'wfstartview',srfappde:'ibizorders',component:'ibizorder-wfstart-view'}); this.allViewMap.set(':',{viewname:'wfstartview',viewType:'DEWFSTARTVIEW',srfappde:'ibizorders',component:'ibizorder-wfstart-view'});
this.allViewMap.set(':',{viewname:'piechartview',srfappde:'ibizorders',component:'ibizorder-pie-chart-view'}); this.allViewMap.set(':',{viewname:'piechartview',viewType:'DECHARTVIEW',srfappde:'ibizorders',component:'ibizorder-pie-chart-view'});
this.allViewMap.set(':',{viewname:'calendarexpview',srfappde:'ibizorders',component:'ibizorder-calendar-exp-view'}); this.allViewMap.set(':',{viewname:'calendarexpview',viewType:'DECALENDAREXPVIEW',srfappde:'ibizorders',component:'ibizorder-calendar-exp-view'});
this.allViewMap.set(':',{viewname:'treegridexview_layout',srfappde:'ibizorders',component:'ibizorder-tree-grid-ex-view-layout'}); this.allViewMap.set(':',{viewname:'treegridexview_layout',viewType:'DETREEGRIDEXVIEW',srfappde:'ibizorders',component:'ibizorder-tree-grid-ex-view-layout'});
this.allViewMap.set(':',{viewname:'sf4editview',srfappde:'ibizorders',component:'ibizorder-sf4-edit-view'}); this.allViewMap.set(':',{viewname:'sf4editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-sf4-edit-view'});
this.allViewMap.set(':',{viewname:'barchartview',srfappde:'ibizorders',component:'ibizorder-bar-chart-view'}); this.allViewMap.set(':',{viewname:'barchartview',viewType:'DECHARTVIEW',srfappde:'ibizorders',component:'ibizorder-bar-chart-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizorders',component:'ibizorder-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-edit-view'});
this.allViewMap.set(':',{viewname:'usr3editview',srfappde:'ibizorders',component:'ibizorder-usr3-edit-view'}); this.allViewMap.set(':',{viewname:'usr3editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-usr3-edit-view'});
this.allViewMap.set(':',{viewname:'ganttview_layout',srfappde:'ibizorders',component:'ibizorder-gantt-view-layout'}); this.allViewMap.set(':',{viewname:'ganttview_layout',viewType:'DEGANTTVIEW',srfappde:'ibizorders',component:'ibizorder-gantt-view-layout'});
this.allViewMap.set(':',{viewname:'linechartview',srfappde:'ibizorders',component:'ibizorder-line-chart-view'}); this.allViewMap.set(':',{viewname:'linechartview',viewType:'DECHARTVIEW',srfappde:'ibizorders',component:'ibizorder-line-chart-view'});
this.allViewMap.set(':',{viewname:'seditview4_layout',srfappde:'ibizorders',component:'ibizorder-sedit-view4-layout'}); this.allViewMap.set(':',{viewname:'seditview4_layout',viewType:'DEEDITVIEW4',srfappde:'ibizorders',component:'ibizorder-sedit-view4-layout'});
this.allViewMap.set(':',{viewname:'calendarexpview_layout',srfappde:'ibizorders',component:'ibizorder-calendar-exp-view-layout'}); this.allViewMap.set(':',{viewname:'calendarexpview_layout',viewType:'DECALENDAREXPVIEW',srfappde:'ibizorders',component:'ibizorder-calendar-exp-view-layout'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizorders',component:'ibizorder-usr2-edit-view'}); this.allViewMap.set(':',{viewname:'usr2editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'gridview9',srfappde:'ibizorders',component:'ibizorder-grid-view9'}); this.allViewMap.set(':',{viewname:'gridview9',viewType:'DEGRIDVIEW9',srfappde:'ibizorders',component:'ibizorder-grid-view9'});
this.allViewMap.set(':',{viewname:'sf6gridview',srfappde:'ibizorders',component:'ibizorder-sf6-grid-view'}); this.allViewMap.set(':',{viewname:'sf6gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-sf6-grid-view'});
this.allViewMap.set(':',{viewname:'radarchartview',srfappde:'ibizorders',component:'ibizorder-radar-chart-view'}); this.allViewMap.set(':',{viewname:'radarchartview',viewType:'DECHARTVIEW',srfappde:'ibizorders',component:'ibizorder-radar-chart-view'});
this.allViewMap.set(':',{viewname:'listexpview_layout',srfappde:'ibizorders',component:'ibizorder-list-exp-view-layout'}); this.allViewMap.set(':',{viewname:'listexpview_layout',viewType:'DELISTEXPVIEW',srfappde:'ibizorders',component:'ibizorder-list-exp-view-layout'});
this.allViewMap.set(':',{viewname:'odsp_wfexpview',srfappde:'ibizorders',component:'ibizorder-odsp-wfexp-view'}); this.allViewMap.set(':',{viewname:'odsp_wfexpview',viewType:'DEWFEXPVIEW',srfappde:'ibizorders',component:'ibizorder-odsp-wfexp-view'});
this.allViewMap.set(':',{viewname:'sf7editview',srfappde:'ibizorders',component:'ibizorder-sf7-edit-view'}); this.allViewMap.set(':',{viewname:'sf7editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-sf7-edit-view'});
this.allViewMap.set(':',{viewname:'s2editview',srfappde:'ibizorders',component:'ibizorder-s2-edit-view'}); this.allViewMap.set(':',{viewname:'s2editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-s2-edit-view'});
this.allViewMap.set(':',{viewname:'areachartview',srfappde:'ibizorders',component:'ibizorder-area-chart-view'}); this.allViewMap.set(':',{viewname:'areachartview',viewType:'DECHARTVIEW',srfappde:'ibizorders',component:'ibizorder-area-chart-view'});
this.allViewMap.set(':',{viewname:'testclchartview',srfappde:'ibizorders',component:'ibizorder-test-clchart-view'}); this.allViewMap.set(':',{viewname:'testclchartview',viewType:'DECHARTVIEW',srfappde:'ibizorders',component:'ibizorder-test-clchart-view'});
this.allViewMap.set(':',{viewname:'f19editview',srfappde:'ibizorders',component:'ibizorder-f19-edit-view'}); this.allViewMap.set(':',{viewname:'f19editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-f19-edit-view'});
this.allViewMap.set(':',{viewname:'f17editview',srfappde:'ibizorders',component:'ibizorder-f17-edit-view'}); this.allViewMap.set(':',{viewname:'f17editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-f17-edit-view'});
this.allViewMap.set(':',{viewname:'seditview3',srfappde:'ibizorders',component:'ibizorder-sedit-view3'}); this.allViewMap.set(':',{viewname:'seditview3',viewType:'DEEDITVIEW3',srfappde:'ibizorders',component:'ibizorder-sedit-view3'});
this.allViewMap.set(':',{viewname:'listexpview',srfappde:'ibizorders',component:'ibizorder-list-exp-view'}); this.allViewMap.set(':',{viewname:'listexpview',viewType:'DELISTEXPVIEW',srfappde:'ibizorders',component:'ibizorder-list-exp-view'});
this.allViewMap.set(':',{viewname:'ganttview',srfappde:'ibizorders',component:'ibizorder-gantt-view'}); this.allViewMap.set(':',{viewname:'ganttview',viewType:'DEGANTTVIEW',srfappde:'ibizorders',component:'ibizorder-gantt-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizorders',component:'ibizorder-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-pickup-grid-view'});
this.allViewMap.set(':',{viewname:'seditview',srfappde:'ibizorders',component:'ibizorder-sedit-view'}); this.allViewMap.set(':',{viewname:'seditview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-sedit-view'});
this.allViewMap.set(':',{viewname:'testcleditview2',srfappde:'ibizorders',component:'ibizorder-test-cledit-view2'}); this.allViewMap.set(':',{viewname:'testcleditview2',viewType:'DEEDITVIEW2',srfappde:'ibizorders',component:'ibizorder-test-cledit-view2'});
this.allViewMap.set(':',{viewname:'treegridexview',srfappde:'ibizorders',component:'ibizorder-tree-grid-ex-view'}); this.allViewMap.set(':',{viewname:'treegridexview',viewType:'DETREEGRIDEXVIEW',srfappde:'ibizorders',component:'ibizorder-tree-grid-ex-view'});
this.allViewMap.set('EDITVIEW:MSTAG:10',{viewname:'state10editview2',srfappde:'ibizorders',component:'ibizorder-state10-edit-view2'}); this.allViewMap.set('EDITVIEW:MSTAG:10',{viewname:'state10editview2',viewType:'DEEDITVIEW2',srfappde:'ibizorders',component:'ibizorder-state10-edit-view2'});
this.allViewMap.set(':',{viewname:'usr4editview',srfappde:'ibizorders',component:'ibizorder-usr4-edit-view'}); this.allViewMap.set(':',{viewname:'usr4editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-usr4-edit-view'});
this.allViewMap.set(':',{viewname:'treeexpview',srfappde:'ibizorders',component:'ibizorder-tree-exp-view'}); this.allViewMap.set(':',{viewname:'treeexpview',viewType:'DETREEEXPVIEW',srfappde:'ibizorders',component:'ibizorder-tree-exp-view'});
this.allViewMap.set(':',{viewname:'sf1editview',srfappde:'ibizorders',component:'ibizorder-sf1-edit-view'}); this.allViewMap.set(':',{viewname:'sf1editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-sf1-edit-view'});
this.allViewMap.set('EDITVIEW:MSTAG:40',{viewname:'state40editview2',srfappde:'ibizorders',component:'ibizorder-state40-edit-view2'}); this.allViewMap.set('EDITVIEW:MSTAG:40',{viewname:'state40editview2',viewType:'DEEDITVIEW2',srfappde:'ibizorders',component:'ibizorder-state40-edit-view2'});
this.allViewMap.set(':',{viewname:'sf1gridview',srfappde:'ibizorders',component:'ibizorder-sf1-grid-view'}); this.allViewMap.set(':',{viewname:'sf1gridview',viewType:'DEGRIDVIEW',srfappde:'ibizorders',component:'ibizorder-sf1-grid-view'});
this.allViewMap.set(':',{viewname:'treeexpview_layout',srfappde:'ibizorders',component:'ibizorder-tree-exp-view-layout'}); this.allViewMap.set(':',{viewname:'treeexpview_layout',viewType:'DETREEEXPVIEW',srfappde:'ibizorders',component:'ibizorder-tree-exp-view-layout'});
this.allViewMap.set(':',{viewname:'testlogiccustomview',srfappde:'ibizorders',component:'ibizorder-test-logic-custom-view'}); this.allViewMap.set(':',{viewname:'testlogiccustomview',viewType:'DECUSTOMVIEW',srfappde:'ibizorders',component:'ibizorder-test-logic-custom-view'});
this.allViewMap.set(':',{viewname:'gridexpview',srfappde:'ibizorders',component:'ibizorder-grid-exp-view'}); this.allViewMap.set(':',{viewname:'gridexpview',viewType:'DEGRIDEXPVIEW',srfappde:'ibizorders',component:'ibizorder-grid-exp-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizorders',component:'ibizorder-pickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizorders',component:'ibizorder-pickup-view'});
this.allViewMap.set(':',{viewname:'tabexpview',srfappde:'ibizorders',component:'ibizorder-tab-exp-view'}); this.allViewMap.set(':',{viewname:'tabexpview',viewType:'DETABEXPVIEW',srfappde:'ibizorders',component:'ibizorder-tab-exp-view'});
this.allViewMap.set(':',{viewname:'usr2calendarexpview',srfappde:'ibizorders',component:'ibizorder-usr2-calendar-exp-view'}); this.allViewMap.set(':',{viewname:'usr2calendarexpview',viewType:'DECALENDAREXPVIEW',srfappde:'ibizorders',component:'ibizorder-usr2-calendar-exp-view'});
this.allViewMap.set(':',{viewname:'dashboardview',srfappde:'ibizorders',component:'ibizorder-dashboard-view'}); this.allViewMap.set(':',{viewname:'dashboardview',viewType:'DEPORTALVIEW',srfappde:'ibizorders',component:'ibizorder-dashboard-view'});
this.allViewMap.set(':',{viewname:'f13editview',srfappde:'ibizorders',component:'ibizorder-f13-edit-view'}); this.allViewMap.set(':',{viewname:'f13editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-f13-edit-view'});
this.allViewMap.set(':',{viewname:'sf3editview',srfappde:'ibizorders',component:'ibizorder-sf3-edit-view'}); this.allViewMap.set(':',{viewname:'sf3editview',viewType:'DEEDITVIEW',srfappde:'ibizorders',component:'ibizorder-sf3-edit-view'});
} }
/** /**
...@@ -730,9 +730,10 @@ export default class IBIZOrderUIServiceBase extends UIService { ...@@ -730,9 +730,10 @@ export default class IBIZOrderUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZOrderUIServiceBase * @memberof IBIZOrderUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizorder:srfkey}); let result:any = await this.dataService.Get({ibizorder:srfkey});
...@@ -744,18 +745,12 @@ export default class IBIZOrderUIServiceBase extends UIService { ...@@ -744,18 +745,12 @@ export default class IBIZOrderUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSampleUIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSampleUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSampleUIServiceBase * @memberof IBIZSampleUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample:srfkey}); let result:any = await this.dataService.Get({ibizsample:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSampleUIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSampleUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,17 +98,17 @@ export default class IBIZSample0001UIServiceBase extends UIService { ...@@ -98,17 +98,17 @@ export default class IBIZSample0001UIServiceBase extends UIService {
* @memberof IBIZSample0001UIServiceBase * @memberof IBIZSample0001UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizsample0001s',component:'ibizsample0001-usr2-edit-view'}); this.allViewMap.set(':',{viewname:'usr2editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizsample0001s',component:'ibizsample0001-usr2-grid-view'}); this.allViewMap.set(':',{viewname:'usr2gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-usr2-grid-view'});
this.allViewMap.set(':',{viewname:'usr3editview',srfappde:'ibizsample0001s',component:'ibizsample0001-usr3-edit-view'}); this.allViewMap.set(':',{viewname:'usr3editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-usr3-edit-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizsample0001s',component:'ibizsample0001-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-pickup-grid-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizsample0001s',component:'ibizsample0001-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-grid-view'});
this.allViewMap.set(':',{viewname:'sf2editview',srfappde:'ibizsample0001s',component:'ibizsample0001-sf2-edit-view'}); this.allViewMap.set(':',{viewname:'sf2editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-sf2-edit-view'});
this.allViewMap.set(':',{viewname:'sf6editview',srfappde:'ibizsample0001s',component:'ibizsample0001-sf6-edit-view'}); this.allViewMap.set(':',{viewname:'sf6editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-sf6-edit-view'});
this.allViewMap.set(':',{viewname:'sf4editview',srfappde:'ibizsample0001s',component:'ibizsample0001-sf4-edit-view'}); this.allViewMap.set(':',{viewname:'sf4editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-sf4-edit-view'});
this.allViewMap.set(':',{viewname:'usr3gridview',srfappde:'ibizsample0001s',component:'ibizsample0001-usr3-grid-view'}); this.allViewMap.set(':',{viewname:'usr3gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-usr3-grid-view'});
this.allViewMap.set(':',{viewname:'sf5editview',srfappde:'ibizsample0001s',component:'ibizsample0001-sf5-edit-view'}); this.allViewMap.set(':',{viewname:'sf5editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-sf5-edit-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizsample0001s',component:'ibizsample0001-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0001s',component:'ibizsample0001-edit-view'});
} }
/** /**
...@@ -171,9 +171,10 @@ export default class IBIZSample0001UIServiceBase extends UIService { ...@@ -171,9 +171,10 @@ export default class IBIZSample0001UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0001UIServiceBase * @memberof IBIZSample0001UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0001:srfkey}); let result:any = await this.dataService.Get({ibizsample0001:srfkey});
...@@ -185,18 +186,12 @@ export default class IBIZSample0001UIServiceBase extends UIService { ...@@ -185,18 +186,12 @@ export default class IBIZSample0001UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,11 +98,11 @@ export default class IBIZSample0002UIServiceBase extends UIService { ...@@ -98,11 +98,11 @@ export default class IBIZSample0002UIServiceBase extends UIService {
* @memberof IBIZSample0002UIServiceBase * @memberof IBIZSample0002UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizsample0002s',component:'ibizsample0002-pickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizsample0002s',component:'ibizsample0002-pickup-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizsample0002s',component:'ibizsample0002-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0002s',component:'ibizsample0002-grid-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizsample0002s',component:'ibizsample0002-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0002s',component:'ibizsample0002-edit-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizsample0002s',component:'ibizsample0002-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizsample0002s',component:'ibizsample0002-pickup-grid-view'});
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',srfappde:'ibizsample0002s',component:'ibizsample0002-mpickup-view'}); this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',viewType:'DEMPICKUPVIEW',srfappde:'ibizsample0002s',component:'ibizsample0002-mpickup-view'});
} }
/** /**
...@@ -127,9 +127,10 @@ export default class IBIZSample0002UIServiceBase extends UIService { ...@@ -127,9 +127,10 @@ export default class IBIZSample0002UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0002UIServiceBase * @memberof IBIZSample0002UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0002:srfkey}); let result:any = await this.dataService.Get({ibizsample0002:srfkey});
...@@ -141,18 +142,12 @@ export default class IBIZSample0002UIServiceBase extends UIService { ...@@ -141,18 +142,12 @@ export default class IBIZSample0002UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,27 +98,27 @@ export default class IBIZSample0003UIServiceBase extends UIService { ...@@ -98,27 +98,27 @@ export default class IBIZSample0003UIServiceBase extends UIService {
* @memberof IBIZSample0003UIServiceBase * @memberof IBIZSample0003UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'f2treeexpview',srfappde:'ibizsample0003s',component:'ibizsample0003-f2-tree-exp-view'}); this.allViewMap.set(':',{viewname:'f2treeexpview',viewType:'DETREEEXPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-f2-tree-exp-view'});
this.allViewMap.set(':',{viewname:'f4treeexpview',srfappde:'ibizsample0003s',component:'ibizsample0003-f4-tree-exp-view'}); this.allViewMap.set(':',{viewname:'f4treeexpview',viewType:'DETREEEXPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-f4-tree-exp-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizsample0003s',component:'ibizsample0003-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-pickup-grid-view'});
this.allViewMap.set(':',{viewname:'sf3editview',srfappde:'ibizsample0003s',component:'ibizsample0003-sf3-edit-view'}); this.allViewMap.set(':',{viewname:'sf3editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-sf3-edit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizsample0003s',component:'ibizsample0003-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-grid-view'});
this.allViewMap.set(':',{viewname:'sf1editview',srfappde:'ibizsample0003s',component:'ibizsample0003-sf1-edit-view'}); this.allViewMap.set(':',{viewname:'sf1editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-sf1-edit-view'});
this.allViewMap.set(':',{viewname:'stabexpview_layout',srfappde:'ibizsample0003s',component:'ibizsample0003-stab-exp-view-layout'}); this.allViewMap.set(':',{viewname:'stabexpview_layout',viewType:'DETABEXPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-stab-exp-view-layout'});
this.allViewMap.set(':',{viewname:'f3treeexpview',srfappde:'ibizsample0003s',component:'ibizsample0003-f3-tree-exp-view'}); this.allViewMap.set(':',{viewname:'f3treeexpview',viewType:'DETREEEXPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-f3-tree-exp-view'});
this.allViewMap.set(':',{viewname:'sf5editview',srfappde:'ibizsample0003s',component:'ibizsample0003-sf5-edit-view'}); this.allViewMap.set(':',{viewname:'sf5editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-sf5-edit-view'});
this.allViewMap.set(':',{viewname:'spickuptreeview',srfappde:'ibizsample0003s',component:'ibizsample0003-spickup-tree-view'}); this.allViewMap.set(':',{viewname:'spickuptreeview',viewType:'DEPICKUPTREEVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-spickup-tree-view'});
this.allViewMap.set(':',{viewname:'spickupview2',srfappde:'ibizsample0003s',component:'ibizsample0003-spickup-view2'}); this.allViewMap.set(':',{viewname:'spickupview2',viewType:'DEPICKUPVIEW2',srfappde:'ibizsample0003s',component:'ibizsample0003-spickup-view2'});
this.allViewMap.set(':',{viewname:'f1treeexpview',srfappde:'ibizsample0003s',component:'ibizsample0003-f1-tree-exp-view'}); this.allViewMap.set(':',{viewname:'f1treeexpview',viewType:'DETREEEXPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-f1-tree-exp-view'});
this.allViewMap.set(':',{viewname:'streeexpview',srfappde:'ibizsample0003s',component:'ibizsample0003-stree-exp-view'}); this.allViewMap.set(':',{viewname:'streeexpview',viewType:'DETREEEXPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-stree-exp-view'});
this.allViewMap.set(':',{viewname:'stabexpview',srfappde:'ibizsample0003s',component:'ibizsample0003-stab-exp-view'}); this.allViewMap.set(':',{viewname:'stabexpview',viewType:'DETABEXPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-stab-exp-view'});
this.allViewMap.set(':',{viewname:'sf2editview',srfappde:'ibizsample0003s',component:'ibizsample0003-sf2-edit-view'}); this.allViewMap.set(':',{viewname:'sf2editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-sf2-edit-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizsample0003s',component:'ibizsample0003-pickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-pickup-view'});
this.allViewMap.set(':',{viewname:'streeexpview2',srfappde:'ibizsample0003s',component:'ibizsample0003-stree-exp-view2'}); this.allViewMap.set(':',{viewname:'streeexpview2',viewType:'DETREEEXPVIEW2',srfappde:'ibizsample0003s',component:'ibizsample0003-stree-exp-view2'});
this.allViewMap.set(':',{viewname:'sf4editview',srfappde:'ibizsample0003s',component:'ibizsample0003-sf4-edit-view'}); this.allViewMap.set(':',{viewname:'sf4editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-sf4-edit-view'});
this.allViewMap.set(':',{viewname:'smpickupview2',srfappde:'ibizsample0003s',component:'ibizsample0003-smpickup-view2'}); this.allViewMap.set(':',{viewname:'smpickupview2',viewType:'DEMPICKUPVIEW2',srfappde:'ibizsample0003s',component:'ibizsample0003-smpickup-view2'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizsample0003s',component:'ibizsample0003-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-edit-view'});
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',srfappde:'ibizsample0003s',component:'ibizsample0003-mpickup-view'}); this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',viewType:'DEMPICKUPVIEW',srfappde:'ibizsample0003s',component:'ibizsample0003-mpickup-view'});
} }
/** /**
...@@ -143,9 +143,10 @@ export default class IBIZSample0003UIServiceBase extends UIService { ...@@ -143,9 +143,10 @@ export default class IBIZSample0003UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0003UIServiceBase * @memberof IBIZSample0003UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0003:srfkey}); let result:any = await this.dataService.Get({ibizsample0003:srfkey});
...@@ -157,18 +158,12 @@ export default class IBIZSample0003UIServiceBase extends UIService { ...@@ -157,18 +158,12 @@ export default class IBIZSample0003UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0004UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0004UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0004UIServiceBase * @memberof IBIZSample0004UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0004:srfkey}); let result:any = await this.dataService.Get({ibizsample0004:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0004UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0004UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0005UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0005UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0005UIServiceBase * @memberof IBIZSample0005UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0005:srfkey}); let result:any = await this.dataService.Get({ibizsample0005:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0005UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0005UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0006UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0006UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0006UIServiceBase * @memberof IBIZSample0006UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0006:srfkey}); let result:any = await this.dataService.Get({ibizsample0006:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0006UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0006UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0007UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0007UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0007UIServiceBase * @memberof IBIZSample0007UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0007:srfkey}); let result:any = await this.dataService.Get({ibizsample0007:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0007UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0007UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0008UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0008UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0008UIServiceBase * @memberof IBIZSample0008UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0008:srfkey}); let result:any = await this.dataService.Get({ibizsample0008:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0008UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0008UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0009UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0009UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0009UIServiceBase * @memberof IBIZSample0009UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0009:srfkey}); let result:any = await this.dataService.Get({ibizsample0009:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0009UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0009UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0010UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0010UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0010UIServiceBase * @memberof IBIZSample0010UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0010:srfkey}); let result:any = await this.dataService.Get({ibizsample0010:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0010UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0010UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0011UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0011UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0011UIServiceBase * @memberof IBIZSample0011UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0011:srfkey}); let result:any = await this.dataService.Get({ibizsample0011:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0011UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0011UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0012UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0012UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0012UIServiceBase * @memberof IBIZSample0012UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0012:srfkey}); let result:any = await this.dataService.Get({ibizsample0012:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0012UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0012UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,8 +98,8 @@ export default class IBIZSample0013UIServiceBase extends UIService { ...@@ -98,8 +98,8 @@ export default class IBIZSample0013UIServiceBase extends UIService {
* @memberof IBIZSample0013UIServiceBase * @memberof IBIZSample0013UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizsample0013s',component:'ibizsample0013-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizsample0013s',component:'ibizsample0013-pickup-grid-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizsample0013s',component:'ibizsample0013-pickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizsample0013s',component:'ibizsample0013-pickup-view'});
} }
/** /**
...@@ -124,9 +124,10 @@ export default class IBIZSample0013UIServiceBase extends UIService { ...@@ -124,9 +124,10 @@ export default class IBIZSample0013UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0013UIServiceBase * @memberof IBIZSample0013UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0013:srfkey}); let result:any = await this.dataService.Get({ibizsample0013:srfkey});
...@@ -138,18 +139,12 @@ export default class IBIZSample0013UIServiceBase extends UIService { ...@@ -138,18 +139,12 @@ export default class IBIZSample0013UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,8 +98,8 @@ export default class IBIZSample0014UIServiceBase extends UIService { ...@@ -98,8 +98,8 @@ export default class IBIZSample0014UIServiceBase extends UIService {
* @memberof IBIZSample0014UIServiceBase * @memberof IBIZSample0014UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizsample0014s',component:'ibizsample0014-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0014s',component:'ibizsample0014-grid-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizsample0014s',component:'ibizsample0014-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0014s',component:'ibizsample0014-edit-view'});
} }
/** /**
...@@ -124,9 +124,10 @@ export default class IBIZSample0014UIServiceBase extends UIService { ...@@ -124,9 +124,10 @@ export default class IBIZSample0014UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0014UIServiceBase * @memberof IBIZSample0014UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0014:srfkey}); let result:any = await this.dataService.Get({ibizsample0014:srfkey});
...@@ -138,18 +139,12 @@ export default class IBIZSample0014UIServiceBase extends UIService { ...@@ -138,18 +139,12 @@ export default class IBIZSample0014UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,7 +98,7 @@ export default class IBIZSample0015UIServiceBase extends UIService { ...@@ -98,7 +98,7 @@ export default class IBIZSample0015UIServiceBase extends UIService {
* @memberof IBIZSample0015UIServiceBase * @memberof IBIZSample0015UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizsample0015s',component:'ibizsample0015-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizsample0015s',component:'ibizsample0015-pickup-grid-view'});
} }
/** /**
...@@ -123,9 +123,10 @@ export default class IBIZSample0015UIServiceBase extends UIService { ...@@ -123,9 +123,10 @@ export default class IBIZSample0015UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0015UIServiceBase * @memberof IBIZSample0015UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0015:srfkey}); let result:any = await this.dataService.Get({ibizsample0015:srfkey});
...@@ -137,18 +138,12 @@ export default class IBIZSample0015UIServiceBase extends UIService { ...@@ -137,18 +138,12 @@ export default class IBIZSample0015UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0016UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0016UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0016UIServiceBase * @memberof IBIZSample0016UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0016:srfkey}); let result:any = await this.dataService.Get({ibizsample0016:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0016UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0016UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,15 +98,15 @@ export default class IBIZSample0017UIServiceBase extends UIService { ...@@ -98,15 +98,15 @@ export default class IBIZSample0017UIServiceBase extends UIService {
* @memberof IBIZSample0017UIServiceBase * @memberof IBIZSample0017UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizsample0017s',component:'ibizsample0017-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-pickup-grid-view'});
this.allViewMap.set('FORMPICKUPVIEW:',{viewname:'formpickupview',srfappde:'ibizsample0017s',component:'ibizsample0017-form-pickup-view'}); this.allViewMap.set('FORMPICKUPVIEW:',{viewname:'formpickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-form-pickup-view'});
this.allViewMap.set('EDITVIEW:10',{viewname:'f10editview',srfappde:'ibizsample0017s',component:'ibizsample0017-f10-edit-view'}); this.allViewMap.set('EDITVIEW:10',{viewname:'f10editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-f10-edit-view'});
this.allViewMap.set('EDITVIEW:20',{viewname:'f20editview',srfappde:'ibizsample0017s',component:'ibizsample0017-f20-edit-view'}); this.allViewMap.set('EDITVIEW:20',{viewname:'f20editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-f20-edit-view'});
this.allViewMap.set(':',{viewname:'formpickupdataview',srfappde:'ibizsample0017s',component:'ibizsample0017-form-pickup-data-view'}); this.allViewMap.set(':',{viewname:'formpickupdataview',viewType:'DEFORMPICKUPDATAVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-form-pickup-data-view'});
this.allViewMap.set('EDITVIEW:30',{viewname:'f30editview',srfappde:'ibizsample0017s',component:'ibizsample0017-f30-edit-view'}); this.allViewMap.set('EDITVIEW:30',{viewname:'f30editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-f30-edit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizsample0017s',component:'ibizsample0017-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-grid-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizsample0017s',component:'ibizsample0017-pickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-pickup-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizsample0017s',component:'ibizsample0017-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0017s',component:'ibizsample0017-edit-view'});
} }
/** /**
...@@ -131,9 +131,10 @@ export default class IBIZSample0017UIServiceBase extends UIService { ...@@ -131,9 +131,10 @@ export default class IBIZSample0017UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0017UIServiceBase * @memberof IBIZSample0017UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0017:srfkey}); let result:any = await this.dataService.Get({ibizsample0017:srfkey});
...@@ -145,18 +146,12 @@ export default class IBIZSample0017UIServiceBase extends UIService { ...@@ -145,18 +146,12 @@ export default class IBIZSample0017UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,8 +98,8 @@ export default class IBIZSample0018UIServiceBase extends UIService { ...@@ -98,8 +98,8 @@ export default class IBIZSample0018UIServiceBase extends UIService {
* @memberof IBIZSample0018UIServiceBase * @memberof IBIZSample0018UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizsample0018s',component:'ibizsample0018-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0018s',component:'ibizsample0018-grid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizsample0018s',component:'ibizsample0018-edit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0018s',component:'ibizsample0018-edit-view'});
} }
/** /**
...@@ -124,9 +124,10 @@ export default class IBIZSample0018UIServiceBase extends UIService { ...@@ -124,9 +124,10 @@ export default class IBIZSample0018UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0018UIServiceBase * @memberof IBIZSample0018UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0018:srfkey}); let result:any = await this.dataService.Get({ibizsample0018:srfkey});
...@@ -138,18 +139,12 @@ export default class IBIZSample0018UIServiceBase extends UIService { ...@@ -138,18 +139,12 @@ export default class IBIZSample0018UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0019UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0019UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0019UIServiceBase * @memberof IBIZSample0019UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0019:srfkey}); let result:any = await this.dataService.Get({ibizsample0019:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0019UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0019UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSample0020UIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSample0020UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0020UIServiceBase * @memberof IBIZSample0020UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0020:srfkey}); let result:any = await this.dataService.Get({ibizsample0020:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSample0020UIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSample0020UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,16 +98,16 @@ export default class IBIZSample0021UIServiceBase extends UIService { ...@@ -98,16 +98,16 @@ export default class IBIZSample0021UIServiceBase extends UIService {
* @memberof IBIZSample0021UIServiceBase * @memberof IBIZSample0021UIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'wfdynaactionview',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-action-view'}); this.allViewMap.set(':',{viewname:'wfdynaactionview',viewType:'DEWFDYNAACTIONVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-action-view'});
this.allViewMap.set(':',{viewname:'wfdynaexpgridview',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-exp-grid-view'}); this.allViewMap.set(':',{viewname:'wfdynaexpgridview',viewType:'DEWFDYNAEXPGRIDVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-exp-grid-view'});
this.allViewMap.set(':',{viewname:'usr1114433946wfdynaeditview',srfappde:'ibizsample0021s',component:'ibizsample0021-usr1114433946-wfdyna-edit-view'}); this.allViewMap.set(':',{viewname:'usr1114433946wfdynaeditview',viewType:'DEWFDYNAEDITVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-usr1114433946-wfdyna-edit-view'});
this.allViewMap.set('WFEDITVIEW:',{viewname:'wfdynaeditview',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-edit-view'}); this.allViewMap.set('WFEDITVIEW:',{viewname:'wfdynaeditview',viewType:'DEWFDYNAEDITVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-edit-view'});
this.allViewMap.set(':',{viewname:'usr1114865995wfdynaeditview3',srfappde:'ibizsample0021s',component:'ibizsample0021-usr1114865995-wfdyna-edit-view3'}); this.allViewMap.set(':',{viewname:'usr1114865995wfdynaeditview3',viewType:'DEWFDYNAEDITVIEW3',srfappde:'ibizsample0021s',component:'ibizsample0021-usr1114865995-wfdyna-edit-view3'});
this.allViewMap.set(':',{viewname:'wfdynaactionview_layout',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-action-view-layout'}); this.allViewMap.set(':',{viewname:'wfdynaactionview_layout',viewType:'DEWFDYNAACTIONVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-action-view-layout'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizsample0021s',component:'ibizsample0021-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-grid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizsample0021s',component:'ibizsample0021-edit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-edit-view'});
this.allViewMap.set(':',{viewname:'wfdynaexpgridview_layout',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-exp-grid-view-layout'}); this.allViewMap.set(':',{viewname:'wfdynaexpgridview_layout',viewType:'DEWFDYNAEXPGRIDVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-wfdyna-exp-grid-view-layout'});
this.allViewMap.set(':',{viewname:'gridview_layout',srfappde:'ibizsample0021s',component:'ibizsample0021-grid-view-layout'}); this.allViewMap.set(':',{viewname:'gridview_layout',viewType:'DEGRIDVIEW',srfappde:'ibizsample0021s',component:'ibizsample0021-grid-view-layout'});
} }
/** /**
...@@ -132,9 +132,10 @@ export default class IBIZSample0021UIServiceBase extends UIService { ...@@ -132,9 +132,10 @@ export default class IBIZSample0021UIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSample0021UIServiceBase * @memberof IBIZSample0021UIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsample0021:srfkey}); let result:any = await this.dataService.Get({ibizsample0021:srfkey});
...@@ -146,18 +147,12 @@ export default class IBIZSample0021UIServiceBase extends UIService { ...@@ -146,18 +147,12 @@ export default class IBIZSample0021UIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,9 +98,9 @@ export default class IBIZSoftwareSuitUIServiceBase extends UIService { ...@@ -98,9 +98,9 @@ export default class IBIZSoftwareSuitUIServiceBase extends UIService {
* @memberof IBIZSoftwareSuitUIServiceBase * @memberof IBIZSoftwareSuitUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'sgridview',srfappde:'ibizsoftwaresuits',component:'ibizsoftware-suit-sgrid-view'}); this.allViewMap.set(':',{viewname:'sgridview',viewType:'DEGRIDVIEW',srfappde:'ibizsoftwaresuits',component:'ibizsoftware-suit-sgrid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizsoftwaresuits',component:'ibizsoftware-suit-edit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizsoftwaresuits',component:'ibizsoftware-suit-edit-view'});
this.allViewMap.set(':',{viewname:'gridview9',srfappde:'ibizsoftwaresuits',component:'ibizsoftware-suit-grid-view9'}); this.allViewMap.set(':',{viewname:'gridview9',viewType:'DEGRIDVIEW9',srfappde:'ibizsoftwaresuits',component:'ibizsoftware-suit-grid-view9'});
} }
/** /**
...@@ -125,9 +125,10 @@ export default class IBIZSoftwareSuitUIServiceBase extends UIService { ...@@ -125,9 +125,10 @@ export default class IBIZSoftwareSuitUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSoftwareSuitUIServiceBase * @memberof IBIZSoftwareSuitUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsoftwaresuit:srfkey}); let result:any = await this.dataService.Get({ibizsoftwaresuit:srfkey});
...@@ -139,18 +140,12 @@ export default class IBIZSoftwareSuitUIServiceBase extends UIService { ...@@ -139,18 +140,12 @@ export default class IBIZSoftwareSuitUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,7 +98,7 @@ export default class IBIZStorageUIServiceBase extends UIService { ...@@ -98,7 +98,7 @@ export default class IBIZStorageUIServiceBase extends UIService {
* @memberof IBIZStorageUIServiceBase * @memberof IBIZStorageUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizstorages',component:'ibizstorage-edit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizstorages',component:'ibizstorage-edit-view'});
} }
/** /**
...@@ -123,9 +123,10 @@ export default class IBIZStorageUIServiceBase extends UIService { ...@@ -123,9 +123,10 @@ export default class IBIZStorageUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZStorageUIServiceBase * @memberof IBIZStorageUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizstorage:srfkey}); let result:any = await this.dataService.Get({ibizstorage:srfkey});
...@@ -137,18 +138,12 @@ export default class IBIZStorageUIServiceBase extends UIService { ...@@ -137,18 +138,12 @@ export default class IBIZStorageUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -122,9 +122,10 @@ export default class IBIZSupplierUIServiceBase extends UIService { ...@@ -122,9 +122,10 @@ export default class IBIZSupplierUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZSupplierUIServiceBase * @memberof IBIZSupplierUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizsupplier:srfkey}); let result:any = await this.dataService.Get({ibizsupplier:srfkey});
...@@ -136,18 +137,12 @@ export default class IBIZSupplierUIServiceBase extends UIService { ...@@ -136,18 +137,12 @@ export default class IBIZSupplierUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,7 +98,7 @@ export default class IBIZTASKUIServiceBase extends UIService { ...@@ -98,7 +98,7 @@ export default class IBIZTASKUIServiceBase extends UIService {
* @memberof IBIZTASKUIServiceBase * @memberof IBIZTASKUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibiztasks',component:'ibiztaskusr2-edit-view'}); this.allViewMap.set(':',{viewname:'usr2editview',viewType:'DEEDITVIEW',srfappde:'ibiztasks',component:'ibiztaskusr2-edit-view'});
} }
/** /**
...@@ -123,9 +123,10 @@ export default class IBIZTASKUIServiceBase extends UIService { ...@@ -123,9 +123,10 @@ export default class IBIZTASKUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZTASKUIServiceBase * @memberof IBIZTASKUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibiztask:srfkey}); let result:any = await this.dataService.Get({ibiztask:srfkey});
...@@ -137,18 +138,12 @@ export default class IBIZTASKUIServiceBase extends UIService { ...@@ -137,18 +138,12 @@ export default class IBIZTASKUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,8 +98,8 @@ export default class IBIZTASKTEAMUIServiceBase extends UIService { ...@@ -98,8 +98,8 @@ export default class IBIZTASKTEAMUIServiceBase extends UIService {
* @memberof IBIZTASKTEAMUIServiceBase * @memberof IBIZTASKTEAMUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'gridview9',srfappde:'ibiztaskteams',component:'ibiztaskteamgrid-view9'}); this.allViewMap.set(':',{viewname:'gridview9',viewType:'DEGRIDVIEW9',srfappde:'ibiztaskteams',component:'ibiztaskteamgrid-view9'});
this.allViewMap.set(':',{viewname:'editview9',srfappde:'ibiztaskteams',component:'ibiztaskteamedit-view9'}); this.allViewMap.set(':',{viewname:'editview9',viewType:'DEEDITVIEW9',srfappde:'ibiztaskteams',component:'ibiztaskteamedit-view9'});
} }
/** /**
...@@ -124,9 +124,10 @@ export default class IBIZTASKTEAMUIServiceBase extends UIService { ...@@ -124,9 +124,10 @@ export default class IBIZTASKTEAMUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZTASKTEAMUIServiceBase * @memberof IBIZTASKTEAMUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibiztaskteam:srfkey}); let result:any = await this.dataService.Get({ibiztaskteam:srfkey});
...@@ -138,18 +139,12 @@ export default class IBIZTASKTEAMUIServiceBase extends UIService { ...@@ -138,18 +139,12 @@ export default class IBIZTASKTEAMUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,15 +98,15 @@ export default class IBIZUNIProductUIServiceBase extends UIService { ...@@ -98,15 +98,15 @@ export default class IBIZUNIProductUIServiceBase extends UIService {
* @memberof IBIZUNIProductUIServiceBase * @memberof IBIZUNIProductUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'sgridview',srfappde:'ibizuniproducts',component:'ibizuniproduct-sgrid-view'}); this.allViewMap.set(':',{viewname:'sgridview',viewType:'DEGRIDVIEW',srfappde:'ibizuniproducts',component:'ibizuniproduct-sgrid-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizuniproducts',component:'ibizuniproduct-edit-view'}); this.allViewMap.set(':',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'ibizuniproducts',component:'ibizuniproduct-edit-view'});
this.allViewMap.set(':',{viewname:'indexpickupdataview',srfappde:'ibizuniproducts',component:'ibizuniproduct-index-pickup-data-view'}); this.allViewMap.set(':',{viewname:'indexpickupdataview',viewType:'DEINDEXPICKUPDATAVIEW',srfappde:'ibizuniproducts',component:'ibizuniproduct-index-pickup-data-view'});
this.allViewMap.set(':',{viewname:'sgridview_layout',srfappde:'ibizuniproducts',component:'ibizuniproduct-sgrid-view-layout'}); this.allViewMap.set(':',{viewname:'sgridview_layout',viewType:'DEGRIDVIEW',srfappde:'ibizuniproducts',component:'ibizuniproduct-sgrid-view-layout'});
this.allViewMap.set(':',{viewname:'gridview9',srfappde:'ibizuniproducts',component:'ibizuniproduct-grid-view9'}); this.allViewMap.set(':',{viewname:'gridview9',viewType:'DEGRIDVIEW9',srfappde:'ibizuniproducts',component:'ibizuniproduct-grid-view9'});
this.allViewMap.set('INDEXDEPICKUPVIEW:',{viewname:'indexpickupview',srfappde:'ibizuniproducts',component:'ibizuniproduct-index-pickup-view'}); this.allViewMap.set('INDEXDEPICKUPVIEW:',{viewname:'indexpickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizuniproducts',component:'ibizuniproduct-index-pickup-view'});
this.allViewMap.set('REDIRECTVIEW:',{viewname:'redirectview',srfappde:'ibizuniproducts',component:'ibizuniproduct-redirect-view'}); this.allViewMap.set('REDIRECTVIEW:',{viewname:'redirectview',viewType:'DEREDIRECTVIEW',srfappde:'ibizuniproducts',component:'ibizuniproduct-redirect-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizuniproducts',component:'ibizuniproduct-pickup-view'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizuniproducts',component:'ibizuniproduct-pickup-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizuniproducts',component:'ibizuniproduct-pickup-grid-view'}); this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizuniproducts',component:'ibizuniproduct-pickup-grid-view'});
} }
/** /**
...@@ -131,9 +131,10 @@ export default class IBIZUNIProductUIServiceBase extends UIService { ...@@ -131,9 +131,10 @@ export default class IBIZUNIProductUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZUNIProductUIServiceBase * @memberof IBIZUNIProductUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({ibizuniproduct:srfkey}); let result:any = await this.dataService.Get({ibizuniproduct:srfkey});
...@@ -145,18 +146,12 @@ export default class IBIZUNIProductUIServiceBase extends UIService { ...@@ -145,18 +146,12 @@ export default class IBIZUNIProductUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -98,8 +98,8 @@ export default class MicroComponentUIServiceBase extends UIService { ...@@ -98,8 +98,8 @@ export default class MicroComponentUIServiceBase extends UIService {
* @memberof MicroComponentUIServiceBase * @memberof MicroComponentUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'microcomponents',component:'micro-component-edit-view'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',viewType:'DEEDITVIEW',srfappde:'microcomponents',component:'micro-component-edit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'microcomponents',component:'micro-component-grid-view'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',viewType:'DEGRIDVIEW',srfappde:'microcomponents',component:'micro-component-grid-view'});
} }
/** /**
...@@ -124,9 +124,10 @@ export default class MicroComponentUIServiceBase extends UIService { ...@@ -124,9 +124,10 @@ export default class MicroComponentUIServiceBase extends UIService {
* *
* @param srfkey 数据主键 * @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据 * @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof MicroComponentUIServiceBase * @memberof MicroComponentUIServiceBase
*/ */
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){ public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow; this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询 // 进行数据查询
let result:any = await this.dataService.Get({microcomponent:srfkey}); let result:any = await this.dataService.Get({microcomponent:srfkey});
...@@ -138,18 +139,12 @@ export default class MicroComponentUIServiceBase extends UIService { ...@@ -138,18 +139,12 @@ export default class MicroComponentUIServiceBase extends UIService {
let bWFMode:any = false; let bWFMode:any = false;
// 计算数据模式 // 计算数据模式
if (this.isEnableWorkflow) { if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData); const result = this.allViewMap.get("WFEDITVIEW:");
if (bDataInWF) { if(!result){
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData); }
}
} }
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode); let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam); return this.allViewMap.get(strPDTViewParam);
} }
......
...@@ -639,7 +639,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -639,7 +639,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -675,7 +675,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -675,7 +675,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public async loadDraft(opt: any = {},mode?:string): Promise<any> { public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -1378,7 +1378,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1378,7 +1378,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/ */
public async load(opt: any = {}): Promise<any> { public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1425,7 +1425,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1425,7 +1425,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/ */
public async loadDraft(opt: any = {}): Promise<any> { public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) { if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1495,7 +1495,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1495,7 +1495,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1603,7 +1603,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1603,7 +1603,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg, { viewparams: this.viewparams }); Object.assign(arg, { viewparams: this.viewparams });
...@@ -1695,7 +1695,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1695,7 +1695,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
...@@ -1344,7 +1344,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1344,7 +1344,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/ */
public async load(opt: any = {}): Promise<any> { public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1391,7 +1391,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1391,7 +1391,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/ */
public async loadDraft(opt: any = {}): Promise<any> { public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) { if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1461,7 +1461,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1461,7 +1461,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1569,7 +1569,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1569,7 +1569,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg, { viewparams: this.viewparams }); Object.assign(arg, { viewparams: this.viewparams });
...@@ -1661,7 +1661,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1661,7 +1661,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
...@@ -1447,7 +1447,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1447,7 +1447,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/ */
public async load(opt: any = {}): Promise<any> { public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1494,7 +1494,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1494,7 +1494,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/ */
public async loadDraft(opt: any = {}): Promise<any> { public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) { if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1564,7 +1564,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1564,7 +1564,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1672,7 +1672,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1672,7 +1672,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg, { viewparams: this.viewparams }); Object.assign(arg, { viewparams: this.viewparams });
...@@ -1764,7 +1764,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1764,7 +1764,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
...@@ -1830,6 +1830,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1830,6 +1830,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
// 准备工作流数据,填充未存库数据 // 准备工作流数据,填充未存库数据
Object.assign(arg,copyData); Object.assign(arg,copyData);
// 准备提交参数 // 准备提交参数
if(备提交参数
if(this.viewparams){ if(this.viewparams){
let copyViewParams:any = Util.deepCopy(this.viewparams); let copyViewParams:any = Util.deepCopy(this.viewparams);
if(copyViewParams.w){ if(copyViewParams.w){
......
...@@ -698,7 +698,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -698,7 +698,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public async load(opt: any = {}, isReset: boolean = false): Promise<any> { public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -792,7 +792,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -792,7 +792,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -908,7 +908,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -908,7 +908,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -916,7 +916,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -916,7 +916,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){ if(item.ibizbook){
......
...@@ -70,11 +70,6 @@ export default class Usr4Model { ...@@ -70,11 +70,6 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like', prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM' dataType: 'QUERYPARAM'
}, },
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
......
...@@ -319,7 +319,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -319,7 +319,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [$event] 事件源 * @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件 * @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSF1GridViewBase * @memberof IBIZOrderPickupGridViewBase
*/ */
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) { if (args.length === 0) {
...@@ -462,20 +462,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -462,20 +462,6 @@ export default class MainBase extends Vue implements ControlInterface {
return this.selections[0]; return this.selections[0];
} }
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public opendata: any;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
...@@ -1010,7 +996,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1010,7 +996,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) { if (!this.fetchAction) {
this.$Notice.error({ this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string, title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderSF1GridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string), desc: "IBIZOrderPickupGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
}); });
return; return;
} }
...@@ -1139,7 +1125,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1139,7 +1125,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) { if (!this.removeAction) {
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderSF1GridView' + (this.$t('app.gridpage.notConfig.removeAction') as string) desc: 'IBIZOrderPickupGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
}); });
return; return;
} }
...@@ -1253,7 +1239,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1253,7 +1239,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(!arg){ if(!arg){
...@@ -2184,7 +2170,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2184,7 +2170,7 @@ export default class MainBase extends Vue implements ControlInterface {
try { try {
if (Object.is(item.rowDataState, 'create')) { if (Object.is(item.rowDataState, 'create')) {
if (!this.createAction) { if (!this.createAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else { } else {
Object.assign(item, { viewparams: this.viewparams }); Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2193,7 +2179,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2193,7 +2179,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}else if (Object.is(item.rowDataState, 'update')){ }else if (Object.is(item.rowDataState, 'update')){
if (!this.updateAction) { if (!this.updateAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else { } else {
Object.assign(item, { viewparams: this.viewparams }); Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2269,7 +2255,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2269,7 +2255,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderSF1GridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string) desc: 'IBIZOrderPickupGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
}); });
return; return;
} }
......
...@@ -105,21 +105,6 @@ export default class MainModel { ...@@ -105,21 +105,6 @@ export default class MainModel {
prop: 'n_ibizordername_like', prop: 'n_ibizordername_like',
dataType: 'QUERYPARAM' dataType: 'QUERYPARAM'
}, },
{
name: 'n_orderstate_eq',
prop: 'n_orderstate_eq',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_gt',
prop: 'n_ordertime_gt',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_lt',
prop: 'n_ordertime_lt',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册