Commit db5bc9ac authored by Cheng C Yang's avatar Cheng C Yang

Orange Heap

parent d0664531
...@@ -597,12 +597,12 @@ ...@@ -597,12 +597,12 @@
caption: $translate.instant('PayableShareholderName'), caption: $translate.instant('PayableShareholderName'),
allowHeaderFiltering: false allowHeaderFiltering: false
}, },
// { {
// dataField: "payableShareholderIdNum", dataField: "payableShareholderIdNum",
// visible : false, visible : false,
// caption: $translate.instant('PayableShareholderIdNum'), caption: $translate.instant('PayableShareholderIdNum'),
// allowHeaderFiltering: false allowHeaderFiltering: false
// }, },
{ {
dataField: "payableCapitalContributionAmount", dataField: "payableCapitalContributionAmount",
caption: $translate.instant('PayableCapitalContributionAmount'), caption: $translate.instant('PayableCapitalContributionAmount'),
......
commonModule. commonModule.controller('editEquityChangeModalController', ['$scope', '$log', '$translate', 'uiGridConstants', '$location', '$timeout', '$interval', 'areaRegionService', '$filter', 'SweetAlert', 'regionService', 'orgService', 'enterpriseAccountService', 'organizationStructureService', 'businessUnitService', 'projectService', 'dimensionService', 'equityService',
controller('editEquityChangeModalController', ['$scope', '$log', '$translate', 'uiGridConstants', '$location', '$timeout', '$interval', 'areaRegionService', '$filter', 'SweetAlert', 'regionService', 'orgService', 'enterpriseAccountService', 'organizationStructureService', 'businessUnitService', 'projectService', 'dimensionService','equityService', function ($scope, $log, $translate, uiGridConstants, $location, $timeout, $interval, areaRegionService, $filter, SweetAlert, regionService, orgService, enterpriseAccountService, organizationStructureService, businessUnitService, projectService, dimensionService, equityService) {
function ($scope, $log, $translate, uiGridConstants, $location, $timeout, $interval, areaRegionService, $filter, SweetAlert, regionService, orgService, enterpriseAccountService, organizationStructureService, businessUnitService, projectService, dimensionService,equityService) {
var selectedModel = '.editEquityChangeControlPop'; //'#addOrgControlPop' + $scope.dimensionId; var selectedModel = '.editEquityChangeControlPop'; //'#addOrgControlPop' + $scope.dimensionId;
...@@ -21,12 +20,12 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', ' ...@@ -21,12 +20,12 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
}; };
$scope.nameKeyUp = function(){ $scope.nameKeyUp = function () {
var hasSpecialChar = window.PWC.hasSpecialChar($scope.editEquityModel.name); var hasSpecialChar = window.PWC.hasSpecialChar($scope.editEquityModel.name);
if (hasSpecialChar){ if (hasSpecialChar) {
$scope.editEquityModel.nameError = $translate.instant('SpecialChar'); $scope.editEquityModel.nameError = $translate.instant('SpecialChar');
} else{ } else {
$scope.editEquityModel.nameError = null; $scope.editEquityModel.nameError = null;
} }
}; };
...@@ -41,8 +40,8 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', ' ...@@ -41,8 +40,8 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
rows[i].data.organizationId = $scope.editOrgModel.id; rows[i].data.organizationId = $scope.editOrgModel.id;
updateEquity.push(rows[i].data); updateEquity.push(rows[i].data);
} }
var comment = $scope.editOrgModel.comment?$scope.editOrgModel.comment:''; var comment = $scope.editOrgModel.comment ? $scope.editOrgModel.comment : '';
equityService.change($scope.editOrgModel.name,comment,updateEquity).success(function (data) { equityService.change($scope.editOrgModel.name, comment, updateEquity).success(function (data) {
if (data && !data.result) { if (data && !data.result) {
//SweetAlert.info("Disable", orgId); //SweetAlert.info("Disable", orgId);
SweetAlert.warning($translate.instant(data.resultMsg)); SweetAlert.warning($translate.instant(data.resultMsg));
...@@ -70,25 +69,25 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', ' ...@@ -70,25 +69,25 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
}, },
columns: [ columns: [
{ {
dataField : "id", dataField: "id",
visible : false, visible: false,
allowHeaderFiltering:false allowHeaderFiltering: false
}, },
{ {
dataField: "eNum", dataField: "eNum",
visible : false, visible: false,
sortOrder: "asc", sortOrder: "asc",
allowHeaderFiltering:false allowHeaderFiltering: false
}, },
{ {
dataField: "organizationId", dataField: "organizationId",
visible : false, visible: false,
allowHeaderFiltering:false allowHeaderFiltering: false
}, },
{ {
dataField: "investorName", dataField: "investorName",
caption: $translate.instant('InvestorName'), caption: $translate.instant('InvestorName'),
allowHeaderFiltering:false allowHeaderFiltering: false
}, },
{ {
dataField: "investorEconomicNature", dataField: "investorEconomicNature",
...@@ -137,6 +136,7 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', ' ...@@ -137,6 +136,7 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
}, },
{ {
dataField: "payableShareholderIdNum", dataField: "payableShareholderIdNum",
visible: false,
caption: $translate.instant('PayableShareholderIdNum'), caption: $translate.instant('PayableShareholderIdNum'),
allowHeaderFiltering: false allowHeaderFiltering: false
}, },
...@@ -163,30 +163,29 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', ' ...@@ -163,30 +163,29 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
], ],
onContentReady: function (e) { onContentReady: function (e) {
$scope.equityListInstance = e.component; $scope.equityListInstance = e.component;
var totalCount =e.component.totalCount(); var totalCount = e.component.totalCount();
if(totalCount>0) if (totalCount > 0) {
{ $scope.totalCount = totalCount;
$scope.totalCount=totalCount;
} }
}, },
onEditingStart: function(e) { onEditingStart: function (e) {
}, },
onInitNewRow: function(e) { onInitNewRow: function (e) {
}, },
onRowInserting: function(e) { onRowInserting: function (e) {
SweetAlert.success($translate.instant('ClickEnsureTip')); SweetAlert.success($translate.instant('ClickEnsureTip'));
}, },
onRowInserted: function(e) { onRowInserted: function (e) {
}, },
onRowUpdating: function(e) { onRowUpdating: function (e) {
SweetAlert.success($translate.instant('ClickEnsureTip')); SweetAlert.success($translate.instant('ClickEnsureTip'));
}, },
onRowUpdated: function(e) { onRowUpdated: function (e) {
}, },
onRowRemoving: function(e) { onRowRemoving: function (e) {
SweetAlert.success($translate.instant('ClickEnsureTip')); SweetAlert.success($translate.instant('ClickEnsureTip'));
}, },
onRowRemoved: function(e) { onRowRemoved: function (e) {
}, },
loadPanel: { loadPanel: {
enabled: false enabled: false
...@@ -257,10 +256,10 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', ' ...@@ -257,10 +256,10 @@ controller('editEquityChangeModalController', ['$scope', '$log', '$translate', '
$(selectedModel).modal('show'); $(selectedModel).modal('show');
}; };
var refreshEquity = function (orgId){ var refreshEquity = function (orgId) {
equityService.getEquityList(orgId).success(function (equityData) { equityService.getEquityList(orgId).success(function (equityData) {
$scope.EquityList = equityData; $scope.EquityList = equityData;
if(equityData){ if (equityData) {
$scope.equityId = equityData[0].id; $scope.equityId = equityData[0].id;
} }
// $scope.equityInfoGridOptions.bindingOptions.dataSource.reload(); // $scope.equityInfoGridOptions.bindingOptions.dataSource.reload();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment