Commit e68f97ab authored by kevin's avatar kevin

Merge branch 'dev_mysql' of http://code.tech.tax.asia.pwcinternal.com/root/atms into dev_mysql

# Conflicts:
#	atms-web/src/main/webapp/app/vat/reduction/vat-caculate-data/vat-caculate-data.ctrl.js
parent 773b16bb
......@@ -10,13 +10,18 @@ import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* author kevin
* target : Solve date conversion issues
* version 1.0
*/
public class CustomDateSerializer extends JsonSerializer<Date> {
@Override
public void serialize(Date value, JsonGenerator jgen, SerializerProvider arg2)
throws IOException, JsonProcessingException {
// TODO Auto-generated method stub
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String formattedDate = formatter.format(value);
jgen.writeString(formattedDate);
......
......@@ -92,4 +92,7 @@ public class BeanUtil {
return new String(ch);
}
}
package pwc.taxtech.atms.common.util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;
import pwc.taxtech.atms.entity.Organization;
import pwc.taxtech.atms.entity.Project;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
/**
* author kevin
* version 1.0
* 封装一些简单的数据处理
*/
@Component
public class DataUtil {
@Autowired
private JdbcTemplate jdbcTemplate;
//通过projectId查询project信息
public Map<String, Object> getProjectById(String projectId){
return jdbcTemplate.queryForMap("select * from project where id = ?", projectId);
}
}
......@@ -128,4 +128,30 @@ public final class Constant {
public static String DECIMAL_FORMAT = "#,##0.00";
public static String ZERO_STR = "0";
public static class ReportDataValidateLog{
private String segment3 = null;
private String segment5 = null;
private String segment6 = null;
private static boolean status = true;
public String getResult(boolean status){
if(status){
return "校验结果失败: 科目代码: " + segment3 + ";利润中心:" + segment5 + "; 产品编号: " + segment6;
}
return "校验结果成功: 科目代码: " + segment3 + ";利润中心:" + segment5 + "; 产品编号: " + segment6;
}
public String getResult(){
return getResult(status);
}
public ReportDataValidateLog(String segment3, String segment5, String segment6){
this.segment3 = segment3;
this.segment5 = segment5;
this.segment6 = segment6;
}
}
}
\ No newline at end of file
package pwc.taxtech.atms.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import pwc.taxtech.atms.dto.input.CamelPagingResultDto;
import pwc.taxtech.atms.dto.previewData.CitSalaryDataDto;
import pwc.taxtech.atms.entity.CitSalaryAdvance;
import pwc.taxtech.atms.service.impl.CitPreviewDataServiceImpl;
@Controller
@RequestMapping("api/v1/citPreviewDataController")
public class CitPreviewDataController {
@Autowired
private CitPreviewDataServiceImpl citPreviewDataService;
@RequestMapping("getSalaryAdvaceListData")
@ResponseBody
public CamelPagingResultDto<CitSalaryAdvance> getSalaryAdvaceListData(@RequestBody CitSalaryDataDto citSalaryDataDto){
return new CamelPagingResultDto<>(citPreviewDataService.getCitSalaryAdvanceDataList(citSalaryDataDto));
}
}
......@@ -58,7 +58,7 @@ public class OperationLogController {
public Boolean addOperationLog(VatOperationLog vatOperationLog) {
OperationLogDto operationLogDto = new OperationLogDto();
CommonUtils.copyProperties(vatOperationLog, operationLogDto);
// operationLogService.addOperationLog(operationLogDto);
operationLogService.addOperationLog(operationLogDto);
return true;
}
}
package pwc.taxtech.atms.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;
import pwc.taxtech.atms.common.CustomDateSerializer;
import pwc.taxtech.atms.entity.BaseEntity;
......
......@@ -17,6 +17,33 @@ public class QueryOperateParamDto {
private Integer logType;
private PagingDto pageInfo;
private String QueryValue;
private String Period;
private String ModuleID;
public String getQueryValue() {
return QueryValue;
}
public void setQueryValue(String queryValue) {
QueryValue = queryValue;
}
public String getPeriod() {
return Period;
}
public void setPeriod(String period) {
Period = period;
}
public String getModuleID() {
return ModuleID;
}
public void setModuleID(String moduleID) {
ModuleID = moduleID;
}
public String getSearchText() {
return searchText;
......
......@@ -17,6 +17,7 @@ public class RevenueConfResult extends RevenueConfig {
}
public String getRevenueTypeStr() {
return RevenueConfEnum.RevenueType.MAPPING.get(this.getRevenueType());
}
......
package pwc.taxtech.atms.service.impl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.dao.CitSalaryAdvanceMapper;
import pwc.taxtech.atms.dto.input.CamelPagingResultDto;
import pwc.taxtech.atms.dto.previewData.CitSalaryDataDto;
import pwc.taxtech.atms.dto.vatdto.dd.BalanceSheetDto;
import pwc.taxtech.atms.entity.CitSalaryAdvance;
import pwc.taxtech.atms.entity.CitSalaryAdvanceExample;
import java.util.List;
@Service
public class CitPreviewDataServiceImpl {
@Autowired
private CitSalaryAdvanceMapper citSalaryAdvanceMapper;
public PageInfo<CitSalaryAdvance> getCitSalaryAdvanceDataList(CitSalaryDataDto citSalaryDataDto ){
CitSalaryAdvanceExample example = new CitSalaryAdvanceExample();
CitSalaryAdvanceExample.Criteria criteria = example.createCriteria();
if(!"".equals(citSalaryDataDto.getPoSubjectName()) && citSalaryDataDto.getPoSubjectName() != null){//根据PO主体名称进行查询
criteria.andPoSubjectNameEqualTo(citSalaryDataDto.getPoSubjectName());
}
Page page = PageHelper.startPage(citSalaryDataDto.getPageInfo().getPageIndex(), citSalaryDataDto.getPageInfo().getPageSize());
List<CitSalaryAdvance> citSalaryAdvances = citSalaryAdvanceMapper.selectByExample(example);
PageInfo<CitSalaryAdvance> pageInfo =new PageInfo<CitSalaryAdvance>(citSalaryAdvances);
pageInfo.setTotal(page.getTotal());
return pageInfo;
}
}
......@@ -104,7 +104,7 @@ public class OperationLogServiceImpl extends AbstractService {
public PagingResultDto<OperationLogDto> getOperationLogList(QueryOperateParamDto queryOperateParamDto) {
logger.debug("OperationLogService getOperationLogList");
// validate
Assert.hasText(queryOperateParamDto.getModuleName(), "Empty moduleName");
// Assert.hasText(queryOperateParamDto.getModuleName(), "Empty moduleName");
final PagingDto pageInfo = queryOperateParamDto.getPageInfo();
......
......@@ -14,13 +14,12 @@ import org.apache.poi.ss.usermodel.Workbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;
import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.common.util.DateUtils;
import pwc.taxtech.atms.common.util.FileUploadUtil;
import pwc.taxtech.atms.common.util.MyAsserts;
import pwc.taxtech.atms.common.util.SpringContextUtil;
import pwc.taxtech.atms.common.util.*;
import pwc.taxtech.atms.constant.Constant;
import pwc.taxtech.atms.constant.enums.*;
import pwc.taxtech.atms.dao.*;
......@@ -553,7 +552,6 @@ public class ReportServiceImpl extends BaseService {
private JournalEntryMapper journalEntryMapper;
/* @Autowired
private CitJour*/
//数据校验
private void DataValidation(Integer periodParam, String projectId, PeriodJob genJob) {
setStatus(genJob,"DA004", STATUS_BEGIN);
......@@ -590,20 +588,62 @@ public class ReportServiceImpl extends BaseService {
}else{
map2.put("period", "" + periodParam);
}
Map<String, Object> map = new HashMap<>();
map.put("period", periodParam);
map.put("projectId", projectId);
Map<String, Object> mapProject = new DataUtil().getProjectById(projectId);
map.put("companyCode", mapProject.get("code"));
map.put("companyName", mapProject.get("name"));
List<JournalEntry> journalEntries = journalEntryMapper.selectNowAdjustData(map2);
for(int i =0; i< adjustmentTables.size(); i++){
for(int j =0; j< journalEntries.size(); j++){
if(journalEntries.get(j).getSegment3().equals(adjustmentTables.get(j).getSegment3()) &&
journalEntries.get(j).getSegment5().equals(adjustmentTables.get(j).getSegment5())&&
journalEntries.get(j).getSegment6().equals(adjustmentTables.get(j).getSegment6()) && journalEntries.get(j).getPeriodJrMinDr() != adjustmentTables.get(j).getPeriodDrMixCr() ){
JournalEntry journalEntry = journalEntries.get(j);
AdjustmentTable adjustmentTable = adjustmentTables.get(j);
if(journalEntry.getSegment3().equals(adjustmentTable.getSegment3()) &&
journalEntry.getSegment5().equals(adjustmentTable.getSegment5())&&
journalEntry.getSegment6().equals(adjustmentTable.getSegment6()) && journalEntry.getPeriodJrMinDr() != adjustmentTable.getPeriodDrMixCr() ){
setStatus(genJob,STATUS_ERROR );
Constant.ReportDataValidateLog reportDataValidateLog = new Constant.ReportDataValidateLog(journalEntries.get(j).getSegment3(), journalEntries.get(j).getSegment5(), journalEntries.get(j).getSegment6());
//记录校验结果
//
map.put("result", reportDataValidateLog.getResult(false));
map.put("validateResult", "error");
map.put("tmsPeriod", journalEntry.getTmsPeriod());
map.put("organizationId", journalEntry.getOrganizationId());
insertDataValidateResult(map);
periodJobMapper.updateByPrimaryKey(genJob);
return;
}
}
}
setStatus(genJob, STATUS_END);
map.put("validateResult", "success");
map.put("result", "");
map.put("tmsPeriod", journalEntries.get(0).getTmsPeriod());
map.put("organizationId", journalEntries.get(0).getOrganizationId());
insertDataValidateResult(map);
periodJobMapper.updateByPrimaryKey(genJob);
}
@Autowired
private DataValidateLogMapper dataValidateLogMapper;
public void insertDataValidateResult(Map map){
DataValidateLog dataValidateLog = new DataValidateLog();
dataValidateLog.setCreateTime(new Date());
dataValidateLog.setPeriod((String)map.get("period"));
dataValidateLog.setProjectId((String)map.get("projectId"));
dataValidateLog.setValidateResult((String)map.get("validateResult"));
dataValidateLog.setResult((String)map.get("result"));
dataValidateLog.setOrganizationId((String)map.get("organizationId"));
dataValidateLog.setCompanyCode((String)map.get("companyCode"));
dataValidateLog.setCompanyName((String)map.get("companyName"));
dataValidateLog.setTmsPeriod(Long.parseLong(map.get("tmsPeriod").toString()));
dataValidateLogMapper.insert(dataValidateLog);
}
public List<CellTemplateReferenceDto> getTemplateReferences(int period) {
return new ArrayList<>();
......
package pwc.taxtech.atms.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
......@@ -470,6 +472,8 @@ public class CitSalaryAdvance extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@JsonSerialize(using = CustomDateSerializer.class)
public Date getCreateTime() {
return createTime;
}
......@@ -494,6 +498,7 @@ public class CitSalaryAdvance extends BaseEntity implements Serializable {
*
* @mbg.generated
*/
@JsonSerialize(using = CustomDateSerializer.class)
public Date getUpdateTime() {
return updateTime;
}
......
package pwc.taxtech.atms.entity;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class CustomDateSerializer extends JsonSerializer<Date> {
@Override
public void serialize(Date value, JsonGenerator jgen, SerializerProvider arg2)
throws IOException, JsonProcessingException {
// TODO Auto-generated method stub
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String formattedDate = formatter.format(value);
jgen.writeString(formattedDate);
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pwc.taxtech.atms.vat.dao.DataValidateLogMapper">
</mapper>
\ No newline at end of file
api.url=${api.url}
api.url=${api.url}
cookie.maxAgeSeconds=${cookie.maxAgeSeconds}
......
......@@ -250,14 +250,13 @@
//uses to remove expired localstorage cache after login successfully
var removeExpiredLocalCache = function (data, returnUrl) {
$.ajax({
type: 'GET',
url: data.ApiHost + '/api/v1/cache/getallcache',
url: data.ApiHost + '/api/v1/cache/' +
'getallcache',
data: {},
contentType: "application/json; charset=utf-8",
success: function (cachelist) {
cachelist.push({
cacheKey: '/api/v1/user/getUserPermission',
cacheTime: '11',
......
......@@ -1117,6 +1117,17 @@
"bsGenerateVer": "试算平衡生成版",
"bsMappingVer": "试算平衡Mapping版",
"salaryAdvance": "预提重分类",
"eamDisposal": "EAM资产处置金额记录表"
"eamDisposal": "EAM资产处置金额记录表",
"organizationId" : "机构编号",
"source" : "来源",
"poSubjectName" : "PO主体名称",
"advancePrice" : "预提金额",
"approvedPrice": "已批准标准发票金额",
"createBy": "创建人",
"createTime" : "创建时间",
"citSalaryAdvance" : "预提重分类数据源"
}
\ No newline at end of file
citModule.directive('citPreviewAssetList', ['$log', '$translate',
function ($log, $translate) {
'use strict';
$log.debug('citPreviewAssetList.ctor()...');
return {
restrict: 'E',
templateUrl: '/app/cit/preview/cit-preview-asset-list/cit-preview-asset-list.html' + '?_=' + Math.random(),
scope: {},
controller: 'CitPreviewAssetListController',
link: function (scope, element) {
}
};
}
]);
\ No newline at end of file
@import "~/app-resources/less/theme.less";
.cit-import-asset-list {
padding-left: 20px;
height: 96%;
.sweet-alert {
background-color: #eeeeee;
}
.nav-wrapper {
padding-bottom: 10px;
border-bottom: 1px solid #DBD8D3;
.nav-header {
height: 54px;
line-height: 54px;
font-family: "Microsoft YaHei Bold", "Microsoft YaHei Regular", "Microsoft YaHei";
font-weight: 700;
font-style: normal;
font-size: 15px;
color: #333;
}
.nav-tab {
/*display: inline-block;*/
span {
display: inline-block;
height: 34px;
width: 80px;
text-align: center;
line-height: 34px;
padding: 0 10px;
background-color: #B90808;
color: #FFF;
font-family: "Microsoft YaHei";
font-weight: 400;
font-style: normal;
font-size: 14px;
cursor: pointer;
}
.active {
background-color: #F91000;
}
}
}
.alert-warning {
background-color: #FDE2DE;
cursor: pointer;
}
.alert {
color: #CF2D1B;
font-weight: bold;
display: inline-block;
padding: 5px;
float: left;
margin: -45px 0 0 350px;
i {
font-size: 20px;
vertical-align: middle;
margin-right: 5px;
}
}
.dropdown-common() {
display: inline-block;
.select-button {
background-color: #F5F5F5;
padding: 6px 0;
width: 110px;
}
.caret {
margin-top: 8px;
}
.dropdown-menu {
min-width: 140px;
max-height: 400px;
overflow-y: scroll;
li {
text-align: left;
min-height: 0px;
height: 30px;
color: #000;
font-weight: normal;
&:hover {
background-color: #F91000;
color: #FFF;
cursor: pointer;
}
i {
float: right;
font-size: 15px;
}
}
}
}
#tab_total {
display: block;
height: calc(~'100% - 80px');
position: relative;
.operation-wrapper {
margin: -40px 15px 0 0;
span {
cursor: pointer;
}
}
.import-wrapper {
margin-top: 10px;
span {
margin-left: 10px;
color: #333;
font-family: "Microsoft YaHei";
font-style: normal;
font-size: 14px;
font-weight: bold;
}
.dropdown {
.dropdown-common();
}
input {
width: 50px;
outline: none;
border-radius: 3px;
border: 1px solid #3c3a36;
padding: 2px;
text-align: center;
}
> button:last-child {
float: right;
margin-right: 20px;
}
.btn-wrapper {
border-radius: 5px;
background-color: #e0301e;
color: #FFF;
display: inline-block;
float: right;
margin-right: 10px;
.btn-vat-primary {
min-width: 80px;
}
}
.import-info-wrapper {
display: inline-block;
}
}
.dt-init-wrapper {
margin: 10px 0;
max-width: 99%;
height: calc(~'100% - 80px');
position: relative;
z-index: 1;
.dropdown {
.dropdown-common();
i {
color: #F85550;
}
}
.total-Wrapper {
width: 99%;
margin-left: 0px;
font-size: 13px;
font-family: 'Microsoft YaHei';
padding-bottom: 5px;
.total_span {
color: #B4122A !important;
background-color: #ddd !important;
font-size: 12px !important;
font-weight: bold !important;
border-radius: 10px !important;
padding-left: 8px !important;
padding-right: 8px !important;
}
}
/*.balance-ouput-grid-wrapper {
height: calc(~'100% - -10px');
overflow: hidden;
position: absolute;
top: 0;
bottom: 150px;
left: 0;
right: 0;
background-color: #FFF;
}*/
}
.dt-import-wrapper {
margin: 10px 0;
max-width: 99%;
overflow: auto;
height: calc(~"100% - 70px");
.dropdown {
.dropdown-common();
i {
color: #F85550;
}
button {
color: #333;
}
}
}
.error-info-wrapper {
position: absolute;
height: 150px;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
background-color: #FFF;
margin-left: -39px;
z-index: 2;
}
#content-resizer {
width: 110%;
position: absolute;
height: 4px;
bottom: 150px;
left: 0;
right: 0;
background-color: red;
cursor: n-resize;
margin-left: -39px;
#topIcon {
cursor: pointer;
margin-top: -19px;
width: 38px;
margin-left: 46%;
z-index: 999;
bottom: -200px;
text-align: center;
display: block !important;
}
}
}
#tab_Assets {
display: block;
height: calc(~'100% - 80px');
position: relative;
.total-Wrapper {
width: 72%;
margin-left: 0px;
font-size: 13px;
font-family: 'Microsoft YaHei';
padding-top: 5px;
position: absolute;
z-index: 9;
.total_span {
color: #B4122A !important;
background-color: #ddd !important;
font-size: 12px !important;
font-weight: bold !important;
border-radius: 10px !important;
padding-left: 8px !important;
padding-right: 8px !important;
}
}
.dt-asset-result {
margin: 0px 0;
max-width: 99%;
height: calc(~'100% - 20px');
position: relative;
margin-top: 10px;
.herder-center {
text-align: center !important;
vertical-align: middle !important;
/*font-size:13px !important;*/
}
}
}
.error-list-modal {
.modal-title {
color: #FF0000;
}
.modal-body {
max-height: 300px;
overflow-y: auto;
table {
border: 1px solid #CCC;
thead tr th {
height: 30px;
border: 1px solid #CCC;
}
tbody tr td {
height: 25px;
border: 1px solid #CCC;
}
}
}
.modal-footer {
text-align: center;
}
}
.page-form-group {
float: right;
margin-top: 10px;
.page-size {
margin: 0;
}
.pagination {
margin: 0;
}
}
#gridInitData {
border-radius: 3px;
border: 1px solid #d4d4d4;
}
}
.set-asset-list-modal .modal-dialog {
height: 500px;
width: 800px;
.modal-content {
height: 100%;
width: 100%;
}
.modal-title {
color: #333;
font-size: 16px;
font-weight: bold;
}
.modal-body {
height: 76%;
max-width: 760px !important;
margin-left: 22px;
overflow-y: auto;
.herder-center {
text-align: center !important;
}
.column-color {
color: red !important;
}
}
.modal-footer {
text-align:left;
}
}
citModule.controller('citReportLayoutController', ['$scope', '$log', '$q', '$timeout', '$compile', 'loginContext',
'$translate', '$location', 'vatSessionService', 'vatReportService', '$state', 'enums', 'checkListService',
function ($scope, $log, $q, $timeout, $compile, loginContext, $translate, $location, vatSessionService,
vatReportService, $state, enums, checkListService) {
'$translate', '$location', 'vatSessionService', 'vatReportService', '$state', 'enums', /*'checkListService',*/
function ($scope, $log, $q, $timeout, $compile, loginContext, $translate, $location, vatSessionService,
vatReportService, $state, enums/*, checkListService*/) {
'use strict';
$log.debug('citReportLayoutController.ctor()...');
$scope.$on('refreshCitGenerateReport', function (event, data) {
loadTemplateMenu();
$scope.isFirstMenu = false;
......@@ -28,7 +27,6 @@
returnUrl = true;
}
return returnUrl;
};
var gvalue = 1;
......@@ -53,7 +51,6 @@
event.preventDefault();
}
}
_.each($scope.menuTreeDataSource, function (item) {
item.selected = false;
});
......@@ -237,16 +234,17 @@
$scope.checkListModal.modalTitel = $translate.instant(cfg.titel);
var apiFun = checkListService.getCheckListViewData;
/*var apiFun = checkListService.getCheckListViewData;
apiFun(vatSessionService.project.serviceTypeID, cfg.reportType, 0).then(function (response) {
var rst = response.data;
$scope.checkListModal.isOpen = rst.result;
$scope.checkListModal.dataSource = rst.result ? rst.data : [];
});
});*/
}
};
var loadTemplateMenu = function () {
debugger;
var projectID = vatSessionService.project.id;
vatReportService.citGetTemplateTree(projectID).success(function (data) {
if (!data || !data.data) {
......@@ -418,6 +416,7 @@
id.selected = true;
}
}
debugger;
$scope.menuTreeDataSource = data;
});
......@@ -439,6 +438,7 @@
//检查用户机构权限
var getUserPermission = function () {
debugger;
var list = [];
var reportTemp = constant.citPermission.reportView;
//bspl
......
......@@ -3,39 +3,30 @@ webservices.factory('assetListService', ['$http', 'apiConfig', function ($http,
'use strict';
return {
getAssetListData: function () {
debugger;
return $http.get('/asset/getAssetListData', apiConfig.create());
},
getAssetResultList: function (assetType,projectId, taxAccountCompare) {
debugger;
return $http.get('/asset/getAssetResultList?assetType=' + assetType + '&projectId=' + projectId + '&taxAccountCompare=' + taxAccountCompare, apiConfig.create());
},
getAssetGroupResultData: function (projectId) {
debugger;
return $http.get('/asset/getAssetGroupResultData?projectId=' + projectId, apiConfig.create());
},
getAssetGroupListData: function () {
debugger;
return $http.get('/asset/getAssetGroupListData', apiConfig.create());
},
getAssetDetailGroupListData: function () {
debugger;
return $http.get('/asset/getAssetDetailGroupListData', apiConfig.create());
},
saveAssetGroupInfo:function (assetGroupResults,saveGroupType,projectId) {
debugger;
return $http.post('/asset/saveAssetGroupInfo?saveGroupType=' + saveGroupType + '&projectId=' + projectId,assetGroupResults, apiConfig.create());
},
updateAssetResultList:function (assetsList,projectId) {
debugger;
return $http.post('/asset/updateAssetResultList?projectId=' + projectId,assetsList, apiConfig.create());
},
batchUpdateIsRetain:function (assetType,projectId, isRetain) {
debugger;
return $http.post('/asset/batchUpdateIsRetain?assetType=' + assetType + '&projectId=' + projectId + '&isRetain=' + isRetain, apiConfig.create());
},
getAllFixedAssetDetailGroup: function (assetGroupType,pageIndex,pageSize) {
debugger;
return $http.post('/asset/getFixedAssetDetailGroup',{"assetGroupType":assetGroupType,"pageIndex":pageIndex,"pageSize":pageSize}, apiConfig.create());
}
};
......
// web service proxy for role
webservices.factory('citPreviewDataService', ['$http', 'apiConfig', function ($http, apiConfig) {
'use strict';
return {
//获取 预提分类数据源列表数据
getCitPreviewSalaryAdvanceDataList : function(params){
return $http.post('/citPreviewDataController/getSalaryAdvaceListData', {pageInfo: params.pagingOptions, poSubjectName : params.poSubjectName }, apiConfig.createVat());
}
};
}]);
\ No newline at end of file
......@@ -355,6 +355,14 @@ webservices.factory('commonWebService', ['$http', 'apiConfig', 'loginContext', '
n = filterFunc.call(tree, match, opts);
}
}).focus();
},
_index :function (data) {
var index = 1;
for(var i of data){
i.index = index;
index++;
}
return data;
}
};
}]);
\ No newline at end of file
......@@ -291,7 +291,6 @@
}
function doStartCaculate2(isMergeManualDataSource) {
vatReportService.generateAll(vatSessionService.project.id, isMergeManualDataSource, vatSessionService.month, vatSessionService.logUser.id ? vatSessionService.logUser.id : "").success(function (data) {
$scope.readonly = true;
if(data && data.result)
......
......@@ -50,7 +50,7 @@
<span class="rect2"></span>
<span class="rect3"></span>
<span class="rect4"></span>
<span class="rect5"></span>
<spanmoduleType class="rect5"></spanmoduleType>
<!--<img src="/app-resources/images/loading.gif" alt="loading...">-->
</span>
<span ng-if="task.status == 'error'" style="color:red;">{{task.text}}</span>
......
......@@ -33,7 +33,6 @@
if (!$scope.hasBsPermission) {
grps.children = _.reject(grps[0].children, {name: '资产负债表'});
}
if (!$scope.hasPlPermission) {
grps.children = _.reject(grps[0].children, {name: '利润表'});
}
......
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