Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
8b94eab6
提交
8b94eab6
编写于
7月 10, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
fcbaff85
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
69 行增加
和
73 行删除
+69
-73
lead-competitor-competitor-grid-view-base.tsx
...r-grid-view/lead-competitor-competitor-grid-view-base.tsx
+29
-31
lead-competitor-lead-grid-view-base.tsx
...or-lead-grid-view/lead-competitor-lead-grid-view-base.tsx
+29
-31
h2_table.xml
...esscentral-core/src/main/resources/liquibase/h2_table.xml
+11
-11
未找到文件。
app_CRM/src/pages/sales/lead-competitor-competitor-grid-view/lead-competitor-competitor-grid-view-base.tsx
浏览文件 @
8b94eab6
...
...
@@ -450,29 +450,35 @@ export class LeadCompetitorCompetitorGridViewBase extends GridViewBase {
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
let
batchAddPSAppViews
:
Array
<
any
>=
[];
if
(
batchAddPSAppViews
.
length
==
0
||
!
this
.
context
.
srfparentdename
){
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'批量添加需添加N:N关系'
});
return
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
leadcompetitor
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
competitor
&&
true
){
deResParameters
=
[
{
pathName
:
'competitors'
,
parameterName
:
'competitor'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'leadcompetitors'
,
parameterName
:
'leadcompetitor'
},
];
const
_this
:
any
=
this
;
const
openDrawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
let
openViewModel
:
any
=
batchAddPSAppViews
.
find
((
item
:
any
)
=>
{
return
(
item
.
res
&&
(
item
.
res
[
0
]
!==
this
.
context
.
srfparentdename
));
})
let
otherViewModel
:
any
=
batchAddPSAppViews
.
find
((
item
:
any
)
=>
{
return
(
item
.
res
&&
(
item
.
res
[
0
]
==
this
.
context
.
srfparentdename
));
})
let
container
:
Subject
<
any
>
=
this
.
$appmodal
.
openModal
(
openViewModel
.
view
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
args
[
0
]);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
result
.
datas
&&
result
.
datas
.
length
==
0
){
return
;
}
let
requestParam
:
Array
<
any
>
=
[];
result
.
datas
.
forEach
((
record
:
any
)
=>
{
let
tempParam
:
any
=
{};
tempParam
[
otherViewModel
.
resAppKey
]
=
this
.
context
[
'srfparentkey'
];
tempParam
[
openViewModel
.
resAppKey
]
=
record
.
srfkey
;
requestParam
.
push
(
tempParam
);
});
this
.
appEntityService
.
createBatch
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
requestParam
,
true
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'批处理操作失败'
});
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
...
...
@@ -480,15 +486,7 @@ export class LeadCompetitorCompetitorGridViewBase extends GridViewBase {
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'lead-competitor-edit-competitor-view'
,
height
:
0
,
width
:
0
,
title
:
this
.
$t
(
'entities.leadcompetitor.views.edit_competitorview.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
});
}
...
...
app_CRM/src/pages/sales/lead-competitor-lead-grid-view/lead-competitor-lead-grid-view-base.tsx
浏览文件 @
8b94eab6
...
...
@@ -450,29 +450,35 @@ export class LeadCompetitorLeadGridViewBase extends GridViewBase {
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
let
batchAddPSAppViews
:
Array
<
any
>=
[];
if
(
batchAddPSAppViews
.
length
==
0
||
!
this
.
context
.
srfparentdename
){
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'批量添加需添加N:N关系'
});
return
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
leadcompetitor
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
competitor
&&
true
){
deResParameters
=
[
{
pathName
:
'competitors'
,
parameterName
:
'competitor'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'leadcompetitors'
,
parameterName
:
'leadcompetitor'
},
];
const
_this
:
any
=
this
;
const
openDrawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
let
openViewModel
:
any
=
batchAddPSAppViews
.
find
((
item
:
any
)
=>
{
return
(
item
.
res
&&
(
item
.
res
[
0
]
!==
this
.
context
.
srfparentdename
));
})
let
otherViewModel
:
any
=
batchAddPSAppViews
.
find
((
item
:
any
)
=>
{
return
(
item
.
res
&&
(
item
.
res
[
0
]
==
this
.
context
.
srfparentdename
));
})
let
container
:
Subject
<
any
>
=
this
.
$appmodal
.
openModal
(
openViewModel
.
view
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
args
[
0
]);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
result
.
datas
&&
result
.
datas
.
length
==
0
){
return
;
}
let
requestParam
:
Array
<
any
>
=
[];
result
.
datas
.
forEach
((
record
:
any
)
=>
{
let
tempParam
:
any
=
{};
tempParam
[
otherViewModel
.
resAppKey
]
=
this
.
context
[
'srfparentkey'
];
tempParam
[
openViewModel
.
resAppKey
]
=
record
.
srfkey
;
requestParam
.
push
(
tempParam
);
});
this
.
appEntityService
.
createBatch
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
requestParam
,
true
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'批处理操作失败'
});
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
...
...
@@ -480,15 +486,7 @@ export class LeadCompetitorLeadGridViewBase extends GridViewBase {
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'lead-competitor-edit-competitor-view'
,
height
:
0
,
width
:
0
,
title
:
this
.
$t
(
'entities.leadcompetitor.views.edit_competitorview.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
});
}
...
...
businesscentral-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
8b94eab6
...
...
@@ -2419,7 +2419,7 @@
<!--输出实体[COMPETITOR]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-competitor-7
6
-32"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-competitor-7
7
-32"
>
<createTable
tableName=
"COMPETITOR"
>
<column
name=
"ENTITYIMAGE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
...
...
@@ -5805,7 +5805,7 @@
<!--输出实体[LEAD]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-lead-23
1
-70"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-lead-23
2
-70"
>
<createTable
tableName=
"LEAD"
>
<column
name=
"ADDRESS1_FAX"
remarks=
""
type=
"VARCHAR(50)"
>
</column>
...
...
@@ -11159,7 +11159,7 @@
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"CHARACTERISTIC"
constraintName=
"DER1N_CHARACTERISTIC__TRANSACT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
<!--输出实体[COMPETITOR]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-competitor-7
6
-190"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-competitor-7
7
-190"
>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"COMPETITOR"
constraintName=
"DER1N_COMPETITOR__TRANSACTIONC"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
<!--输出实体[COMPETITORPRODUCT]外键关系 -->
...
...
@@ -11479,28 +11479,28 @@
</changeSet>
<!--输出实体[LANGUAGELOCALE]外键关系 -->
<!--输出实体[LEAD]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
1
-301"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
2
-301"
>
<addForeignKeyConstraint
baseColumnNames=
"PARENTACCOUNTID"
baseTableName=
"LEAD"
constraintName=
"DER1N_LEAD__ACCOUNT__PARENTACC"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ACCOUNTID"
referencedTableName=
"ACCOUNT"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
1
-302"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
2
-302"
>
<addForeignKeyConstraint
baseColumnNames=
"RELATEDOBJECTID"
baseTableName=
"LEAD"
constraintName=
"DER1N_LEAD__CAMPAIGNRESPONSE__"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ACTIVITYID"
referencedTableName=
"CAMPAIGNRESPONSE"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
1
-303"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
2
-303"
>
<addForeignKeyConstraint
baseColumnNames=
"CAMPAIGNID"
baseTableName=
"LEAD"
constraintName=
"DER1N_LEAD__CAMPAIGN__CAMPAIGN"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CAMPAIGNID"
referencedTableName=
"CAMPAIGN"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
1
-304"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
2
-304"
>
<addForeignKeyConstraint
baseColumnNames=
"PARENTCONTACTID"
baseTableName=
"LEAD"
constraintName=
"DER1N_LEAD__CONTACT__PARENTCON"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CONTACTID"
referencedTableName=
"CONTACT"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
1
-305"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
2
-305"
>
<addForeignKeyConstraint
baseColumnNames=
"ORIGINATINGCASEID"
baseTableName=
"LEAD"
constraintName=
"DER1N_LEAD__INCIDENT__ORIGINAT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"INCIDENTID"
referencedTableName=
"INCIDENT"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
1
-306"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
2
-306"
>
<addForeignKeyConstraint
baseColumnNames=
"QUALIFYINGOPPORTUNITYID"
baseTableName=
"LEAD"
constraintName=
"DER1N_LEAD__OPPORTUNITY__QUALI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OPPORTUNITYID"
referencedTableName=
"OPPORTUNITY"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
1
-307"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
2
-307"
>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"LEAD"
constraintName=
"DER1N_LEAD__SLA__SLAID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
1
-308"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-lead-23
2
-308"
>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"LEAD"
constraintName=
"DER1N_LEAD__TRANSACTIONCURRENC"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
<!--输出实体[LEADADDRESS]外键关系 -->
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录