Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
cc4dccc8
Commit
cc4dccc8
authored
Jul 31, 2019
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed shareholder structure -- frank
parent
30a6d8cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
49 deletions
+103
-49
OrganizationHKController.java
...pwc/taxtech/atms/controller/OrganizationHKController.java
+1
-1
edit-organization-modal.ctrl.js
...s/edit-organization-modal/edit-organization-modal.ctrl.js
+100
-46
edit-organization-shareholder-modal.ctrl.js
...eholder-modal/edit-organization-shareholder-modal.ctrl.js
+2
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OrganizationHKController.java
View file @
cc4dccc8
...
...
@@ -171,7 +171,7 @@ public class OrganizationHKController {
return
organizationHKService
.
deleteAttachment
(
attachmentId
);
}
// @RequestMapping(value = "getShareholders",method = RequestMethod.GET)
// @RequestMapping(value = "getShareholders",method = RequestMethod.GET)
// public @ResponseBody OperationResultDto<OrgShareholdersDto> getShareholders(@RequestParam Long orgId){
// logger.info("GET /api/v1/orgHK/getShareholders");
// return organizationHKService.getShareholders(orgId);
...
...
atms-web/src/main/webapp/app/common/controls/edit-organization-modal/edit-organization-modal.ctrl.js
View file @
cc4dccc8
...
...
@@ -358,6 +358,12 @@
ownershipFormTypeList
:
constant
.
organizationHK
.
OwnershipForm
};
var
now
=
new
Date
();
orgHKService
.
getOrgsListInfo
().
success
(
function
(
res
)
{
if
(
res
&&
res
.
result
)
{
$scope
.
investmentEntityList
=
res
.
data
;
}
});
$scope
.
equityGridOptions
=
{
bindingOptions
:
{
dataSource
:
'shareholderDatasource'
...
...
@@ -368,56 +374,84 @@
pageSize
:
constant
.
page
.
logPageSize
},
pager
:
{
showPageSizeSelector
:
tru
e
,
showPageSizeSelector
:
fals
e
,
allowedPageSizes
:
constant
.
page
.
pageSizeArrary
,
showInfo
:
true
},
keyExpr
:
"id"
,
columns
:
[
{
dataField
:
"investmentEntity"
,
dataField
:
"investmentEntity
Id
"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'investmentEntity'
),
calculateDisplayValue
:
function
(
data
)
{
// var importType1 = _.find(constant.importType
List, function (item) {
// return item.value == data.importType
;
//
});
//
if (importType1) {
//
return importType1.name;
//
} else {
//
return '未知';
//
}
var
importType1
=
_
.
find
(
$scope
.
investmentEntity
List
,
function
(
item
)
{
return
item
.
id
===
data
.
investmentEntityId
;
});
if
(
importType1
)
{
return
importType1
.
name
;
}
else
{
return
'未知'
;
}
}
},
{
dataField
:
"ownershipForm"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'ownershipForm'
),
calculateDisplayValue
:
function
(
data
)
{
var
importType1
=
_
.
find
(
constant
.
organizationHK
.
OwnershipForm
,
function
(
item
)
{
return
item
.
id
===
data
.
ownershipForm
;
});
if
(
importType1
)
{
return
importType1
.
name
;
}
else
{
return
'未知'
;
}
}
},
{
dataField
:
"common
Or
Preferred"
,
dataField
:
"commonPreferred"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'commonOrPreferred'
),
calculateDisplayValue
:
function
(
data
)
{
// var importType1 = _.find(constant.importTypeList
, function (item) {
// return item.value == data.importType
;
//
});
//
if (importType1) {
//
return importType1.name;
//
} else {
//
return '未知';
//
}
var
importType1
=
_
.
find
(
constant
.
organizationHK
.
commonOrPreferredType
,
function
(
item
)
{
return
item
.
id
===
data
.
commonPreferred
;
});
if
(
importType1
)
{
return
importType1
.
name
;
}
else
{
return
'未知'
;
}
}
},
{
dataField
:
"classOfShares"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'classOfShares'
),
calculateDisplayValue
:
function
(
data
)
{
var
importType1
=
_
.
find
(
constant
.
organizationHK
.
classOfSharesType
,
function
(
item
)
{
return
item
.
id
===
data
.
classOfShares
;
});
if
(
importType1
)
{
return
importType1
.
name
;
}
else
{
return
'未知'
;
}
}
},
{
dataField
:
"votingPercentage"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'votingPercentage'
),
calculateDisplayValue
:
function
(
data
)
{
if
(
data
.
votingPercentage
)
{
return
data
.
votingPercentage
+
"%"
;
}
else
{
return
"0%"
;
}
}
},
{
dataField
:
"id"
,
...
...
@@ -425,9 +459,9 @@
caption
:
$translate
.
instant
(
'operation'
),
cellTemplate
:
function
(
container
,
options
)
{
try
{
$
(
'<button type="button" class="btn btn-in-grid" style="margin-top:
-11px;" onclick = "editShareholder(
\'
'
+
options
.
data
.
id
+
'
\'
)"><i class="material-icons middle" style="vertical-align: text-bottom">modify
</i>edit</button> '
)
$
(
'<button type="button" class="btn btn-in-grid" style="margin-top:
0px;" onclick = "editShareholder(
\'
'
+
options
.
data
.
id
+
'
\'
)"><i class="material-icons middle" style="vertical-align: text-bottom">edit
</i>edit</button> '
)
.
appendTo
(
container
);
$
(
'<button type="button" class="btn btn-in-grid" style="margin-top:
-11
px;" onclick = "deleteShareholder(
\'
'
+
options
.
data
.
id
+
'
\'
)"><i class="material-icons middle" style="vertical-align: text-bottom">delete</i>delete</button> '
)
$
(
'<button type="button" class="btn btn-in-grid" style="margin-top:
0
px;" onclick = "deleteShareholder(
\'
'
+
options
.
data
.
id
+
'
\'
)"><i class="material-icons middle" style="vertical-align: text-bottom">delete</i>delete</button> '
)
.
appendTo
(
container
);
}
catch
(
e
)
{
...
...
@@ -453,7 +487,7 @@
showRowLines
:
true
,
allowColumnReordering
:
true
,
showColumnLines
:
true
,
rowAlternationEnabled
:
true
,
//单双行颜色
//
rowAlternationEnabled: true, //单双行颜色
noDataText
:
$translate
.
instant
(
'NoDataText'
),
selectAllText
:
$translate
.
instant
(
'SelectAll'
),
searchPanel
:
{
...
...
@@ -482,7 +516,7 @@
pageSize
:
constant
.
page
.
logPageSize
},
pager
:
{
showPageSizeSelector
:
tru
e
,
showPageSizeSelector
:
fals
e
,
allowedPageSizes
:
constant
.
page
.
pageSizeArrary
,
showInfo
:
true
},
...
...
@@ -513,14 +547,34 @@
format
:
"yyyy-MM-dd"
},
{
dataField
:
"
e
xecutive"
,
dataField
:
"
isE
xecutive"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'executive'
),
calculateDisplayValue
:
function
(
data
)
{
var
importType1
=
_
.
find
(
constant
.
organizationHK
.
executiveType
,
function
(
item
)
{
return
item
.
id
===
data
.
isExecutive
;
});
if
(
importType1
)
{
return
importType1
.
name
;
}
else
{
return
'未知'
;
}
}
},
{
dataField
:
"otherRoles"
,
allowHeaderFiltering
:
false
,
caption
:
$translate
.
instant
(
'otherRoles'
),
calculateDisplayValue
:
function
(
data
)
{
var
importType1
=
_
.
find
(
constant
.
organizationHK
.
OtherRoles
,
function
(
item
)
{
return
item
.
id
===
data
.
otherRoles
;
});
if
(
importType1
)
{
return
importType1
.
name
;
}
else
{
return
'未知'
;
}
}
},
{
dataField
:
"id"
,
...
...
@@ -528,9 +582,9 @@
caption
:
$translate
.
instant
(
'operation'
),
cellTemplate
:
function
(
container
,
options
)
{
try
{
$
(
'<button type="button" class="btn btn-in-grid" style="margin-top:
-11px;" onclick = "editDirector(
\'
'
+
options
.
data
.
id
+
'
\'
)"><i class="material-icons middle" style="vertical-align: text-bottom">modify
</i>edit</button> '
)
$
(
'<button type="button" class="btn btn-in-grid" style="margin-top:
0px;" onclick = "editDirector(
\'
'
+
options
.
data
.
id
+
'
\'
)"><i class="material-icons middle" style="vertical-align: text-bottom">edit
</i>edit</button> '
)
.
appendTo
(
container
);
$
(
'<button type="button" class="btn btn-in-grid" style="margin-top:
-11
px;" onclick = "deleteDirector(
\'
'
+
options
.
data
.
id
+
'
\'
)"><i class="material-icons middle" style="vertical-align: text-bottom">delete</i>delete</button> '
)
$
(
'<button type="button" class="btn btn-in-grid" style="margin-top:
0
px;" onclick = "deleteDirector(
\'
'
+
options
.
data
.
id
+
'
\'
)"><i class="material-icons middle" style="vertical-align: text-bottom">delete</i>delete</button> '
)
.
appendTo
(
container
);
}
catch
(
e
)
{
...
...
@@ -556,7 +610,7 @@
showRowLines
:
true
,
allowColumnReordering
:
true
,
showColumnLines
:
true
,
rowAlternationEnabled
:
true
,
//单双行颜色
//
rowAlternationEnabled: true, //单双行颜色
noDataText
:
$translate
.
instant
(
'NoDataText'
),
selectAllText
:
$translate
.
instant
(
'SelectAll'
),
searchPanel
:
{
...
...
@@ -829,24 +883,24 @@
};
$scope
.
saveShareholder
=
function
(
shareholderEntity
)
{
var
shareholder
=
_
.
fi
lter
(
$scope
.
shareholderDatasource
,
function
(
item
)
{
return
item
.
i
d
===
shareholderEntity
.
i
d
;
var
shareholder
=
_
.
fi
nd
(
$scope
.
shareholderDatasource
,
function
(
item
)
{
return
item
.
i
nvestmentEntityId
===
shareholderEntity
.
investmentEntityI
d
;
});
if
(
shareholder
&&
shareholder
.
length
>
0
)
{
$scope
.
shareholderDatasource
=
_
.
without
(
$scope
.
shareholderDatasource
,
shareholder
[
0
])
;
if
(
shareholder
)
{
return
"duplicated shareholder added, please change to another one."
;
}
$scope
.
shareholderDatasource
.
push
(
shareholderEntity
);
};
window
.
editShareholder
=
function
(
id
)
{
console
.
log
(
"editShareholder "
+
id
);
var
shareholder
=
_
.
fi
lter
(
$scope
.
shareholderDatasource
,
function
(
item
)
{
var
shareholder
=
_
.
fi
nd
(
$scope
.
shareholderDatasource
,
function
(
item
)
{
return
item
.
id
===
id
;
});
if
(
shareholder
&&
shareholder
.
length
>
0
)
{
$scope
.
gModel
.
editShareholderModel
=
shareholder
[
0
]
;
if
(
shareholder
)
{
$scope
.
gModel
.
editShareholderModel
=
shareholder
;
$scope
.
isShowShareholderModal
=
true
;
}
};
...
...
@@ -854,11 +908,11 @@
window
.
deleteShareholder
=
function
(
id
)
{
console
.
log
(
"deleteShareholder "
+
id
);
var
shareholder
=
_
.
fi
lter
(
$scope
.
shareholderDatasource
,
function
(
item
)
{
var
shareholder
=
_
.
fi
nd
(
$scope
.
shareholderDatasource
,
function
(
item
)
{
return
item
.
id
===
id
;
});
if
(
shareholder
&&
shareholder
.
length
>
0
)
{
$scope
.
shareholderDatasource
=
_
.
without
(
$scope
.
shareholderDatasource
,
shareholder
[
0
]
);
if
(
shareholder
)
{
$scope
.
shareholderDatasource
=
_
.
without
(
$scope
.
shareholderDatasource
,
shareholder
);
}
};
...
...
@@ -867,35 +921,35 @@
};
$scope
.
saveDirector
=
function
(
directorEntity
)
{
var
director
=
_
.
fi
lter
(
$scope
.
directorDatasource
,
function
(
item
)
{
var
director
=
_
.
fi
nd
(
$scope
.
directorDatasource
,
function
(
item
)
{
return
item
.
id
===
directorEntity
.
id
;
});
if
(
director
&&
director
.
length
>
0
)
{
$scope
.
directorDatasource
=
_
.
without
(
$scope
.
directorDatasource
,
director
[
0
]
);
if
(
director
)
{
$scope
.
directorDatasource
=
_
.
without
(
$scope
.
directorDatasource
,
director
);
}
$scope
.
directorDatasource
.
push
(
directorEntity
);
};
window
.
editDirector
=
function
(
id
)
{
console
.
log
(
"editDirector "
+
id
);
var
director
=
_
.
fi
lter
(
$scope
.
directorDatasource
,
function
(
item
)
{
var
director
=
_
.
fi
nd
(
$scope
.
directorDatasource
,
function
(
item
)
{
return
item
.
id
===
id
;
});
if
(
director
&&
director
.
length
>
0
)
{
$scope
.
gModel
.
editDirectorModel
=
director
[
0
]
;
if
(
director
)
{
$scope
.
gModel
.
editDirectorModel
=
director
;
$scope
.
isShowDirectorModal
=
true
;
}
};
window
.
deleteDirector
=
function
(
id
)
{
console
.
log
(
"deleteDirector "
+
id
);
var
director
=
_
.
fi
lter
(
$scope
.
directorDatasource
,
function
(
item
)
{
var
director
=
_
.
fi
nd
(
$scope
.
directorDatasource
,
function
(
item
)
{
return
item
.
id
===
id
;
});
if
(
director
&&
director
.
length
>
0
)
{
$scope
.
directorDatasource
=
_
.
without
(
$scope
.
directorDatasource
,
director
[
0
]
);
if
(
director
)
{
$scope
.
directorDatasource
=
_
.
without
(
$scope
.
directorDatasource
,
director
);
}
};
...
...
atms-web/src/main/webapp/app/common/controls/edit-organization-shareholder-modal/edit-organization-shareholder-modal.ctrl.js
View file @
cc4dccc8
...
...
@@ -192,8 +192,8 @@ commonModule.controller('editOrganizationShareholderModalController', ['$scope',
$scope
.
dropdownDatasource
=
{
// investmentEntityTypeList: [],
ownershipFormTypeList
:
constant
.
organizationHK
.
OwnershipForm
,
commonOrPreferredTypeList
:
[{
id
:
"1"
,
name
:
'Commmon'
},
{
id
:
"2"
,
name
:
'Preferred'
}]
,
classOfSharesTypeList
:
[{
id
:
"1"
,
name
:
'A'
},
{
id
:
"2"
,
name
:
'B'
}]
commonOrPreferredTypeList
:
constant
.
organizationHK
.
commonOrPreferredType
,
classOfSharesTypeList
:
constant
.
organizationHK
.
classOfSharesType
};
orgHKService
.
getOrgsListInfo
().
success
(
function
(
res
)
{
if
(
res
&&
res
.
result
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment