Commit 5e581708 authored by zhkwei's avatar zhkwei

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

parents bfde2fa1 5b563b2e
...@@ -75,9 +75,8 @@ public class FileUploadUtil implements ApplicationContextAware { ...@@ -75,9 +75,8 @@ public class FileUploadUtil implements ApplicationContextAware {
HttpResponse httpResponse = httpClient.execute(httpPost); HttpResponse httpResponse = httpClient.execute(httpPost);
ApiResultDto resultDto = JSON.parseObject(IOUtils.toString(httpResponse.getEntity().getContent(), "UTF-8"), ApiResultDto.class); ApiResultDto resultDto = JSON.parseObject(IOUtils.toString(httpResponse.getEntity().getContent(), "UTF-8"), ApiResultDto.class);
if (resultDto.getCode() == ApiResultDto.SUCCESS) { if (resultDto.getCode() == ApiResultDto.SUCCESS) {
if(fullPath){ if(fullPath)
return config.getServerUrl() + "/" + filePath; return config.getServerUrl() + "/" + filePath;
}
return filePath; return filePath;
} }
} catch (Exception e) { } catch (Exception e) {
......
...@@ -11,10 +11,7 @@ import pwc.taxtech.atms.dao.CitTbamMapper; ...@@ -11,10 +11,7 @@ import pwc.taxtech.atms.dao.CitTbamMapper;
import pwc.taxtech.atms.dao.OperationLogEntryLogMapper; import pwc.taxtech.atms.dao.OperationLogEntryLogMapper;
import pwc.taxtech.atms.dto.CitTbamDto; import pwc.taxtech.atms.dto.CitTbamDto;
import pwc.taxtech.atms.dto.OperationResultDto; import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.entity.CitJournalEntryAdjust; import pwc.taxtech.atms.entity.*;
import pwc.taxtech.atms.entity.CitTbam;
import pwc.taxtech.atms.entity.OperationLogEntryLog;
import pwc.taxtech.atms.entity.OperationLogEntryLogExample;
import pwc.taxtech.atms.service.impl.DistributedIdService; import pwc.taxtech.atms.service.impl.DistributedIdService;
import pwc.taxtech.atms.vat.dao.PeriodFormulaBlockMapper; import pwc.taxtech.atms.vat.dao.PeriodFormulaBlockMapper;
import pwc.taxtech.atms.vat.entity.PeriodCellComment; import pwc.taxtech.atms.vat.entity.PeriodCellComment;
...@@ -67,17 +64,20 @@ public class CellCommentController { ...@@ -67,17 +64,20 @@ public class CellCommentController {
operationResultDto.setResultMsg("success"); operationResultDto.setResultMsg("success");
return operationResultDto; return operationResultDto;
} }
//加载分录表格数据 //加载分录表格数据
@RequestMapping("loadEntryListDataList") @RequestMapping("loadEntryListDataList")
public OperationResultDto loadEntryListDataList(String code, String projectId) { public OperationResultDto loadEntryListDataList(@RequestBody CitTbam citTbam) {
OperationResultDto operationResultDto = new OperationResultDto(); OperationResultDto operationResultDto = new OperationResultDto();
CitJournalEntryAdjust citJournalEntryAdjust = new CitJournalEntryAdjust(); CitJournalEntryAdjust citJournalEntryAdjust = new CitJournalEntryAdjust();
citJournalEntryAdjust.setSubjectCode(code); citJournalEntryAdjust.setSubjectCode(citTbam.getAccountCode());
citJournalEntryAdjust.setProjectId(projectId); citJournalEntryAdjust.setProjectId(citTbam.getProjectId());
List<CitJournalEntryAdjust> journalMerge = citJournalEntryAdjustMapper.getJournalMerge(citJournalEntryAdjust); List<CitJournalEntryAdjust> journalMerge = citJournalEntryAdjustMapper.getJournalMerge(citJournalEntryAdjust);
operationResultDto.setData(journalMerge); operationResultDto.setData(journalMerge);
operationResultDto.setResultMsg("success"); CitTbamExample example = new CitTbamExample();
CitTbamExample.Criteria criteria = example.createCriteria();
criteria.andIdEqualTo(citTbam.getId());
List<CitTbam> citTbams = citTbamMapper.selectByExample(example);
operationResultDto.setResultMsg(citTbams.get(0).getDataType());
return operationResultDto; return operationResultDto;
} }
...@@ -121,8 +121,6 @@ public class CellCommentController { ...@@ -121,8 +121,6 @@ public class CellCommentController {
*/ */
@RequestMapping("addLog") @RequestMapping("addLog")
public OperationResultDto addLog(@RequestBody List<OperationLogEntryLog> operationLogEntryLogs) { public OperationResultDto addLog(@RequestBody List<OperationLogEntryLog> operationLogEntryLogs) {
for (OperationLogEntryLog operationLogEntryLog : operationLogEntryLogs) { for (OperationLogEntryLog operationLogEntryLog : operationLogEntryLogs) {
operationLogEntryLog.setMyId(distributedIdService.nextId()); operationLogEntryLog.setMyId(distributedIdService.nextId());
operationLogEntryLogMapper.insert(operationLogEntryLog); operationLogEntryLogMapper.insert(operationLogEntryLog);
......
...@@ -15,6 +15,15 @@ public class ManualDataSourceDto { ...@@ -15,6 +15,15 @@ public class ManualDataSourceDto {
Long reportId; Long reportId;
Long id; Long id;
String penValue;//穿透修改值 String penValue;//穿透修改值
String accountCode;
public String getAccountCode() {
return accountCode;
}
public void setAccountCode(String accountCode) {
this.accountCode = accountCode;
}
public String getPenValue() { public String getPenValue() {
return penValue; return penValue;
...@@ -111,4 +120,23 @@ public class ManualDataSourceDto { ...@@ -111,4 +120,23 @@ public class ManualDataSourceDto {
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Override
public String toString() {
return "ManualDataSourceDto{" +
"cellId=" + cellId +
", cellTemplateId='" + cellTemplateId + '\'' +
", name='" + name + '\'' +
", description='" + description + '\'' +
", amount=" + amount +
", keyinData='" + keyinData + '\'' +
", projectId='" + projectId + '\'' +
", serviceTypeId='" + serviceTypeId + '\'' +
", period=" + period +
", reportId=" + reportId +
", id=" + id +
", penValue='" + penValue + '\'' +
", accountCode='" + accountCode + '\'' +
'}';
}
} }
...@@ -381,6 +381,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -381,6 +381,7 @@ public class CitReportServiceImpl extends BaseService {
@Resource @Resource
private DataValidateLogMapper dataValidateLogMapper; private DataValidateLogMapper dataValidateLogMapper;
/** /**
* 清除配置,复制配置 * 清除配置,复制配置
* *
...@@ -691,6 +692,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -691,6 +692,7 @@ public class CitReportServiceImpl extends BaseService {
/** /**
* 查询最新的任务 * 查询最新的任务
*
* @param projectId * @param projectId
* @param period * @param period
* @return * @return
...@@ -736,17 +738,18 @@ public class CitReportServiceImpl extends BaseService { ...@@ -736,17 +738,18 @@ public class CitReportServiceImpl extends BaseService {
@Autowired @Autowired
private CitAssetsListMapper assetsListMapper; private CitAssetsListMapper assetsListMapper;
/** /**
* 获取固定资产及EAM Mapping的数据 * 获取固定资产及EAM Mapping的数据
*/ */
public PageInfo<CitAssetsListDto> getAssetEamMappingPage(CitAssetsListDto citAssetsListDto) throws Exception { public PageInfo<CitAssetsListDto> getAssetEamMappingPage(CitAssetsListDto citAssetsListDto) throws Exception {
logger.debug("获取固定资产及EAM Mapping的数据"); logger.debug("获取固定资产及EAM Mapping的数据");
Page page = PageHelper.startPage(citAssetsListDto.getPageInfo().getPageIndex(),citAssetsListDto.getPageInfo().getPageSize()); Page page = PageHelper.startPage(citAssetsListDto.getPageInfo().getPageIndex(), citAssetsListDto.getPageInfo().getPageSize());
CitAssetsList citAssetsList = new CitAssetsList(); CitAssetsList citAssetsList = new CitAssetsList();
BeanUtils.copyProperties(citAssetsListDto,citAssetsList); BeanUtils.copyProperties(citAssetsListDto, citAssetsList);
List<CitAssetEamMappingDto> citAssetsLists = assetsListMapper.getAssetEamMapping(citAssetsList); List<CitAssetEamMappingDto> citAssetsLists = assetsListMapper.getAssetEamMapping(citAssetsList);
List<CitAssetsListDto> citAssetsListDtos = new ArrayList<>(); List<CitAssetsListDto> citAssetsListDtos = new ArrayList<>();
citAssetsListDtos = assetToAssetEamMapping(citAssetsListDtos,citAssetsLists); citAssetsListDtos = assetToAssetEamMapping(citAssetsListDtos, citAssetsLists);
// for (CitAssetsList citAssetsListTemp:citAssetsLists){ // for (CitAssetsList citAssetsListTemp:citAssetsLists){
// CitAssetsListDto temp = new CitAssetsListDto(); // CitAssetsListDto temp = new CitAssetsListDto();
// BeanUtils.copyProperties(citAssetsListTemp,temp); // BeanUtils.copyProperties(citAssetsListTemp,temp);
...@@ -760,7 +763,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -760,7 +763,7 @@ public class CitReportServiceImpl extends BaseService {
// citAssetsListDtos.add(temp); // citAssetsListDtos.add(temp);
// } // }
PageInfo<CitAssetsListDto> pageInfo =new PageInfo<>(citAssetsListDtos); PageInfo<CitAssetsListDto> pageInfo = new PageInfo<>(citAssetsListDtos);
pageInfo.setTotal(page.getTotal()); pageInfo.setTotal(page.getTotal());
pageInfo.setPageNum(citAssetsListDto.getPageInfo().getPageIndex()); pageInfo.setPageNum(citAssetsListDto.getPageInfo().getPageIndex());
return pageInfo; return pageInfo;
...@@ -768,19 +771,20 @@ public class CitReportServiceImpl extends BaseService { ...@@ -768,19 +771,20 @@ public class CitReportServiceImpl extends BaseService {
/** /**
* 固资申报表导出(第二种方式)--正在使用 * 固资申报表导出(第二种方式)--正在使用
*
* @param citAssetsListDto * @param citAssetsListDto
* @param response * @param response
* @return * @return
*/ */
public int exportAEMData2(CitAssetsListDto citAssetsListDto, HttpServletResponse response){ public int exportAEMData2(CitAssetsListDto citAssetsListDto, HttpServletResponse response) {
CitAssetsList citAssetsList = new CitAssetsList(); CitAssetsList citAssetsList = new CitAssetsList();
BeanUtils.copyProperties(citAssetsListDto,citAssetsList); BeanUtils.copyProperties(citAssetsListDto, citAssetsList);
List<CitAssetEamMappingDto> citAssetsLists = assetsListMapper.getAssetEamMapping(citAssetsList); List<CitAssetEamMappingDto> citAssetsLists = assetsListMapper.getAssetEamMapping(citAssetsList);
if(citAssetsLists.size()==0){ if (citAssetsLists.size() == 0) {
return 0; return 0;
} }
List<CitAssetsListDto> citAssetsListDtos = new ArrayList<>(); List<CitAssetsListDto> citAssetsListDtos = new ArrayList<>();
assetToAssetEamMapping(citAssetsListDtos,citAssetsLists); assetToAssetEamMapping(citAssetsListDtos, citAssetsLists);
ExportDto exportDto = new ExportDto(); ExportDto exportDto = new ExportDto();
exportDto.setFileName("固资申报表"); exportDto.setFileName("固资申报表");
exportDto.setTemplateUrl(Constant.citTemplateUrl + "/assetEamMapping.xlsx"); exportDto.setTemplateUrl(Constant.citTemplateUrl + "/assetEamMapping.xlsx");
...@@ -791,10 +795,10 @@ public class CitReportServiceImpl extends BaseService { ...@@ -791,10 +795,10 @@ public class CitReportServiceImpl extends BaseService {
return 1; return 1;
} }
public List<CitAssetsListDto> assetToAssetEamMapping(List<CitAssetsListDto> citAssetsListDtos, List<CitAssetEamMappingDto> citAssetsLists){ public List<CitAssetsListDto> assetToAssetEamMapping(List<CitAssetsListDto> citAssetsListDtos, List<CitAssetEamMappingDto> citAssetsLists) {
for (CitAssetsList citAssetsListTemp:citAssetsLists){ for (CitAssetsList citAssetsListTemp : citAssetsLists) {
CitAssetsListDto temp = new CitAssetsListDto(); CitAssetsListDto temp = new CitAssetsListDto();
BeanUtils.copyProperties(citAssetsListTemp,temp); BeanUtils.copyProperties(citAssetsListTemp, temp);
//计算处置损益 处置/赔偿收入-账面净值(年终剩余价值) //计算处置损益 处置/赔偿收入-账面净值(年终剩余价值)
temp.setDisposalProfitAndLoss(temp.getCompensationSaleAmount().subtract(temp.getYearEndValue())); temp.setDisposalProfitAndLoss(temp.getCompensationSaleAmount().subtract(temp.getYearEndValue()));
...@@ -1018,6 +1022,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1018,6 +1022,7 @@ public class CitReportServiceImpl extends BaseService {
} }
return resultDto; return resultDto;
} }
private Integer convertType(Integer dataSourceType) { private Integer convertType(Integer dataSourceType) {
if (dataSourceType.equals(FormulaDataSourceDetailType.InputInvoiceDataSourceDto.getCode())) { if (dataSourceType.equals(FormulaDataSourceDetailType.InputInvoiceDataSourceDto.getCode())) {
return CellDataSourceType.InputInvoice.getCode(); return CellDataSourceType.InputInvoice.getCode();
...@@ -1055,6 +1060,9 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1055,6 +1060,9 @@ public class CitReportServiceImpl extends BaseService {
return operationResultDto; return operationResultDto;
} }
@Autowired
private CitJournalEntryAdjustMapper citJournalEntryAdjustMapper;
public OperationResultDto addCellManualDataSource(ManualDataSourceDto data, String projectId) { public OperationResultDto addCellManualDataSource(ManualDataSourceDto data, String projectId) {
OperationResultDto operationResultDto = new OperationResultDto(); OperationResultDto operationResultDto = new OperationResultDto();
try { try {
...@@ -1109,6 +1117,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1109,6 +1117,7 @@ public class CitReportServiceImpl extends BaseService {
cellData.setData(sumValue); cellData.setData(sumValue);
periodCellDataMapper.updateByPrimaryKeySelective(cellData); periodCellDataMapper.updateByPrimaryKeySelective(cellData);
/*kevin insert */ // TODO: 3/21/2019 需要验证 /*kevin insert */ // TODO: 3/21/2019 需要验证
PeriodCellTemplateConfigExample example = new PeriodCellTemplateConfigExample(); PeriodCellTemplateConfigExample example = new PeriodCellTemplateConfigExample();
PeriodCellTemplateConfigExample.Criteria criteria = example.createCriteria(); PeriodCellTemplateConfigExample.Criteria criteria = example.createCriteria();
...@@ -1117,6 +1126,22 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1117,6 +1126,22 @@ public class CitReportServiceImpl extends BaseService {
PeriodCellTemplateConfig periodCellTemplateConfig = new PeriodCellTemplateConfig(); PeriodCellTemplateConfig periodCellTemplateConfig = new PeriodCellTemplateConfig();
periodCellTemplateConfig.setParsedFormula(sumValue); periodCellTemplateConfig.setParsedFormula(sumValue);
periodCellTemplateConfigMapper.updateByExampleSelective(periodCellTemplateConfig, example); periodCellTemplateConfigMapper.updateByExampleSelective(periodCellTemplateConfig, example);
//更改选中行相关数据
CitJournalEntryAdjust citJournalEntryAdjust = new CitJournalEntryAdjust();
citJournalEntryAdjust.setIsSelect("1");
CitJournalEntryAdjustExample example1 = new CitJournalEntryAdjustExample();
CitJournalEntryAdjustExample.Criteria criteria1 = example1.createCriteria();
criteria1.andProjectIdEqualTo(data.getProjectId());
criteria1.andSubjectCodeEqualTo(data.getAccountCode());
citJournalEntryAdjustMapper.updateByExample(citJournalEntryAdjust, example1);
JournalEntry journalEntry = new JournalEntry();
journalEntry.setIsSelect("1");
JournalEntryExample example2 = new JournalEntryExample();
JournalEntryExample.Criteria criteria2 = example2.createCriteria();
criteria2.andProjectIdEqualTo(data.getProjectId());
criteria2.andSegment3EqualTo(data.getAccountCode());
journalEntryMapper.updateByExample(journalEntry, example2);
} }
List<DataSourceExtendDto> dataSourceExtendDtos = periodDataSourceMapper.getManualDataSource(data.getCellId()); List<DataSourceExtendDto> dataSourceExtendDtos = periodDataSourceMapper.getManualDataSource(data.getCellId());
...@@ -1242,6 +1267,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1242,6 +1267,7 @@ public class CitReportServiceImpl extends BaseService {
} }
return operationResultDto; return operationResultDto;
} }
private void updateCellValueForDataSourceChange(PeriodDataSource dataSourceEntity, BigDecimal amount) { private void updateCellValueForDataSourceChange(PeriodDataSource dataSourceEntity, BigDecimal amount) {
BigDecimal originalAmount = dataSourceEntity.getAmount(); BigDecimal originalAmount = dataSourceEntity.getAmount();
dataSourceEntity.setAmount(amount); dataSourceEntity.setAmount(amount);
...@@ -1274,6 +1300,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1274,6 +1300,7 @@ public class CitReportServiceImpl extends BaseService {
} }
} }
} }
private void updateCellValueForDataSourceChange(Long cellDataId, BigDecimal originalAmount, BigDecimal newAmount) { private void updateCellValueForDataSourceChange(Long cellDataId, BigDecimal originalAmount, BigDecimal newAmount) {
BigDecimal aValue = newAmount != null ? newAmount : new BigDecimal("0"); BigDecimal aValue = newAmount != null ? newAmount : new BigDecimal("0");
BigDecimal bValue = originalAmount != null ? originalAmount : new BigDecimal("0"); BigDecimal bValue = originalAmount != null ? originalAmount : new BigDecimal("0");
......
...@@ -34,6 +34,11 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable { ...@@ -34,6 +34,11 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable {
*/ */
private String organizationId; private String organizationId;
/**
* 选中标志
*/
private String isSelect;
/** /**
* Database Column Remarks: * Database Column Remarks:
* 项目ID * 项目ID
...@@ -2470,6 +2475,14 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable { ...@@ -2470,6 +2475,14 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public String getIsSelect() {
return isSelect;
}
public void setIsSelect(String isSelect) {
this.isSelect = isSelect;
}
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_journal_entry_adjust * This method corresponds to the database table cit_journal_entry_adjust
...@@ -2478,81 +2491,78 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable { ...@@ -2478,81 +2491,78 @@ public class CitJournalEntryAdjust extends BaseEntity implements Serializable {
*/ */
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); return "CitJournalEntryAdjust{" +
sb.append(getClass().getSimpleName()); "id=" + id +
sb.append(" ["); ", organizationId='" + organizationId + '\'' +
sb.append("Hash = ").append(hashCode()); ", isSelect='" + isSelect + '\'' +
sb.append(", id=").append(id); ", projectId='" + projectId + '\'' +
sb.append(", organizationId=").append(organizationId); ", period=" + period +
sb.append(", projectId=").append(projectId); ", date=" + date +
sb.append(", period=").append(period); ", source='" + source + '\'' +
sb.append(", date=").append(date); ", ledgerId='" + ledgerId + '\'' +
sb.append(", source=").append(source); ", ledgerName='" + ledgerName + '\'' +
sb.append(", ledgerId=").append(ledgerId); ", currencyCode='" + currencyCode + '\'' +
sb.append(", ledgerName=").append(ledgerName); ", status='" + status + '\'' +
sb.append(", currencyCode=").append(currencyCode); ", headerId='" + headerId + '\'' +
sb.append(", status=").append(status); ", lineNum='" + lineNum + '\'' +
sb.append(", headerId=").append(headerId); ", approvalStatus='" + approvalStatus + '\'' +
sb.append(", lineNum=").append(lineNum); ", postedStatus='" + postedStatus + '\'' +
sb.append(", approvalStatus=").append(approvalStatus); ", accountPeriod=" + accountPeriod +
sb.append(", postedStatus=").append(postedStatus); ", accountingDate=" + accountingDate +
sb.append(", accountPeriod=").append(accountPeriod); ", journalSource='" + journalSource + '\'' +
sb.append(", accountingDate=").append(accountingDate); ", category='" + category + '\'' +
sb.append(", journalSource=").append(journalSource); ", name='" + name + '\'' +
sb.append(", category=").append(category); ", voucherNum='" + voucherNum + '\'' +
sb.append(", name=").append(name); ", description='" + description + '\'' +
sb.append(", voucherNum=").append(voucherNum); ", orgCode='" + orgCode + '\'' +
sb.append(", description=").append(description); ", segment2='" + segment2 + '\'' +
sb.append(", orgCode=").append(orgCode); ", subjectCode='" + subjectCode + '\'' +
sb.append(", segment2=").append(segment2); ", segment4='" + segment4 + '\'' +
sb.append(", subjectCode=").append(subjectCode); ", segment5='" + segment5 + '\'' +
sb.append(", segment4=").append(segment4); ", segment6='" + segment6 + '\'' +
sb.append(", segment5=").append(segment5); ", segment7='" + segment7 + '\'' +
sb.append(", segment6=").append(segment6); ", segment8='" + segment8 + '\'' +
sb.append(", segment7=").append(segment7); ", segment9='" + segment9 + '\'' +
sb.append(", segment8=").append(segment8); ", segment10='" + segment10 + '\'' +
sb.append(", segment9=").append(segment9); ", orgName='" + orgName + '\'' +
sb.append(", segment10=").append(segment10); ", segment2Name='" + segment2Name + '\'' +
sb.append(", orgName=").append(orgName); ", subjectName='" + subjectName + '\'' +
sb.append(", segment2Name=").append(segment2Name); ", segment4Name='" + segment4Name + '\'' +
sb.append(", subjectName=").append(subjectName); ", segment5Name='" + segment5Name + '\'' +
sb.append(", segment4Name=").append(segment4Name); ", segment6Name='" + segment6Name + '\'' +
sb.append(", segment5Name=").append(segment5Name); ", segment7Name='" + segment7Name + '\'' +
sb.append(", segment6Name=").append(segment6Name); ", segment8Name='" + segment8Name + '\'' +
sb.append(", segment7Name=").append(segment7Name); ", segment9Name='" + segment9Name + '\'' +
sb.append(", segment8Name=").append(segment8Name); ", segment10Name='" + segment10Name + '\'' +
sb.append(", segment9Name=").append(segment9Name); ", journalCurrencyCode='" + journalCurrencyCode + '\'' +
sb.append(", segment10Name=").append(segment10Name); ", sobCurrencyCode='" + sobCurrencyCode + '\'' +
sb.append(", journalCurrencyCode=").append(journalCurrencyCode); ", accountedDr=" + accountedDr +
sb.append(", sobCurrencyCode=").append(sobCurrencyCode); ", accountedCr=" + accountedCr +
sb.append(", accountedDr=").append(accountedDr); ", enteredDr=" + enteredDr +
sb.append(", accountedCr=").append(accountedCr); ", enteredCr=" + enteredCr +
sb.append(", enteredDr=").append(enteredDr); ", cfItem='" + cfItem + '\'' +
sb.append(", enteredCr=").append(enteredCr); ", attribute1='" + attribute1 + '\'' +
sb.append(", cfItem=").append(cfItem); ", attribute2=" + attribute2 +
sb.append(", attribute1=").append(attribute1); ", attribute3='" + attribute3 + '\'' +
sb.append(", attribute2=").append(attribute2); ", attribute4='" + attribute4 + '\'' +
sb.append(", attribute3=").append(attribute3); ", attribute5='" + attribute5 + '\'' +
sb.append(", attribute4=").append(attribute4); ", attribute6='" + attribute6 + '\'' +
sb.append(", attribute5=").append(attribute5); ", attribute7='" + attribute7 + '\'' +
sb.append(", attribute6=").append(attribute6); ", attribute8='" + attribute8 + '\'' +
sb.append(", attribute7=").append(attribute7); ", attribute9='" + attribute9 + '\'' +
sb.append(", attribute8=").append(attribute8); ", attribute10='" + attribute10 + '\'' +
sb.append(", attribute9=").append(attribute9); ", attribute11='" + attribute11 + '\'' +
sb.append(", attribute10=").append(attribute10); ", attribute12='" + attribute12 + '\'' +
sb.append(", attribute11=").append(attribute11); ", attribute13='" + attribute13 + '\'' +
sb.append(", attribute12=").append(attribute12); ", attribute14='" + attribute14 + '\'' +
sb.append(", attribute13=").append(attribute13); ", attribute15='" + attribute15 + '\'' +
sb.append(", attribute14=").append(attribute14); ", attribute16='" + attribute16 + '\'' +
sb.append(", attribute15=").append(attribute15); ", createdBy='" + createdBy + '\'' +
sb.append(", attribute16=").append(attribute16); ", createdDate=" + createdDate +
sb.append(", createdBy=").append(createdBy); ", lateUpdatedBy='" + lateUpdatedBy + '\'' +
sb.append(", createdDate=").append(createdDate); ", lateUpdatedDate=" + lateUpdatedDate +
sb.append(", lateUpdatedBy=").append(lateUpdatedBy); ", createTime=" + createTime +
sb.append(", lateUpdatedDate=").append(lateUpdatedDate); ", updateTime=" + updateTime +
sb.append(", createTime=").append(createTime); '}';
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
} }
} }
\ No newline at end of file
...@@ -24,6 +24,15 @@ public class CitTbam extends BaseEntity implements Serializable { ...@@ -24,6 +24,15 @@ public class CitTbam extends BaseEntity implements Serializable {
*/ */
private Long id; private Long id;
private String dataType;
public String getDataType() {
return dataType;
}
public void setDataType(String dataType) {
this.dataType = dataType;
}
/** /**
* Database Column Remarks: * Database Column Remarks:
...@@ -638,6 +647,7 @@ public class CitTbam extends BaseEntity implements Serializable { ...@@ -638,6 +647,7 @@ public class CitTbam extends BaseEntity implements Serializable {
public String toString() { public String toString() {
return "CitTbam{" + return "CitTbam{" +
"id=" + id + "id=" + id +
", dataType='" + dataType + '\'' +
", organizationId='" + organizationId + '\'' + ", organizationId='" + organizationId + '\'' +
", adjustAccount=" + adjustAccount + ", adjustAccount=" + adjustAccount +
", projectId='" + projectId + '\'' + ", projectId='" + projectId + '\'' +
......
...@@ -24,6 +24,16 @@ public class JournalEntry extends BaseEntity implements Serializable { ...@@ -24,6 +24,16 @@ public class JournalEntry extends BaseEntity implements Serializable {
*/ */
private Long id; private Long id;
private String isSelect;
public String getIsSelect() {
return isSelect;
}
public void setIsSelect(String isSelect) {
this.isSelect = isSelect;
}
/** /**
* Database Column Remarks: * Database Column Remarks:
* 机构编号 对应机构编号 * 机构编号 对应机构编号
...@@ -2523,82 +2533,80 @@ public class JournalEntry extends BaseEntity implements Serializable { ...@@ -2523,82 +2533,80 @@ public class JournalEntry extends BaseEntity implements Serializable {
*/ */
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); return "JournalEntry{" +
sb.append(getClass().getSimpleName()); "id=" + id +
sb.append(" ["); ", isSelect='" + isSelect + '\'' +
sb.append("Hash = ").append(hashCode()); ", organizationId='" + organizationId + '\'' +
sb.append(", id=").append(id); ", projectId='" + projectId + '\'' +
sb.append(", organizationId=").append(organizationId); ", date=" + date +
sb.append(", projectId=").append(projectId); ", source='" + source + '\'' +
sb.append(", date=").append(date); ", ledgerId='" + ledgerId + '\'' +
sb.append(", source=").append(source); ", ledgerName='" + ledgerName + '\'' +
sb.append(", ledgerId=").append(ledgerId); ", currencyCode='" + currencyCode + '\'' +
sb.append(", ledgerName=").append(ledgerName); ", status='" + status + '\'' +
sb.append(", currencyCode=").append(currencyCode); ", headerId='" + headerId + '\'' +
sb.append(", status=").append(status); ", lineNum='" + lineNum + '\'' +
sb.append(", headerId=").append(headerId); ", approvalStatus='" + approvalStatus + '\'' +
sb.append(", lineNum=").append(lineNum); ", postedStatus='" + postedStatus + '\'' +
sb.append(", approvalStatus=").append(approvalStatus); ", tmsPeriod=" + tmsPeriod +
sb.append(", postedStatus=").append(postedStatus); ", period=" + period +
sb.append(", tmsPeriod=").append(tmsPeriod); ", accountingDate=" + accountingDate +
sb.append(", period=").append(period); ", journalSource='" + journalSource + '\'' +
sb.append(", accountingDate=").append(accountingDate); ", category='" + category + '\'' +
sb.append(", journalSource=").append(journalSource); ", name='" + name + '\'' +
sb.append(", category=").append(category); ", voucherNum='" + voucherNum + '\'' +
sb.append(", name=").append(name); ", description='" + description + '\'' +
sb.append(", voucherNum=").append(voucherNum); ", segment1='" + segment1 + '\'' +
sb.append(", description=").append(description); ", segment2='" + segment2 + '\'' +
sb.append(", segment1=").append(segment1); ", segment3='" + segment3 + '\'' +
sb.append(", segment2=").append(segment2); ", segment4='" + segment4 + '\'' +
sb.append(", segment3=").append(segment3); ", segment5='" + segment5 + '\'' +
sb.append(", segment4=").append(segment4); ", segment6='" + segment6 + '\'' +
sb.append(", segment5=").append(segment5); ", segment7='" + segment7 + '\'' +
sb.append(", segment6=").append(segment6); ", segment8='" + segment8 + '\'' +
sb.append(", segment7=").append(segment7); ", segment9='" + segment9 + '\'' +
sb.append(", segment8=").append(segment8); ", segment10='" + segment10 + '\'' +
sb.append(", segment9=").append(segment9); ", segment1Name='" + segment1Name + '\'' +
sb.append(", segment10=").append(segment10); ", segment2Name='" + segment2Name + '\'' +
sb.append(", segment1Name=").append(segment1Name); ", segment3Name='" + segment3Name + '\'' +
sb.append(", segment2Name=").append(segment2Name); ", segment4Name='" + segment4Name + '\'' +
sb.append(", segment3Name=").append(segment3Name); ", segment5Name='" + segment5Name + '\'' +
sb.append(", segment4Name=").append(segment4Name); ", segment6Name='" + segment6Name + '\'' +
sb.append(", segment5Name=").append(segment5Name); ", segment7Name='" + segment7Name + '\'' +
sb.append(", segment6Name=").append(segment6Name); ", segment8Name='" + segment8Name + '\'' +
sb.append(", segment7Name=").append(segment7Name); ", segment9Name='" + segment9Name + '\'' +
sb.append(", segment8Name=").append(segment8Name); ", segment10Name='" + segment10Name + '\'' +
sb.append(", segment9Name=").append(segment9Name); ", journalCurrencyCode='" + journalCurrencyCode + '\'' +
sb.append(", segment10Name=").append(segment10Name); ", sobCurrencyCode='" + sobCurrencyCode + '\'' +
sb.append(", journalCurrencyCode=").append(journalCurrencyCode); ", accountedDr=" + accountedDr +
sb.append(", sobCurrencyCode=").append(sobCurrencyCode); ", accountedCr=" + accountedCr +
sb.append(", accountedDr=").append(accountedDr); ", enteredDr=" + enteredDr +
sb.append(", accountedCr=").append(accountedCr); ", enteredCr=" + enteredCr +
sb.append(", enteredDr=").append(enteredDr); ", cfItem='" + cfItem + '\'' +
sb.append(", enteredCr=").append(enteredCr); ", attribute1='" + attribute1 + '\'' +
sb.append(", cfItem=").append(cfItem); ", attribute2=" + attribute2 +
sb.append(", attribute1=").append(attribute1); ", attribute3='" + attribute3 + '\'' +
sb.append(", attribute2=").append(attribute2); ", attribute4='" + attribute4 + '\'' +
sb.append(", attribute3=").append(attribute3); ", attribute5='" + attribute5 + '\'' +
sb.append(", attribute4=").append(attribute4); ", attribute6='" + attribute6 + '\'' +
sb.append(", attribute5=").append(attribute5); ", attribute7='" + attribute7 + '\'' +
sb.append(", attribute6=").append(attribute6); ", attribute8='" + attribute8 + '\'' +
sb.append(", attribute7=").append(attribute7); ", attribute9='" + attribute9 + '\'' +
sb.append(", attribute8=").append(attribute8); ", attribute10='" + attribute10 + '\'' +
sb.append(", attribute9=").append(attribute9); ", attribute11='" + attribute11 + '\'' +
sb.append(", attribute10=").append(attribute10); ", attribute12='" + attribute12 + '\'' +
sb.append(", attribute11=").append(attribute11); ", attribute13='" + attribute13 + '\'' +
sb.append(", attribute12=").append(attribute12); ", attribute14='" + attribute14 + '\'' +
sb.append(", attribute13=").append(attribute13); ", attribute15='" + attribute15 + '\'' +
sb.append(", attribute14=").append(attribute14); ", attribute16='" + attribute16 + '\'' +
sb.append(", attribute15=").append(attribute15); ", createdBy='" + createdBy + '\'' +
sb.append(", attribute16=").append(attribute16); ", createdDate=" + createdDate +
sb.append(", createdBy=").append(createdBy); ", lateUpdatedBy='" + lateUpdatedBy + '\'' +
sb.append(", createdDate=").append(createdDate); ", lateUpdatedDate=" + lateUpdatedDate +
sb.append(", lateUpdatedBy=").append(lateUpdatedBy); ", createTime=" + createTime +
sb.append(", lateUpdatedDate=").append(lateUpdatedDate); ", updateTime=" + updateTime +
sb.append(", createTime=").append(createTime); ", taskId='" + taskId + '\'' +
sb.append(", updateTime=").append(updateTime); ", periodJrMinDr=" + periodJrMinDr +
sb.append(", taskId=").append(taskId); '}';
sb.append("]");
return sb.toString();
} }
} }
\ No newline at end of file
...@@ -70,12 +70,18 @@ ...@@ -70,12 +70,18 @@
<result column="attribute14" jdbcType="VARCHAR" property="attribute14" /> <result column="attribute14" jdbcType="VARCHAR" property="attribute14" />
<result column="attribute15" jdbcType="VARCHAR" property="attribute15" /> <result column="attribute15" jdbcType="VARCHAR" property="attribute15" />
<result column="attribute16" jdbcType="VARCHAR" property="attribute16" /> <result column="attribute16" jdbcType="VARCHAR" property="attribute16" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" /> <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="is_select" jdbcType="VARCHAR" property="isSelect" />
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate" /> <result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
<result column="late_updated_by" jdbcType="VARCHAR" property="lateUpdatedBy" /> <result column="late_updated_by" jdbcType="VARCHAR" property="lateUpdatedBy" />
<result column="late_updated_date" jdbcType="TIMESTAMP" property="lateUpdatedDate" /> <result column="late_updated_date" jdbcType="TIMESTAMP" property="lateUpdatedDate" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> <result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="data_type" jdbcType="VARCHAR" property="dataType" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
--> -->
id, organization_id, project_id, date, source, period, account_period, attribute, id, organization_id, project_id, date, source, period, account_period, attribute,
account_code, account_description, debit_amount, credit_amount, beginning_balance, account_code, account_description, debit_amount, credit_amount, beginning_balance,
ending_balance, create_by, create_time, update_time ending_balance, create_by, create_time, update_time, data_type
</sql> </sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CitTbamExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.CitTbamExample" resultMap="BaseResultMap">
<!-- <!--
......
...@@ -317,7 +317,6 @@ ...@@ -317,7 +317,6 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
UNION ALL UNION ALL
select select
...@@ -347,7 +346,7 @@ ...@@ -347,7 +346,7 @@
journal_source, category, name, voucher_num, description, org_code, subject_code, journal_source, category, name, voucher_num, description, org_code, subject_code,
org_name, subject_name, accounted_dr, accounted_cr, org_name, subject_name, accounted_dr, accounted_cr,
created_by, created_date, late_updated_by, created_by, created_date, late_updated_by,
late_updated_date, create_time, update_time late_updated_date, create_time, update_time,is_select
from cit_journal_entry_adjust where project_id = #{projectId,jdbcType=VARCHAR} from cit_journal_entry_adjust where project_id = #{projectId,jdbcType=VARCHAR}
<if test="orgCode != null"> <if test="orgCode != null">
and org_code = #{orgCode,jdbcType=VARCHAR} and org_code = #{orgCode,jdbcType=VARCHAR}
...@@ -367,7 +366,7 @@ ...@@ -367,7 +366,7 @@
status, header_id, line_num, approval_status, posted_status, period as account_period, accounting_date, status, header_id, line_num, approval_status, posted_status, period as account_period, accounting_date,
journal_source, category, name, voucher_num, description, segment1 as org_code, segment3 as subject_code, journal_source, category, name, voucher_num, description, segment1 as org_code, segment3 as subject_code,
segment1_name as org_name, segment3_name as subject_name, accounted_dr, accounted_cr, segment1_name as org_name, segment3_name as subject_name, accounted_dr, accounted_cr,
created_by, created_date, late_updated_by, late_updated_date, create_time, update_time created_by, created_date, late_updated_by, late_updated_date, create_time, update_time, is_select
from journal_entry where project_id = #{projectId,jdbcType=VARCHAR} from journal_entry where project_id = #{projectId,jdbcType=VARCHAR}
<if test="orgCode != null"> <if test="orgCode != null">
and segment1 = #{orgCode,jdbcType=VARCHAR} and segment1 = #{orgCode,jdbcType=VARCHAR}
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="task_id" jdbcType="VARCHAR" property="taskId" /> <result column="task_id" jdbcType="VARCHAR" property="taskId" />
<result column="is_select" jdbcType="VARCHAR" property="isSelect" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
......
...@@ -1599,6 +1599,7 @@ ...@@ -1599,6 +1599,7 @@
$scope.handInputModel.penValue = $scope.taxCellDetail.penValue; $scope.handInputModel.penValue = $scope.taxCellDetail.penValue;
} }
if ($scope.handInputModel.amount || $scope.handInputModel.name || $scope.handInputModel.keyinData || $scope.handInputModel.penValue ) { if ($scope.handInputModel.amount || $scope.handInputModel.name || $scope.handInputModel.keyinData || $scope.handInputModel.penValue ) {
$scope.handInputModel.accountCode = $scope.taxCellDetail.accountCode;
// 前端保存数据 // 前端保存数据
return citReportService.addCellManualData($scope.handInputModel, logDto).then(function (manualData) { return citReportService.addCellManualData($scope.handInputModel, logDto).then(function (manualData) {
var obj = manualData.data.data; var obj = manualData.data.data;
......
...@@ -20,10 +20,13 @@ ...@@ -20,10 +20,13 @@
} }
entityInit(); entityInit();
$scope.filterArr = ["isSelect", "=", "1"];
$scope.dataGridOptions = { $scope.dataGridOptions = {
bindingOptions: { bindingOptions: {
columns: 'entryListColumns', columns: 'entryListColumns',
dataSource: 'relObj.entryDataSource' dataSource: 'relObj.entryDataSource',
selectionFilter: 'filterArr'
}, },
loadPanel: { loadPanel: {
enabled: false enabled: false
...@@ -32,8 +35,10 @@ ...@@ -32,8 +35,10 @@
mode: "standard" mode: "standard"
}, },
selection: { selection: {
mode: "multiple"/*, mode: "multiple",
deferred: true*/ selectAllMode: "allPages",
showCheckBoxesMode: "always",
deferred: true
}, },
sorting: { sorting: {
mode: 'single' mode: 'single'
...@@ -47,13 +52,17 @@ ...@@ -47,13 +52,17 @@
placeholder: $translate.instant('SearchPlaceholder') placeholder: $translate.instant('SearchPlaceholder')
}, },
onSelectionChanged: function (selectedItems) { onSelectionChanged: function (selectedItems) {
$scope.dataGrid.getSelectedRowsData().done(function (rowData) {
$scope.relObj.logs = $scope.doCalcute(rowData);
});
/* $scope.selectedItems = $.map(selectedItems.selectedRowsData, function (data) { /* $scope.selectedItems = $.map(selectedItems.selectedRowsData, function (data) {
$scope.selectedAddDatasourceItems = selectedItems.selectedRowsData; $scope.selectedAddDatasourceItems = selectedItems.selectedRowsData;
return data.id; return data.id;
}); });
var
$log.debug($scope.selectedItems);*/ $log.debug($scope.selectedItems);*/
$scope.doCalcute(selectedItems.selectedRowsData); /*$scope.doCalcute(selectedItems.selectedRowsData);
var _in = {}; var _in = {};
if (selectedItems.currentDeselectedRowKeys.length == 0) { if (selectedItems.currentDeselectedRowKeys.length == 0) {
_in.operate = "增"; _in.operate = "增";
...@@ -62,6 +71,7 @@ ...@@ -62,6 +71,7 @@
_in.orgCode = selectedItems.currentSelectedRowKeys[0].orgCode; _in.orgCode = selectedItems.currentSelectedRowKeys[0].orgCode;
_in.organizationId = selectedItems.currentSelectedRowKeys[0].organizationId; _in.organizationId = selectedItems.currentSelectedRowKeys[0].organizationId;
_in.id = selectedItems.currentSelectedRowKeys[0].id; _in.id = selectedItems.currentSelectedRowKeys[0].id;
_in.subjectCode= selectedItems.currentSelectedRowKeys[0].subjectCode;
} else { } else {
_in.operate = "减"; _in.operate = "减";
_in.accountingDate = selectedItems.currentDeselectedRowKeys[0].accountingDate; _in.accountingDate = selectedItems.currentDeselectedRowKeys[0].accountingDate;
...@@ -69,9 +79,10 @@ ...@@ -69,9 +79,10 @@
_in.orgCode = selectedItems.currentDeselectedRowKeys[0].orgCode; _in.orgCode = selectedItems.currentDeselectedRowKeys[0].orgCode;
_in.organizationId = selectedItems.currentDeselectedRowKeys[0].organizationId; _in.organizationId = selectedItems.currentDeselectedRowKeys[0].organizationId;
_in.id = selectedItems.currentDeselectedRowKeys[0].id; _in.id = selectedItems.currentDeselectedRowKeys[0].id;
_in.subjectCode= selectedItems.currentDeselectedRowKeys[0].subjectCode;
} }
_in.subjectCode = $scope.relObj.entryLogIdByCode; _in.subjectCode = $scope.relObj.entryLogIdByCode;
$scope.relObj.logs.push(_in); $scope.relObj.logs.push(_in);*/
}, },
allowColumnResizing: true, allowColumnResizing: true,
hoverStateEnabled: true, hoverStateEnabled: true,
...@@ -80,10 +91,33 @@ ...@@ -80,10 +91,33 @@
showColumnLines: true, showColumnLines: true,
filterRow: { filterRow: {
visible: true visible: true
}/*, },
selectionFilter: ["Task_Status", "=", "Completed"]*/ onInitialized: function (e) {
$scope.dataGrid = e.component;
}
}; };
$scope.relObj.initMethod = function () {
$scope.dataGrid.getSelectedRowsData().done(function (rowData) {
$scope.relObj.logs = $scope.doCalcute(rowData);
switch ($scope.relObj.backSelect) {
case $('check1').data("type"):
$('#check1').click();
break;
case $('check2').data("type"):
$('#check2').click();
break;
case $('check3').data("type"):
$('#check3').click();
break;
case $('check4').data("type"):
$('#check4').click();
break;
}
});
}
//设置数据源表格的列 //设置数据源表格的列
var getEntryListColumns = function () { var getEntryListColumns = function () {
return [ return [
...@@ -135,8 +169,7 @@ ...@@ -135,8 +169,7 @@
$('#entryListModal').modal('hide'); $('#entryListModal').modal('hide');
} }
$scope.selectRadio = function(event){ $scope.selectRadio = function (event) {
debugger;
_ra = event.target.value; _ra = event.target.value;
} }
...@@ -153,6 +186,7 @@ ...@@ -153,6 +186,7 @@
// //
//配置计算公式进行计算 //配置计算公式进行计算
$scope.doCalcute = function (data) { $scope.doCalcute = function (data) {
var log = [];
var v1 = 0;//借方发生额合计 var v1 = 0;//借方发生额合计
var v2 = 0//贷方发生额合计 var v2 = 0//贷方发生额合计
var _index = 0; var _index = 0;
...@@ -164,13 +198,23 @@ ...@@ -164,13 +198,23 @@
v1 += parseFloat(item.accountedDr); v1 += parseFloat(item.accountedDr);
v2 += parseFloat(item.accountedCr); v2 += parseFloat(item.accountedCr);
} }
_index++; log.push({
operate: "增",
accountingDate: item.accountingDate,
voucherNum: item.voucherNum,
orgCode: item.orgCode,
organizationId: item.organizationId,
id: item.id,
subjectCode: item.subjectCode
}); });
_index++;
});
$scope.entry.JFFSETotal = v1.toFixed(2); $scope.entry.JFFSETotal = v1.toFixed(2);
$scope.entry.DFFSETotal = v2.toFixed(2); $scope.entry.DFFSETotal = v2.toFixed(2);
$scope.entry.QMYETotalFirst = (v2 - v1).toFixed(2); $scope.entry.QMYETotalFirst = (v2 - v1).toFixed(2);
$scope.entry.QMYETotalend = (v1 - v2).toFixed(2); $scope.entry.QMYETotalend = (v1 - v2).toFixed(2);
return log;
} }
} }
......
...@@ -28,17 +28,17 @@ ...@@ -28,17 +28,17 @@
</div> </div>
<div class="row backColor" style="margin-right: 0px;"> <div class="row backColor" style="margin-right: 0px;">
<div class="col-sm-3 "> <div class="col-sm-3 ">
<input type="radio" name ="checkRadio" ng-click ="selectRadio($event)" ng-value="entry.JFFSETotal" > <h4 translate="JFFSETotal"></h4>:{{entry.JFFSETotal}} <input type="radio" name ="checkRadio" data-type="1" id = "check1" ng-click ="selectRadio($event)" ng-value="entry.JFFSETotal" > <h4 translate="JFFSETotal"></h4>:{{entry.JFFSETotal}}
</div> </div>
<div class="col-sm-3 "> <div class="col-sm-3 ">
<span><input type="radio" name ="checkRadio" ng-click ="selectRadio($event)" ng-value="entry.DFFSETotal" > <h4 translate="DFFSETotal"></h4>:{{entry.DFFSETotal}}</span> <span><input type="radio" id = "check=2" data-type="2" name ="checkRadio" ng-click ="selectRadio($event)" ng-value="entry.DFFSETotal" > <h4 translate="DFFSETotal"></h4>:{{entry.DFFSETotal}}</span>
</div> </div>
<div class="col-sm-3 "> <div class="col-sm-3 ">
<input type="radio" name ="checkRadio" ng-click ="selectRadio($event)" ng-value="entry.QMYETotalFirst" > <h4 translate="QMYETotalFirst"></h4>:{{entry.QMYETotalFirst}} <input type="radio" name ="checkRadio" data-type="3" id = "check=3" ng-click ="selectRadio($event)" ng-value="entry.QMYETotalFirst" > <h4 translate="QMYETotalFirst"></h4>:{{entry.QMYETotalFirst}}
</div> </div>
<div class="col-sm-3 "> <div class="col-sm-3 ">
<input type="radio" name ="checkRadio" ng-click ="selectRadio($event)" ng-value="entry.QMYETotalend" > <h4 translate="QMYETotalend"></h4>:{{entry.QMYETotalend}} <input type="radio" id = "check=4" data-type="4" name ="checkRadio" ng-click ="selectRadio($event)" ng-value="entry.QMYETotalend" > <h4 translate="QMYETotalend"></h4>:{{entry.QMYETotalend}}
</div> </div>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -635,8 +635,12 @@ ...@@ -635,8 +635,12 @@
allowColumnResizing: true, allowColumnResizing: true,
//columnAutoWidth: true, //columnAutoWidth: true,
hoverStateEnabled: true, hoverStateEnabled: true,
onRowDbClick: function (e) {//监听分录行点击事件 onRowDbClick: function (e) {//监听分录行点击事件,该事件必须注册 dxDataGridService.registerRowDbClick
$scope.loadEntryListDataList(e); $scope.loadEntryListDataList(e).then(function(res){
setTimeout(function(){ //给弹框流出来足够的数据加载时间
res();
}, 400);
});
} }
}; };
...@@ -1616,18 +1620,23 @@ ...@@ -1616,18 +1620,23 @@
$scope.detail.entryIndex = e.dataIndex; $scope.detail.entryIndex = e.dataIndex;
$scope.detail.entryLogIdByCode = e.data.accountCode; $scope.detail.entryLogIdByCode = e.data.accountCode;
$scope.detail.entryLogIdById = e.data.id; $scope.detail.entryLogIdById = e.data.id;
cellCommentService.loadEntryListDataList(e.data.accountCode, e.data.projectId).success(function (res) { $scope.detail.accountCode = e.data.accountCode;
var delay = $q.defer();
cellCommentService.loadEntryListDataList(e.data).success(function (res) {
$scope.relObj.account = e.data.accountCode; $scope.relObj.account = e.data.accountCode;
if (res.resultMsg == "success") { if (res.resultMsg != null) {
$scope.relObj.entryDataSource = commonWebService._index(res.data); $scope.relObj.entryDataSource = commonWebService._index(res.data);
$scope.relObj.backSelect = res.resultMsg;
delay.resolve($scope.relObj.initMethod);
} }
$('#entryListModal').modal('show'); $('#entryListModal').modal('show');
}).error(function (error) { }).error(function (error) {
alert(error); alert(error);
delay.reject(error)
}); });
return delay.promise;
} }
//-------------------------------------------------------------------- end -------------------------------------------------------------- //-------------------------------------------------------------------- end --------------------------------------------------------------
//设置数据源表格的列 //设置数据源表格的列
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
{{'cellCommentDialogComment' | translate}} {{'cellCommentDialogComment' | translate}}
</div> </div>
<div> <div>
<textarea id="remark-input-textarea" class="form-control" ng-model="addingRemark"></textarea> <textarea id="remark-input-textarea" style=" height: 150px;" class="form-control" ng-model="addingRemark"></textarea>
</div> </div>
<div style="height:60px;"> <div style="height:60px;">
<button class="btn btn-primary add-remark-btn" ng-click="addCellComment()">{{'cellCommentCommit' <button class="btn btn-primary add-remark-btn" ng-click="addCellComment()">{{'cellCommentCommit'
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
if (!Number.prototype.formatAmount) { if (!Number.prototype.formatAmount) {
Number.prototype.formatAmount = function (decPlaces, type) { Number.prototype.formatAmount = function (decPlaces, type) {
if(type){ if(type){
return Number(decPlaces.toString().match(/^\d+(?:\.\d{2})?/)); return Number(decPlaces.toString().toFixed(2));
} }
decPlaces = isNaN(decPlaces = Math.abs(decPlaces)) ? 2 : decPlaces; decPlaces = isNaN(decPlaces = Math.abs(decPlaces)) ? 2 : decPlaces;
var n = this.toFixed(decPlaces); var n = this.toFixed(decPlaces);
......
...@@ -14,8 +14,8 @@ webservices.factory('cellCommentService', ['$http', 'apiConfig', function ($http ...@@ -14,8 +14,8 @@ webservices.factory('cellCommentService', ['$http', 'apiConfig', function ($http
getCellInformation: function (data) { getCellInformation: function (data) {
return $http.get('/CellComment/getCellInformation?sql=' + data.relSql, apiConfig.createVat()); return $http.get('/CellComment/getCellInformation?sql=' + data.relSql, apiConfig.createVat());
}, },
loadEntryListDataList: function (code, projectId) { loadEntryListDataList: function (data) {
return $http.get('/CellComment/loadEntryListDataList?code=' + code + "&projectId=" + projectId, apiConfig.createVat()); return $http.post('/CellComment/loadEntryListDataList', data, apiConfig.createVat());
}, },
updateAdjust : function (data) { updateAdjust : function (data) {
return $http.post('/CellComment/updateAdjust', JSON.stringify(data), apiConfig.createVat({contentType: 'application/json;charset=UTF-8'})); return $http.post('/CellComment/updateAdjust', JSON.stringify(data), apiConfig.createVat({contentType: 'application/json;charset=UTF-8'}));
......
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