Commit a13a5497 authored by kevin's avatar kevin

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

parents df8996da d4f24130
package pwc.taxtech.atms.common.schedule;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
......@@ -50,11 +52,13 @@ public class OrgSyncJob extends QuartzJobBean {
headers.put("Content-Type", "application/x-www-form-urlencoded");
headers.put("Idap", "eddie.wu_v");
int pageSize = 1;
List<OrgSyncData> failObjs = Lists.newArrayList();
try {
for (int i = 1; i <= pageSize; i++) {
String response = HttpUtil.get(orgSyncUrl+"?currentPage="+i, headers);
logger.info("机构信息同步记录:"+response);
DDSyncOrgInfo ddSyncOrgInfo = JSONObject.parseObject(response, DDSyncOrgInfo.class);
pageSize = ddSyncOrgInfo.getPageSize();
pageSize = ddSyncOrgInfo.getTotalPage();
List<OrgSyncData> orgSyncDatas = ddSyncOrgInfo.getData();
orgSyncDatas.forEach(osd -> {
OrganizationExample example = new OrganizationExample();
......@@ -77,10 +81,13 @@ public class OrgSyncJob extends QuartzJobBean {
if (regions.size() > 0) {
o.setRegionId(regions.get(0).getId());
}
if(organizationMapper.countByExample(example)<1){
failObjs.add(osd);
}
organizationMapper.updateByExampleSelective(o, example);
});
}
logger.info("同步未匹配的机构记录:"+ JSON.toJSONString(failObjs));
} catch (Exception e) {
logger.error(String.format("机构信息同步异常:[%s]", e.getMessage()), e);
}
......
package pwc.taxtech.atms.common.util;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @Auther: Gary J Li
* @Date: 16/03/2019 10:11
* @Description:
*/
public class BaseThreadFactory implements ThreadFactory {
private static final AtomicInteger poolNumber = new AtomicInteger(1);
private final ThreadGroup group;
private final AtomicInteger threadNumber = new AtomicInteger(1);
private final String namePrefix;
public BaseThreadFactory(String poolName) {
SecurityManager s = System.getSecurityManager();
group = (s != null) ? s.getThreadGroup() :
Thread.currentThread().getThreadGroup();
namePrefix = poolName+"-pool-" +
poolNumber.getAndIncrement() +
"-thread-";
}
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(group, r,
namePrefix + threadNumber.getAndIncrement(),
0);
if (t.isDaemon())
t.setDaemon(false);
if (t.getPriority() != Thread.NORM_PRIORITY)
t.setPriority(Thread.NORM_PRIORITY);
return t;
}
}
......@@ -630,6 +630,38 @@ public class DateUtils {
return true;
}
/**
* 获得该月第一天
* @param year
* @param month
* @return
*/
public static String getFirstDayOfMonth(int year,int month){
Calendar cal = Calendar.getInstance();
cal.set(Calendar.YEAR,year);
cal.set(Calendar.MONTH, month-1);
int firstDay = cal.getActualMinimum(Calendar.DAY_OF_MONTH);
cal.set(Calendar.DAY_OF_MONTH, firstDay);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(cal.getTime());
}
/**
* 获得该月最后一天
* @param year
* @param month
* @return
*/
public static String getLastDayOfMonth(int year,int month){
Calendar cal = Calendar.getInstance();
cal.set(Calendar.YEAR,year);
cal.set(Calendar.MONTH, month-1);
int lastDay = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
cal.set(Calendar.DAY_OF_MONTH, lastDay);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(cal.getTime());
}
public static String getPeriodBegin(int year, int period) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Calendar calendar = Calendar.getInstance();
......
package pwc.taxtech.atms.constant;
/**
* @Auther: Gary J Li
* @Date: 16/03/2019 00:44
* @Description:
*/
public class EbsExtractTypeConstant {
public static final int TB = 100;
public static final int JE = 101;
public static final int BSPRC = 102;
public static final int PLPRC = 103;
public static final int BS = 104;
public static final int PL = 105;
public static final int CF = 106;
public static final int OCTB = 107;
public static final int RATE = 108;
}
package pwc.taxtech.atms.constant.enums;
public enum EnumErrorCodeMsg {
public enum EnumApiCodeMsg {
SUCCESS(0, "成功"),
APIERROR(-1, "接口异常"),
APIDATAEMPTY(-2, "接口输入数据为空");
APIDATAEMPTY(-2, "接口输入数据为空"),
/** ebs调用Msg**/
CALLSUCCESS(10000, "调用成功,获取数据中![%s]"),
CALLFAILED(-10000, "调用EBS接口失败![%s]"),
BUSY(-10001, "接口调用失败,系统正忙!"),
;
private Integer code;
private String msg;
EnumErrorCodeMsg(Integer code, String msg) {
EnumApiCodeMsg(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
......@@ -22,19 +29,19 @@ public enum EnumErrorCodeMsg {
return msg;
}
public static EnumErrorCodeMsg fromCode(Integer code){
for(EnumErrorCodeMsg error: EnumErrorCodeMsg.values()){
public static EnumApiCodeMsg fromCode(Integer code){
for(EnumApiCodeMsg error: EnumApiCodeMsg.values()){
if(error.getCode().intValue()==code.intValue())return error;
}
// 超出范围值默认返回异常
return EnumErrorCodeMsg.APIERROR;
return EnumApiCodeMsg.APIERROR;
}
public static String getMsg(Integer code){
for(EnumErrorCodeMsg error: EnumErrorCodeMsg.values()){
for(EnumApiCodeMsg error: EnumApiCodeMsg.values()){
if(error.getCode().intValue()==code.intValue())return error.msg;
}
// 超出范围值默认返回异常
return EnumErrorCodeMsg.APIERROR.msg;
return EnumApiCodeMsg.APIERROR.msg;
}
}
package pwc.taxtech.atms.constant.enums;
public enum EnumEbsExtractType {
TB(100,"月度科目余额表"),
JE(101,"日记账"),
BSPRC(102,"资产负债表PRC"),
PLPRC(103,"利润表PRC"),
BS(104,"资产负债表"),
PL(105,"利润表"),
CF(106,"直接法现金流量表"),
OCTB(107,"所有者权益变动表"),
RATE(108,"汇率表");
private int code;
private String file;
EnumEbsExtractType(int code, String file) {
this.code = code;
this.file = file;
}
public int getCode() {
return code;
}
public String getFile() {
return file;
}
public static String getNameByCode(int code){
for(EnumEbsExtractType enumImportType : EnumEbsExtractType.values()){
if(Integer.compare(code, enumImportType.getCode())==0){
return enumImportType.getFile();
}
}
return null;
}
}
......@@ -11,6 +11,10 @@ public class DataExtractParam {
private List<Integer> dataTypes;
private String effectiveDateFrom;
private String effectiveDateTo;
public String getPeriod() {
return period;
}
......@@ -34,4 +38,20 @@ public class DataExtractParam {
public void setDataTypes(List<Integer> dataTypes) {
this.dataTypes = dataTypes;
}
public String getEffectiveDateFrom() {
return effectiveDateFrom;
}
public void setEffectiveDateFrom(String effectiveDateFrom) {
this.effectiveDateFrom = effectiveDateFrom;
}
public String getEffectiveDateTo() {
return effectiveDateTo;
}
public void setEffectiveDateTo(String effectiveDateTo) {
this.effectiveDateTo = effectiveDateTo;
}
}
package pwc.taxtech.atms.dto.ebsdto;
/**
* @Auther: eddie.wu_v
* @Date: 2019/3/16 16:55
* @Description:
*/
public class EbsCallRateResp {
private String companyCode;
private int requestStatus;
private String errorMessage;
private String records;
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
public String getCompanyCode() {
return companyCode;
}
public void setRequestStatus(int requestStatus) {
this.requestStatus = requestStatus;
}
public int getRequestStatus() {
return requestStatus;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public String getErrorMessage() {
return errorMessage;
}
public void setRecords(String records) {
this.records = records;
}
public String getRecords() {
return records;
}
}
package pwc.taxtech.atms.dto.ebsdto;
import java.util.Date;
/**
* @Auther: eddie.wu_v
* @Date: 2019/3/15 17:07
* @Description:
*/
public class EbsCallResp {
private String errBuf;
private String retCode;
private int ledgerId;
private String companyCode;
private String period;
private String prcFlag;
private int taskId;
private String taskStatus;
private String taskDesc;
public void setErrBuf(String errBuf) {
this.errBuf = errBuf;
}
public String getErrBuf() {
return errBuf;
}
public void setRetCode(String retCode) {
this.retCode = retCode;
}
public String getRetCode() {
return retCode;
}
public void setLedgerId(int ledgerId) {
this.ledgerId = ledgerId;
}
public int getLedgerId() {
return ledgerId;
}
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
public String getCompanyCode() {
return companyCode;
}
public void setPeriod(String period) {
this.period = period;
}
public String getPeriod() {
return period;
}
public void setPrcFlag(String prcFlag) {
this.prcFlag = prcFlag;
}
public String getPrcFlag() {
return prcFlag;
}
public void setTaskId(int taskId) {
this.taskId = taskId;
}
public int getTaskId() {
return taskId;
}
public void setTaskStatus(String taskStatus) {
this.taskStatus = taskStatus;
}
public String getTaskStatus() {
return taskStatus;
}
public void setTaskDesc(String taskDesc) {
this.taskDesc = taskDesc;
}
public String getTaskDesc() {
return taskDesc;
}
}
......@@ -2013,7 +2013,7 @@ public class OrganizationServiceImpl extends BaseService{
if (StringUtils.isEmpty(org.getStructureId())) {
org.setStructureId("null");
}
organizationMapper.insert(org);
organizationMapper.insertSelective(org);
OperationResultDto<Object> validateSetRet = validateEnterpriseAccountSetDateTimeOverlap(
orgDto.getEnterpriseAccountSetOrgList());
if (!validateSetRet.getResult()) {
......@@ -2023,63 +2023,65 @@ public class OrganizationServiceImpl extends BaseService{
}
// 添加账套
for (EnterpriseAccountSetOrgDto p : orgDto.getEnterpriseAccountSetOrgList()) {
EnterpriseAccountSetOrg enterpriseAccountSetOrg = new EnterpriseAccountSetOrg();
enterpriseAccountSetOrg.setId(CommonUtils.getUUID());
enterpriseAccountSetOrg.setEnterpriseAccountSetId(p.getEnterpriseAccountSetId());
enterpriseAccountSetOrg.setOrganizationId(orgDto.getId());
if (!Strings.isEmpty(p.getEffectiveDateStr())) {
enterpriseAccountSetOrg.setEffectiveDate(DateTimeFormat.forPattern("yyyy-MM-dd")
.parseDateTime(p.getEffectiveDateStr() + "-01").toDate());
p.setEffectiveDate(DateTimeFormat.forPattern("yyyy-MM-dd")
.parseDateTime(p.getEffectiveDateStr() + "-01").toDate());
}
if(!orgDto.getOversea()){
for (EnterpriseAccountSetOrgDto p : orgDto.getEnterpriseAccountSetOrgList()) {
EnterpriseAccountSetOrg enterpriseAccountSetOrg = new EnterpriseAccountSetOrg();
enterpriseAccountSetOrg.setId(CommonUtils.getUUID());
enterpriseAccountSetOrg.setEnterpriseAccountSetId(p.getEnterpriseAccountSetId());
enterpriseAccountSetOrg.setOrganizationId(orgDto.getId());
if (!Strings.isEmpty(p.getEffectiveDateStr())) {
enterpriseAccountSetOrg.setEffectiveDate(DateTimeFormat.forPattern("yyyy-MM-dd")
.parseDateTime(p.getEffectiveDateStr() + "-01").toDate());
p.setEffectiveDate(DateTimeFormat.forPattern("yyyy-MM-dd")
.parseDateTime(p.getEffectiveDateStr() + "-01").toDate());
}
if (!Strings.isEmpty(p.getExpiredDateStr())) {
enterpriseAccountSetOrg.setExpiredDate(DateTimeFormat.forPattern("yyyy-MM-dd")
.parseDateTime(p.getExpiredDateStr() + "-01").plusMonths(1).minusDays(1).toDate());
p.setExpiredDate(DateTimeFormat.forPattern("yyyy-MM-dd")
.parseDateTime(p.getExpiredDateStr() + "-01").plusMonths(1).minusDays(1).toDate());
if (!Strings.isEmpty(p.getExpiredDateStr())) {
enterpriseAccountSetOrg.setExpiredDate(DateTimeFormat.forPattern("yyyy-MM-dd")
.parseDateTime(p.getExpiredDateStr() + "-01").plusMonths(1).minusDays(1).toDate());
p.setExpiredDate(DateTimeFormat.forPattern("yyyy-MM-dd")
.parseDateTime(p.getExpiredDateStr() + "-01").plusMonths(1).minusDays(1).toDate());
}
enterpriseAccountSetOrgMapper.insert(enterpriseAccountSetOrg);
}
enterpriseAccountSetOrgMapper.insert(enterpriseAccountSetOrg);
}
// 添加服务
// For VAT, update Rule Engine tables after updating
// OrganizationServiceTemplateGroup
// .NET中定义了以下变量,但未被使用,故在此处注释 defaultRule, reportRules
OrganizationServiceTemplateGroupDto vatSetting = orgDto.getOrganizationServiceTemplateGroupList().stream()
.filter(t -> ServiceTypeEnum.VAT.toString().equals(t.getServiceTypeId())).findFirst().orElse(null);
if (vatSetting != null) { // If currently no rule and new rule should be added
TemplateGroup templateGrp = vatSetting.getTemplateGroupId() != null
? templateGroupMapper.selectByPrimaryKey(vatSetting.getTemplateGroupId())
: null;
// In organization module tax payer type is 1&2 while 0&1 in rule engine
Integer newTaxPayerType = (templateGrp != null && templateGrp.getPayTaxType() != null)
? templateGrp.getPayTaxType() - 1
: VatTaxPayerTypeEnum.General.value();
TaxPayerReportRule newRule = new TaxPayerReportRule();
newRule.setId(distributedIdService.nextId());
newRule.setIsDefault(false);
newRule.setOrganizationId(orgDto.getId());
newRule.setTemplateGroupId(vatSetting.getTemplateGroupId());
newRule.setTaxPayerType(newTaxPayerType); // Use tax payer type related to template group
newRule.setCreateTime(now);
newRule.setUpdateTime(now);
taxPayerReportRuleMapper.insert(newRule);
}
for (OrganizationServiceTemplateGroupDto p : orgDto.getOrganizationServiceTemplateGroupList()) {
OrganizationServiceTemplateGroup orgServiceTempGroup = new OrganizationServiceTemplateGroup();
orgServiceTempGroup.setId(distributedIdService.nextId());
orgServiceTempGroup.setOrganizationId(orgDto.getId());
orgServiceTempGroup.setServiceTypeId(p.getServiceTypeId());
orgServiceTempGroup.setTemplateGroupId(p.getTemplateGroupId());
organizationServiceTemplateGroupMapper.insert(orgServiceTempGroup);
}
// 添加服务
// For VAT, update Rule Engine tables after updating
// OrganizationServiceTemplateGroup
// .NET中定义了以下变量,但未被使用,故在此处注释 defaultRule, reportRules
OrganizationServiceTemplateGroupDto vatSetting = orgDto.getOrganizationServiceTemplateGroupList().stream()
.filter(t -> ServiceTypeEnum.VAT.toString().equals(t.getServiceTypeId())).findFirst().orElse(null);
if (vatSetting != null) { // If currently no rule and new rule should be added
TemplateGroup templateGrp = vatSetting.getTemplateGroupId() != null
? templateGroupMapper.selectByPrimaryKey(vatSetting.getTemplateGroupId())
: null;
// In organization module tax payer type is 1&2 while 0&1 in rule engine
Integer newTaxPayerType = (templateGrp != null && templateGrp.getPayTaxType() != null)
? templateGrp.getPayTaxType() - 1
: VatTaxPayerTypeEnum.General.value();
TaxPayerReportRule newRule = new TaxPayerReportRule();
newRule.setId(distributedIdService.nextId());
newRule.setIsDefault(false);
newRule.setOrganizationId(orgDto.getId());
newRule.setTemplateGroupId(vatSetting.getTemplateGroupId());
newRule.setTaxPayerType(newTaxPayerType); // Use tax payer type related to template group
newRule.setCreateTime(now);
newRule.setUpdateTime(now);
taxPayerReportRuleMapper.insert(newRule);
}
for (OrganizationServiceTemplateGroupDto p : orgDto.getOrganizationServiceTemplateGroupList()) {
OrganizationServiceTemplateGroup orgServiceTempGroup = new OrganizationServiceTemplateGroup();
orgServiceTempGroup.setId(distributedIdService.nextId());
orgServiceTempGroup.setOrganizationId(orgDto.getId());
orgServiceTempGroup.setServiceTypeId(p.getServiceTypeId());
orgServiceTempGroup.setTemplateGroupId(p.getTemplateGroupId());
organizationServiceTemplateGroupMapper.insert(orgServiceTempGroup);
}
// CopyModelTree(orgDto);//__restoreroy__
// CopyModelTree(orgDto);//__restoreroy__
addOrgSelfDimensionList(orgDto);
addOrgSelfDimensionList(orgDto);
}
// C#中的内部类CommonLogParams 在JAVA中已经被合并到OperationLogDto中
UpdateLogParams tempCommonLogParms = new UpdateLogParams();
tempCommonLogParms.setOperationModule(Organization.value());
......
......@@ -55,4 +55,6 @@ app_key=${app_key}
cookie.maxAgeSeconds=${cookie.maxAgeSeconds}
api_white_list=${api_white_list}
org_sync_url=${org_sync_url}
org_sync_token=${org_sync_token}
\ No newline at end of file
org_sync_token=${org_sync_token}
ebs_call_url=${ebs_call_url}
\ No newline at end of file
......@@ -54,3 +54,5 @@ cookie.maxAgeSeconds=86400
api_white_list=/ebs/api/v1/dd;
org_sync_url=http://10.96.238.10/erp-main-data-test-v2/api/companies
org_sync_token=174af08f
ebs_call_url=http://172.20.201.201:8020/ebs-proxy-test/dts
......@@ -56,4 +56,6 @@ app_key=983258e7fd04d7fa0534735f7b1c33f3
cookie.maxAgeSeconds=18000
api_white_list=/ebs/api/v1/dd;
org_sync_url=http://10.96.238.10/erp-main-data-test-v2/api/companies
org_sync_token=174af08f
\ No newline at end of file
org_sync_token=174af08f
ebs_call_url=http://172.20.201.201:8020/ebs-proxy-test/dts
......@@ -48,4 +48,9 @@ check_ticket=false
get_user_info_url=http://mis-test.diditaxi.com.cn/auth/sso/api/
app_id=2500
app_key=983258e7fd04d7fa0534735f7b1c33f3
cookie.maxAgeSeconds=86400
\ No newline at end of file
cookie.maxAgeSeconds=86400
api_white_list=/ebs/api/v1/dd;
org_sync_url=http://10.96.238.10/erp-main-data-test-v2/api/companies
org_sync_token=174af08f
ebs_call_url=http://172.20.201.201:8020/ebs-proxy-test/dts
......@@ -53,6 +53,8 @@ public abstract class CommonIT {
private SqlSessionFactory sqlSessionFactory;
@Autowired
protected ObjectMapper objectMapper;
@Autowired
protected DataImportLogMapper dataImportLogMapper;
@Autowired
protected AreaMapper areaMapper;
......
......@@ -809,6 +809,7 @@
"dateFormat4YearMonthDay": "yyyy-mm-dd",
"dateFormat4YearMonthDayCh": "yyyy-mm-dd",
"RecordSize": "Record Size",
"ExtractFile": "Extract File",
"TaxPayerIdNum": "纳税人识别号",
"ExtractDistribution": "Extract Distribution",
......
......@@ -1913,5 +1913,8 @@
"Company": "Company",
"CompanySimpleName": "Company Simple Name",
"DriverType": "Driver Type",
"FileExportSuccess": "File Export Success",
"FileExportFailed": "File Export Failed",
"~MustBeEndOneApp": "I Must be the End One, please!"
}
\ No newline at end of file
......@@ -856,6 +856,7 @@
"startsWith": "起始于",
"RecordSize": "记录条数",
"ExtractFile": "抽取类型",
"TaxPayerIdNum": "纳税人识别号",
"ExtractDistribution": "抽取分发",
"Log":"日志",
......
......@@ -2276,6 +2276,8 @@
"CompanySimpleName": "公司简称",
"DriverType": "司机类型",
"FileExportSuccess": "文件下载成功!",
"FileExportFailed": "文件下载失败!",
"~MustBeEndOneApp": "我必须是最后一个!"
}
\ No newline at end of file
......@@ -52,7 +52,7 @@
$scope.selectCountry = '';
$scope.internationalDataList = constant.internationalDataList;
$scope.countryList = [];
$scope.countryList = constant.countryCNList;
$scope.companyList = [];
var date = new Date();
......@@ -540,23 +540,15 @@
};
var initCompanyList = function () {
vatImportService.getAnalysisInternationalCompanyList($scope.importType,$scope.UploadPeriodTime).success(function (data) {
orgService.getOrgListByUserId().success(function (data) {
if (data) {
$scope.companyList = data;
}
});
};
var initCountryList = function () {
vatImportService.getAnalysisInternationalCountryList($scope.importType,$scope.UploadPeriodTime).success(function (data) {
if (data) {
$scope.countryList = data;
}
});
};
$scope.selectCompanyEvent = function(company){
$scope.selectCompany=company;
$scope.selectCompanyEvent = function(i){
$scope.selectCompany=i.name;
refreshGrid();
};
......@@ -632,8 +624,6 @@
default:
break;
}
initCompanyList();
initCountryList();
};
//开始
......@@ -643,6 +633,7 @@
checkUserOrganizationPermissionList();
getUserPermission();
initDatePicker();
initCompanyList();
$scope.$watch('importExcelFile', function (newValue, oldValue) {
if (newValue !== null && newValue !== oldValue) {
......
......@@ -15,11 +15,11 @@
<span class="text-bold" translate="SelectedImportType"></span>:
<div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 120px;">
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 140px;">
{{selectType ? ((selectType)|translate):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span>
</button>
<ul class="dropdown-menu" style="width: 120px;" aria-labelledby="dropdownMenu2">
<ul class="dropdown-menu" style="width: 140px;" aria-labelledby="dropdownMenu2">
<li ng-repeat="i in internationalDataList" ng-click="changeTab(i)">
<div class="checkbox-custom checkbox-default">
<span style="margin-left:15px; float: left;">{{(i.type)|translate}}</span>
......@@ -36,11 +36,11 @@
<span class="text-bold" translate="Country"></span>:
<div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu3"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 120px;">
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 150px;">
{{selectCountry ? ((selectCountry)|translate):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span>
</button>
<ul class="dropdown-menu" style="width: 120px;" aria-labelledby="dropdownMenu3">
<ul class="dropdown-menu" style="width: 150px;max-height: 300px;overflow-y: auto;" aria-labelledby="dropdownMenu3">
<li ng-repeat="i in countryList" ng-click="selectCountryEvent(i)">
<div class="checkbox-custom checkbox-default">
<span style="margin-left:15px; float: left;">{{i}}</span>
......@@ -51,14 +51,14 @@
<span class="text-bold" translate="Company"></span>:
<div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu4"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 120px;">
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 250px;">
{{selectCompany ? ((selectCompany)|translate):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span>
</button>
<ul class="dropdown-menu" style="width: 120px;" aria-labelledby="dropdownMenu4">
<ul class="dropdown-menu" style="width: 250px;max-height: 300px;overflow-y: auto;" aria-labelledby="dropdownMenu4">
<li ng-repeat="i in companyList" ng-click="selectCompanyEvent(i)">
<div class="checkbox-custom checkbox-default">
<span style="margin-left:15px; float: left;">{{i}}</span>
<span style="margin-left:15px; float: left;">{{i.name}}</span>
</div>
</li>
</ul>
......@@ -66,22 +66,22 @@
<button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:10px">
{{fileName ? ((fileName)|limitString:maxTitleLength):'SelectFile' | translate}}
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:10px;max-width: 30px;">
{{fileName ? ((fileName)|limitString:5):'SelectFile' | translate}}
</button>
<button type="button" atms-permission permission-control-type="ngIf" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
<button type="button" atms-permission permission-control-type="ngIf"
class="btn btn-vat-primary" style="float:right;margin-left: 15px;margin-top: 8px;"
translate="ExportBtn"
ng-click="doExport()"></button>
<button type="button" atms-permission permission-control-type="ngIf"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
class="btn btn-vat-primary" style="float:right;margin-top: 8px;"
translate="ImportBtn"
ng-click="doUpload()"></button>
<button type="button" atms-permission permission-control-type="ngIf"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
class="btn btn-vat-primary" style="float:right;margin-top: 8px;"
translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
</div>
......
......@@ -358,7 +358,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.organizationId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "280px";
}else{
$('.periodInput')[0].style.left = "150px";
......
......@@ -331,7 +331,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.organizationId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "280px";
}else{
$('.periodInput')[0].style.left = "150px";
......
......@@ -335,7 +335,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.organizationId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "280px";
}else{
$('.periodInput')[0].style.left = "150px";
......
......@@ -7,7 +7,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
$scope.pleaseSelect = $translate.instant('PleaseSelect');
$scope.startDate = new Date(new Date().getFullYear() - 20, 1, 1);
$scope.endDate = new Date(new Date().getFullYear() + 20, 1, 1);
$scope.viewMode = 1;
$scope.viewMode = days;
var defaultSelcectRegion = {
id: 0,
......@@ -114,6 +114,18 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
// 是否为境外企业
editModel.oversea = $scope.isInternational;
if((typeof $scope.editOrgModel.logoutTime) ==="string"){
if (""!==($scope.editOrgModel.logoutTime)) {
$scope.editOrgModel.logoutTime = new Date($scope.editOrgModel.logoutTime);
}
}
if((typeof $scope.editOrgModel.foundationDate) ==="string"){
if (""!==($scope.editOrgModel.foundationDate)) {
$scope.editOrgModel.foundationDate = new Date($scope.editOrgModel.foundationDate);
}
}
if ($scope.isAdd) {
editModel.isActive = true;
orgService.addOrg(editModel).success(function (orgId) {
......@@ -250,9 +262,10 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
if ($scope.componentSelectedArea) {
editModel.areaID = $scope.selectedAreaId;
}
if((typeof $scope.editOrgModel.foundationDate) ==="string"){
if (""!==($scope.editOrgModel.foundationDate)) {
$scope.editOrgModel.foundationDate = new Date(Date.parse($scope.editOrgModel.foundationDate.replace(/-/g, "/")));
$scope.editOrgModel.foundationDate = new Date($scope.editOrgModel.foundationDate);
}
}
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -20,6 +20,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
padding: 5px;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -82,6 +82,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -85,6 +85,8 @@
.dropdown-menu {
min-width: 100px;
max-height: 300px;
overflow-y: auto;
li {
text-align: center;
......
......@@ -1538,15 +1538,15 @@ constant.citImportFileType = {
};
constant.fileTypeList = [
{code:0,type:"月度科目余额表"},
{code:1,type:"日记账"},
{code:2,type:"资产负债表PRC"},
{code:3,type:"利润表PRC"},
{code:4,type:"资产负债表"},
{code:5,type:"利润表"},
{code:6,type:"直接法现金流量表"},
{code:7,type:"所有者权益变动表"},
{code:8,type:"汇率表"}
{code:100,type:"月度科目余额表"},
{code:101,type:"日记账"},
{code:102,type:"资产负债表PRC"},
{code:103,type:"利润表PRC"},
{code:104,type:"资产负债表"},
{code:105,type:"利润表"},
{code:106,type:"直接法现金流量表"},
{code:107,type:"所有者权益变动表"},
{code:108,type:"汇率表"}
];
constant.domesticDataList = [
......@@ -1615,7 +1615,7 @@ constant.anlDownLoadFileNameList = [
{code:101,name:"国际税税务数据_"}
];
constant.countryCNList = ['安哥拉', '阿富汗', '阿尔巴尼亚', '阿尔及利亚', '安道尔共和国', '安圭拉岛', '安提瓜和巴布达', '阿根廷', '亚美尼亚', '阿森松', '澳大利亚', '奥地利', '阿塞拜疆', '巴哈马', '巴林', '孟加拉国', '巴巴多斯', '白俄罗斯', '比利时', '伯利兹', '贝宁', '百慕大群岛', '玻利维亚', '博茨瓦纳', '巴西', '文莱', '保加利亚', '布基纳法索', '缅甸', '布隆迪', '喀麦隆', '加拿大', '开曼群岛', '中非共和国', '乍得', '智利', '中国', '哥伦比亚', '刚果', '库克群岛', '哥斯达黎加', '古巴', '塞浦路斯', '捷克', '丹麦', '吉布提', '多米尼加共和国', '厄瓜多尔', '埃及', '萨尔瓦多', '爱沙尼亚', '埃塞俄比亚', '斐济', '芬兰', '法国', '法属圭亚那', '法属玻利尼西亚', '加蓬', '冈比亚', '格鲁吉亚', '德国', '加纳', '直布罗陀', '希腊', '格林纳达', '关岛', '危地马拉', '几内亚', '圭亚那', '海地', '洪都拉斯', '香港', '匈牙利', '冰岛', '印度', '印度尼西亚', '伊朗', '伊拉克', '爱尔兰', '以色列', '意大利', '科特迪瓦', '牙买加', '日本', '约旦', '柬埔寨', '哈萨克斯坦', '肯尼亚', '韩国', '科威特', '吉尔吉斯坦', '老挝', '拉脱维亚', '黎巴嫩', '莱索托', '利比里亚', '利比亚', '列支敦士登', '立陶宛', '卢森堡', '澳门', '马达加斯加', '马拉维', '马来西亚', '马尔代夫', '马里', '马耳他', '马里亚那群岛', '马提尼克', '毛里求斯', '墨西哥', '摩尔多瓦', '摩纳哥', '蒙古', '蒙特塞拉特岛', '摩洛哥', '莫桑比克', '纳米比亚', '瑙鲁', '尼泊尔', '荷属安的列斯', '荷兰', '新西兰', '尼加拉瓜', '尼日尔', '尼日利亚', '朝鲜', '挪威', '阿曼', '巴基斯坦', '巴拿马', '巴布亚新几内亚', '巴拉圭', '秘鲁', '菲律宾', '波兰', '葡萄牙', '波多黎各', '卡塔尔', '留尼旺', '罗马尼亚', '俄罗斯', '圣卢西亚', '圣文森特岛', '东萨摩亚(美)', '西萨摩亚', '圣马力诺', '圣多美和普林西比', '沙特阿拉伯', '塞内加尔', '塞舌尔', '塞拉利昂', '新加坡', '斯洛伐克', '斯洛文尼亚', '所罗门群岛', '索马里', '南非', '西班牙', '斯里兰卡', '圣卢西亚', '圣文森特', '苏丹', '苏里南', '斯威士兰', '瑞典', '瑞士', '叙利亚', '台湾省', '塔吉克斯坦', '坦桑尼亚', '泰国', '多哥', '汤加', '特立尼达和多巴哥', '突尼斯', '土耳其', '土库曼斯坦', '乌干达', '乌克兰', '阿拉伯联合酋长国', '英国', '美国', '乌拉圭', '乌兹别克斯坦', '委内瑞拉', '越南', '也门', '南斯拉夫', '津巴布韦', '扎伊尔', '赞比亚'];
constant.countryCNList = ['安哥拉', '阿富汗', '阿尔巴尼亚', '阿尔及利亚', '安道尔共和国', '安圭拉岛', '安提瓜和巴布达', '阿根廷', '亚美尼亚', '阿森松', '澳大利亚', '奥地利', '阿塞拜疆', '巴哈马', '巴林', '孟加拉国', '巴巴多斯', '白俄罗斯', '比利时', '伯利兹', '贝宁', '百慕大群岛', '玻利维亚', '博茨瓦纳', '巴西', '文莱', '保加利亚', '布基纳法索', '缅甸', '布隆迪', '喀麦隆', '加拿大', '开曼群岛', '中非共和国', '乍得', '智利', '中国', '哥伦比亚', '刚果', '库克群岛', '哥斯达黎加', '古巴', '塞浦路斯', '捷克', '丹麦', '吉布提', '多米尼加共和国', '厄瓜多尔', '埃及', '萨尔瓦多', '爱沙尼亚', '埃塞俄比亚', '斐济', '芬兰', '法国', '法属圭亚那', '法属玻利尼西亚', '加蓬', '冈比亚', '格鲁吉亚', '德国', '加纳', '直布罗陀', '希腊', '格林纳达', '关岛', '危地马拉', '几内亚', '圭亚那', '海地', '洪都拉斯', '香港', '匈牙利', '冰岛', '印度', '印度尼西亚', '伊朗', '伊拉克', '爱尔兰', '以色列', '意大利', '科特迪瓦', '牙买加', '日本', '约旦', '柬埔寨', '哈萨克斯坦', '肯尼亚', '韩国', '科威特', '吉尔吉斯坦', '老挝', '拉脱维亚', '黎巴嫩', '莱索托', '利比里亚', '利比亚', '列支敦士登', '立陶宛', '卢森堡', '澳门', '马达加斯加', '马拉维', '马来西亚', '马尔代夫', '马里', '马耳他', '马里亚那群岛', '马提尼克', '毛里求斯', '墨西哥', '摩尔多瓦', '摩纳哥', '蒙古', '蒙特塞拉特岛', '摩洛哥', '莫桑比克', '纳米比亚', '瑙鲁', '尼泊尔', '荷属安的列斯', '荷兰', '新西兰', '尼加拉瓜', '尼日尔', '尼日利亚', '朝鲜', '挪威', '阿曼', '巴基斯坦', '巴拿马', '巴布亚新几内亚', '巴拉圭', '秘鲁', '菲律宾', '波兰', '葡萄牙', '波多黎各', '卡塔尔', '留尼旺', '罗马尼亚', '俄罗斯', '圣卢西亚', '圣文森特岛', '东萨摩亚(美)', '西萨摩亚', '圣马力诺', '圣多美和普林西比', '沙特阿拉伯', '塞内加尔', '塞舌尔', '塞拉利昂', '新加坡', '斯洛伐克', '斯洛文尼亚', '所罗门群岛', '索马里', '南非', '西班牙', '斯里兰卡', '圣文森特', '苏丹', '苏里南', '斯威士兰', '瑞典', '瑞士', '叙利亚', '台湾省', '塔吉克斯坦', '坦桑尼亚', '泰国', '多哥', '汤加', '特立尼达和多巴哥', '突尼斯', '土耳其', '土库曼斯坦', '乌干达', '乌克兰', '阿拉伯联合酋长国', '英国', '美国', '乌拉圭', '乌兹别克斯坦', '委内瑞拉', '越南', '也门', '南斯拉夫', '津巴布韦', '扎伊尔', '赞比亚'];
constant.countryENList = ['Angola', 'Afghanistan', 'Albania', 'Algeria', 'Andorra', 'Anguilla', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Ascension', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda Is', 'Bolivia', 'Botswana', 'Brazil', 'Brunei', 'Bulgaria', 'Burkina Faso', 'Burma', 'Burundi', 'Cameroon', 'Canada', 'Cayman Is', 'Central African Republic', 'Chad', 'Chile', 'China', 'Colombia', 'Congo', 'Cook Is', 'Costa Rica', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Djibouti', 'Dominica Rep', 'Ecuador', 'Egypt', 'EI Salvador', 'Estonia', 'Ethiopia', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'Gabon', 'Gambia', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Greece', 'Grenada', 'Guam', 'Guatemala', 'Guinea', 'Guyana', 'Haiti', 'Honduras', 'Hongkong', 'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Israel', 'Italy', 'Ivory Coast', 'Jamaica', 'Japan', 'Jordan', 'Kampuchea (Cambodia )', 'Kazakstan', 'Kenya', 'Korea', 'Kuwait', 'Kyrgyzstan', 'Laos', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macao', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Mariana Is', 'Martinique', 'Mauritius', 'Mexico', 'Moldova', 'Monaco', 'Mongolia', 'Montserrat Is', 'Morocco', 'Mozambique', 'Namibia', 'Nauru', 'Nepal', 'Netheriands Antilles', 'Netherlands', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'North Korea', 'Norway', 'Oman', 'Pakistan', 'Panama', 'Papua New Cuinea', 'Paraguay', 'Peru', 'Philippines', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russia', 'Saint Lueia', 'Saint Vincent', 'Samoa Eastern', 'Samoa Western', 'San Marino', 'Sao Tome and Principe', 'Saudi Arabia', 'Senegal', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia', 'Slovenia', 'Solomon Is', 'Somali', 'South Africa', 'Spain', 'SriLanka', 'St.Lucia', 'St.Vincent', 'Sudan', 'Suriname', 'Swaziland', 'Sweden', 'Switzerland', 'Syria', 'Taiwan', 'Tajikstan', 'Tanzania', 'Thailand', 'Togo', 'Tonga', 'Trinidad and Tobago', 'Tunisia', 'Turkey', 'Turkmenistan', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kiongdom', 'United States of America', 'Uruguay', 'Uzbekistan', 'Venezuela', 'Vietnam', 'Yemen', 'Yugoslavia', 'Zimbabwe', 'Zaire', 'Zambia'];
......
......@@ -105,7 +105,7 @@
};
//导入事件
var callApi = function () {
var callFinancialApi = function () {
var periodStr = $scope.UploadPeriodTime;
dataImportService.callExtractFinancialData($scope.checkedCompanyCodeList,periodStr,$scope.checkedFileCodeList).success(function (data) {
if (data) {
......@@ -150,17 +150,24 @@
allowHeaderFiltering: false,
width: '27%',
caption: $translate.instant('CompanyName')
}, {
dataField: "fileType",
allowHeaderFiltering: false,
width: '27%',
caption: $translate.instant('ExtractFile')
}, {
dataField: "periodYear",
allowHeaderFiltering: false,
width: '5%',
caption: $translate.instant('YearPeriod')
}, {
},
/*{
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('TMSPeriod')
}, {
}, */
{
dataField: "periodMonth",
allowHeaderFiltering: false,
width: '5%',
......@@ -389,7 +396,7 @@
};
var initParam = function () {
$scope.callApi = callApi;
$scope.callFinancialApi = callFinancialApi;
$scope.initPagingControl = initPagingControl;
$scope.setButtonWrapStyle = setButtonWrapStyle;
$scope.getGridHeight = getGridHeight;
......
......@@ -67,7 +67,7 @@
<button type="button" atms-permission permission-control-type="ngIf" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="ImportBtn"
ng-click="callApi()"></button>
ng-click="callFinancialApi()"></button>
</div>
</div>
</form>
......
......@@ -8,7 +8,7 @@
serviceTypeId: "=?",
periodId: "=?"
},
controller: 'extractInvoiceDataController',
controller: 'extractFinancialDataController',
link: function (scope, element) {
$('.main-contents')[0].style.width = "260px";
$('.data-import-contents')[0].style.display = "block";
......
......@@ -105,7 +105,7 @@
};
//导入事件
var callApi = function () {
var callInvoiceApi = function () {
var periodStr = $scope.UploadPeriodTime;
dataImportService.callExtractInvoiceData($scope.checkedCompanyCodeList,periodStr,$scope.checkedFileCodeList).success(function (data) {
......@@ -389,7 +389,7 @@
};
var initParam = function () {
$scope.callApi = callApi;
$scope.callInvoiceApi = callInvoiceApi;
$scope.initPagingControl = initPagingControl;
$scope.setButtonWrapStyle = setButtonWrapStyle;
$scope.getGridHeight = getGridHeight;
......
......@@ -67,7 +67,7 @@
<button type="button" atms-permission permission-control-type="ngIf" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="ImportBtn"
ng-click="callApi()"></button>
ng-click="callInvoiceApi()"></button>
</div>
</div>
</form>
......
......@@ -252,7 +252,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.orgId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "240px";
}else{
$('.periodInput')[0].style.left = "140px";
......
......@@ -302,7 +302,7 @@
initPeriods();
initCertifiedInvoicesListPagination();
//初始化查询条件-期间范围
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "310px";
}else{
$('.periodInput')[0].style.left = "200px";
......
......@@ -324,7 +324,7 @@
initPeriods();
initCoupaPurchasingReportPagination();
//初始化查询条件-期间范围
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "330px";
}else{
$('.periodInput')[0].style.left = "170px";
......
......@@ -279,13 +279,9 @@
var localDate=$filter('date')(new Date(), 'yyyyMMddHHmmss');
var fileName= constant.exportExcelFileName.invoiceData + localDate;
vatPreviewService.initExportIDData($scope.queryParams,fileName).then(function (data) {
if (data) {
ackMessageBox.success(translate('FileExportSuccess'));
}
});
};
$scope.gridOptions = {
rowHeight: constant.UIGrid.rowHeight,
selectionRowHeaderWidth: constant.UIGrid.rowHeight,
......@@ -317,7 +313,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.orgId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "250px";
}else{
$('.periodInput')[0].style.left = "130px";
......
......@@ -332,7 +332,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.orgId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "260px";
}else{
$('.periodInput')[0].style.left = "150px";
......
......@@ -367,7 +367,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.orgId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "280px";
}else{
$('.periodInput')[0].style.left = "150px";
......
......@@ -555,7 +555,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.orgId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "260px";
}else{
$('.periodInput')[0].style.left = "150px";
......
......@@ -572,7 +572,7 @@
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.orgId = vatSessionService.project.organizationID;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "250px";
}else{
$('.periodInput')[0].style.left = "120px";
......
......@@ -316,7 +316,7 @@
initPeriods();
initRedLetterInfoTabItemPagination();
//初始化查询条件-期间范围
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "350px";
}else{
$('.periodInput')[0].style.left = "150px";
......
......@@ -349,7 +349,7 @@
//初始化查询条件-期间范围
$scope.queryParams.periodStart = vatSessionService.year * 100 + vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.year * 100 + vatSessionService.month;
if($rootScope.currentLanguageDesc = $rootScope.currentLanguage === 'en-us'){
if($rootScope.currentLanguage === 'en-us'){
$('.periodInput')[0].style.left = "280px";
}else{
$('.periodInput')[0].style.left = "180px";
......
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