Commit 3e9df0b2 authored by zhkwei's avatar zhkwei

Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql

parents b92be470 8aed3bca
...@@ -2070,16 +2070,17 @@ public class ReportServiceImpl extends BaseService { ...@@ -2070,16 +2070,17 @@ public class ReportServiceImpl extends BaseService {
PeriodDataSource dataSourceModel = null; PeriodDataSource dataSourceModel = null;
if (dataSourceExtendDtos.size() > 0) { if (dataSourceExtendDtos.size() > 0) {
dataSourceModel = dataSourceExtendDtos.get(0).getDataSource(); dataSourceModel = dataSourceExtendDtos.get(0).getDataSource();
dataSourceModel= periodDataSourceMapper.selectByPrimaryKey(dataSourceModel.getId());
if (StringUtils.isBlank(data.getKeyinData())) if (StringUtils.isBlank(data.getKeyinData()))
updateCellValueForDataSourceChange(dataSourceModel, data.getAmount()); updateCellValueForDataSourceChange(dataSourceModel, data.getAmount());
originalAmount = dataSourceModel.getAmount() != null ? dataSourceModel.getAmount() : new BigDecimal("0"); originalAmount = dataSourceModel.getAmount() != null ? dataSourceModel.getAmount() : new BigDecimal("0");
dataSourceModel.setName(data.getName()); dataSourceModel.setName(data.getName());
dataSourceModel.setDescription(data.getDescription()); dataSourceModel.setDescription(data.getDescription());
dataSourceModel.setAmount(data.getAmount()); dataSourceModel.setAmount(data.getAmount()==null?new BigDecimal(0):data.getAmount());
dataSourceModel.setUpdateBy("Admin"); dataSourceModel.setUpdateBy("Admin");
dataSourceModel.setKeyinData(data.getKeyinData()); dataSourceModel.setKeyinData(data.getKeyinData());
dataSourceModel.setUpdateTime(new Date()); dataSourceModel.setUpdateTime(new Date());
periodDataSourceMapper.updateByPrimaryKeySelective(dataSourceModel); periodDataSourceMapper.updateByPrimaryKey(dataSourceModel);
} else { } else {
dataSourceModel = new PeriodDataSource(); dataSourceModel = new PeriodDataSource();
Long cellDataSourceId = distributedIdService.nextId(); Long cellDataSourceId = distributedIdService.nextId();
......
basicDataModule basicDataModule
.controller('EnterpriseAccountManageController', ['$scope', '$log', 'SweetAlert', 'keywordmapService', 'uiGridConstants', '$translate', 'enterpriseAccountService', 'Upload', 'apiInterceptor', 'templateFormulaService', 'stdAccountService', '$interval', '$timeout', '$q', 'region', .controller('EnterpriseAccountManageController', ['$scope', '$location', '$log', 'SweetAlert', 'keywordmapService', 'uiGridConstants', '$translate', 'enterpriseAccountService', 'Upload', 'apiInterceptor', 'templateFormulaService', 'stdAccountService', '$interval', '$timeout', '$q', 'region',
function ($scope, $log, SweetAlert, keywordmapService, uiGridConstants, $translate, enterpriseAccountService, Upload, apiInterceptor, templateFormulaService, stdAccountService, $interval, $timeout, $q, region) { function ($scope, $location, $log, SweetAlert, keywordmapService, uiGridConstants, $translate, enterpriseAccountService, Upload, apiInterceptor, templateFormulaService, stdAccountService, $interval, $timeout, $q, region) {
'use strict'; 'use strict';
...@@ -270,7 +270,6 @@ ...@@ -270,7 +270,6 @@
}; };
$scope.changeEnterpriseAccountSet = function () { $scope.changeEnterpriseAccountSet = function () {
if (!$scope.enterpriseAccountSetSelectID) { if (!$scope.enterpriseAccountSetSelectID) {
return; return;
...@@ -283,6 +282,15 @@ ...@@ -283,6 +282,15 @@
loadEnterpriseAccountSet(); loadEnterpriseAccountSet();
}; };
var jumpToAccount = function () {
// TODO
if($scope.jumpingEnterpriseAccountSetID){
$scope.enterpriseAccountSetSelectID = $scope.jumpingEnterpriseAccountSetID;
$scope.changeEnterpriseAccountSet();
}
};
var loadEnterpriseAccountSet = function () { var loadEnterpriseAccountSet = function () {
enterpriseAccountService.getEnterpriseAccountSet($scope.enterpriseAccountSetSelectID).success(function (data) { enterpriseAccountService.getEnterpriseAccountSet($scope.enterpriseAccountSetSelectID).success(function (data) {
...@@ -453,7 +461,8 @@ ...@@ -453,7 +461,8 @@
var template = $translate.instant(data.resultMsg); var template = $translate.instant(data.resultMsg);
SweetAlert.warning(template); SweetAlert.warning(template);
return; return;
}; }
;
$scope.lastCode = $scope.editModel.code; $scope.lastCode = $scope.editModel.code;
...@@ -469,7 +478,8 @@ ...@@ -469,7 +478,8 @@
SweetAlert.warning(template); SweetAlert.warning(template);
return; return;
}; }
;
$scope.lastCode = $scope.editModel.code; $scope.lastCode = $scope.editModel.code;
SweetAlert.success($translate.instant('SaveSuccess')); SweetAlert.success($translate.instant('SaveSuccess'));
...@@ -1374,7 +1384,8 @@ ...@@ -1374,7 +1384,8 @@
$scope.deleteEnterpriseAccountSetOrg = function (x) { $scope.deleteEnterpriseAccountSetOrg = function (x) {
if (x) { if (x) {
$scope.editModel.enterpriseAccountSetOrgList.splice(jQuery.inArray(x, $scope.editModel.enterpriseAccountSetOrgList), 1); $scope.editModel.enterpriseAccountSetOrgList.splice(jQuery.inArray(x, $scope.editModel.enterpriseAccountSetOrgList), 1);
}; }
;
}; };
var getEnterpriseAccountSetOrgListUI = function () { var getEnterpriseAccountSetOrgListUI = function () {
...@@ -1414,7 +1425,8 @@ ...@@ -1414,7 +1425,8 @@
} }
enterpriseAccountSetOrgList.push(item); enterpriseAccountSetOrgList.push(item);
}; }
;
} }
$scope.editModel.saveOrgList = enterpriseAccountSetOrgList; $scope.editModel.saveOrgList = enterpriseAccountSetOrgList;
...@@ -1737,10 +1749,10 @@ ...@@ -1737,10 +1749,10 @@
}, { }, {
id: -1, id: -1,
name: $translate.instant('StandardAccountCredit') name: $translate.instant('StandardAccountCredit')
}, ]; },];
$scope.acctPropList = [ $scope.acctPropList = [
{ id: -1, name: '' }, {id: -1, name: ''},
{ {
id: 1, id: 1,
name: $translate.instant('StandardAccountAcctPropAsset') name: $translate.instant('StandardAccountAcctPropAsset')
...@@ -1872,6 +1884,11 @@ ...@@ -1872,6 +1884,11 @@
$scope.isLoadComplete = true; $scope.isLoadComplete = true;
}, 500); }, 500);
$timeout(function () {
jumpToAccount();
}, 600);
}; };
......
infrastructureModule infrastructureModule
.controller('OrganizationManageController', ['$scope', '$log', 'orgService', '$interval', 'uiGridTreeViewConstants', 'uiGridConstants', 'SweetAlert', 'projectService', '$translate', '$timeout', 'organizationStructureService', 'areaRegionService', 'apiInterceptor', 'enterpriseAccountService', 'businessUnitService', 'userService', 'roleService', '$q', 'permissionService', 'dimensionService', 'region', 'equityService', 'orgExtraService', .controller('OrganizationManageController', ['$scope', '$location', '$log', 'orgService', '$interval', 'uiGridTreeViewConstants', 'uiGridConstants', 'SweetAlert', 'projectService', '$translate', '$timeout', 'organizationStructureService', 'areaRegionService', 'apiInterceptor', 'enterpriseAccountService', 'businessUnitService', 'userService', 'roleService', '$q', 'permissionService', 'dimensionService', 'region', 'equityService', 'orgExtraService',
function ($scope, $log, orgService, $interval, uiGridTreeViewConstants, uiGridConstants, SweetAlert, projectService, $translate, $timeout, organizationStructureService, areaRegionService, apiInterceptor, enterpriseAccountService, businessUnitService, userService, roleService, $q, permissionService, dimensionService, region, equityService, orgExtraService) { function ($scope, $location, $log, orgService, $interval, uiGridTreeViewConstants, uiGridConstants, SweetAlert, projectService, $translate, $timeout, organizationStructureService, areaRegionService, apiInterceptor, enterpriseAccountService, businessUnitService, userService, roleService, $q, permissionService, dimensionService, region, equityService, orgExtraService) {
'use strict'; 'use strict';
$scope.expanded = false; $scope.expanded = false;
...@@ -2388,6 +2388,15 @@ ...@@ -2388,6 +2388,15 @@
}); });
}; };
// TODO 跳转到账套界面
$scope.jumpToAccount = function (enterpriseAccountSetID) {
// $location.path("/financialData/enterpriseAccountManage?enterpriseAccountSetID=" + enterpriseAccountSetID);
$location.path("/financialData/enterpriseAccountManage").search({
jumpingEnterpriseAccountSetID: enterpriseAccountSetID
});
};
// 选中机构 // 选中机构
$scope.selectOrganization = function (branch) { $scope.selectOrganization = function (branch) {
......
...@@ -1438,7 +1438,7 @@ ...@@ -1438,7 +1438,7 @@
<!-- 账套名称 --> <!-- 账套名称 -->
<span class="block-span" <span class="block-span"
ng-show="!selectCompany.isUpdate">{{set.enterpriseAccountSetName}}</span> ng-show="!selectCompany.isUpdate" ng-click="jumpToAccount(set.enterpriseAccountSetID)">{{set.enterpriseAccountSetName}}</span>
<select ng-show="selectCompany.isUpdate" <select ng-show="selectCompany.isUpdate"
class="form-control account-set-select" class="form-control account-set-select"
......
...@@ -202,6 +202,15 @@ ...@@ -202,6 +202,15 @@
$scope.hasTaxReturnPermission = data[reportTemp.taxReturnCode]; $scope.hasTaxReturnPermission = data[reportTemp.taxReturnCode];
$scope.hasQueryTaxReturnPermission = data[reportTemp.taxReturn.queryCode]; $scope.hasQueryTaxReturnPermission = data[reportTemp.taxReturn.queryCode];
$scope.hasEditTaxReturnPermission = data[reportTemp.taxReturn.editCode]; $scope.hasEditTaxReturnPermission = data[reportTemp.taxReturn.editCode];
// 将查看纳税申报表权限都赋上
$scope.hasBsPlPermission = true;
$scope.hasBsPermission = true;
$scope.hasPlPermission = true;
$scope.hasTaxReturnPermission = true;
$scope.hasQueryTaxReturnPermission = true;
$scope.hasEditTaxReturnPermission = true;
}); });
}; };
var toggleGroup = function (group) { var toggleGroup = function (group) {
......
...@@ -204,9 +204,7 @@ ...@@ -204,9 +204,7 @@
$scope.hasQueryTaxReturnPermission = data[reportTemp.taxReturn.queryCode]; $scope.hasQueryTaxReturnPermission = data[reportTemp.taxReturn.queryCode];
$scope.hasEditTaxReturnPermission = data[reportTemp.taxReturn.editCode]; $scope.hasEditTaxReturnPermission = data[reportTemp.taxReturn.editCode];
// 将查看纳税申报表权限都赋上
// TODO 临时代码,待删除
$scope.hasBsPlPermission = true; $scope.hasBsPlPermission = true;
$scope.hasBsPermission = true; $scope.hasBsPermission = true;
$scope.hasPlPermission = true; $scope.hasPlPermission = true;
...@@ -214,7 +212,6 @@ ...@@ -214,7 +212,6 @@
$scope.hasQueryTaxReturnPermission = true; $scope.hasQueryTaxReturnPermission = true;
$scope.hasEditTaxReturnPermission = true; $scope.hasEditTaxReturnPermission = true;
}); });
}; };
var toggleGroup = function (group) { var toggleGroup = function (group) {
......
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