Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
b7427ea0
提交
b7427ea0
编写于
7月 13, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
8575b63d
变更
9
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
45 行增加
和
73 行删除
+45
-73
connection.ts
app_CRM/src/interface/entity/connection.ts
+1
-1
connection_en_US.ts
...src/locale/lanres/entities/connection/connection_en_US.ts
+4
-5
connection_zh_CN.ts
...src/locale/lanres/entities/connection/connection_zh_CN.ts
+4
-5
main-form-base.tsx
app_CRM/src/widgets/connection/main-form/main-form-base.tsx
+1
-1
main-grid-base.tsx
app_CRM/src/widgets/connection/main-grid/main-grid-base.tsx
+13
-22
main-grid-model.ts
app_CRM/src/widgets/connection/main-grid/main-grid-model.ts
+2
-7
main-grid.html
app_CRM/src/widgets/connection/main-grid/main-grid.html
+16
-28
Connection.java
...izlab/businesscentral/core/runtime/domain/Connection.java
+2
-2
ConnectionSearchContext.java
...scentral/core/runtime/filter/ConnectionSearchContext.java
+2
-2
未找到文件。
app_CRM/src/interface/entity/connection.ts
浏览文件 @
b7427ea0
...
...
@@ -263,7 +263,7 @@ export interface Connection {
record2roleid
?:
any
;
/**
* 角色
(源)
* 角色
*
* @returns {*}
* @memberof Connection
...
...
app_CRM/src/locale/lanres/entities/connection/connection_en_US.ts
浏览文件 @
b7427ea0
...
...
@@ -33,7 +33,7 @@ export default {
record1roleid
:
"角色(源)"
,
transactioncurrencyid
:
"货币"
,
record2roleid
:
"角色(目标)"
,
record1rolename
:
"角色
(源)
"
,
record1rolename
:
"角色"
,
record2rolename
:
"角色(目标)"
,
},
views
:
{
...
...
@@ -62,7 +62,7 @@ export default {
srfsourcekey
:
""
,
connectionname
:
"关联名称"
,
record1id
:
"连接自"
,
record1rolename
:
"角色
(源)
"
,
record1rolename
:
"角色"
,
record2rolename
:
"角色(目标)"
,
record2id
:
"已连接到"
,
record2idobjecttypecode
:
"已连接到"
,
...
...
@@ -88,11 +88,10 @@ export default {
},
main_grid
:
{
columns
:
{
connectionname
:
"关联名称"
,
record1rolename
:
"角色"
,
record2idobjecttypecode
:
"已连接到"
,
statecode
:
"状态"
,
statuscode
:
"状态描述"
,
record1rolename
:
"角色(源)"
,
record2rolename
:
"角色(目标)"
,
},
uiactions
:
{
},
...
...
app_CRM/src/locale/lanres/entities/connection/connection_zh_CN.ts
浏览文件 @
b7427ea0
...
...
@@ -32,7 +32,7 @@ export default {
record1roleid
:
"角色(源)"
,
transactioncurrencyid
:
"货币"
,
record2roleid
:
"角色(目标)"
,
record1rolename
:
"角色
(源)
"
,
record1rolename
:
"角色"
,
record2rolename
:
"角色(目标)"
,
},
views
:
{
...
...
@@ -61,7 +61,7 @@ export default {
srfsourcekey
:
""
,
connectionname
:
"关联名称"
,
record1id
:
"连接自"
,
record1rolename
:
"角色
(源)
"
,
record1rolename
:
"角色"
,
record2rolename
:
"角色(目标)"
,
record2id
:
"已连接到"
,
record2idobjecttypecode
:
"已连接到"
,
...
...
@@ -87,11 +87,10 @@ export default {
},
main_grid
:
{
columns
:
{
connectionname
:
"关联名称"
,
record1rolename
:
"角色"
,
record2idobjecttypecode
:
"已连接到"
,
statecode
:
"状态"
,
statuscode
:
"状态描述"
,
record1rolename
:
"角色(源)"
,
record2rolename
:
"角色(目标)"
,
},
uiactions
:
{
},
...
...
app_CRM/src/widgets/connection/main-form/main-form-base.tsx
浏览文件 @
b7427ea0
...
...
@@ -159,7 +159,7 @@ export class MainEditFormBase extends EditFormControlBase {
record1id
:
new
FormItemModel
({
caption
:
'连接自'
,
detailType
:
'FORMITEM'
,
name
:
'record1id'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
record1rolename
:
new
FormItemModel
({
caption
:
'角色
(源)
'
,
detailType
:
'FORMITEM'
,
name
:
'record1rolename'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
record1rolename
:
new
FormItemModel
({
caption
:
'角色'
,
detailType
:
'FORMITEM'
,
name
:
'record1rolename'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
record2rolename
:
new
FormItemModel
({
caption
:
'角色(目标)'
,
detailType
:
'FORMITEM'
,
name
:
'record2rolename'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
...
...
app_CRM/src/widgets/connection/main-grid/main-grid-base.tsx
浏览文件 @
b7427ea0
...
...
@@ -84,9 +84,17 @@ export class MainGridBase extends GridControllerBase {
*/
public
allColumns
:
any
[]
=
[
{
name
:
'connectionname'
,
label
:
'关联名称'
,
langtag
:
'entities.connection.main_grid.columns.connectionname'
,
name
:
'record1rolename'
,
label
:
'角色'
,
langtag
:
'entities.connection.main_grid.columns.record1rolename'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'record2idobjecttypecode'
,
label
:
'已连接到'
,
langtag
:
'entities.connection.main_grid.columns.record2idobjecttypecode'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
...
...
@@ -107,22 +115,6 @@ export class MainGridBase extends GridControllerBase {
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'record1rolename'
,
label
:
'角色(源)'
,
langtag
:
'entities.connection.main_grid.columns.record1rolename'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'record2rolename'
,
label
:
'角色(目标)'
,
langtag
:
'entities.connection.main_grid.columns.record2rolename'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
]
/**
...
...
@@ -157,11 +149,10 @@ export class MainGridBase extends GridControllerBase {
* @memberof MainBase
*/
public
hasRowEdit
:
any
=
{
'connectionname'
:
false
,
'record1rolename'
:
false
,
'record2idobjecttypecode'
:
false
,
'statecode'
:
false
,
'statuscode'
:
false
,
'record1rolename'
:
false
,
'record2rolename'
:
false
,
};
/**
...
...
app_CRM/src/widgets/connection/main-grid/main-grid-model.ts
浏览文件 @
b7427ea0
...
...
@@ -26,11 +26,6 @@ export default class MainModel {
]
}
else
{
return
[
{
name
:
'record2rolename'
,
prop
:
'record2rolename'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'statecode'
,
prop
:
'statecode'
,
...
...
@@ -52,8 +47,8 @@ export default class MainModel {
dataType
:
'PICKUP'
,
},
{
name
:
'
connectionnam
e'
,
prop
:
'
connectionnam
e'
,
name
:
'
record2idobjecttypecod
e'
,
prop
:
'
record2idobjecttypecod
e'
,
dataType
:
'TEXT'
,
},
{
...
...
app_CRM/src/widgets/connection/main-grid/main-grid.html
浏览文件 @
b7427ea0
...
...
@@ -23,15 +23,27 @@
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
<template
v-if=
"getColumnState('connectionname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'connectionname'"
:label=
"$t('entities.connection.main_grid.columns.connectionname')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-if=
"getColumnState('record1rolename')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'record1rolename'"
:label=
"$t('entities.connection.main_grid.columns.record1rolename')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.connection.main_grid.columns.record1rolename')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.record1rolename}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('record2idobjecttypecode')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'record2idobjecttypecode'"
:label=
"$t('entities.connection.main_grid.columns.record2idobjecttypecode')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.connection.main_grid.columns.
connectionnam
e')}}
{{$t('entities.connection.main_grid.columns.
record2idobjecttypecod
e')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.
connectionnam
e}}
</span>
<span>
{{row.
record2idobjecttypecod
e}}
</span>
</template>
</el-table-column>
</template>
...
...
@@ -63,30 +75,6 @@
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('record1rolename')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'record1rolename'"
:label=
"$t('entities.connection.main_grid.columns.record1rolename')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.connection.main_grid.columns.record1rolename')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.record1rolename}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('record2rolename')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'record2rolename'"
:label=
"$t('entities.connection.main_grid.columns.record2rolename')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.connection.main_grid.columns.record2rolename')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.record2rolename}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"adaptiveState"
>
<el-table-column></el-table-column>
</template>
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/runtime/domain/Connection.java
浏览文件 @
b7427ea0
...
...
@@ -280,7 +280,7 @@ public class Connection extends EntityMP implements Serializable {
@JsonProperty
(
"record2roleid"
)
private
String
record2roleid
;
/**
* 角色
(源)
* 角色
*/
@TableField
(
value
=
"record1rolename"
)
@JSONField
(
name
=
"record1rolename"
)
...
...
@@ -567,7 +567,7 @@ public class Connection extends EntityMP implements Serializable {
}
/**
* 设置 [角色
(源)
]
* 设置 [角色]
*/
public
void
setRecord1rolename
(
String
record1rolename
){
this
.
record1rolename
=
record1rolename
;
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/runtime/filter/ConnectionSearchContext.java
浏览文件 @
b7427ea0
...
...
@@ -83,14 +83,14 @@ public class ConnectionSearchContext extends QueryWrapperContext<Connection> {
this
.
getSearchCond
().
eq
(
"record2roleid"
,
n_record2roleid_eq
);
}
}
private
String
n_record1rolename_eq
;
//[角色
(源)
]
private
String
n_record1rolename_eq
;
//[角色]
public
void
setN_record1rolename_eq
(
String
n_record1rolename_eq
)
{
this
.
n_record1rolename_eq
=
n_record1rolename_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_record1rolename_eq
)){
this
.
getSearchCond
().
eq
(
"record1rolename"
,
n_record1rolename_eq
);
}
}
private
String
n_record1rolename_like
;
//[角色
(源)
]
private
String
n_record1rolename_like
;
//[角色]
public
void
setN_record1rolename_like
(
String
n_record1rolename_like
)
{
this
.
n_record1rolename_like
=
n_record1rolename_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_record1rolename_like
)){
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录