Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
d1ff2b67
Commit
d1ff2b67
authored
Jul 14, 2019
by
Mccoy Z Xia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calendar config相关接口和页面
parent
c00475eb
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
2112 additions
and
772 deletions
+2112
-772
TaxCalendarController.java
...java/pwc/taxtech/atms/calendar/TaxCalendarController.java
+1
-1
CalendarController.java
.../java/pwc/taxtech/atms/controller/CalendarController.java
+83
-0
CalendarEventController.java
.../pwc/taxtech/atms/controller/CalendarEventController.java
+40
-0
CalendarConfigQueryParamDto.java
...axtech/atms/dto/calendar/CalendarConfigQueryParamDto.java
+105
-0
ICalendarActionService.java
...java/pwc/taxtech/atms/service/ICalendarActionService.java
+11
-0
ICalendarEventService.java
.../java/pwc/taxtech/atms/service/ICalendarEventService.java
+11
-0
ICalendarService.java
.../main/java/pwc/taxtech/atms/service/ICalendarService.java
+43
-0
CalendarActionServiceImpl.java
.../taxtech/atms/service/impl/CalendarActionServiceImpl.java
+70
-0
CalendarEventServiceImpl.java
...c/taxtech/atms/service/impl/CalendarEventServiceImpl.java
+77
-0
CalendarServiceImpl.java
...va/pwc/taxtech/atms/service/impl/CalendarServiceImpl.java
+358
-0
CalendarExtMapper.java
.../pwc/taxtech/atms/calendar/dao/ext/CalendarExtMapper.java
+56
-0
CalendarConfigDto.java
...java/pwc/taxtech/atms/calendar/dto/CalendarConfigDto.java
+174
-0
CalendarConfigGroupByEntityDto.java
...ech/atms/calendar/dto/CalendarConfigGroupByEntityDto.java
+68
-0
CalendarEventDto.java
.../java/pwc/taxtech/atms/calendar/dto/CalendarEventDto.java
+142
-0
CalendarTaskTypeDto.java
...va/pwc/taxtech/atms/calendar/dto/CalendarTaskTypeDto.java
+39
-0
EntityDto.java
...rc/main/java/pwc/taxtech/atms/calendar/dto/EntityDto.java
+39
-0
CalendarConfiguration.java
...c/taxtech/atms/calendar/entity/CalendarConfiguration.java
+32
-32
CalendarConfigurationExample.java
...ch/atms/calendar/entity/CalendarConfigurationExample.java
+80
-80
CalendarEvent.java
.../java/pwc/taxtech/atms/calendar/entity/CalendarEvent.java
+32
-32
CalendarEventExample.java
...wc/taxtech/atms/calendar/entity/CalendarEventExample.java
+76
-76
CalendarConfigurationMapper.xml
...taxtech/atms/calendar/dao/CalendarConfigurationMapper.xml
+38
-38
CalendarEventMapper.xml
...ces/pwc/taxtech/atms/calendar/dao/CalendarEventMapper.xml
+39
-38
tax-calendar-config.ctrl.js
...ndarSetting/taxCalendarConfig/tax-calendar-config.ctrl.js
+78
-80
tax-calendar-config.html
...alendarSetting/taxCalendarConfig/tax-calendar-config.html
+12
-12
tax-calendar-config-edit.ctrl.js
...ng/taxCalendarConfigEdit/tax-calendar-config-edit.ctrl.js
+306
-291
tax-calendar-config-edit.html
...tting/taxCalendarConfigEdit/tax-calendar-config-edit.html
+22
-24
calendar-display.ctrl.js
...main/webapp/app/calendar/display/calendar-display.ctrl.js
+38
-38
edit-calendar-task.ctrl.js
...pp/calendar/edit-calendar-task/edit-calendar-task.ctrl.js
+5
-5
taxCalendarConfiguration.svc.js
...pp/app/common/webservices/taxCalendarConfiguration.svc.js
+33
-22
taxCalendarEvent.svc.js
...ain/webapp/app/common/webservices/taxCalendarEvent.svc.js
+4
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/calendar/CalendarController.java
→
atms-api/src/main/java/pwc/taxtech/atms/calendar/
Tax
CalendarController.java
View file @
d1ff2b67
...
@@ -20,7 +20,7 @@ import java.util.Map;
...
@@ -20,7 +20,7 @@ import java.util.Map;
**/
**/
@RestController
@RestController
@RequestMapping
(
"api/v1/"
)
@RequestMapping
(
"api/v1/"
)
public
class
CalendarController
{
public
class
Tax
CalendarController
{
@RequestMapping
(
"taxCalendar/getAllTaxProjectList"
)
@RequestMapping
(
"taxCalendar/getAllTaxProjectList"
)
@ResponseBody
@ResponseBody
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/CalendarController.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
controller
;
import
org.apache.ibatis.annotations.Param
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
pwc.taxtech.atms.calendar.dao.ext.CalendarExtMapper
;
import
pwc.taxtech.atms.calendar.entity.CalendarConfiguration
;
import
pwc.taxtech.atms.calendar.entity.CalendarTaskType
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.calendar.CalendarConfigQueryParamDto
;
import
pwc.taxtech.atms.service.ICalendarService
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.Date
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-10 13:59
* @Version: 1.0
**/
@RestController
@RequestMapping
(
"api/v1/calendar/"
)
public
class
CalendarController
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
CalendarController
.
class
);
@Autowired
private
ICalendarService
calendarServiceImpl
;
@Resource
CalendarExtMapper
calendarExtMapper
;
@PostMapping
(
"saveTaskType"
)
public
OperationResultDto
saveTaskType
(
@RequestBody
CalendarTaskType
calendarTaskType
){
return
calendarServiceImpl
.
saveTaskType
(
calendarTaskType
);
}
@GetMapping
(
"getAllTaskTypeList"
)
public
OperationResultDto
getAllTaskTypeList
(){
return
calendarServiceImpl
.
getAllTaskTypeList
();
}
@GetMapping
(
"getTaskTypeList"
)
public
OperationResultDto
getTaskTypeList
(){
return
calendarServiceImpl
.
getTaskTypeList
();
}
@GetMapping
(
"getMaxConfigOrder"
)
public
OperationResultDto
getMaxConfigOrder
(){
return
calendarServiceImpl
.
getMaxConfigOrder
();
}
@PostMapping
(
"getCalendarDataForDisplay"
)
public
OperationResultDto
getTaxCalendarDataForDisplay
(
@Param
(
"queryStartTime"
)
Date
queryStartTime
,
@Param
(
"queryEndTime"
)
Date
queryEndTime
){
return
calendarServiceImpl
.
getTaxCalendarDataForDisplay
(
queryStartTime
,
queryEndTime
);
}
@PostMapping
(
"saveCalendarConfig"
)
public
OperationResultDto
saveCalendarConfig
(
@RequestBody
CalendarConfiguration
calendarConfig
){
return
calendarServiceImpl
.
saveCalendarConfig
(
calendarConfig
);
}
@GetMapping
(
"getCalendarConfigById/{id}"
)
public
OperationResultDto
getCalendarConfigById
(
@PathVariable
(
"id"
)
Long
id
){
return
calendarServiceImpl
.
getCalendarConfigById
(
id
);
}
@PostMapping
(
"getCalendarConfigList"
)
public
OperationResultDto
getCalendarConfigList
(
@RequestBody
CalendarConfigQueryParamDto
queryParam
){
return
calendarServiceImpl
.
getCalendarConfigList
(
queryParam
);
}
@GetMapping
(
"getActiveEntityList"
)
public
OperationResultDto
getActiveEntityList
(){
return
calendarServiceImpl
.
getActiveEntityList
();
}
}
atms-api/src/main/java/pwc/taxtech/atms/controller/CalendarEventController.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
controller
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
pwc.taxtech.atms.calendar.entity.CalendarEvent
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.service.ICalendarEventService
;
import
javax.annotation.Resource
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-10 14:29
* @Version: 1.0
**/
@Resource
@RequestMapping
(
"api/v1/calendarEvent/"
)
public
class
CalendarEventController
{
@Autowired
private
ICalendarEventService
calendarEventServiceImpl
;
@PostMapping
(
"add"
)
public
OperationResultDto
addEvent
(
@RequestBody
CalendarEvent
event
){
return
calendarEventServiceImpl
.
addEvent
(
event
);
}
@PostMapping
(
"update"
)
public
OperationResultDto
updateEvent
(
@RequestBody
CalendarEvent
event
){
return
calendarEventServiceImpl
.
updateEvent
(
event
);
}
@GetMapping
(
"delete/{id}"
)
public
OperationResultDto
deleteEvent
(
@PathVariable
(
"id"
)
Long
id
){
return
calendarEventServiceImpl
.
deleteEvent
(
id
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/calendar/CalendarConfigQueryParamDto.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
dto
.
calendar
;
import
pwc.taxtech.atms.dpo.PagingDto
;
import
java.util.List
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-12 11:56
* @Version: 1.0
**/
public
class
CalendarConfigQueryParamDto
{
private
List
<
Long
>
entityIdList
;
private
List
<
Long
>
taskTypeList
;
private
List
<
Integer
>
configMonthList
;
private
List
<
Integer
>
configDayList
;
private
String
staff
;
private
int
queryType
;
private
Byte
status
;
private
Integer
orderIndex
;
private
PagingDto
pagingParam
;
public
List
<
Long
>
getEntityIdList
()
{
return
entityIdList
;
}
public
void
setEntityIdList
(
List
<
Long
>
entityIdList
)
{
this
.
entityIdList
=
entityIdList
;
}
public
List
<
Long
>
getTaskTypeList
()
{
return
taskTypeList
;
}
public
void
setTaskTypeList
(
List
<
Long
>
taskTypeList
)
{
this
.
taskTypeList
=
taskTypeList
;
}
public
List
<
Integer
>
getConfigMonthList
()
{
return
configMonthList
;
}
public
void
setConfigMonthList
(
List
<
Integer
>
configMonthList
)
{
this
.
configMonthList
=
configMonthList
;
}
public
List
<
Integer
>
getConfigDayList
()
{
return
configDayList
;
}
public
void
setConfigDayList
(
List
<
Integer
>
configDayList
)
{
this
.
configDayList
=
configDayList
;
}
public
String
getStaff
()
{
return
staff
;
}
public
void
setStaff
(
String
staff
)
{
this
.
staff
=
staff
;
}
public
int
getQueryType
()
{
return
queryType
;
}
public
void
setQueryType
(
int
queryType
)
{
this
.
queryType
=
queryType
;
}
public
Byte
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Byte
status
)
{
this
.
status
=
status
;
}
public
PagingDto
getPagingParam
()
{
return
pagingParam
;
}
public
void
setPagingParam
(
PagingDto
pagingParam
)
{
this
.
pagingParam
=
pagingParam
;
}
public
Integer
getOrderIndex
()
{
return
orderIndex
;
}
public
void
setOrderIndex
(
Integer
orderIndex
)
{
this
.
orderIndex
=
orderIndex
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/ICalendarActionService.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
service
;
import
pwc.taxtech.atms.calendar.entity.CalendarAction
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
public
interface
ICalendarActionService
{
OperationResultDto
saveEvent
(
CalendarAction
record
);
OperationResultDto
deleteEvent
(
Long
id
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/ICalendarEventService.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
service
;
import
pwc.taxtech.atms.calendar.entity.CalendarEvent
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
public
interface
ICalendarEventService
{
OperationResultDto
addEvent
(
CalendarEvent
event
);
OperationResultDto
updateEvent
(
CalendarEvent
event
);
OperationResultDto
deleteEvent
(
Long
id
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/ICalendarService.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
service
;
import
pwc.taxtech.atms.calendar.dto.CalendarConfigDto
;
import
pwc.taxtech.atms.calendar.dto.CalendarTaskTypeDto
;
import
pwc.taxtech.atms.calendar.dto.EntityDto
;
import
pwc.taxtech.atms.calendar.entity.CalendarConfiguration
;
import
pwc.taxtech.atms.calendar.entity.CalendarTaskType
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.calendar.CalendarConfigQueryParamDto
;
import
java.util.Date
;
import
java.util.List
;
public
interface
ICalendarService
{
OperationResultDto
deleteConfiguration
(
Long
id
);
OperationResultDto
saveTaskType
(
CalendarTaskType
record
);
/**
* 获取除“自定义”的其他taskType
* @return
*/
OperationResultDto
<
List
<
CalendarTaskTypeDto
>>
getTaskTypeList
();
/**
* 获取所有taskType
* @return
*/
OperationResultDto
<
List
<
CalendarTaskTypeDto
>>
getAllTaskTypeList
();
OperationResultDto
saveCalendarConfig
(
CalendarConfiguration
calendarConfig
);
OperationResultDto
<
CalendarConfigDto
>
getCalendarConfigById
(
Long
id
);
OperationResultDto
getCalendarConfigList
(
CalendarConfigQueryParamDto
queryParam
);
OperationResultDto
<
List
<
EntityDto
>>
getActiveEntityList
();
OperationResultDto
getMaxConfigOrder
();
OperationResultDto
getTaxCalendarDataForDisplay
(
Date
queryStartTime
,
Date
queryEndTime
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CalendarActionServiceImpl.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
pwc.taxtech.atms.calendar.dao.CalendarActionJurisdictionRelationshipMapper
;
import
pwc.taxtech.atms.calendar.dao.CalendarActionMapper
;
import
pwc.taxtech.atms.calendar.dao.CalendarJurisdictionMapper
;
import
pwc.taxtech.atms.calendar.entity.CalendarAction
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.service.ICalendarActionService
;
import
javax.annotation.Resource
;
import
java.util.Date
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-10 16:19
* @Version: 1.0
**/
public
class
CalendarActionServiceImpl
extends
BaseService
implements
ICalendarActionService
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
CalendarActionServiceImpl
.
class
);
@Resource
private
CalendarActionMapper
calendarActionMapper
;
@Resource
private
CalendarJurisdictionMapper
calendarJurisdictionMapper
;
@Resource
private
CalendarActionJurisdictionRelationshipMapper
calendarActionJurisdictionRelationshipMapper
;
@Override
public
OperationResultDto
saveEvent
(
CalendarAction
record
)
{
int
count
=
0
;
try
{
record
.
setUpdateTime
(
new
Date
());
// 无ID则新建,有ID则更新
if
(
record
.
getId
()
!=
null
){
count
=
calendarActionMapper
.
updateByPrimaryKeySelective
(
record
);
}
else
{
record
.
setId
(
idService
.
nextId
());
record
.
setCreateTime
(
record
.
getUpdateTime
());
count
=
calendarActionMapper
.
insert
(
record
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"save error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"1"
:
"0"
;
return
new
OperationResultDto
(
result
,
msg
);
}
@Override
public
OperationResultDto
deleteEvent
(
Long
id
)
{
int
count
=
0
;
try
{
count
=
calendarActionMapper
.
deleteByPrimaryKey
(
id
);
}
catch
(
Exception
e
)
{
log
.
error
(
"deleteAction error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"删除成功"
:
"删除失败"
;
return
new
OperationResultDto
(
result
,
msg
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CalendarEventServiceImpl.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.calendar.dao.*
;
import
pwc.taxtech.atms.calendar.dao.ext.CalendarExtMapper
;
import
pwc.taxtech.atms.calendar.entity.CalendarEvent
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.service.ICalendarEventService
;
import
javax.annotation.Resource
;
import
java.util.Date
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-10 14:32
* @Version: 1.0
**/
@Service
public
class
CalendarEventServiceImpl
extends
BaseService
implements
ICalendarEventService
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
CalendarEventServiceImpl
.
class
);
@Resource
private
CalendarEventMapper
calendarEventMapper
;
@Override
public
OperationResultDto
addEvent
(
CalendarEvent
event
)
{
if
(
event
.
getId
()
==
null
)
{
event
.
setId
(
idService
.
nextId
());
}
Date
nowDate
=
new
Date
();
event
.
setCreateTime
(
nowDate
);
event
.
setUpdateTime
(
nowDate
);
int
count
=
0
;
try
{
count
=
calendarEventMapper
.
insert
(
event
);
}
catch
(
Exception
e
)
{
log
.
error
(
"addConfiguration error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"1"
:
"-1"
;
return
new
OperationResultDto
(
result
,
msg
);
}
@Override
public
OperationResultDto
updateEvent
(
CalendarEvent
event
)
{
int
count
=
0
;
event
.
setUpdateTime
(
new
Date
());
try
{
count
=
calendarEventMapper
.
updateByPrimaryKeySelective
(
event
);
}
catch
(
Exception
e
)
{
log
.
error
(
"updateConfiguration error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"1"
:
"-1"
;
return
new
OperationResultDto
(
result
,
msg
);
}
@Override
public
OperationResultDto
deleteEvent
(
Long
id
)
{
int
count
=
0
;
try
{
count
=
calendarEventMapper
.
deleteByPrimaryKey
(
id
);
}
catch
(
Exception
e
)
{
log
.
error
(
"deleteConfiguration error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"1"
:
"-1"
;
return
new
OperationResultDto
(
result
,
msg
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CalendarServiceImpl.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.calendar.dto.CalendarConfigDto
;
import
pwc.taxtech.atms.calendar.dto.CalendarConfigGroupByEntityDto
;
import
pwc.taxtech.atms.calendar.dto.CalendarTaskTypeDto
;
import
pwc.taxtech.atms.calendar.dto.EntityDto
;
import
pwc.taxtech.atms.calendar.dao.*
;
import
pwc.taxtech.atms.calendar.dao.ext.CalendarExtMapper
;
import
pwc.taxtech.atms.calendar.entity.CalendarConfiguration
;
import
pwc.taxtech.atms.calendar.entity.CalendarConfigurationExample
;
import
pwc.taxtech.atms.calendar.entity.CalendarTaskType
;
import
pwc.taxtech.atms.dpo.PagingDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.PagingResultDto
;
import
pwc.taxtech.atms.dto.calendar.CalendarConfigQueryParamDto
;
import
pwc.taxtech.atms.service.ICalendarService
;
import
javax.annotation.Resource
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-10 14:02
* @Version: 1.0
**/
@Service
public
class
CalendarServiceImpl
extends
BaseService
implements
ICalendarService
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
CalendarServiceImpl
.
class
);
@Resource
private
CalendarConfigurationMapper
calendarConfigurationMapper
;
@Resource
private
CalendarTaskTypeMapper
calendarTaskTypeMapper
;
@Resource
private
CalendarExtMapper
calendarExtMapper
;
@Override
public
OperationResultDto
deleteConfiguration
(
Long
id
)
{
int
count
=
0
;
try
{
count
=
calendarConfigurationMapper
.
deleteByPrimaryKey
(
id
);
}
catch
(
Exception
e
)
{
log
.
error
(
"deleteConfiguration error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"1"
:
"0"
;
return
new
OperationResultDto
(
result
,
msg
);
}
@Override
public
OperationResultDto
saveTaskType
(
CalendarTaskType
record
)
{
int
count
=
0
;
try
{
//校验名字是否重复
if
(
calendarExtMapper
.
checkTaskTypeNameIsExist
(
record
.
getName
())
!=
null
)
{
return
new
OperationResultDto
(
false
,
"-1"
);
}
record
.
setUpdateTime
(
new
Date
());
// 无ID则新建,有ID则更新
if
(
record
.
getId
()
!=
null
)
{
count
=
calendarTaskTypeMapper
.
updateByPrimaryKeySelective
(
record
);
}
else
{
record
.
setId
(
idService
.
nextId
());
record
.
setCreateTime
(
record
.
getUpdateTime
());
record
.
setStatus
(
Byte
.
parseByte
(
"1"
));
count
=
calendarTaskTypeMapper
.
insert
(
record
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"addTaskType error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"1"
:
"0"
;
return
new
OperationResultDto
(
result
,
msg
);
}
public
OperationResultDto
deleteTaskType
(
Long
id
)
{
int
count
=
0
;
try
{
count
=
calendarTaskTypeMapper
.
deleteByPrimaryKey
(
id
);
}
catch
(
Exception
e
)
{
log
.
error
(
"deleteTaskType error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"1"
:
"0"
;
return
new
OperationResultDto
(
result
,
msg
);
}
@Override
public
OperationResultDto
getTaskTypeList
()
{
List
<
CalendarTaskTypeDto
>
list
=
null
;
try
{
list
=
calendarExtMapper
.
getTaskTypeList
();
}
catch
(
Exception
e
)
{
log
.
error
(
"getTaskTypeList error"
,
e
);
}
boolean
result
=
list
!=
null
;
String
msg
=
result
?
"1"
:
"0"
;
return
new
OperationResultDto
(
result
,
msg
,
list
);
}
@Override
public
OperationResultDto
getAllTaskTypeList
()
{
List
<
CalendarTaskTypeDto
>
list
=
null
;
try
{
list
=
calendarExtMapper
.
getAllTaskTypeList
();
}
catch
(
Exception
e
)
{
log
.
error
(
"getAllTaskTypeList error"
,
e
);
}
boolean
result
=
list
!=
null
;
String
msg
=
result
?
"1"
:
"0"
;
return
new
OperationResultDto
(
result
,
msg
,
list
);
}
@Override
public
OperationResultDto
saveCalendarConfig
(
CalendarConfiguration
record
)
{
int
count
=
0
;
try
{
record
.
setUpdateTime
(
new
Date
());
// 无ID则新建,有ID则更新
if
(
record
.
getId
()
!=
null
)
{
count
=
calendarConfigurationMapper
.
updateByPrimaryKeySelective
(
record
);
}
else
{
record
.
setId
(
idService
.
nextId
());
record
.
setCreateTime
(
record
.
getUpdateTime
());
count
=
calendarConfigurationMapper
.
insert
(
record
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"saveCalendarConfig error"
,
e
);
}
boolean
result
=
count
>
0
;
String
msg
=
result
?
"1"
:
"0"
;
return
new
OperationResultDto
(
result
,
msg
);
}
@Override
public
OperationResultDto
<
CalendarConfigDto
>
getCalendarConfigById
(
Long
id
)
{
if
(
id
==
null
)
{
return
new
OperationResultDto
(
false
,
"Parameter is null"
);
}
CalendarConfigDto
configDto
=
new
CalendarConfigDto
();
try
{
CalendarConfiguration
calendarConfiguration
=
calendarConfigurationMapper
.
selectByPrimaryKey
(
id
);
beanUtil
.
copyProperties
(
calendarConfiguration
,
configDto
);
// configDto.setEntityNames(splice(calendarExtMapper.getAllEntities(calendarConfiguration.getEntityIds())));
// configDto.setTaskTypeNames(splice(calendarExtMapper.getAllTaskTypes(calendarConfiguration.getTaskTypeIds())));
}
catch
(
Exception
e
)
{
log
.
error
(
"getCalendarConfigById error"
,
e
);
}
return
new
OperationResultDto
(
true
,
""
,
configDto
);
}
@Override
public
OperationResultDto
getCalendarConfigList
(
CalendarConfigQueryParamDto
queryParam
)
{
// Page page = PageHelper.startPage(queryParam.getPagingParam().getPageIndex(), queryParam.getPagingParam().getPageSize());
List
resultList
=
null
;
try
{
switch
(
queryParam
.
getQueryType
())
{
case
1
:
resultList
=
getCalendarConfig
(
queryParam
);
break
;
case
2
:
resultList
=
getEntityCalendarConfig
(
queryParam
);
break
;
default
:
break
;
}
}
catch
(
Exception
e
)
{
log
.
error
(
"getCalendarConfigList error"
,
e
);
}
PagingResultDto
pagingResult
=
null
;
if
(
resultList
!=
null
)
{
pagingResult
=
new
PagingResultDto
<
CalendarConfigDto
>();
PagingDto
pageInfo
=
queryParam
.
getPagingParam
();
pageInfo
.
setTotalCount
(
resultList
.
size
());
pagingResult
.
setPageInfo
(
pageInfo
);
pagingResult
.
setList
(
resultList
);
}
return
new
OperationResultDto
(
resultList
!=
null
,
""
,
pagingResult
);
}
private
List
<
CalendarConfigDto
>
getCalendarConfig
(
CalendarConfigQueryParamDto
queryParam
)
{
CalendarConfigurationExample
example
=
new
CalendarConfigurationExample
();
//status, staff, orderIndex 直接查询
if
(
queryParam
!=
null
)
{
if
(
queryParam
.
getStatus
()
!=
null
)
{
example
.
createCriteria
().
andStatusEqualTo
(
queryParam
.
getStatus
());
}
if
(
queryParam
.
getStaff
()
!=
null
)
{
example
.
createCriteria
().
andStaffEqualTo
(
queryParam
.
getStaff
());
}
if
(
queryParam
.
getOrderIndex
()
!=
null
)
{
example
.
createCriteria
().
andOrderIndexEqualTo
(
queryParam
.
getOrderIndex
());
}
example
.
setOrderByClause
(
"order_index"
);
}
List
<
CalendarConfiguration
>
configList
=
calendarConfigurationMapper
.
selectByExample
(
example
);
if
(
queryParam
!=
null
)
{
//筛选Entity
if
(
CollectionUtils
.
isNotEmpty
(
queryParam
.
getEntityIdList
()))
{
configList
=
configList
.
stream
()
.
filter
(
l1
->
queryParam
.
getEntityIdList
().
stream
().
anyMatch
(
l2
->
l1
.
getEntityIds
().
contains
(
l2
.
toString
())))
.
collect
(
Collectors
.
toList
());
}
//筛选TaskType
if
(
CollectionUtils
.
isNotEmpty
(
queryParam
.
getTaskTypeList
()))
{
configList
=
configList
.
stream
()
.
filter
(
l1
->
queryParam
.
getTaskTypeList
().
stream
().
anyMatch
(
l2
->
l1
.
getTaskTypeIds
().
contains
(
l2
.
toString
())))
.
collect
(
Collectors
.
toList
());
}
//筛选月
if
(
CollectionUtils
.
isNotEmpty
(
queryParam
.
getConfigMonthList
()))
{
configList
=
configList
.
stream
()
.
filter
(
l1
->
queryParam
.
getConfigMonthList
().
stream
().
anyMatch
(
l2
->
l1
.
getProjectMonths
().
contains
(
l2
.
toString
()
+
","
)))
.
collect
(
Collectors
.
toList
());
}
//筛选日
if
(
CollectionUtils
.
isNotEmpty
(
queryParam
.
getConfigDayList
()))
{
configList
=
configList
.
stream
()
.
filter
(
l1
->
queryParam
.
getConfigDayList
().
stream
().
anyMatch
(
l2
->
l1
.
getProjectDays
().
contains
(
l2
.
toString
()
+
","
)))
.
collect
(
Collectors
.
toList
());
}
}
if
(
CollectionUtils
.
isEmpty
(
configList
))
{
return
null
;
}
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
List
<
CalendarConfigDto
>
resultList
=
configList
.
stream
().
map
(
p
->
{
CalendarConfigDto
configDto
=
new
CalendarConfigDto
();
beanUtil
.
copyProperties
(
p
,
configDto
);
configDto
.
setEntityNames
(
splice
(
calendarExtMapper
.
getAllEntities
(
p
.
getEntityIds
())));
configDto
.
setTaskTypeNames
(
splice
(
calendarExtMapper
.
getAllTaskTypes
(
p
.
getTaskTypeIds
())));
String
start
=
p
.
getValidDateStart
()
!=
null
?
dateFormat
.
format
(
p
.
getValidDateStart
())
:
""
;
String
end
=
p
.
getValidDateEnd
()
!=
null
?
dateFormat
.
format
(
p
.
getValidDateEnd
())
:
""
;
configDto
.
setValidDate
(
start
+
" ~ "
+
end
);
return
configDto
;
}).
collect
(
Collectors
.
toList
());
return
resultList
;
}
private
String
splice
(
List
<
String
>
list
)
{
StringBuilder
sb
=
new
StringBuilder
();
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
list
.
forEach
(
p
->
sb
.
append
(
p
).
append
(
", "
));
}
return
sb
.
toString
();
}
private
String
splice
(
Map
<
Object
,
String
>
map
,
Object
[]
arr
)
{
StringBuilder
stringBuilder
=
new
StringBuilder
();
for
(
Object
o
:
arr
)
{
stringBuilder
.
append
(
map
.
get
(
o
));
}
return
stringBuilder
.
toString
();
}
private
List
<
CalendarConfigGroupByEntityDto
>
getEntityCalendarConfig
(
CalendarConfigQueryParamDto
queryParam
)
{
List
<
CalendarConfigDto
>
configList
=
getCalendarConfig
(
queryParam
);
List
<
CalendarConfigGroupByEntityDto
>
resultList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isEmpty
(
configList
))
{
return
null
;
}
Map
<
Long
,
List
<
CalendarConfigDto
>>
resultMap
=
new
HashMap
<>();
Map
<
Long
,
EntityDto
>
entityMap
=
calendarExtMapper
.
getAllEntityMapList
();
if
(
entityMap
==
null
)
{
return
null
;
}
//根据entity分组
configList
.
forEach
(
p
->
{
String
[]
entityIdArr
=
p
.
getEntityIds
().
split
(
","
);
Arrays
.
stream
(
entityIdArr
).
forEach
(
idStr
->
{
Long
id
=
Long
.
parseLong
(
idStr
);
if
(!
resultMap
.
containsKey
(
id
))
{
resultMap
.
put
(
id
,
new
ArrayList
<>());
}
resultMap
.
get
(
id
).
add
(
p
);
});
});
resultMap
.
forEach
((
k
,
v
)
->
resultList
.
add
(
new
CalendarConfigGroupByEntityDto
(
entityMap
.
get
(
k
).
getName
(),
v
.
size
(),
0
,
v
)));
return
resultList
;
}
@Override
public
OperationResultDto
<
List
<
EntityDto
>>
getActiveEntityList
()
{
List
<
EntityDto
>
list
=
null
;
try
{
list
=
calendarExtMapper
.
getActiveEntityList
();
}
catch
(
Exception
e
)
{
log
.
error
(
"getActiveEntityList error"
,
e
);
}
boolean
result
=
list
!=
null
;
String
msg
=
result
?
"1"
:
"0"
;
return
new
OperationResultDto
(
result
,
msg
,
list
);
}
@Override
public
OperationResultDto
getMaxConfigOrder
()
{
return
new
OperationResultDto
(
true
,
""
,
calendarExtMapper
.
getMaxConfigOrder
()
+
1
);
}
@Override
public
OperationResultDto
getTaxCalendarDataForDisplay
(
Date
queryStartTime
,
Date
queryEndTime
)
{
CalendarConfigurationExample
configExample
=
new
CalendarConfigurationExample
();
configExample
.
createCriteria
().
andValidDateStartGreaterThanOrEqualTo
(
queryStartTime
).
andValidDateEndLessThanOrEqualTo
(
queryEndTime
);
List
<
CalendarConfiguration
>
configList
=
calendarConfigurationMapper
.
selectByExample
(
configExample
);
return
null
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/calendar/dao/ext/CalendarExtMapper.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
calendar
.
dao
.
ext
;
import
org.apache.ibatis.annotations.MapKey
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.calendar.dto.CalendarTaskTypeDto
;
import
pwc.taxtech.atms.calendar.dto.EntityDto
;
import
java.util.List
;
import
java.util.Map
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-10 18:20
* @Version: 1.0
**/
@Mapper
public
interface
CalendarExtMapper
extends
MyMapper
{
@Select
(
"SELECT id FROM calendar_task_type WHERE name = #{name} LIMIT 1"
)
Long
checkTaskTypeNameIsExist
(
String
name
);
@Select
(
"SELECT id, name FROM calendar_task_type WHERE status = 1 ORDER BY id"
)
List
<
CalendarTaskTypeDto
>
getAllTaskTypeList
();
@Select
(
"SELECT id, name FROM calendar_task_type WHERE status = 1 AND id > 1 ORDER BY id"
)
List
<
CalendarTaskTypeDto
>
getTaskTypeList
();
@Select
(
"SELECT id, name FROM organization WHERE is_active = 1"
)
List
<
EntityDto
>
getActiveEntityList
();
@Select
(
"SELECT id, name FROM organization"
)
List
<
EntityDto
>
getAllEntityList
();
@Select
(
"SELECT id, name FROM calendar_task_type"
)
@MapKey
(
"id"
)
Map
<
Long
,
CalendarTaskTypeDto
>
getAllTaskTypeMapList
();
@Select
(
"SELECT id, name FROM organization"
)
@MapKey
(
"id"
)
Map
<
Long
,
EntityDto
>
getAllEntityMapList
();
@Select
(
"SELECT name FROM calendar_task_type WHERE id IN (${ids})"
)
List
<
String
>
getAllTaskTypes
(
@Param
(
"ids"
)
String
ids
);
@Select
(
"SELECT name FROM organization WHERE id IN (${ids})"
)
List
<
String
>
getAllEntities
(
@Param
(
"ids"
)
String
ids
);
@Select
(
"SELECT order_Index FROM calendar_configuration ORDER BY id DESC LIMIT 1"
)
Integer
getMaxConfigOrder
();
}
atms-dao/src/main/java/pwc/taxtech/atms/calendar/dto/CalendarConfigDto.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
calendar
.
dto
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-11 18:04
* @Version: 1.0
**/
public
class
CalendarConfigDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3866378052812843016L
;
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
id
;
private
String
taskName
;
// private List<EntityDto> entityList;
//
// private List<CalendarTaskTypeDto> taskTypeList;
private
String
entityIds
;
private
String
entityNames
;
private
String
taskTypeIds
;
private
String
taskTypeNames
;
private
String
projectMonths
;
private
String
projectDays
;
private
Date
validDateStart
;
private
Date
validDateEnd
;
private
String
validDate
;
private
String
staff
;
private
Integer
orderIndex
;
private
Byte
status
;
private
String
notes
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getEntityIds
()
{
return
entityIds
;
}
public
void
setEntityIds
(
String
entityIds
)
{
this
.
entityIds
=
entityIds
;
}
public
String
getEntityNames
()
{
return
entityNames
;
}
public
void
setEntityNames
(
String
entityNames
)
{
this
.
entityNames
=
entityNames
;
}
public
String
getTaskName
()
{
return
taskName
;
}
public
void
setTaskName
(
String
taskName
)
{
this
.
taskName
=
taskName
;
}
public
String
getTaskTypeIds
()
{
return
taskTypeIds
;
}
public
void
setTaskTypeIds
(
String
taskTypeIds
)
{
this
.
taskTypeIds
=
taskTypeIds
;
}
public
String
getTaskTypeNames
()
{
return
taskTypeNames
;
}
public
void
setTaskTypeNames
(
String
taskTypeNames
)
{
this
.
taskTypeNames
=
taskTypeNames
;
}
public
String
getProjectMonths
()
{
return
projectMonths
;
}
public
void
setProjectMonths
(
String
projectMonths
)
{
this
.
projectMonths
=
projectMonths
;
}
public
String
getProjectDays
()
{
return
projectDays
;
}
public
void
setProjectDays
(
String
projectDays
)
{
this
.
projectDays
=
projectDays
;
}
public
Date
getValidDateStart
()
{
return
validDateStart
;
}
public
void
setValidDateStart
(
Date
validDateStart
)
{
this
.
validDateStart
=
validDateStart
;
}
public
Date
getValidDateEnd
()
{
return
validDateEnd
;
}
public
void
setValidDateEnd
(
Date
validDateEnd
)
{
this
.
validDateEnd
=
validDateEnd
;
}
public
String
getStaff
()
{
return
staff
;
}
public
void
setStaff
(
String
staff
)
{
this
.
staff
=
staff
;
}
public
Integer
getOrderIndex
()
{
return
orderIndex
;
}
public
void
setOrderIndex
(
Integer
orderIndex
)
{
this
.
orderIndex
=
orderIndex
;
}
public
Byte
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Byte
status
)
{
this
.
status
=
status
;
}
public
String
getNotes
()
{
return
notes
;
}
public
void
setNotes
(
String
notes
)
{
this
.
notes
=
notes
;
}
public
String
getValidDate
()
{
return
validDate
;
}
public
void
setValidDate
(
String
validDate
)
{
this
.
validDate
=
validDate
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/calendar/dto/CalendarConfigGroupByEntityDto.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
calendar
.
dto
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-13 19:34
* @Version: 1.0
**/
public
class
CalendarConfigGroupByEntityDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
663558017348889443L
;
public
CalendarConfigGroupByEntityDto
()
{
}
public
CalendarConfigGroupByEntityDto
(
String
entityName
,
int
calendarCount
,
int
taskTypeCount
,
List
<
CalendarConfigDto
>
entityCalendarList
)
{
this
.
entityName
=
entityName
;
this
.
calendarCount
=
calendarCount
;
this
.
taskTypeCount
=
taskTypeCount
;
this
.
entityCalendarList
=
entityCalendarList
;
}
private
String
entityName
;
private
int
calendarCount
;
private
int
taskTypeCount
;
private
List
<
CalendarConfigDto
>
entityCalendarList
;
public
String
getEntityName
()
{
return
entityName
;
}
public
void
setEntityName
(
String
entityName
)
{
this
.
entityName
=
entityName
;
}
public
int
getCalendarCount
()
{
return
calendarCount
;
}
public
void
setCalendarCount
(
int
calendarCount
)
{
this
.
calendarCount
=
calendarCount
;
}
public
int
getTaskTypeCount
()
{
return
taskTypeCount
;
}
public
void
setTaskTypeCount
(
int
taskTypeCount
)
{
this
.
taskTypeCount
=
taskTypeCount
;
}
public
List
<
CalendarConfigDto
>
getEntityCalendarList
()
{
return
entityCalendarList
;
}
public
void
setEntityCalendarList
(
List
<
CalendarConfigDto
>
entityCalendarList
)
{
this
.
entityCalendarList
=
entityCalendarList
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/calendar/dto/CalendarEventDto.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
calendar
.
dto
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-11 18:04
* @Version: 1.0
**/
public
class
CalendarEventDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1194801351751686123L
;
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
id
;
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
entityId
;
private
String
entityName
;
private
String
taskName
;
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
taskTypeId
;
private
String
taskTypeName
;
private
String
staff
;
private
Date
effectiveDate
;
private
Date
dueDate
;
private
Byte
status
;
private
Integer
orderIndex
;
private
String
notes
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getEntityId
()
{
return
entityId
;
}
public
void
setEntityId
(
Long
entityId
)
{
this
.
entityId
=
entityId
;
}
public
String
getEntityName
()
{
return
entityName
;
}
public
void
setEntityName
(
String
entityName
)
{
this
.
entityName
=
entityName
;
}
public
String
getTaskName
()
{
return
taskName
;
}
public
void
setTaskName
(
String
taskName
)
{
this
.
taskName
=
taskName
;
}
public
Long
getTaskTypeId
()
{
return
taskTypeId
;
}
public
void
setTaskTypeId
(
Long
taskTypeId
)
{
this
.
taskTypeId
=
taskTypeId
;
}
public
String
getTaskTypeName
()
{
return
taskTypeName
;
}
public
void
setTaskTypeName
(
String
taskTypeName
)
{
this
.
taskTypeName
=
taskTypeName
;
}
public
String
getStaff
()
{
return
staff
;
}
public
void
setStaff
(
String
staff
)
{
this
.
staff
=
staff
;
}
public
Date
getEffectiveDate
()
{
return
effectiveDate
;
}
public
void
setEffectiveDate
(
Date
effectiveDate
)
{
this
.
effectiveDate
=
effectiveDate
;
}
public
Date
getDueDate
()
{
return
dueDate
;
}
public
void
setDueDate
(
Date
dueDate
)
{
this
.
dueDate
=
dueDate
;
}
public
Byte
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Byte
status
)
{
this
.
status
=
status
;
}
public
Integer
getOrderIndex
()
{
return
orderIndex
;
}
public
void
setOrderIndex
(
Integer
orderIndex
)
{
this
.
orderIndex
=
orderIndex
;
}
public
String
getNotes
()
{
return
notes
;
}
public
void
setNotes
(
String
notes
)
{
this
.
notes
=
notes
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/calendar/dto/CalendarTaskTypeDto.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
calendar
.
dto
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
java.io.Serializable
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-11 18:05
* @Version: 1.0
**/
public
class
CalendarTaskTypeDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
5942786964744634629L
;
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
id
;
private
String
name
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/calendar/dto/EntityDto.java
0 → 100644
View file @
d1ff2b67
package
pwc
.
taxtech
.
atms
.
calendar
.
dto
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
java.io.Serializable
;
/**
* <p> @Description </p>
*
* @Author: Mccoy Z Xia (Xia zhixin)
* @Date: 2019-07-12 09:52
* @Version: 1.0
**/
public
class
EntityDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1890912867933117745L
;
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
id
;
private
String
name
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/calendar/entity/CalendarConfiguration.java
View file @
d1ff2b67
...
@@ -24,20 +24,20 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
...
@@ -24,20 +24,20 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
/**
/**
*
*
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column calendar_configuration.
entity_ids
* This field corresponds to the database column calendar_configuration.
task_name
*
*
* @mbg.generated
* @mbg.generated
*/
*/
private
String
entityIds
;
private
String
taskName
;
/**
/**
*
*
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column calendar_configuration.
task_name
* This field corresponds to the database column calendar_configuration.
entity_ids
*
*
* @mbg.generated
* @mbg.generated
*/
*/
private
String
taskName
;
private
String
entityIds
;
/**
/**
*
*
...
@@ -114,11 +114,11 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
...
@@ -114,11 +114,11 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
/**
/**
*
*
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column calendar_configuration.create
d
_time
* This field corresponds to the database column calendar_configuration.create_time
*
*
* @mbg.generated
* @mbg.generated
*/
*/
private
Date
create
d
Time
;
private
Date
createTime
;
/**
/**
*
*
...
@@ -172,50 +172,50 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
...
@@ -172,50 +172,50 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column calendar_configuration.
entity_ids
* This method returns the value of the database column calendar_configuration.
task_name
*
*
* @return the value of calendar_configuration.
entity_ids
* @return the value of calendar_configuration.
task_name
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
String
get
EntityIds
()
{
public
String
get
TaskName
()
{
return
entityIds
;
return
taskName
;
}
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method sets the value of the database column calendar_configuration.
entity_ids
* This method sets the value of the database column calendar_configuration.
task_name
*
*
* @param
entityIds the value for calendar_configuration.entity_ids
* @param
taskName the value for calendar_configuration.task_name
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
void
set
EntityIds
(
String
entityIds
)
{
public
void
set
TaskName
(
String
taskName
)
{
this
.
entityIds
=
entityIds
==
null
?
null
:
entityIds
.
trim
();
this
.
taskName
=
taskName
==
null
?
null
:
taskName
.
trim
();
}
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column calendar_configuration.
task_name
* This method returns the value of the database column calendar_configuration.
entity_ids
*
*
* @return the value of calendar_configuration.
task_name
* @return the value of calendar_configuration.
entity_ids
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
String
get
TaskName
()
{
public
String
get
EntityIds
()
{
return
taskName
;
return
entityIds
;
}
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method sets the value of the database column calendar_configuration.
task_name
* This method sets the value of the database column calendar_configuration.
entity_ids
*
*
* @param
taskName the value for calendar_configuration.task_name
* @param
entityIds the value for calendar_configuration.entity_ids
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
void
set
TaskName
(
String
taskName
)
{
public
void
set
EntityIds
(
String
entityIds
)
{
this
.
taskName
=
taskName
==
null
?
null
:
taskName
.
trim
();
this
.
entityIds
=
entityIds
==
null
?
null
:
entityIds
.
trim
();
}
}
/**
/**
...
@@ -412,26 +412,26 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
...
@@ -412,26 +412,26 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column calendar_configuration.create
d
_time
* This method returns the value of the database column calendar_configuration.create_time
*
*
* @return the value of calendar_configuration.create
d
_time
* @return the value of calendar_configuration.create_time
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
Date
getCreate
d
Time
()
{
public
Date
getCreateTime
()
{
return
create
d
Time
;
return
createTime
;
}
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method sets the value of the database column calendar_configuration.create
d
_time
* This method sets the value of the database column calendar_configuration.create_time
*
*
* @param create
dTime the value for calendar_configuration.created
_time
* @param create
Time the value for calendar_configuration.create
_time
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
void
setCreate
dTime
(
Date
created
Time
)
{
public
void
setCreate
Time
(
Date
create
Time
)
{
this
.
create
dTime
=
created
Time
;
this
.
create
Time
=
create
Time
;
}
}
/**
/**
...
@@ -495,8 +495,8 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
...
@@ -495,8 +495,8 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
sb
.
append
(
" ["
);
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", entityIds="
).
append
(
entityIds
);
sb
.
append
(
", taskName="
).
append
(
taskName
);
sb
.
append
(
", taskName="
).
append
(
taskName
);
sb
.
append
(
", entityIds="
).
append
(
entityIds
);
sb
.
append
(
", taskTypeIds="
).
append
(
taskTypeIds
);
sb
.
append
(
", taskTypeIds="
).
append
(
taskTypeIds
);
sb
.
append
(
", projectMonths="
).
append
(
projectMonths
);
sb
.
append
(
", projectMonths="
).
append
(
projectMonths
);
sb
.
append
(
", projectDays="
).
append
(
projectDays
);
sb
.
append
(
", projectDays="
).
append
(
projectDays
);
...
@@ -505,7 +505,7 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
...
@@ -505,7 +505,7 @@ public class CalendarConfiguration extends BaseEntity implements Serializable {
sb
.
append
(
", staff="
).
append
(
staff
);
sb
.
append
(
", staff="
).
append
(
staff
);
sb
.
append
(
", orderIndex="
).
append
(
orderIndex
);
sb
.
append
(
", orderIndex="
).
append
(
orderIndex
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", create
dTime="
).
append
(
created
Time
);
sb
.
append
(
", create
Time="
).
append
(
create
Time
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", notes="
).
append
(
notes
);
sb
.
append
(
", notes="
).
append
(
notes
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/calendar/entity/CalendarConfigurationExample.java
View file @
d1ff2b67
...
@@ -255,143 +255,143 @@ public class CalendarConfigurationExample {
...
@@ -255,143 +255,143 @@ public class CalendarConfigurationExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
IsNull
()
{
public
Criteria
and
TaskName
IsNull
()
{
addCriterion
(
"
entity_ids
is null"
);
addCriterion
(
"
task_name
is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
IsNotNull
()
{
public
Criteria
and
TaskName
IsNotNull
()
{
addCriterion
(
"
entity_ids
is not null"
);
addCriterion
(
"
task_name
is not null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
EqualTo
(
String
value
)
{
public
Criteria
and
TaskName
EqualTo
(
String
value
)
{
addCriterion
(
"
entity_ids ="
,
value
,
"entityIds
"
);
addCriterion
(
"
task_name ="
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
NotEqualTo
(
String
value
)
{
public
Criteria
and
TaskName
NotEqualTo
(
String
value
)
{
addCriterion
(
"
entity_ids <>"
,
value
,
"entityIds
"
);
addCriterion
(
"
task_name <>"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
GreaterThan
(
String
value
)
{
public
Criteria
and
TaskName
GreaterThan
(
String
value
)
{
addCriterion
(
"
entity_ids >"
,
value
,
"entityIds
"
);
addCriterion
(
"
task_name >"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
GreaterThanOrEqualTo
(
String
value
)
{
public
Criteria
and
TaskName
GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
entity_ids >="
,
value
,
"entityIds
"
);
addCriterion
(
"
task_name >="
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
LessThan
(
String
value
)
{
public
Criteria
and
TaskName
LessThan
(
String
value
)
{
addCriterion
(
"
entity_ids <"
,
value
,
"entityIds
"
);
addCriterion
(
"
task_name <"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
LessThanOrEqualTo
(
String
value
)
{
public
Criteria
and
TaskName
LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
entity_ids <="
,
value
,
"entityIds
"
);
addCriterion
(
"
task_name <="
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
Like
(
String
value
)
{
public
Criteria
and
TaskName
Like
(
String
value
)
{
addCriterion
(
"
entity_ids like"
,
value
,
"entityIds
"
);
addCriterion
(
"
task_name like"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
NotLike
(
String
value
)
{
public
Criteria
and
TaskName
NotLike
(
String
value
)
{
addCriterion
(
"
entity_ids not like"
,
value
,
"entityIds
"
);
addCriterion
(
"
task_name not like"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
In
(
List
<
String
>
values
)
{
public
Criteria
and
TaskName
In
(
List
<
String
>
values
)
{
addCriterion
(
"
entity_ids in"
,
values
,
"entityIds
"
);
addCriterion
(
"
task_name in"
,
values
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
NotIn
(
List
<
String
>
values
)
{
public
Criteria
and
TaskName
NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"
entity_ids not in"
,
values
,
"entityIds
"
);
addCriterion
(
"
task_name not in"
,
values
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
Between
(
String
value1
,
String
value2
)
{
public
Criteria
and
TaskName
Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"
entity_ids between"
,
value1
,
value2
,
"entityIds
"
);
addCriterion
(
"
task_name between"
,
value1
,
value2
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIds
NotBetween
(
String
value1
,
String
value2
)
{
public
Criteria
and
TaskName
NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
entity_ids not between"
,
value1
,
value2
,
"entityIds
"
);
addCriterion
(
"
task_name not between"
,
value1
,
value2
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
IsNull
()
{
public
Criteria
and
EntityIds
IsNull
()
{
addCriterion
(
"
task_name
is null"
);
addCriterion
(
"
entity_ids
is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
IsNotNull
()
{
public
Criteria
and
EntityIds
IsNotNull
()
{
addCriterion
(
"
task_name
is not null"
);
addCriterion
(
"
entity_ids
is not null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
EqualTo
(
String
value
)
{
public
Criteria
and
EntityIds
EqualTo
(
String
value
)
{
addCriterion
(
"
task_name ="
,
value
,
"taskName
"
);
addCriterion
(
"
entity_ids ="
,
value
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
NotEqualTo
(
String
value
)
{
public
Criteria
and
EntityIds
NotEqualTo
(
String
value
)
{
addCriterion
(
"
task_name <>"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_ids <>"
,
value
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
GreaterThan
(
String
value
)
{
public
Criteria
and
EntityIds
GreaterThan
(
String
value
)
{
addCriterion
(
"
task_name >"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_ids >"
,
value
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
GreaterThanOrEqualTo
(
String
value
)
{
public
Criteria
and
EntityIds
GreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
task_name >="
,
value
,
"taskName
"
);
addCriterion
(
"
entity_ids >="
,
value
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
LessThan
(
String
value
)
{
public
Criteria
and
EntityIds
LessThan
(
String
value
)
{
addCriterion
(
"
task_name <"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_ids <"
,
value
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
LessThanOrEqualTo
(
String
value
)
{
public
Criteria
and
EntityIds
LessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
task_name <="
,
value
,
"taskName
"
);
addCriterion
(
"
entity_ids <="
,
value
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
Like
(
String
value
)
{
public
Criteria
and
EntityIds
Like
(
String
value
)
{
addCriterion
(
"
task_name like"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_ids like"
,
value
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
NotLike
(
String
value
)
{
public
Criteria
and
EntityIds
NotLike
(
String
value
)
{
addCriterion
(
"
task_name not like"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_ids not like"
,
value
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
In
(
List
<
String
>
values
)
{
public
Criteria
and
EntityIds
In
(
List
<
String
>
values
)
{
addCriterion
(
"
task_name in"
,
values
,
"taskName
"
);
addCriterion
(
"
entity_ids in"
,
values
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
NotIn
(
List
<
String
>
values
)
{
public
Criteria
and
EntityIds
NotIn
(
List
<
String
>
values
)
{
addCriterion
(
"
task_name not in"
,
values
,
"taskName
"
);
addCriterion
(
"
entity_ids not in"
,
values
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
Between
(
String
value1
,
String
value2
)
{
public
Criteria
and
EntityIds
Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"
task_name between"
,
value1
,
value2
,
"taskName
"
);
addCriterion
(
"
entity_ids between"
,
value1
,
value2
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskName
NotBetween
(
String
value1
,
String
value2
)
{
public
Criteria
and
EntityIds
NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
task_name not between"
,
value1
,
value2
,
"taskName
"
);
addCriterion
(
"
entity_ids not between"
,
value1
,
value2
,
"entityIds
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -915,63 +915,63 @@ public class CalendarConfigurationExample {
...
@@ -915,63 +915,63 @@ public class CalendarConfigurationExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeIsNull
()
{
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create
d
_time is null"
);
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeIsNotNull
()
{
public
Criteria
andCreateTimeIsNotNull
()
{
addCriterion
(
"create
d
_time is not null"
);
addCriterion
(
"create_time is not null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeEqualTo
(
Date
value
)
{
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"create
d_time ="
,
value
,
"created
Time"
);
addCriterion
(
"create
_time ="
,
value
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeNotEqualTo
(
Date
value
)
{
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create
d_time <>"
,
value
,
"created
Time"
);
addCriterion
(
"create
_time <>"
,
value
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeGreaterThan
(
Date
value
)
{
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create
d_time >"
,
value
,
"created
Time"
);
addCriterion
(
"create
_time >"
,
value
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeGreaterThanOrEqualTo
(
Date
value
)
{
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create
d_time >="
,
value
,
"created
Time"
);
addCriterion
(
"create
_time >="
,
value
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeLessThan
(
Date
value
)
{
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create
d_time <"
,
value
,
"created
Time"
);
addCriterion
(
"create
_time <"
,
value
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeLessThanOrEqualTo
(
Date
value
)
{
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create
d_time <="
,
value
,
"created
Time"
);
addCriterion
(
"create
_time <="
,
value
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeIn
(
List
<
Date
>
values
)
{
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create
d_time in"
,
values
,
"created
Time"
);
addCriterion
(
"create
_time in"
,
values
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeNotIn
(
List
<
Date
>
values
)
{
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create
d_time not in"
,
values
,
"created
Time"
);
addCriterion
(
"create
_time not in"
,
values
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create
d_time between"
,
value1
,
value2
,
"created
Time"
);
addCriterion
(
"create
_time between"
,
value1
,
value2
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCreate
d
TimeNotBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create
d_time not between"
,
value1
,
value2
,
"created
Time"
);
addCriterion
(
"create
_time not between"
,
value1
,
value2
,
"create
Time"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
...
atms-dao/src/main/java/pwc/taxtech/atms/calendar/entity/CalendarEvent.java
View file @
d1ff2b67
...
@@ -24,20 +24,20 @@ public class CalendarEvent extends BaseEntity implements Serializable {
...
@@ -24,20 +24,20 @@ public class CalendarEvent extends BaseEntity implements Serializable {
/**
/**
*
*
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column calendar_event.
entity_id
* This field corresponds to the database column calendar_event.
task_name
*
*
* @mbg.generated
* @mbg.generated
*/
*/
private
Long
entityId
;
private
String
taskName
;
/**
/**
*
*
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column calendar_event.
task_name
* This field corresponds to the database column calendar_event.
entity_id
*
*
* @mbg.generated
* @mbg.generated
*/
*/
private
String
taskName
;
private
Long
entityId
;
/**
/**
*
*
...
@@ -111,11 +111,11 @@ public class CalendarEvent extends BaseEntity implements Serializable {
...
@@ -111,11 +111,11 @@ public class CalendarEvent extends BaseEntity implements Serializable {
/**
/**
*
*
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column calendar_event.
last_
update_time
* This field corresponds to the database column calendar_event.update_time
*
*
* @mbg.generated
* @mbg.generated
*/
*/
private
Date
lastU
pdateTime
;
private
Date
u
pdateTime
;
/**
/**
*
*
...
@@ -160,50 +160,50 @@ public class CalendarEvent extends BaseEntity implements Serializable {
...
@@ -160,50 +160,50 @@ public class CalendarEvent extends BaseEntity implements Serializable {
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column calendar_event.
entity_id
* This method returns the value of the database column calendar_event.
task_name
*
*
* @return the value of calendar_event.
entity_id
* @return the value of calendar_event.
task_name
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
Long
getEntityId
()
{
public
String
getTaskName
()
{
return
entityId
;
return
taskName
;
}
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method sets the value of the database column calendar_event.
entity_id
* This method sets the value of the database column calendar_event.
task_name
*
*
* @param
entityId the value for calendar_event.entity_id
* @param
taskName the value for calendar_event.task_name
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
void
set
EntityId
(
Long
entityId
)
{
public
void
set
TaskName
(
String
taskName
)
{
this
.
entityId
=
entityId
;
this
.
taskName
=
taskName
==
null
?
null
:
taskName
.
trim
()
;
}
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column calendar_event.
task_name
* This method returns the value of the database column calendar_event.
entity_id
*
*
* @return the value of calendar_event.
task_name
* @return the value of calendar_event.
entity_id
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
String
getTaskName
()
{
public
Long
getEntityId
()
{
return
taskName
;
return
entityId
;
}
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method sets the value of the database column calendar_event.
task_name
* This method sets the value of the database column calendar_event.
entity_id
*
*
* @param
taskName the value for calendar_event.task_name
* @param
entityId the value for calendar_event.entity_id
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
void
set
TaskName
(
String
taskName
)
{
public
void
set
EntityId
(
Long
entityId
)
{
this
.
taskName
=
taskName
==
null
?
null
:
taskName
.
trim
()
;
this
.
entityId
=
entityId
;
}
}
/**
/**
...
@@ -376,26 +376,26 @@ public class CalendarEvent extends BaseEntity implements Serializable {
...
@@ -376,26 +376,26 @@ public class CalendarEvent extends BaseEntity implements Serializable {
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column calendar_event.
last_
update_time
* This method returns the value of the database column calendar_event.update_time
*
*
* @return the value of calendar_event.
last_
update_time
* @return the value of calendar_event.update_time
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
Date
get
Last
UpdateTime
()
{
public
Date
getUpdateTime
()
{
return
lastU
pdateTime
;
return
u
pdateTime
;
}
}
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method sets the value of the database column calendar_event.
last_
update_time
* This method sets the value of the database column calendar_event.update_time
*
*
* @param
lastUpdateTime the value for calendar_event.last_
update_time
* @param
updateTime the value for calendar_event.
update_time
*
*
* @mbg.generated
* @mbg.generated
*/
*/
public
void
set
LastUpdateTime
(
Date
lastU
pdateTime
)
{
public
void
set
UpdateTime
(
Date
u
pdateTime
)
{
this
.
lastUpdateTime
=
lastU
pdateTime
;
this
.
updateTime
=
u
pdateTime
;
}
}
/**
/**
...
@@ -435,8 +435,8 @@ public class CalendarEvent extends BaseEntity implements Serializable {
...
@@ -435,8 +435,8 @@ public class CalendarEvent extends BaseEntity implements Serializable {
sb
.
append
(
" ["
);
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", entityId="
).
append
(
entityId
);
sb
.
append
(
", taskName="
).
append
(
taskName
);
sb
.
append
(
", taskName="
).
append
(
taskName
);
sb
.
append
(
", entityId="
).
append
(
entityId
);
sb
.
append
(
", taskTypeId="
).
append
(
taskTypeId
);
sb
.
append
(
", taskTypeId="
).
append
(
taskTypeId
);
sb
.
append
(
", staff="
).
append
(
staff
);
sb
.
append
(
", staff="
).
append
(
staff
);
sb
.
append
(
", effectiveDate="
).
append
(
effectiveDate
);
sb
.
append
(
", effectiveDate="
).
append
(
effectiveDate
);
...
@@ -444,7 +444,7 @@ public class CalendarEvent extends BaseEntity implements Serializable {
...
@@ -444,7 +444,7 @@ public class CalendarEvent extends BaseEntity implements Serializable {
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", orderIndex="
).
append
(
orderIndex
);
sb
.
append
(
", orderIndex="
).
append
(
orderIndex
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
",
lastUpdateTime="
).
append
(
lastU
pdateTime
);
sb
.
append
(
",
updateTime="
).
append
(
u
pdateTime
);
sb
.
append
(
", notes="
).
append
(
notes
);
sb
.
append
(
", notes="
).
append
(
notes
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
...
...
atms-dao/src/main/java/pwc/taxtech/atms/calendar/entity/CalendarEventExample.java
View file @
d1ff2b67
...
@@ -255,133 +255,133 @@ public class CalendarEventExample {
...
@@ -255,133 +255,133 @@ public class CalendarEventExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityId
IsNull
()
{
public
Criteria
and
TaskName
IsNull
()
{
addCriterion
(
"
entity_id
is null"
);
addCriterion
(
"
task_name
is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityId
IsNotNull
()
{
public
Criteria
and
TaskName
IsNotNull
()
{
addCriterion
(
"
entity_id
is not null"
);
addCriterion
(
"
task_name
is not null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdEqualTo
(
Lo
ng
value
)
{
public
Criteria
and
TaskNameEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"
entity_id ="
,
value
,
"entityId
"
);
addCriterion
(
"
task_name ="
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdNotEqualTo
(
Lo
ng
value
)
{
public
Criteria
and
TaskNameNotEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"
entity_id <>"
,
value
,
"entityId
"
);
addCriterion
(
"
task_name <>"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdGreaterThan
(
Lo
ng
value
)
{
public
Criteria
and
TaskNameGreaterThan
(
Stri
ng
value
)
{
addCriterion
(
"
entity_id >"
,
value
,
"entityId
"
);
addCriterion
(
"
task_name >"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdGreaterThanOrEqualTo
(
Lo
ng
value
)
{
public
Criteria
and
TaskNameGreaterThanOrEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"
entity_id >="
,
value
,
"entityId
"
);
addCriterion
(
"
task_name >="
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdLessThan
(
Lo
ng
value
)
{
public
Criteria
and
TaskNameLessThan
(
Stri
ng
value
)
{
addCriterion
(
"
entity_id <"
,
value
,
"entityId
"
);
addCriterion
(
"
task_name <"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdLessThanOrEqualTo
(
Lo
ng
value
)
{
public
Criteria
and
TaskNameLessThanOrEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"
entity_id <="
,
value
,
"entityId
"
);
addCriterion
(
"
task_name <="
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdIn
(
List
<
Long
>
values
)
{
public
Criteria
and
TaskNameLike
(
String
value
)
{
addCriterion
(
"
entity_id in"
,
values
,
"entityId
"
);
addCriterion
(
"
task_name like"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdNotIn
(
List
<
Long
>
values
)
{
public
Criteria
and
TaskNameNotLike
(
String
value
)
{
addCriterion
(
"
entity_id not in"
,
values
,
"entityId
"
);
addCriterion
(
"
task_name not like"
,
value
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdBetween
(
Long
value1
,
Long
value2
)
{
public
Criteria
and
TaskNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"
entity_id between"
,
value1
,
value2
,
"entityId
"
);
addCriterion
(
"
task_name in"
,
values
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
EntityIdNotBetween
(
Long
value1
,
Long
value2
)
{
public
Criteria
and
TaskNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"
entity_id not between"
,
value1
,
value2
,
"entityId
"
);
addCriterion
(
"
task_name not in"
,
values
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTaskName
IsNull
(
)
{
public
Criteria
andTaskName
Between
(
String
value1
,
String
value2
)
{
addCriterion
(
"task_name
is null
"
);
addCriterion
(
"task_name
between"
,
value1
,
value2
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andTaskName
IsNotNull
(
)
{
public
Criteria
andTaskName
NotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"task_name
is not null
"
);
addCriterion
(
"task_name
not between"
,
value1
,
value2
,
"taskName
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameEqualTo
(
String
value
)
{
public
Criteria
and
EntityIdIsNull
(
)
{
addCriterion
(
"
task_name ="
,
value
,
"taskName
"
);
addCriterion
(
"
entity_id is null
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameNotEqualTo
(
String
value
)
{
public
Criteria
and
EntityIdIsNotNull
(
)
{
addCriterion
(
"
task_name <>"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_id is not null
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameGreaterThan
(
Stri
ng
value
)
{
public
Criteria
and
EntityIdEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"
task_name >"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_id ="
,
value
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameGreaterThanOrEqualTo
(
Stri
ng
value
)
{
public
Criteria
and
EntityIdNotEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"
task_name >="
,
value
,
"taskName
"
);
addCriterion
(
"
entity_id <>"
,
value
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameLessThan
(
Stri
ng
value
)
{
public
Criteria
and
EntityIdGreaterThan
(
Lo
ng
value
)
{
addCriterion
(
"
task_name <"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_id >"
,
value
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameLessThanOrEqualTo
(
Stri
ng
value
)
{
public
Criteria
and
EntityIdGreaterThanOrEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"
task_name <="
,
value
,
"taskName
"
);
addCriterion
(
"
entity_id >="
,
value
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameLike
(
Stri
ng
value
)
{
public
Criteria
and
EntityIdLessThan
(
Lo
ng
value
)
{
addCriterion
(
"
task_name like"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_id <"
,
value
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameNotLike
(
Stri
ng
value
)
{
public
Criteria
and
EntityIdLessThanOrEqualTo
(
Lo
ng
value
)
{
addCriterion
(
"
task_name not like"
,
value
,
"taskName
"
);
addCriterion
(
"
entity_id <="
,
value
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameIn
(
List
<
Stri
ng
>
values
)
{
public
Criteria
and
EntityIdIn
(
List
<
Lo
ng
>
values
)
{
addCriterion
(
"
task_name in"
,
values
,
"taskName
"
);
addCriterion
(
"
entity_id in"
,
values
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameNotIn
(
List
<
Stri
ng
>
values
)
{
public
Criteria
and
EntityIdNotIn
(
List
<
Lo
ng
>
values
)
{
addCriterion
(
"
task_name not in"
,
values
,
"taskName
"
);
addCriterion
(
"
entity_id not in"
,
values
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameBetween
(
String
value1
,
Stri
ng
value2
)
{
public
Criteria
and
EntityIdBetween
(
Long
value1
,
Lo
ng
value2
)
{
addCriterion
(
"
task_name between"
,
value1
,
value2
,
"taskName
"
);
addCriterion
(
"
entity_id between"
,
value1
,
value2
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
TaskNameNotBetween
(
String
value1
,
Stri
ng
value2
)
{
public
Criteria
and
EntityIdNotBetween
(
Long
value1
,
Lo
ng
value2
)
{
addCriterion
(
"
task_name not between"
,
value1
,
value2
,
"taskName
"
);
addCriterion
(
"
entity_id not between"
,
value1
,
value2
,
"entityId
"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -815,63 +815,63 @@ public class CalendarEventExample {
...
@@ -815,63 +815,63 @@ public class CalendarEventExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeIsNull
()
{
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"
last_
update_time is null"
);
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeIsNotNull
()
{
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"
last_
update_time is not null"
);
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeEqualTo
(
Date
value
)
{
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"
last_update_time ="
,
value
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time ="
,
value
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeNotEqualTo
(
Date
value
)
{
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"
last_update_time <>"
,
value
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time <>"
,
value
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeGreaterThan
(
Date
value
)
{
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"
last_update_time >"
,
value
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time >"
,
value
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"
last_update_time >="
,
value
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time >="
,
value
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeLessThan
(
Date
value
)
{
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"
last_update_time <"
,
value
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time <"
,
value
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeLessThanOrEqualTo
(
Date
value
)
{
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"
last_update_time <="
,
value
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time <="
,
value
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeIn
(
List
<
Date
>
values
)
{
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"
last_update_time in"
,
values
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time in"
,
values
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeNotIn
(
List
<
Date
>
values
)
{
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"
last_update_time not in"
,
values
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time not in"
,
values
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"
last_update_time between"
,
value1
,
value2
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time between"
,
value1
,
value2
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
and
Last
UpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"
last_update_time not between"
,
value1
,
value2
,
"lastU
pdateTime"
);
addCriterion
(
"
update_time not between"
,
value1
,
value2
,
"u
pdateTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
}
}
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/calendar/dao/CalendarConfigurationMapper.xml
View file @
d1ff2b67
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"entity_ids"
jdbcType=
"VARCHAR"
property=
"entityIds"
/>
<result
column=
"task_name"
jdbcType=
"VARCHAR"
property=
"taskName"
/>
<result
column=
"task_name"
jdbcType=
"VARCHAR"
property=
"taskName"
/>
<result
column=
"entity_ids"
jdbcType=
"VARCHAR"
property=
"entityIds"
/>
<result
column=
"task_type_ids"
jdbcType=
"VARCHAR"
property=
"taskTypeIds"
/>
<result
column=
"task_type_ids"
jdbcType=
"VARCHAR"
property=
"taskTypeIds"
/>
<result
column=
"project_months"
jdbcType=
"VARCHAR"
property=
"projectMonths"
/>
<result
column=
"project_months"
jdbcType=
"VARCHAR"
property=
"projectMonths"
/>
<result
column=
"project_days"
jdbcType=
"VARCHAR"
property=
"projectDays"
/>
<result
column=
"project_days"
jdbcType=
"VARCHAR"
property=
"projectDays"
/>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<result
column=
"staff"
jdbcType=
"VARCHAR"
property=
"staff"
/>
<result
column=
"staff"
jdbcType=
"VARCHAR"
property=
"staff"
/>
<result
column=
"order_index"
jdbcType=
"INTEGER"
property=
"orderIndex"
/>
<result
column=
"order_index"
jdbcType=
"INTEGER"
property=
"orderIndex"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"create
d_time"
jdbcType=
"TIMESTAMP"
property=
"created
Time"
/>
<result
column=
"create
_time"
jdbcType=
"TIMESTAMP"
property=
"create
Time"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"pwc.taxtech.atms.calendar.entity.CalendarConfiguration"
>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"pwc.taxtech.atms.calendar.entity.CalendarConfiguration"
>
...
@@ -98,8 +98,8 @@
...
@@ -98,8 +98,8 @@
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
id,
entity_ids, task_name
, task_type_ids, project_months, project_days, valid_date_start,
id,
task_name, entity_ids
, task_type_ids, project_months, project_days, valid_date_start,
valid_date_end, staff, order_index, `status`, create
d
_time, update_time
valid_date_end, staff, order_index, `status`, create_time, update_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
<!--
<!--
...
@@ -181,15 +181,15 @@
...
@@ -181,15 +181,15 @@
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
insert into calendar_configuration (id,
entity_ids, task_name
,
insert into calendar_configuration (id,
task_name, entity_ids
,
task_type_ids, project_months, project_days,
task_type_ids, project_months, project_days,
valid_date_start, valid_date_end, staff,
valid_date_start, valid_date_end, staff,
order_index, `status`, create
d
_time,
order_index, `status`, create_time,
update_time, notes)
update_time, notes)
values (#{id,jdbcType=BIGINT}, #{
entityIds,jdbcType=VARCHAR}, #{taskName
,jdbcType=VARCHAR},
values (#{id,jdbcType=BIGINT}, #{
taskName,jdbcType=VARCHAR}, #{entityIds
,jdbcType=VARCHAR},
#{taskTypeIds,jdbcType=VARCHAR}, #{projectMonths,jdbcType=VARCHAR}, #{projectDays,jdbcType=VARCHAR},
#{taskTypeIds,jdbcType=VARCHAR}, #{projectMonths,jdbcType=VARCHAR}, #{projectDays,jdbcType=VARCHAR},
#{validDateStart,jdbcType=TIMESTAMP}, #{validDateEnd,jdbcType=TIMESTAMP}, #{staff,jdbcType=VARCHAR},
#{validDateStart,jdbcType=TIMESTAMP}, #{validDateEnd,jdbcType=TIMESTAMP}, #{staff,jdbcType=VARCHAR},
#{orderIndex,jdbcType=INTEGER}, #{status,jdbcType=TINYINT}, #{create
d
Time,jdbcType=TIMESTAMP},
#{orderIndex,jdbcType=INTEGER}, #{status,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{notes,jdbcType=LONGVARCHAR})
#{updateTime,jdbcType=TIMESTAMP}, #{notes,jdbcType=LONGVARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.calendar.entity.CalendarConfiguration"
>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.calendar.entity.CalendarConfiguration"
>
...
@@ -202,12 +202,12 @@
...
@@ -202,12 +202,12 @@
<if
test=
"id != null"
>
<if
test=
"id != null"
>
id,
id,
</if>
</if>
<if
test=
"entityIds != null"
>
entity_ids,
</if>
<if
test=
"taskName != null"
>
<if
test=
"taskName != null"
>
task_name,
task_name,
</if>
</if>
<if
test=
"entityIds != null"
>
entity_ids,
</if>
<if
test=
"taskTypeIds != null"
>
<if
test=
"taskTypeIds != null"
>
task_type_ids,
task_type_ids,
</if>
</if>
...
@@ -232,8 +232,8 @@
...
@@ -232,8 +232,8 @@
<if
test=
"status != null"
>
<if
test=
"status != null"
>
`status`,
`status`,
</if>
</if>
<if
test=
"create
d
Time != null"
>
<if
test=
"createTime != null"
>
create
d
_time,
create_time,
</if>
</if>
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
update_time,
update_time,
...
@@ -246,12 +246,12 @@
...
@@ -246,12 +246,12 @@
<if
test=
"id != null"
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
#{id,jdbcType=BIGINT},
</if>
</if>
<if
test=
"entityIds != null"
>
#{entityIds,jdbcType=VARCHAR},
</if>
<if
test=
"taskName != null"
>
<if
test=
"taskName != null"
>
#{taskName,jdbcType=VARCHAR},
#{taskName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"entityIds != null"
>
#{entityIds,jdbcType=VARCHAR},
</if>
<if
test=
"taskTypeIds != null"
>
<if
test=
"taskTypeIds != null"
>
#{taskTypeIds,jdbcType=VARCHAR},
#{taskTypeIds,jdbcType=VARCHAR},
</if>
</if>
...
@@ -276,8 +276,8 @@
...
@@ -276,8 +276,8 @@
<if
test=
"status != null"
>
<if
test=
"status != null"
>
#{status,jdbcType=TINYINT},
#{status,jdbcType=TINYINT},
</if>
</if>
<if
test=
"create
d
Time != null"
>
<if
test=
"createTime != null"
>
#{create
d
Time,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
...
@@ -307,12 +307,12 @@
...
@@ -307,12 +307,12 @@
<if
test=
"record.id != null"
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=BIGINT},
</if>
</if>
<if
test=
"record.entityIds != null"
>
entity_ids = #{record.entityIds,jdbcType=VARCHAR},
</if>
<if
test=
"record.taskName != null"
>
<if
test=
"record.taskName != null"
>
task_name = #{record.taskName,jdbcType=VARCHAR},
task_name = #{record.taskName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.entityIds != null"
>
entity_ids = #{record.entityIds,jdbcType=VARCHAR},
</if>
<if
test=
"record.taskTypeIds != null"
>
<if
test=
"record.taskTypeIds != null"
>
task_type_ids = #{record.taskTypeIds,jdbcType=VARCHAR},
task_type_ids = #{record.taskTypeIds,jdbcType=VARCHAR},
</if>
</if>
...
@@ -337,8 +337,8 @@
...
@@ -337,8 +337,8 @@
<if
test=
"record.status != null"
>
<if
test=
"record.status != null"
>
`status` = #{record.status,jdbcType=TINYINT},
`status` = #{record.status,jdbcType=TINYINT},
</if>
</if>
<if
test=
"record.create
d
Time != null"
>
<if
test=
"record.createTime != null"
>
create
d_time = #{record.created
Time,jdbcType=TIMESTAMP},
create
_time = #{record.create
Time,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"record.updateTime != null"
>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
...
@@ -358,8 +358,8 @@
...
@@ -358,8 +358,8 @@
-->
-->
update calendar_configuration
update calendar_configuration
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=BIGINT},
entity_ids = #{record.entityIds,jdbcType=VARCHAR},
task_name = #{record.taskName,jdbcType=VARCHAR},
task_name = #{record.taskName,jdbcType=VARCHAR},
entity_ids = #{record.entityIds,jdbcType=VARCHAR},
task_type_ids = #{record.taskTypeIds,jdbcType=VARCHAR},
task_type_ids = #{record.taskTypeIds,jdbcType=VARCHAR},
project_months = #{record.projectMonths,jdbcType=VARCHAR},
project_months = #{record.projectMonths,jdbcType=VARCHAR},
project_days = #{record.projectDays,jdbcType=VARCHAR},
project_days = #{record.projectDays,jdbcType=VARCHAR},
...
@@ -368,7 +368,7 @@
...
@@ -368,7 +368,7 @@
staff = #{record.staff,jdbcType=VARCHAR},
staff = #{record.staff,jdbcType=VARCHAR},
order_index = #{record.orderIndex,jdbcType=INTEGER},
order_index = #{record.orderIndex,jdbcType=INTEGER},
`status` = #{record.status,jdbcType=TINYINT},
`status` = #{record.status,jdbcType=TINYINT},
create
d_time = #{record.created
Time,jdbcType=TIMESTAMP},
create
_time = #{record.create
Time,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
notes = #{record.notes,jdbcType=LONGVARCHAR}
notes = #{record.notes,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
...
@@ -382,8 +382,8 @@
...
@@ -382,8 +382,8 @@
-->
-->
update calendar_configuration
update calendar_configuration
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=BIGINT},
entity_ids = #{record.entityIds,jdbcType=VARCHAR},
task_name = #{record.taskName,jdbcType=VARCHAR},
task_name = #{record.taskName,jdbcType=VARCHAR},
entity_ids = #{record.entityIds,jdbcType=VARCHAR},
task_type_ids = #{record.taskTypeIds,jdbcType=VARCHAR},
task_type_ids = #{record.taskTypeIds,jdbcType=VARCHAR},
project_months = #{record.projectMonths,jdbcType=VARCHAR},
project_months = #{record.projectMonths,jdbcType=VARCHAR},
project_days = #{record.projectDays,jdbcType=VARCHAR},
project_days = #{record.projectDays,jdbcType=VARCHAR},
...
@@ -392,7 +392,7 @@
...
@@ -392,7 +392,7 @@
staff = #{record.staff,jdbcType=VARCHAR},
staff = #{record.staff,jdbcType=VARCHAR},
order_index = #{record.orderIndex,jdbcType=INTEGER},
order_index = #{record.orderIndex,jdbcType=INTEGER},
`status` = #{record.status,jdbcType=TINYINT},
`status` = #{record.status,jdbcType=TINYINT},
create
d_time = #{record.created
Time,jdbcType=TIMESTAMP},
create
_time = #{record.create
Time,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -405,12 +405,12 @@
...
@@ -405,12 +405,12 @@
-->
-->
update calendar_configuration
update calendar_configuration
<set>
<set>
<if
test=
"entityIds != null"
>
entity_ids = #{entityIds,jdbcType=VARCHAR},
</if>
<if
test=
"taskName != null"
>
<if
test=
"taskName != null"
>
task_name = #{taskName,jdbcType=VARCHAR},
task_name = #{taskName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"entityIds != null"
>
entity_ids = #{entityIds,jdbcType=VARCHAR},
</if>
<if
test=
"taskTypeIds != null"
>
<if
test=
"taskTypeIds != null"
>
task_type_ids = #{taskTypeIds,jdbcType=VARCHAR},
task_type_ids = #{taskTypeIds,jdbcType=VARCHAR},
</if>
</if>
...
@@ -435,8 +435,8 @@
...
@@ -435,8 +435,8 @@
<if
test=
"status != null"
>
<if
test=
"status != null"
>
`status` = #{status,jdbcType=TINYINT},
`status` = #{status,jdbcType=TINYINT},
</if>
</if>
<if
test=
"create
d
Time != null"
>
<if
test=
"createTime != null"
>
create
d_time = #{created
Time,jdbcType=TIMESTAMP},
create
_time = #{create
Time,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"updateTime != null"
>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
...
@@ -453,8 +453,8 @@
...
@@ -453,8 +453,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
update calendar_configuration
update calendar_configuration
set
entity_ids = #{entityIds
,jdbcType=VARCHAR},
set
task_name = #{taskName
,jdbcType=VARCHAR},
task_name = #{taskName
,jdbcType=VARCHAR},
entity_ids = #{entityIds
,jdbcType=VARCHAR},
task_type_ids = #{taskTypeIds,jdbcType=VARCHAR},
task_type_ids = #{taskTypeIds,jdbcType=VARCHAR},
project_months = #{projectMonths,jdbcType=VARCHAR},
project_months = #{projectMonths,jdbcType=VARCHAR},
project_days = #{projectDays,jdbcType=VARCHAR},
project_days = #{projectDays,jdbcType=VARCHAR},
...
@@ -463,7 +463,7 @@
...
@@ -463,7 +463,7 @@
staff = #{staff,jdbcType=VARCHAR},
staff = #{staff,jdbcType=VARCHAR},
order_index = #{orderIndex,jdbcType=INTEGER},
order_index = #{orderIndex,jdbcType=INTEGER},
`status` = #{status,jdbcType=TINYINT},
`status` = #{status,jdbcType=TINYINT},
create
d_time = #{created
Time,jdbcType=TIMESTAMP},
create
_time = #{create
Time,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
notes = #{notes,jdbcType=LONGVARCHAR}
notes = #{notes,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
...
@@ -474,8 +474,8 @@
...
@@ -474,8 +474,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
update calendar_configuration
update calendar_configuration
set
entity_ids = #{entityIds
,jdbcType=VARCHAR},
set
task_name = #{taskName
,jdbcType=VARCHAR},
task_name = #{taskName
,jdbcType=VARCHAR},
entity_ids = #{entityIds
,jdbcType=VARCHAR},
task_type_ids = #{taskTypeIds,jdbcType=VARCHAR},
task_type_ids = #{taskTypeIds,jdbcType=VARCHAR},
project_months = #{projectMonths,jdbcType=VARCHAR},
project_months = #{projectMonths,jdbcType=VARCHAR},
project_days = #{projectDays,jdbcType=VARCHAR},
project_days = #{projectDays,jdbcType=VARCHAR},
...
@@ -484,7 +484,7 @@
...
@@ -484,7 +484,7 @@
staff = #{staff,jdbcType=VARCHAR},
staff = #{staff,jdbcType=VARCHAR},
order_index = #{orderIndex,jdbcType=INTEGER},
order_index = #{orderIndex,jdbcType=INTEGER},
`status` = #{status,jdbcType=TINYINT},
`status` = #{status,jdbcType=TINYINT},
create
d_time = #{created
Time,jdbcType=TIMESTAMP},
create
_time = #{create
Time,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/calendar/dao/CalendarEventMapper.xml
View file @
d1ff2b67
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"entity_id"
jdbcType=
"BIGINT"
property=
"entityId"
/>
<result
column=
"task_name"
jdbcType=
"VARCHAR"
property=
"taskName"
/>
<result
column=
"task_name"
jdbcType=
"VARCHAR"
property=
"taskName"
/>
<result
column=
"entity_id"
jdbcType=
"BIGINT"
property=
"entityId"
/>
<result
column=
"task_type_id"
jdbcType=
"BIGINT"
property=
"taskTypeId"
/>
<result
column=
"task_type_id"
jdbcType=
"BIGINT"
property=
"taskTypeId"
/>
<result
column=
"staff"
jdbcType=
"VARCHAR"
property=
"staff"
/>
<result
column=
"staff"
jdbcType=
"VARCHAR"
property=
"staff"
/>
<result
column=
"effective_date"
jdbcType=
"TIMESTAMP"
property=
"effectiveDate"
/>
<result
column=
"effective_date"
jdbcType=
"TIMESTAMP"
property=
"effectiveDate"
/>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"order_index"
jdbcType=
"INTEGER"
property=
"orderIndex"
/>
<result
column=
"order_index"
jdbcType=
"INTEGER"
property=
"orderIndex"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"
last_update_time"
jdbcType=
"TIMESTAMP"
property=
"lastU
pdateTime"
/>
<result
column=
"
update_time"
jdbcType=
"TIMESTAMP"
property=
"u
pdateTime"
/>
</resultMap>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"pwc.taxtech.atms.calendar.entity.CalendarEvent"
>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"pwc.taxtech.atms.calendar.entity.CalendarEvent"
>
<!--
<!--
...
@@ -96,8 +96,8 @@
...
@@ -96,8 +96,8 @@
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
id,
entity_id, task_name
, task_type_id, staff, effective_date, due_date, `status`,
id,
task_name, entity_id
, task_type_id, staff, effective_date, due_date, `status`,
order_index, create_time,
last_
update_time
order_index, create_time, update_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
<!--
<!--
...
@@ -179,15 +179,15 @@
...
@@ -179,15 +179,15 @@
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
insert into calendar_event (id,
entity_id, task_name
,
insert into calendar_event (id,
task_name, entity_id
,
task_type_id, staff, effective_date,
task_type_id, staff, effective_date,
due_date, `status`, order_index,
due_date, `status`, order_index,
create_time,
last_
update_time, notes
create_time, update_time, notes
)
)
values (#{id,jdbcType=BIGINT}, #{
entityId,jdbcType=BIGINT}, #{taskName,jdbcType=VARCHAR
},
values (#{id,jdbcType=BIGINT}, #{
taskName,jdbcType=VARCHAR}, #{entityId,jdbcType=BIGINT
},
#{taskTypeId,jdbcType=BIGINT}, #{staff,jdbcType=VARCHAR}, #{effectiveDate,jdbcType=TIMESTAMP},
#{taskTypeId,jdbcType=BIGINT}, #{staff,jdbcType=VARCHAR}, #{effectiveDate,jdbcType=TIMESTAMP},
#{dueDate,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT}, #{orderIndex,jdbcType=INTEGER},
#{dueDate,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT}, #{orderIndex,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{
lastU
pdateTime,jdbcType=TIMESTAMP}, #{notes,jdbcType=LONGVARCHAR}
#{createTime,jdbcType=TIMESTAMP}, #{
u
pdateTime,jdbcType=TIMESTAMP}, #{notes,jdbcType=LONGVARCHAR}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.calendar.entity.CalendarEvent"
>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.calendar.entity.CalendarEvent"
>
...
@@ -200,12 +200,12 @@
...
@@ -200,12 +200,12 @@
<if
test=
"id != null"
>
<if
test=
"id != null"
>
id,
id,
</if>
</if>
<if
test=
"entityId != null"
>
entity_id,
</if>
<if
test=
"taskName != null"
>
<if
test=
"taskName != null"
>
task_name,
task_name,
</if>
</if>
<if
test=
"entityId != null"
>
entity_id,
</if>
<if
test=
"taskTypeId != null"
>
<if
test=
"taskTypeId != null"
>
task_type_id,
task_type_id,
</if>
</if>
...
@@ -227,8 +227,8 @@
...
@@ -227,8 +227,8 @@
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
</if>
</if>
<if
test=
"
lastU
pdateTime != null"
>
<if
test=
"
u
pdateTime != null"
>
last_
update_time,
update_time,
</if>
</if>
<if
test=
"notes != null"
>
<if
test=
"notes != null"
>
notes,
notes,
...
@@ -238,12 +238,12 @@
...
@@ -238,12 +238,12 @@
<if
test=
"id != null"
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
#{id,jdbcType=BIGINT},
</if>
</if>
<if
test=
"entityId != null"
>
#{entityId,jdbcType=BIGINT},
</if>
<if
test=
"taskName != null"
>
<if
test=
"taskName != null"
>
#{taskName,jdbcType=VARCHAR},
#{taskName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"entityId != null"
>
#{entityId,jdbcType=BIGINT},
</if>
<if
test=
"taskTypeId != null"
>
<if
test=
"taskTypeId != null"
>
#{taskTypeId,jdbcType=BIGINT},
#{taskTypeId,jdbcType=BIGINT},
</if>
</if>
...
@@ -265,8 +265,8 @@
...
@@ -265,8 +265,8 @@
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
lastU
pdateTime != null"
>
<if
test=
"
u
pdateTime != null"
>
#{
lastU
pdateTime,jdbcType=TIMESTAMP},
#{
u
pdateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"notes != null"
>
<if
test=
"notes != null"
>
#{notes,jdbcType=LONGVARCHAR},
#{notes,jdbcType=LONGVARCHAR},
...
@@ -293,12 +293,12 @@
...
@@ -293,12 +293,12 @@
<if
test=
"record.id != null"
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=BIGINT},
</if>
</if>
<if
test=
"record.entityId != null"
>
entity_id = #{record.entityId,jdbcType=BIGINT},
</if>
<if
test=
"record.taskName != null"
>
<if
test=
"record.taskName != null"
>
task_name = #{record.taskName,jdbcType=VARCHAR},
task_name = #{record.taskName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.entityId != null"
>
entity_id = #{record.entityId,jdbcType=BIGINT},
</if>
<if
test=
"record.taskTypeId != null"
>
<if
test=
"record.taskTypeId != null"
>
task_type_id = #{record.taskTypeId,jdbcType=BIGINT},
task_type_id = #{record.taskTypeId,jdbcType=BIGINT},
</if>
</if>
...
@@ -320,8 +320,8 @@
...
@@ -320,8 +320,8 @@
<if
test=
"record.createTime != null"
>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"record.
lastU
pdateTime != null"
>
<if
test=
"record.
u
pdateTime != null"
>
last_update_time = #{record.lastU
pdateTime,jdbcType=TIMESTAMP},
update_time = #{record.u
pdateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"record.notes != null"
>
<if
test=
"record.notes != null"
>
notes = #{record.notes,jdbcType=LONGVARCHAR},
notes = #{record.notes,jdbcType=LONGVARCHAR},
...
@@ -338,8 +338,8 @@
...
@@ -338,8 +338,8 @@
-->
-->
update calendar_event
update calendar_event
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=BIGINT},
entity_id = #{record.entityId,jdbcType=BIGINT},
task_name = #{record.taskName,jdbcType=VARCHAR},
task_name = #{record.taskName,jdbcType=VARCHAR},
entity_id = #{record.entityId,jdbcType=BIGINT},
task_type_id = #{record.taskTypeId,jdbcType=BIGINT},
task_type_id = #{record.taskTypeId,jdbcType=BIGINT},
staff = #{record.staff,jdbcType=VARCHAR},
staff = #{record.staff,jdbcType=VARCHAR},
effective_date = #{record.effectiveDate,jdbcType=TIMESTAMP},
effective_date = #{record.effectiveDate,jdbcType=TIMESTAMP},
...
@@ -347,7 +347,7 @@
...
@@ -347,7 +347,7 @@
`status` = #{record.status,jdbcType=TINYINT},
`status` = #{record.status,jdbcType=TINYINT},
order_index = #{record.orderIndex,jdbcType=INTEGER},
order_index = #{record.orderIndex,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastU
pdateTime,jdbcType=TIMESTAMP},
update_time = #{record.u
pdateTime,jdbcType=TIMESTAMP},
notes = #{record.notes,jdbcType=LONGVARCHAR}
notes = #{record.notes,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -360,8 +360,8 @@
...
@@ -360,8 +360,8 @@
-->
-->
update calendar_event
update calendar_event
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=BIGINT},
entity_id = #{record.entityId,jdbcType=BIGINT},
task_name = #{record.taskName,jdbcType=VARCHAR},
task_name = #{record.taskName,jdbcType=VARCHAR},
entity_id = #{record.entityId,jdbcType=BIGINT},
task_type_id = #{record.taskTypeId,jdbcType=BIGINT},
task_type_id = #{record.taskTypeId,jdbcType=BIGINT},
staff = #{record.staff,jdbcType=VARCHAR},
staff = #{record.staff,jdbcType=VARCHAR},
effective_date = #{record.effectiveDate,jdbcType=TIMESTAMP},
effective_date = #{record.effectiveDate,jdbcType=TIMESTAMP},
...
@@ -369,7 +369,7 @@
...
@@ -369,7 +369,7 @@
`status` = #{record.status,jdbcType=TINYINT},
`status` = #{record.status,jdbcType=TINYINT},
order_index = #{record.orderIndex,jdbcType=INTEGER},
order_index = #{record.orderIndex,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastU
pdateTime,jdbcType=TIMESTAMP}
update_time = #{record.u
pdateTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
@@ -381,12 +381,12 @@
...
@@ -381,12 +381,12 @@
-->
-->
update calendar_event
update calendar_event
<set>
<set>
<if
test=
"entityId != null"
>
entity_id = #{entityId,jdbcType=BIGINT},
</if>
<if
test=
"taskName != null"
>
<if
test=
"taskName != null"
>
task_name = #{taskName,jdbcType=VARCHAR},
task_name = #{taskName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"entityId != null"
>
entity_id = #{entityId,jdbcType=BIGINT},
</if>
<if
test=
"taskTypeId != null"
>
<if
test=
"taskTypeId != null"
>
task_type_id = #{taskTypeId,jdbcType=BIGINT},
task_type_id = #{taskTypeId,jdbcType=BIGINT},
</if>
</if>
...
@@ -408,8 +408,8 @@
...
@@ -408,8 +408,8 @@
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
lastU
pdateTime != null"
>
<if
test=
"
u
pdateTime != null"
>
last_update_time = #{lastU
pdateTime,jdbcType=TIMESTAMP},
update_time = #{u
pdateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"notes != null"
>
<if
test=
"notes != null"
>
notes = #{notes,jdbcType=LONGVARCHAR},
notes = #{notes,jdbcType=LONGVARCHAR},
...
@@ -423,8 +423,8 @@
...
@@ -423,8 +423,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
update calendar_event
update calendar_event
set
entity_id = #{entityId,jdbcType=BIGINT
},
set
task_name = #{taskName,jdbcType=VARCHAR
},
task_name = #{taskName,jdbcType=VARCHAR
},
entity_id = #{entityId,jdbcType=BIGINT
},
task_type_id = #{taskTypeId,jdbcType=BIGINT},
task_type_id = #{taskTypeId,jdbcType=BIGINT},
staff = #{staff,jdbcType=VARCHAR},
staff = #{staff,jdbcType=VARCHAR},
effective_date = #{effectiveDate,jdbcType=TIMESTAMP},
effective_date = #{effectiveDate,jdbcType=TIMESTAMP},
...
@@ -432,7 +432,7 @@
...
@@ -432,7 +432,7 @@
`status` = #{status,jdbcType=TINYINT},
`status` = #{status,jdbcType=TINYINT},
order_index = #{orderIndex,jdbcType=INTEGER},
order_index = #{orderIndex,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastU
pdateTime,jdbcType=TIMESTAMP},
update_time = #{u
pdateTime,jdbcType=TIMESTAMP},
notes = #{notes,jdbcType=LONGVARCHAR}
notes = #{notes,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
...
@@ -442,8 +442,8 @@
...
@@ -442,8 +442,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
update calendar_event
update calendar_event
set
entity_id = #{entityId,jdbcType=BIGINT
},
set
task_name = #{taskName,jdbcType=VARCHAR
},
task_name = #{taskName,jdbcType=VARCHAR
},
entity_id = #{entityId,jdbcType=BIGINT
},
task_type_id = #{taskTypeId,jdbcType=BIGINT},
task_type_id = #{taskTypeId,jdbcType=BIGINT},
staff = #{staff,jdbcType=VARCHAR},
staff = #{staff,jdbcType=VARCHAR},
effective_date = #{effectiveDate,jdbcType=TIMESTAMP},
effective_date = #{effectiveDate,jdbcType=TIMESTAMP},
...
@@ -451,7 +451,7 @@
...
@@ -451,7 +451,7 @@
`status` = #{status,jdbcType=TINYINT},
`status` = #{status,jdbcType=TINYINT},
order_index = #{orderIndex,jdbcType=INTEGER},
order_index = #{orderIndex,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastU
pdateTime,jdbcType=TIMESTAMP}
update_time = #{u
pdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
atms-web/src/main/webapp/app/admin/systemConfiguration/calendarSetting/taxCalendarConfig/tax-calendar-config.ctrl.js
View file @
d1ff2b67
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
$scope
.
pagingOptions
=
{
$scope
.
pagingOptions
=
{
pageIndex
:
1
,
//当前页码
pageIndex
:
1
,
//当前页码
totalItems
:
0
,
//总数据
totalItems
:
0
,
//总数据
pageSize
:
constant
.
page
.
pageSizeArrary
[
1
]
,
//每页多少条数据
pageSize
:
constant
.
page
.
pageSizeArrary
[
1
]
//每页多少条数据
};
};
//分页对象初始化-->end
//分页对象初始化-->end
...
@@ -21,20 +21,20 @@
...
@@ -21,20 +21,20 @@
//查询对象初始化-->start
//查询对象初始化-->start
$scope
.
companyOptions
=
{
$scope
.
companyOptions
=
{
bindingOptions
:
{
bindingOptions
:
{
dataSource
:
'
org
List'
dataSource
:
'
entity
List'
},
},
displayExpr
:
"
companyN
ame"
,
displayExpr
:
"
n
ame"
,
valueExpr
:
"id"
,
valueExpr
:
"id"
,
showSelectionControls
:
true
,
showSelectionControls
:
true
,
applyValueMode
:
"instantly"
,
applyValueMode
:
"instantly"
,
multiline
:
false
,
multiline
:
false
,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
ta
x
Options
=
{
$scope
.
ta
skType
Options
=
{
bindingOptions
:
{
bindingOptions
:
{
dataSource
:
'ta
xProject
List'
dataSource
:
'ta
skType
List'
},
},
displayExpr
:
"
taxProjectN
ame"
,
displayExpr
:
"
n
ame"
,
valueExpr
:
"id"
,
valueExpr
:
"id"
,
showSelectionControls
:
true
,
showSelectionControls
:
true
,
applyValueMode
:
"instantly"
,
applyValueMode
:
"instantly"
,
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
showClearButton
:
true
,
showClearButton
:
true
,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
event
MonthOptions
=
{
$scope
.
config
MonthOptions
=
{
dataSource
:
[{
id
:
1
,
month
:
$translate
.
instant
(
'January'
)
},
{
id
:
2
,
month
:
$translate
.
instant
(
'February'
)
},
{
id
:
3
,
month
:
$translate
.
instant
(
'March'
)
},
dataSource
:
[{
id
:
1
,
month
:
$translate
.
instant
(
'January'
)
},
{
id
:
2
,
month
:
$translate
.
instant
(
'February'
)
},
{
id
:
3
,
month
:
$translate
.
instant
(
'March'
)
},
{
id
:
4
,
month
:
$translate
.
instant
(
'April'
)
},
{
id
:
5
,
month
:
$translate
.
instant
(
'May'
)
},
{
id
:
6
,
month
:
$translate
.
instant
(
'June'
)
},
{
id
:
4
,
month
:
$translate
.
instant
(
'April'
)
},
{
id
:
5
,
month
:
$translate
.
instant
(
'May'
)
},
{
id
:
6
,
month
:
$translate
.
instant
(
'June'
)
},
{
id
:
7
,
month
:
$translate
.
instant
(
'August'
)
},
{
id
:
8
,
month
:
$translate
.
instant
(
'July'
)
},
{
id
:
9
,
month
:
$translate
.
instant
(
'September'
)
},
{
id
:
7
,
month
:
$translate
.
instant
(
'August'
)
},
{
id
:
8
,
month
:
$translate
.
instant
(
'July'
)
},
{
id
:
9
,
month
:
$translate
.
instant
(
'September'
)
},
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
multiline
:
false
,
multiline
:
false
,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
event
DateOptions
=
{
$scope
.
config
DateOptions
=
{
dataSource
:
[{
id
:
1
,
day
:
'1'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
2
,
day
:
'2'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
3
,
day
:
'3'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
4
,
day
:
'4'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
5
,
day
:
'5'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
6
,
day
:
'6'
+
$translate
.
instant
(
'Day'
)
},
dataSource
:
[{
id
:
1
,
day
:
'1'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
2
,
day
:
'2'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
3
,
day
:
'3'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
4
,
day
:
'4'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
5
,
day
:
'5'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
6
,
day
:
'6'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
7
,
day
:
'7'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
8
,
day
:
'8'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
9
,
day
:
'9'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
10
,
day
:
'10'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
11
,
day
:
'11'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
12
,
day
:
'12'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
7
,
day
:
'7'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
8
,
day
:
'8'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
9
,
day
:
'9'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
10
,
day
:
'10'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
11
,
day
:
'11'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
12
,
day
:
'12'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
13
,
day
:
'13'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
14
,
day
:
'14'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
15
,
day
:
'15'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
16
,
day
:
'16'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
17
,
day
:
'17'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
18
,
day
:
'18'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
13
,
day
:
'13'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
14
,
day
:
'14'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
15
,
day
:
'15'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
16
,
day
:
'16'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
17
,
day
:
'17'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
18
,
day
:
'18'
+
$translate
.
instant
(
'Day'
)
},
...
@@ -74,25 +74,23 @@
...
@@ -74,25 +74,23 @@
multiline
:
false
,
multiline
:
false
,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
addressOptions
=
{
//
$scope.addressOptions = {
bindingOptions
:
{
//
bindingOptions: {
dataSource
:
'workPlaceList'
//
dataSource: 'workPlaceList'
},
//
},
displayExpr
:
"name"
,
//
displayExpr: "name",
valueExpr
:
"id"
,
//
valueExpr: "id",
searchEnabled
:
true
,
//
searchEnabled:true,
showClearButton
:
true
,
//
showClearButton: true,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
//
placeholder: $translate.instant('PleaseSelect')
};
//
};
$scope
.
operatorOptions
=
{
$scope
.
operatorOptions
=
{
bindingOptions
:{
bindingOptions
:{
dataSource
:
'userList'
dataSource
:
'userList'
},
},
displayExpr
:
"userName"
,
displayExpr
:
"userName"
,
valueExpr
:
"id"
,
valueExpr
:
"userName"
,
showSelectionControls
:
true
,
showClearButton
:
true
,
applyValueMode
:
"instantly"
,
multiline
:
false
,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
numberOptions
=
{
$scope
.
numberOptions
=
{
...
@@ -111,9 +109,9 @@
...
@@ -111,9 +109,9 @@
$scope
.
taxCalendarConfigurationList
=
[];
$scope
.
taxCalendarConfigurationList
=
[];
$scope
.
taxDataGridOptions
=
{
$scope
.
taxDataGridOptions
=
{
columns
:
[
columns
:
[
{
dataField
:
'
calendarNumber
'
,
caption
:
$translate
.
instant
(
'CalendarNumber'
),
fixed
:
true
},
{
dataField
:
'
orderIndex
'
,
caption
:
$translate
.
instant
(
'CalendarNumber'
),
fixed
:
true
},
{
{
dataField
:
'
compan
yNames'
,
caption
:
$translate
.
instant
(
'Company'
),
fixed
:
true
,
width
:
'280px'
dataField
:
'
entit
yNames'
,
caption
:
$translate
.
instant
(
'Company'
),
fixed
:
true
,
width
:
'280px'
//, cellTemplate: function (ele, info) {
//, cellTemplate: function (ele, info) {
// if (info.data.companyNames && info.data.companyNames.length > 20) {
// if (info.data.companyNames && info.data.companyNames.length > 20) {
// $('<span title="' + info.data.companyNames + '"/>').text(info.data.companyNames.substr(0, 20) + "...").appendTo(ele);
// $('<span title="' + info.data.companyNames + '"/>').text(info.data.companyNames.substr(0, 20) + "...").appendTo(ele);
...
@@ -123,21 +121,21 @@
...
@@ -123,21 +121,21 @@
//}
//}
},
},
{
dataField
:
'ta
xProject
Names'
,
caption
:
$translate
.
instant
(
'TaxEvent'
)
},
{
dataField
:
'ta
skType
Names'
,
caption
:
$translate
.
instant
(
'TaxEvent'
)
},
{
dataField
:
'projectMonths'
,
caption
:
$translate
.
instant
(
'EventMonth'
)
},
{
dataField
:
'projectMonths'
,
caption
:
$translate
.
instant
(
'EventMonth'
)
},
{
{
dataField
:
'projectDays'
,
caption
:
$translate
.
instant
(
'EventDay'
),
cellTemplate
:
function
(
ele
,
info
)
{
dataField
:
'projectDays'
,
caption
:
$translate
.
instant
(
'EventDay'
),
cellTemplate
:
function
(
ele
,
info
)
{
$
(
'<span/>'
).
text
(
info
.
data
.
projectDays
.
replace
(
'32'
,
$translate
.
instant
(
'TheLastDayOfMonth'
))).
appendTo
(
ele
);
$
(
'<span/>'
).
text
(
info
.
data
.
projectDays
.
replace
(
'32'
,
$translate
.
instant
(
'TheLastDayOfMonth'
))).
appendTo
(
ele
);
}
}
},
},
{
//
{
dataField
:
'isRelatedTaxMoney'
,
caption
:
$translate
.
instant
(
'IsRelatedTaxAmount'
),
cellTemplate
:
function
(
ele
,
info
)
{
//
dataField: 'isRelatedTaxMoney', caption: $translate.instant('IsRelatedTaxAmount'), cellTemplate: function (ele,info) {
$
(
'<span/>'
).
text
(
info
.
data
.
isRelatedTaxMoney
==
0
?
$translate
.
instant
(
'Fou'
)
:
$translate
.
instant
(
'Shi'
)).
appendTo
(
ele
);
//
$('<span/>').text(info.data.isRelatedTaxMoney == 0 ? $translate.instant('Fou') : $translate.instant('Shi')).appendTo(ele);
}
//
}
},
//
},
{
dataField
:
'workPlaceNames'
,
caption
:
$translate
.
instant
(
'EventAddress'
)
},
//
{ dataField: 'workPlaceNames', caption: $translate.instant('EventAddress') },
{
dataField
:
'
operatorNames
'
,
caption
:
$translate
.
instant
(
'EventPerson'
)
},
{
dataField
:
'
staff
'
,
caption
:
$translate
.
instant
(
'EventPerson'
)
},
{
dataField
:
'validDate
Period
'
,
caption
:
$translate
.
instant
(
'ValidDate'
)
},
{
dataField
:
'validDate'
,
caption
:
$translate
.
instant
(
'ValidDate'
)
},
{
{
dataField
:
'status'
,
caption
:
$translate
.
instant
(
'CalendarStatus'
),
cellTemplate
:
function
(
ele
,
info
)
{
dataField
:
'status'
,
caption
:
$translate
.
instant
(
'CalendarStatus'
),
cellTemplate
:
function
(
ele
,
info
)
{
$
(
'<span/>'
).
text
(
info
.
data
.
status
==
0
?
$translate
.
instant
(
'Jinyong'
)
:
$translate
.
instant
(
'Qiyong'
)).
appendTo
(
ele
);
$
(
'<span/>'
).
text
(
info
.
data
.
status
==
0
?
$translate
.
instant
(
'Jinyong'
)
:
$translate
.
instant
(
'Qiyong'
)).
appendTo
(
ele
);
...
@@ -145,20 +143,20 @@
...
@@ -145,20 +143,20 @@
},
},
{
{
dataField
:
'k'
,
caption
:
$translate
.
instant
(
'OrderOperation'
),
cellTemplate
:
function
(
ele
,
info
)
{
dataField
:
'k'
,
caption
:
$translate
.
instant
(
'OrderOperation'
),
cellTemplate
:
function
(
ele
,
info
)
{
if
(
window
.
PWC
.
isHavePermission
(
constant
.
adminPermission
.
systemConfiguration
.
taxCalendarConfig
.
queryCode
,
$scope
.
userPermissions
))
{
//
if (window.PWC.isHavePermission(constant.adminPermission.systemConfiguration.taxCalendarConfig.queryCode, $scope.userPermissions)) {
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'View'
)
+
' | '
).
on
(
'dxclick'
,
function
()
{
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'View'
)
+
' | '
).
on
(
'dxclick'
,
function
()
{
goToEditConfig
(
info
.
data
.
id
,
1
);
goToEditConfig
(
info
.
data
.
id
,
1
);
}).
appendTo
(
ele
);
}).
appendTo
(
ele
);
}
//
}
if
(
window
.
PWC
.
isHavePermission
(
constant
.
adminPermission
.
systemConfiguration
.
taxCalendarConfig
.
editConfig
,
$scope
.
userPermissions
))
{
//
if (window.PWC.isHavePermission(constant.adminPermission.systemConfiguration.taxCalendarConfig.editConfig, $scope.userPermissions)) {
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'Edit'
)
+
' | '
).
on
(
'dxclick'
,
function
()
{
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'Edit'
)).
on
(
'dxclick'
,
function
()
{
goToEditConfig
(
info
.
data
.
id
);
goToEditConfig
(
info
.
data
.
id
);
}).
appendTo
(
ele
);
}).
appendTo
(
ele
);
}
//
}
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'SetTixing'
)
+
' | '
).
on
(
'dxclick'
,
function
()
{
}).
appendTo
(
ele
);
//
$('<a/>').css({ 'color': '#d00', 'cursor': 'pointer' }).html($translate.instant('SetTixing') + ' | ').on('dxclick', function () { }).appendTo(ele);
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'OtherConfig'
)).
on
(
'dxclick'
,
function
()
{
}).
appendTo
(
ele
);
//
$('<a/>').css({ 'color': '#d00', 'cursor': 'pointer' }).html($translate.instant('OtherConfig')).on('dxclick', function () { }).appendTo(ele);
}
}
}
}
],
],
...
@@ -202,9 +200,9 @@
...
@@ -202,9 +200,9 @@
enabled
:
false
enabled
:
false
},
},
columns
:
[
columns
:
[
{
dataField
:
'
company
'
,
caption
:
$translate
.
instant
(
'Company'
),
allowHeaderFiltering
:
false
},
{
dataField
:
'
entityName
'
,
caption
:
$translate
.
instant
(
'Company'
),
allowHeaderFiltering
:
false
},
{
dataField
:
'
taxC
alendarCount'
,
caption
:
$translate
.
instant
(
'TaxCalendarCount'
),
allowHeaderFiltering
:
false
},
{
dataField
:
'
c
alendarCount'
,
caption
:
$translate
.
instant
(
'TaxCalendarCount'
),
allowHeaderFiltering
:
false
},
{
dataField
:
'ta
xProject
Count'
,
caption
:
$translate
.
instant
(
'TaxProjectCount'
),
allowHeaderFiltering
:
false
},
{
dataField
:
'ta
skType
Count'
,
caption
:
$translate
.
instant
(
'TaxProjectCount'
),
allowHeaderFiltering
:
false
},
],
],
masterDetail
:
{
masterDetail
:
{
enabled
:
true
,
enabled
:
true
,
...
@@ -218,22 +216,22 @@
...
@@ -218,22 +216,22 @@
columnAutoWidth
:
true
,
columnAutoWidth
:
true
,
showBorders
:
true
,
showBorders
:
true
,
columns
:
[
columns
:
[
{
dataField
:
'
calendarNumber
'
,
caption
:
$translate
.
instant
(
'CalendarNumber'
),
fixed
:
true
},
{
dataField
:
'
orderIndex
'
,
caption
:
$translate
.
instant
(
'CalendarNumber'
),
fixed
:
true
},
{
dataField
:
'ta
xProject
Names'
,
caption
:
$translate
.
instant
(
'TaxEvent'
)
},
{
dataField
:
'ta
skType
Names'
,
caption
:
$translate
.
instant
(
'TaxEvent'
)
},
{
dataField
:
'projectMonths'
,
caption
:
$translate
.
instant
(
'EventMonth'
)
},
{
dataField
:
'projectMonths'
,
caption
:
$translate
.
instant
(
'EventMonth'
)
},
{
{
dataField
:
'projectDays'
,
caption
:
$translate
.
instant
(
'EventDay'
),
cellTemplate
:
function
(
ele
,
info
)
{
dataField
:
'projectDays'
,
caption
:
$translate
.
instant
(
'EventDay'
),
cellTemplate
:
function
(
ele
,
info
)
{
$
(
'<span/>'
).
text
(
info
.
data
.
projectDays
.
replace
(
'32'
,
$translate
.
instant
(
'TheLastDayOfMonth'
))).
appendTo
(
ele
);
$
(
'<span/>'
).
text
(
info
.
data
.
projectDays
.
replace
(
'32'
,
$translate
.
instant
(
'TheLastDayOfMonth'
))).
appendTo
(
ele
);
}
}
},
},
{
//
{
dataField
:
'isRelatedTaxMoney'
,
caption
:
$translate
.
instant
(
'IsRelatedTaxAmount'
),
cellTemplate
:
function
(
ele
,
info
)
{
//
dataField: 'isRelatedTaxMoney', caption: $translate.instant('IsRelatedTaxAmount'), cellTemplate: function (ele, info) {
$
(
'<span/>'
).
text
(
info
.
data
.
isRelatedTaxMoney
==
0
?
$translate
.
instant
(
'Fou'
)
:
$translate
.
instant
(
'Shi'
)).
appendTo
(
ele
);
//
$('<span/>').text(info.data.isRelatedTaxMoney == 0 ? $translate.instant('Fou') : $translate.instant('Shi')).appendTo(ele);
}
//
}
},
//
},
{
dataField
:
'workPlaceNames'
,
caption
:
$translate
.
instant
(
'EventAddress'
)
},
//
{ dataField: 'workPlaceNames', caption: $translate.instant('EventAddress') },
{
dataField
:
'
operatorNames
'
,
caption
:
$translate
.
instant
(
'EventPerson'
)
},
{
dataField
:
'
staff
'
,
caption
:
$translate
.
instant
(
'EventPerson'
)
},
{
dataField
:
'validDate
Period
'
,
caption
:
$translate
.
instant
(
'ValidDate'
)
},
{
dataField
:
'validDate'
,
caption
:
$translate
.
instant
(
'ValidDate'
)
},
{
{
dataField
:
'status'
,
caption
:
$translate
.
instant
(
'CalendarStatus'
),
cellTemplate
:
function
(
ele
,
info
)
{
dataField
:
'status'
,
caption
:
$translate
.
instant
(
'CalendarStatus'
),
cellTemplate
:
function
(
ele
,
info
)
{
$
(
'<span/>'
).
text
(
info
.
data
.
status
==
0
?
$translate
.
instant
(
'Jinyong'
)
:
$translate
.
instant
(
'Qiyong'
)).
appendTo
(
ele
);
$
(
'<span/>'
).
text
(
info
.
data
.
status
==
0
?
$translate
.
instant
(
'Jinyong'
)
:
$translate
.
instant
(
'Qiyong'
)).
appendTo
(
ele
);
...
@@ -241,22 +239,22 @@
...
@@ -241,22 +239,22 @@
},
},
{
{
dataField
:
'k'
,
caption
:
$translate
.
instant
(
'OrderOperation'
),
cellTemplate
:
function
(
ele
,
info
)
{
dataField
:
'k'
,
caption
:
$translate
.
instant
(
'OrderOperation'
),
cellTemplate
:
function
(
ele
,
info
)
{
if
(
window
.
PWC
.
isHavePermission
(
constant
.
adminPermission
.
systemConfiguration
.
taxCalendarConfig
.
queryCode
,
$scope
.
userPermissions
))
{
//
if (window.PWC.isHavePermission(constant.adminPermission.systemConfiguration.taxCalendarConfig.queryCode, $scope.userPermissions)) {
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'View'
)
+
' | '
).
on
(
'dxclick'
,
function
()
{
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'View'
)
+
' | '
).
on
(
'dxclick'
,
function
()
{
goToEditConfig
(
info
.
data
.
id
,
1
);
goToEditConfig
(
info
.
data
.
id
,
1
);
}).
appendTo
(
ele
);
}).
appendTo
(
ele
);
}
//
}
if
(
window
.
PWC
.
isHavePermission
(
constant
.
adminPermission
.
systemConfiguration
.
taxCalendarConfig
.
editConfig
,
$scope
.
userPermissions
))
{
//
if (window.PWC.isHavePermission(constant.adminPermission.systemConfiguration.taxCalendarConfig.editConfig, $scope.userPermissions)) {
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'Edit'
)
+
' | '
).
on
(
'dxclick'
,
function
()
{
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'Edit'
)).
on
(
'dxclick'
,
function
()
{
goToEditConfig
(
info
.
data
.
id
);
goToEditConfig
(
info
.
data
.
id
);
}).
appendTo
(
ele
);
}).
appendTo
(
ele
);
}
//
}
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'SetTixing'
)
+
' | '
).
on
(
'dxclick'
,
function
()
{
}).
appendTo
(
ele
);
//
$('<a/>').css({ 'color': '#d00', 'cursor': 'pointer' }).html($translate.instant('SetTixing') + ' | ').on('dxclick', function () { }).appendTo(ele);
$
(
'<a/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
}).
html
(
$translate
.
instant
(
'OtherConfig'
)).
on
(
'dxclick'
,
function
()
{
}).
appendTo
(
ele
);
//
$('<a/>').css({ 'color': '#d00', 'cursor': 'pointer' }).html($translate.instant('OtherConfig')).on('dxclick', function () { }).appendTo(ele);
}
}
}
}
]
]
...
@@ -300,16 +298,17 @@
...
@@ -300,16 +298,17 @@
var
queryList
=
function
()
{
var
queryList
=
function
()
{
$scope
.
queryEntity
.
pagingParam
=
$scope
.
pagingOptions
;
$scope
.
queryEntity
.
pagingParam
=
$scope
.
pagingOptions
;
taxCalendarService
.
getTaxCalendarConfigurationList
(
$scope
.
queryEntity
).
success
(
function
(
result
)
{
$scope
.
queryEntity
.
pagingParam
.
totalCount
=
$scope
.
queryEntity
.
pagingParam
.
totalItems
;
if
(
result
)
{
taxCalendarService
.
getCalendarConfigList
(
$scope
.
queryEntity
).
success
(
function
(
result
)
{
if
(
result
&&
result
.
result
)
{
if
(
$scope
.
queryEntity
.
queryType
==
2
)
{
if
(
$scope
.
queryEntity
.
queryType
==
2
)
{
$scope
.
companyCalendarList
=
result
.
list
;
$scope
.
companyCalendarList
=
result
.
data
.
list
;
$scope
.
taxCalendarConfigurationList
=
[];
$scope
.
taxCalendarConfigurationList
=
[];
}
else
{
}
else
{
$scope
.
taxCalendarConfigurationList
=
result
.
list
;
$scope
.
taxCalendarConfigurationList
=
result
.
data
.
list
;
$scope
.
companyCalendarList
=
[];
$scope
.
companyCalendarList
=
[];
}
}
$scope
.
pagingOptions
.
totalItems
=
result
.
pageInfo
.
totalCount
;
$scope
.
pagingOptions
.
totalItems
=
result
.
data
.
pageInfo
.
totalCount
;
}
}
});
});
};
};
...
@@ -322,8 +321,8 @@
...
@@ -322,8 +321,8 @@
(
function
()
{
(
function
()
{
$scope
.
userList
=
[];
$scope
.
userList
=
[];
$scope
.
org
List
=
[];
$scope
.
entity
List
=
[];
$scope
.
workPlaceList
=
[];
//
$scope.workPlaceList = [];
$scope
.
goToEditConfig
=
goToEditConfig
;
$scope
.
goToEditConfig
=
goToEditConfig
;
$scope
.
queryList
=
queryList
;
$scope
.
queryList
=
queryList
;
$timeout
(
function
()
{
$timeout
(
function
()
{
...
@@ -338,22 +337,21 @@
...
@@ -338,22 +337,21 @@
}
}
});
});
orgService
.
getAllActiveOrgList
().
success
(
function
(
result
)
{
taxCalendarService
.
getActiveEntityList
().
success
(
function
(
result
)
{
$scope
.
orgList
=
_
.
map
(
result
,
function
(
item
)
{
if
(
result
.
result
)
{
var
obj
=
{
id
:
item
.
id
,
companyName
:
item
.
name
};
$scope
.
entityList
=
result
.
data
;
return
obj
;
});
});
taxCalendarService
.
getWorkPlaceList
().
success
(
function
(
result
)
{
if
(
result
)
{
$scope
.
workPlaceList
=
result
;
}
}
});
});
taxCalendarService
.
getTaxProjectList
().
success
(
function
(
result
)
{
// taxCalendarService.getWorkPlaceList().success(function (result) {
if
(
result
)
{
// if (result) {
$scope
.
taxProjectList
=
result
;
// $scope.workPlaceList = result;
// }
// });
taxCalendarService
.
getTaskTypeList
().
success
(
function
(
result
)
{
if
(
result
&&
result
.
result
&&
result
.
data
)
{
$scope
.
taskTypeList
=
result
.
data
;
}
}
});
});
...
...
atms-web/src/main/webapp/app/admin/systemConfiguration/calendarSetting/taxCalendarConfig/tax-calendar-config.html
View file @
d1ff2b67
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
<div
class=
"search-title-lable-2"
>
<div
class=
"search-title-lable-2"
>
{{'Company' | translate}}:
{{'Company' | translate}}:
</div>
</div>
<div
class=
"search-box-100-2"
ng-model=
"queryEntity.
compan
yIdList"
dx-tag-box=
"companyOptions"
></div>
<div
class=
"search-box-100-2"
ng-model=
"queryEntity.
entit
yIdList"
dx-tag-box=
"companyOptions"
></div>
</div>
</div>
<div
class=
"search-part-2"
>
<div
class=
"search-part-2"
>
<div
class=
"search-title-lable-4"
>
<div
class=
"search-title-lable-4"
>
{{'TaxEvent' | translate}}:
{{'TaxEvent' | translate}}:
</div>
</div>
<div
class=
"search-box-100-4"
ng-model=
"queryEntity.ta
xPorjectIdList"
dx-tag-box=
"tax
Options"
></div>
<div
class=
"search-box-100-4"
ng-model=
"queryEntity.ta
skTypeList"
dx-tag-box=
"taskType
Options"
></div>
</div>
</div>
<div
class=
"search-part-3"
>
<div
class=
"search-part-3"
>
...
@@ -34,29 +34,29 @@
...
@@ -34,29 +34,29 @@
<div
class=
"search-title-lable-7"
>
<div
class=
"search-title-lable-7"
>
{{'EventMonth' | translate}}:
{{'EventMonth' | translate}}:
</div>
</div>
<div
class=
"search-box-50-7"
ng-model=
"queryEntity.
eventMonthList"
dx-tag-box=
"event
MonthOptions"
></div>
<div
class=
"search-box-50-7"
ng-model=
"queryEntity.
configMonthList"
dx-tag-box=
"config
MonthOptions"
></div>
<div
class=
"search-title-lable-7"
>
<div
class=
"search-title-lable-7"
>
{{'EventDay' | translate}}:
{{'EventDay' | translate}}:
</div>
</div>
<div
class=
"search-box-50-7"
ng-model=
"queryEntity.
eventDayList"
dx-tag-box=
"event
DateOptions"
></div>
<div
class=
"search-box-50-7"
ng-model=
"queryEntity.
configDayList"
dx-tag-box=
"config
DateOptions"
></div>
</div>
</div>
<div
class=
"search-part-2"
>
<div
class=
"search-part-2"
>
<div
class=
"search-title-lable-4"
>
<!-- <div class="search-title-lable-4">--
>
{{'EventAddress' | translate}}:
<!-- {{'EventAddress' | translate}}:-->
</div
>
<!-- </div>--
>
<div
class=
"search-box-50-4"
ng-model=
"queryEntity.eventPlaceId"
dx-select-box=
"addressOptions"
></div
>
<!-- <div class="search-box-50-4" ng-model="queryEntity.eventPlaceId" dx-select-box="addressOptions"></div>--
>
<div
class=
"search-title-lable-3"
>
<div
class=
"search-title-lable-3"
>
{{'EventPerson' | translate}}:
{{'EventPerson' | translate}}:
</div>
</div>
<div
class=
"search-box-50-3"
ng-model=
"queryEntity.
operatorIdList
"
dx-tag-box=
"operatorOptions"
></div>
<div
class=
"search-box-50-3"
ng-model=
"queryEntity.
staff
"
dx-tag-box=
"operatorOptions"
></div>
</div>
</div>
<div
class=
"search-part-3"
>
<div
class=
"search-part-3"
>
<div
class=
"search-title-lable-2"
>
<div
class=
"search-title-lable-2"
>
{{'Number' | translate}}:
{{'Number' | translate}}:
</div>
</div>
<div
class=
"search-box-100-2"
ng-model=
"queryEntity.
number
"
dx-text-box=
"numberOptions"
></div>
<div
class=
"search-box-100-2"
ng-model=
"queryEntity.
orderIndex
"
dx-text-box=
"numberOptions"
></div>
</div>
</div>
<div
class=
"search-part-3"
>
<div
class=
"search-part-3"
>
...
@@ -69,14 +69,14 @@
...
@@ -69,14 +69,14 @@
<div
class=
"grid-container"
>
<div
class=
"grid-container"
>
<div
class=
"grid-head-search-container"
>
<div
class=
"grid-head-search-container"
>
<div
class=
"grid-head-search"
ng-model=
"queryEntity.queryType"
dx-radio-group=
"gridSearchRadioOptions"
></div>
<div
class=
"grid-head-search"
ng-model=
"queryEntity.queryType"
dx-radio-group=
"gridSearchRadioOptions"
></div>
<div
ng-click=
"goToEditConfig();"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.adminPermission.systemConfiguration.
taxCalendarConfig.editConfig
}}"
class=
"btn btn-default btn-red"
>
{{'NewTaxCalendar' | translate}}
</div>
<div
ng-click=
"goToEditConfig();"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.adminPermission.systemConfiguration.
calendarSetting.editCode
}}"
class=
"btn btn-default btn-red"
>
{{'NewTaxCalendar' | translate}}
</div>
</div>
</div>
<div
id=
"dx-tax-calendar-data-grid"
ng-if=
"queryEntity.queryType == 1"
dx-data-grid=
"taxDataGridOptions"
></div>
<div
id=
"dx-tax-calendar-data-grid"
ng-if=
"queryEntity.queryType == 1"
dx-data-grid=
"taxDataGridOptions"
></div>
<div
dx-data-grid=
"companyCalendarGridOptions"
ng-if=
"queryEntity.queryType == 2"
dx-item-alias=
"companyGroup"
>
<div
dx-data-grid=
"companyCalendarGridOptions"
ng-if=
"queryEntity.queryType == 2"
dx-item-alias=
"companyGroup"
>
<div
data-options=
"dxTemplate:{name:'companyCalendarTemplate'}"
>
<div
data-options=
"dxTemplate:{name:'companyCalendarTemplate'}"
>
<div
class=
"internal-grid-container"
>
<div
class=
"internal-grid-container"
>
<div
class=
"internal-grid"
id=
"company-{{companyGroup.key}}"
<div
class=
"internal-grid"
id=
"company-{{companyGroup.key}}"
dx-data-grid=
"companyCalendarGridOptions.companyView(companyGroup.data.
companyCalendars
)"
>
dx-data-grid=
"companyCalendarGridOptions.companyView(companyGroup.data.
entityCalendarList
)"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
atms-web/src/main/webapp/app/admin/systemConfiguration/calendarSetting/taxCalendarConfigEdit/tax-calendar-config-edit.ctrl.js
View file @
d1ff2b67
...
@@ -13,47 +13,47 @@
...
@@ -13,47 +13,47 @@
};
};
$scope
.
companyOptions
=
{
$scope
.
companyOptions
=
{
bindingOptions
:
{
bindingOptions
:
{
dataSource
:
'
org
List'
dataSource
:
'
entity
List'
},
},
displayExpr
:
"
companyN
ame"
,
displayExpr
:
"
n
ame"
,
valueExpr
:
"id"
,
valueExpr
:
"id"
,
showSelectionControls
:
true
,
showSelectionControls
:
true
,
applyValueMode
:
"instantly"
,
applyValueMode
:
"instantly"
,
multiline
:
false
,
multiline
:
false
,
readOnly
:
!!
$scope
.
isReadOnly
,
readOnly
:
!!
$scope
.
isReadOnly
,
onValueChanged
:
function
(
e
)
{
onValueChanged
:
function
(
e
)
{
if
(
e
&&
e
.
component
)
{
//
if (e && e.component) {
var
datas
=
e
.
component
.
option
(
'selectedItems'
);
//
var datas = e.component.option('selectedItems');
if
(
datas
&&
datas
.
length
>
0
)
{
//
if (datas && datas.length > 0) {
$scope
.
taxCalendarConfiguration
.
companyNames
=
_
.
pluck
(
datas
,
'companyN
ame'
).
join
(
','
);
// $scope.taxCalendarConfiguration.entityNames = _.pluck(datas, 'n
ame').join(',');
}
//
}
}
//
}
},
},
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
ta
x
Options
=
{
$scope
.
ta
skType
Options
=
{
bindingOptions
:
{
bindingOptions
:
{
dataSource
:
'ta
xProject
List'
,
dataSource
:
'ta
skType
List'
,
readOnly
:
'isTa
xProject
ReadOnly'
readOnly
:
'isTa
skType
ReadOnly'
},
},
displayExpr
:
"
taxProjectN
ame"
,
displayExpr
:
"
n
ame"
,
valueExpr
:
"id"
,
valueExpr
:
"id"
,
showSelectionControls
:
true
,
showSelectionControls
:
true
,
applyValueMode
:
"instantly"
,
applyValueMode
:
"instantly"
,
multiline
:
false
,
multiline
:
false
,
//readOnly: !!$scope.isReadOnly || !!$scope.calendarConfigId,
//readOnly: !!$scope.isReadOnly || !!$scope.calendarConfigId,
onValueChanged
:
function
(
e
)
{
//
onValueChanged: function (e) {
if
(
e
&&
e
.
component
)
{
//
if (e && e.component) {
var
datas
=
e
.
component
.
option
(
'selectedItems'
);
//
var datas = e.component.option('selectedItems');
if
(
datas
&&
datas
.
length
>
0
)
{
//
if (datas && datas.length > 0) {
$scope
.
taxCalendarConfiguration
.
taxProjectNames
=
_
.
pluck
(
datas
,
'taxProjectN
ame'
).
join
(
','
);
// $scope.taxCalendarConfiguration.taskTypeNames = _.pluck(datas, 'n
ame').join(',');
}
//
}
}
//
}
},
//
},
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
event
MonthOptions
=
{
$scope
.
config
MonthOptions
=
{
dataSource
:
[{
id
:
1
,
month
:
$translate
.
instant
(
'January'
)
},
{
id
:
2
,
month
:
$translate
.
instant
(
'February'
)
},
{
id
:
3
,
month
:
$translate
.
instant
(
'March'
)
},
dataSource
:
[{
id
:
1
,
month
:
$translate
.
instant
(
'January'
)
},
{
id
:
2
,
month
:
$translate
.
instant
(
'February'
)
},
{
id
:
3
,
month
:
$translate
.
instant
(
'March'
)
},
{
id
:
4
,
month
:
$translate
.
instant
(
'April'
)
},
{
id
:
5
,
month
:
$translate
.
instant
(
'May'
)
},
{
id
:
6
,
month
:
$translate
.
instant
(
'June'
)
},
{
id
:
4
,
month
:
$translate
.
instant
(
'April'
)
},
{
id
:
5
,
month
:
$translate
.
instant
(
'May'
)
},
{
id
:
6
,
month
:
$translate
.
instant
(
'June'
)
},
{
id
:
7
,
month
:
$translate
.
instant
(
'August'
)
},
{
id
:
8
,
month
:
$translate
.
instant
(
'July'
)
},
{
id
:
9
,
month
:
$translate
.
instant
(
'September'
)
},
{
id
:
7
,
month
:
$translate
.
instant
(
'August'
)
},
{
id
:
8
,
month
:
$translate
.
instant
(
'July'
)
},
{
id
:
9
,
month
:
$translate
.
instant
(
'September'
)
},
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
readOnly
:
!!
$scope
.
isReadOnly
,
readOnly
:
!!
$scope
.
isReadOnly
,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
event
DateOptions
=
{
$scope
.
config
DateOptions
=
{
dataSource
:
[{
id
:
1
,
day
:
'1'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
2
,
day
:
'2'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
3
,
day
:
'3'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
4
,
day
:
'4'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
5
,
day
:
'5'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
6
,
day
:
'6'
+
$translate
.
instant
(
'Day'
)
},
dataSource
:
[{
id
:
1
,
day
:
'1'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
2
,
day
:
'2'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
3
,
day
:
'3'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
4
,
day
:
'4'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
5
,
day
:
'5'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
6
,
day
:
'6'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
7
,
day
:
'7'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
8
,
day
:
'8'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
9
,
day
:
'9'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
10
,
day
:
'10'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
11
,
day
:
'11'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
12
,
day
:
'12'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
7
,
day
:
'7'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
8
,
day
:
'8'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
9
,
day
:
'9'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
10
,
day
:
'10'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
11
,
day
:
'11'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
12
,
day
:
'12'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
13
,
day
:
'13'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
14
,
day
:
'14'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
15
,
day
:
'15'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
16
,
day
:
'16'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
17
,
day
:
'17'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
18
,
day
:
'18'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
13
,
day
:
'13'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
14
,
day
:
'14'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
15
,
day
:
'15'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
16
,
day
:
'16'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
17
,
day
:
'17'
+
$translate
.
instant
(
'Day'
)
},
{
id
:
18
,
day
:
'18'
+
$translate
.
instant
(
'Day'
)
},
...
@@ -81,25 +81,25 @@
...
@@ -81,25 +81,25 @@
readOnly
:
!!
$scope
.
isReadOnly
,
readOnly
:
!!
$scope
.
isReadOnly
,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
};
};
$scope
.
addressOptions
=
{
//
$scope.addressOptions = {
bindingOptions
:
{
//
bindingOptions: {
dataSource
:
'workPlaceList'
//
dataSource: 'workPlaceList'
},
//
},
displayExpr
:
"name"
,
//
displayExpr: "name",
valueExpr
:
"id"
,
//
valueExpr: "id",
searchEnabled
:
true
,
//
searchEnabled:true,
showClearButton
:
true
,
//
showClearButton: true,
readOnly
:
!!
$scope
.
isReadOnly
,
//
readOnly: !!$scope.isReadOnly,
onValueChanged
:
function
(
e
)
{
//
onValueChanged: function (e) {
if
(
e
&&
e
.
component
)
{
//
if (e && e.component) {
var
data
=
e
.
component
.
option
(
'selectedItem'
);
//
var data = e.component.option('selectedItem');
if
(
data
)
{
//
if (data) {
$scope
.
taxCalendarConfiguration
.
workPlaceNames
=
data
.
name
;
//
$scope.taxCalendarConfiguration.workPlaceNames = data.name;
}
//
}
}
//
}
},
//
},
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
//
placeholder: $translate.instant('PleaseSelect')
};
//
};
$scope
.
validDateStartOption
=
{
$scope
.
validDateStartOption
=
{
readOnly
:
!!
$scope
.
isReadOnly
,
readOnly
:
!!
$scope
.
isReadOnly
,
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
placeholder
:
$translate
.
instant
(
'PleaseSelect'
)
...
@@ -163,14 +163,14 @@
...
@@ -163,14 +163,14 @@
readOnly
:
!!
$scope
.
isReadOnly
readOnly
:
!!
$scope
.
isReadOnly
};
};
$scope
.
isRelatedTaxMoneyOptions
=
{
//
$scope.isRelatedTaxMoneyOptions = {
dataSource
:
[{
value
:
1
,
displayText
:
$translate
.
instant
(
'Shi'
)
},
{
value
:
0
,
displayText
:
$translate
.
instant
(
'Fou'
)
}],
//
dataSource: [{ value: 1, displayText: $translate.instant('Shi') }, { value: 0, displayText: $translate.instant('Fou') }],
displayExpr
:
'displayText'
,
//
displayExpr: 'displayText',
valueExpr
:
'value'
,
//
valueExpr: 'value',
value
:
1
,
//
value: 1,
layout
:
'horizontal'
,
//
layout: 'horizontal',
readOnly
:
!!
$scope
.
isReadOnly
//
readOnly: !!$scope.isReadOnly
};
//
};
$scope
.
bzOptions
=
{
$scope
.
bzOptions
=
{
readOnly
:
!!
$scope
.
isReadOnly
,
readOnly
:
!!
$scope
.
isReadOnly
,
placeholder
:
$translate
.
instant
(
'PleaseInput'
),
placeholder
:
$translate
.
instant
(
'PleaseInput'
),
...
@@ -188,31 +188,31 @@
...
@@ -188,31 +188,31 @@
message
:
$translate
.
instant
(
'ValidDataRequired'
)
message
:
$translate
.
instant
(
'ValidDataRequired'
)
}]
}]
};
};
$scope
.
validateOption
.
operatorOptions
=
{
//
$scope.validateOption.operatorOptions = {
validationRules
:
[{
//
validationRules: [{
type
:
"required"
,
//
type: "required",
message
:
$translate
.
instant
(
'OperaterRequired'
)
//
message: $translate.instant('OperaterRequired')
}]
//
}]
};
//
};
$scope
.
validateOption
.
companyOptions
=
{
$scope
.
validateOption
.
companyOptions
=
{
validationRules
:
[{
validationRules
:
[{
type
:
"required"
,
type
:
"required"
,
message
:
$translate
.
instant
(
'CompanyRequired'
)
message
:
$translate
.
instant
(
'CompanyRequired'
)
}]
}]
};
};
$scope
.
validateOption
.
event
MonthOptions
=
{
$scope
.
validateOption
.
config
MonthOptions
=
{
validationRules
:
[{
validationRules
:
[{
type
:
"required"
,
type
:
"required"
,
message
:
$translate
.
instant
(
'EventMonthRequired'
)
message
:
$translate
.
instant
(
'EventMonthRequired'
)
}]
}]
};
};
$scope
.
validateOption
.
ta
x
Options
=
{
$scope
.
validateOption
.
ta
skType
Options
=
{
validationRules
:
[{
validationRules
:
[{
type
:
"required"
,
type
:
"required"
,
message
:
$translate
.
instant
(
'TaxOptionRequired'
)
message
:
$translate
.
instant
(
'TaxOptionRequired'
)
}]
}]
};
};
$scope
.
validateOption
.
event
DateOptions
=
{
$scope
.
validateOption
.
config
DateOptions
=
{
validationRules
:
[{
validationRules
:
[{
type
:
"required"
,
type
:
"required"
,
message
:
$translate
.
instant
(
'EventDayRequired'
)
message
:
$translate
.
instant
(
'EventDayRequired'
)
...
@@ -221,12 +221,12 @@
...
@@ -221,12 +221,12 @@
//表单验证对象初始化-->end
//表单验证对象初始化-->end
$scope
.
editTa
xProject
List
=
function
()
{
$scope
.
editTa
skType
List
=
function
()
{
if
(
$scope
.
isReadOnly
)
{
if
(
$scope
.
isReadOnly
)
{
return
;
return
;
}
}
$scope
.
ta
xProject
GridOptions
=
{
$scope
.
ta
skType
GridOptions
=
{
showRowLines
:
true
,
showRowLines
:
true
,
showColumnLines
:
true
,
showColumnLines
:
true
,
showBorders
:
true
,
showBorders
:
true
,
...
@@ -234,18 +234,18 @@
...
@@ -234,18 +234,18 @@
hoverStateEnabled
:
true
,
hoverStateEnabled
:
true
,
rowAlternationEnabled
:
true
,
rowAlternationEnabled
:
true
,
bindingOptions
:
{
bindingOptions
:
{
dataSource
:
'ta
xProject
List'
dataSource
:
'ta
skType
List'
},
},
filterRow
:
{
filterRow
:
{
visible
:
true
visible
:
true
},
},
height
:
250
,
height
:
250
,
columns
:
[
columns
:
[
{
dataField
:
'
taxProjectN
ame'
,
caption
:
$translate
.
instant
(
'TaxProjectName'
),
width
:
'70%'
},
{
dataField
:
'
n
ame'
,
caption
:
$translate
.
instant
(
'TaxProjectName'
),
width
:
'70%'
},
{
{
dataField
:
''
,
caption
:
$translate
.
instant
(
'OrderOperation'
),
width
:
'30%'
,
cellTemplate
:
function
(
ele
,
info
)
{
dataField
:
''
,
caption
:
$translate
.
instant
(
'OrderOperation'
),
width
:
'30%'
,
cellTemplate
:
function
(
ele
,
info
)
{
$
(
'<i class="fa fa-pencil-square-o"/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
,
'font-size'
:
'16px'
}).
html
(
' '
).
on
(
'dxclick'
,
function
()
{
$
(
'<i class="fa fa-pencil-square-o"/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
,
'font-size'
:
'16px'
}).
html
(
' '
).
on
(
'dxclick'
,
function
()
{
$scope
.
editTa
xProject
(
info
.
data
);
$scope
.
editTa
skType
(
info
.
data
);
}).
appendTo
(
ele
);
}).
appendTo
(
ele
);
//$('<i class="fa fa-trash"/>').css({ 'color': '#d00', 'cursor': 'pointer', 'font-size': '16px', 'padding-left': '10px' }).on('dxclick', function () {
//$('<i class="fa fa-trash"/>').css({ 'color': '#d00', 'cursor': 'pointer', 'font-size': '16px', 'padding-left': '10px' }).on('dxclick', function () {
// SweetAlert.swal({
// SweetAlert.swal({
...
@@ -261,9 +261,9 @@
...
@@ -261,9 +261,9 @@
// },
// },
// function (isConfirm) {
// function (isConfirm) {
// if (isConfirm) {
// if (isConfirm) {
// taxCalendarService.deleteTa
xProject
(info.data.id).success(function () {
// taxCalendarService.deleteTa
skType
(info.data.id).success(function () {
// SweetAlert.success($translate.instant('CommonSuccess'));
// SweetAlert.success($translate.instant('CommonSuccess'));
// refreshTa
xProject
List();
// refreshTa
skType
List();
// getCalendarConfigurationById();
// getCalendarConfigurationById();
// }).error(function () {
// }).error(function () {
...
@@ -277,11 +277,11 @@
...
@@ -277,11 +277,11 @@
};
};
//关闭弹窗口
//关闭弹窗口
$scope
.
hideEditTa
xProject
ListPanel
=
function
()
{
$scope
.
hideEditTa
skType
ListPanel
=
function
()
{
$scope
.
editTa
xProject
ListInstance
.
dismiss
(
'cancel'
);
$scope
.
editTa
skType
ListInstance
.
dismiss
(
'cancel'
);
};
};
$scope
.
editTa
xProject
ListInstance
=
$uibModal
.
open
({
$scope
.
editTa
skType
ListInstance
=
$uibModal
.
open
({
ariaLabelledBy
:
'modal-title'
,
ariaLabelledBy
:
'modal-title'
,
ariaDescribedBy
:
'modal-body'
,
ariaDescribedBy
:
'modal-body'
,
backdrop
:
'static'
,
backdrop
:
'static'
,
...
@@ -292,8 +292,8 @@
...
@@ -292,8 +292,8 @@
});
});
};
};
$scope
.
editTa
xProject
=
function
(
data
)
{
$scope
.
editTa
skType
=
function
(
data
)
{
$scope
.
validateOption
.
ta
xProject
Text
=
{
$scope
.
validateOption
.
ta
skType
Text
=
{
validationRules
:
[{
validationRules
:
[{
type
:
"required"
,
type
:
"required"
,
message
:
$translate
.
instant
(
'TaxProjectRequireWrite'
)
message
:
$translate
.
instant
(
'TaxProjectRequireWrite'
)
...
@@ -304,44 +304,46 @@
...
@@ -304,44 +304,46 @@
}]
}]
};
};
$scope
.
editTa
xProject
Entity
=
{
$scope
.
editTa
skType
Entity
=
{
id
:
''
,
id
:
''
,
taxProjectN
ame
:
''
n
ame
:
''
};
};
if
(
!
data
)
{
if
(
!
data
)
{
$scope
.
editTa
xProject
Title
=
$translate
.
instant
(
'NewTaxProject'
);
$scope
.
editTa
skType
Title
=
$translate
.
instant
(
'NewTaxProject'
);
}
else
{
}
else
{
$scope
.
editTa
xProject
Title
=
$translate
.
instant
(
'EditTaxProject'
);
$scope
.
editTa
skType
Title
=
$translate
.
instant
(
'EditTaxProject'
);
$scope
.
editTa
xProjectEntity
.
taxProjectName
=
data
.
taxProjectN
ame
;
$scope
.
editTa
skTypeEntity
.
name
=
data
.
n
ame
;
$scope
.
editTa
xProject
Entity
.
id
=
data
.
id
;
$scope
.
editTa
skType
Entity
.
id
=
data
.
id
;
}
}
//保存税务事项
//保存税务事项
$scope
.
confirmSubmitTa
xProject
=
function
()
{
$scope
.
confirmSubmitTa
skType
=
function
()
{
//必填验证
//必填验证
var
dxResult
=
DevExpress
.
validationEngine
.
validateGroup
(
$
(
'#editTa
xProject
Form'
).
dxValidationGroup
(
"instance"
)).
isValid
;
var
dxResult
=
DevExpress
.
validationEngine
.
validateGroup
(
$
(
'#editTa
skType
Form'
).
dxValidationGroup
(
"instance"
)).
isValid
;
if
(
!
dxResult
)
{
if
(
!
dxResult
)
{
return
;
return
;
}
}
var
taxProjectModel
=
$scope
.
editTaxProjectEntity
;
var
taskTypeModel
=
$scope
.
editTaskTypeEntity
;
taxCalendarService
.
saveTaxProject
(
taxProjectModel
).
success
(
function
(
result
)
{
taxCalendarService
.
saveTaskType
(
taskTypeModel
).
success
(
function
(
result
)
{
if
(
result
==
-
1
)
{
if
(
result
.
result
)
{
SweetAlert
.
warning
(
$translate
.
instant
(
'TaxProjectNameRepeat'
));
}
else
{
SweetAlert
.
success
(
$translate
.
instant
(
'CommonSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'CommonSuccess'
));
$scope
.
editTa
xProject
Instance
.
dismiss
(
'cancel'
);
$scope
.
editTa
skType
Instance
.
dismiss
(
'cancel'
);
refreshTa
xProject
List
();
refreshTa
skType
List
();
getCalendarConfigurationById
();
getCalendarConfigurationById
();
}
else
if
(
result
.
resultMsg
==
-
1
){
SweetAlert
.
warning
(
$translate
.
instant
(
'TaxProjectNameRepeat'
));
}
else
{
SweetAlert
.
warning
(
$translate
.
instant
(
'SystemException'
));
}
}
});
});
};
};
//关闭弹窗口
//关闭弹窗口
$scope
.
hideEditTa
xProject
Panel
=
function
()
{
$scope
.
hideEditTa
skType
Panel
=
function
()
{
$scope
.
editTa
xProject
Instance
.
dismiss
(
'cancel'
);
$scope
.
editTa
skType
Instance
.
dismiss
(
'cancel'
);
};
};
$scope
.
editTa
xProject
Instance
=
$uibModal
.
open
({
$scope
.
editTa
skType
Instance
=
$uibModal
.
open
({
ariaLabelledBy
:
'modal-title'
,
ariaLabelledBy
:
'modal-title'
,
ariaDescribedBy
:
'modal-body'
,
ariaDescribedBy
:
'modal-body'
,
backdrop
:
'static'
,
backdrop
:
'static'
,
...
@@ -352,167 +354,167 @@
...
@@ -352,167 +354,167 @@
});
});
};
};
$scope
.
editWorkPlaceList
=
function
()
{
//
$scope.editWorkPlaceList = function () {
if
(
$scope
.
isReadOnly
)
{
//
if ($scope.isReadOnly) {
return
;
//
return;
}
//
}
//
$scope
.
workPlaceGridOptions
=
{
//
$scope.workPlaceGridOptions = {
showRowLines
:
true
,
//
showRowLines: true,
showColumnLines
:
true
,
//
showColumnLines: true,
showBorders
:
true
,
//
showBorders: true,
allowColumnResizing
:
true
,
//
allowColumnResizing: true,
hoverStateEnabled
:
true
,
//
hoverStateEnabled: true,
rowAlternationEnabled
:
true
,
//
rowAlternationEnabled: true,
bindingOptions
:
{
//
bindingOptions: {
dataSource
:
'workPlaceList'
//
dataSource: 'workPlaceList'
},
//
},
filterRow
:
{
//
filterRow: {
visible
:
true
//
visible: true
},
//
},
height
:
250
,
//
height: 250,
columns
:
[
//
columns: [
{
dataField
:
'name'
,
caption
:
$translate
.
instant
(
'WorkPlaceName'
),
width
:
'70%'
},
//
{ dataField: 'name', caption: $translate.instant('WorkPlaceName'), width: '70%' },
{
//
{
dataField
:
''
,
caption
:
$translate
.
instant
(
'OrderOperation'
),
width
:
'30%'
,
cellTemplate
:
function
(
ele
,
info
)
{
//
dataField: '', caption: $translate.instant('OrderOperation'), width: '30%', cellTemplate: function (ele, info) {
$
(
'<i class="fa fa-pencil-square-o"/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
,
'font-size'
:
'16px'
}).
html
(
' '
).
on
(
'dxclick'
,
function
()
{
//
$('<i class="fa fa-pencil-square-o"/>').css({ 'color': '#d00', 'cursor': 'pointer', 'font-size': '16px' }).html(' ').on('dxclick', function () {
$scope
.
editWorkPlace
(
info
.
data
);
//
$scope.editWorkPlace(info.data);
}).
appendTo
(
ele
);
//
}).appendTo(ele);
$
(
'<i class="fa fa-trash"/>'
).
css
({
'color'
:
'#d00'
,
'cursor'
:
'pointer'
,
'font-size'
:
'16px'
,
'padding-left'
:
'10px'
}).
on
(
'dxclick'
,
function
()
{
//
$('<i class="fa fa-trash"/>').css({ 'color': '#d00', 'cursor': 'pointer', 'font-size': '16px', 'padding-left': '10px' }).on('dxclick', function () {
SweetAlert
.
swal
({
//
SweetAlert.swal({
title
:
$translate
.
instant
(
'DeleteConfirm'
),
//
title: $translate.instant('DeleteConfirm'),
text
:
$translate
.
instant
(
'ComfirmDeleteData'
),
//
text: $translate.instant('ComfirmDeleteData'),
type
:
"warning"
,
//
type: "warning",
showCancelButton
:
true
,
//
showCancelButton: true,
confirmButtonColor
:
"#DD6B55"
,
//
confirmButtonColor: "#DD6B55",
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
//
confirmButtonText: $translate.instant('Confirm'),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
//
cancelButtonText: $translate.instant('Cancel'),
closeOnConfirm
:
true
,
//
closeOnConfirm: true,
closeOnCancel
:
true
//
closeOnCancel: true
},
//
},
function
(
isConfirm
)
{
//
function (isConfirm) {
if
(
isConfirm
)
{
//
if (isConfirm) {
taxCalendarService
.
deleteWorkPlace
(
info
.
data
.
id
).
success
(
function
()
{
//
taxCalendarService.deleteWorkPlace(info.data.id).success(function () {
SweetAlert
.
success
(
$translate
.
instant
(
'CommonSuccess'
));
//
SweetAlert.success($translate.instant('CommonSuccess'));
refreshWorkPlaceList
();
//
refreshWorkPlaceList();
getCalendarConfigurationById
();
//
getCalendarConfigurationById();
}).
error
(
function
()
{
//
}).error(function () {
//
});
//
});
}
//
}
});
//
});
}).
appendTo
(
ele
);
//
}).appendTo(ele);
}
//
}
}
//
}
]
//
]
};
//
};
//
//关闭弹窗口
//
//关闭弹窗口
$scope
.
hideEditWorkPlaceListPanel
=
function
()
{
//
$scope.hideEditWorkPlaceListPanel = function () {
$scope
.
editWorkPlaceListInstance
.
dismiss
(
'cancel'
);
//
$scope.editWorkPlaceListInstance.dismiss('cancel');
};
//
};
//
$scope
.
editWorkPlaceListInstance
=
$uibModal
.
open
({
//
$scope.editWorkPlaceListInstance = $uibModal.open({
ariaLabelledBy
:
'modal-title'
,
//
ariaLabelledBy: 'modal-title',
ariaDescribedBy
:
'modal-body'
,
//
ariaDescribedBy: 'modal-body',
backdrop
:
'static'
,
//
backdrop: 'static',
templateUrl
:
'edit-work-place-pop.html'
,
//
templateUrl: 'edit-work-place-pop.html',
windowClass
:
'data-table'
,
//
windowClass: 'data-table',
appendTo
:
angular
.
element
(
$document
[
0
].
querySelector
(
'#edit-work-place-pop'
)),
//
appendTo: angular.element($document[0].querySelector('#edit-work-place-pop')),
scope
:
$scope
//
scope: $scope
});
//
});
};
//
};
$scope
.
editWorkPlace
=
function
(
data
)
{
//
$scope.editWorkPlace = function (data) {
$scope
.
validateOption
.
workPlaceText
=
{
//
$scope.validateOption.workPlaceText = {
validationRules
:
[{
//
validationRules: [{
type
:
"required"
,
//
type: "required",
message
:
$translate
.
instant
(
'WorkPlaceRequireWrite'
)
//
message: $translate.instant('WorkPlaceRequireWrite')
},
{
//
}, {
type
:
"stringLength"
,
//
type: "stringLength",
max
:
200
,
//
max: 200,
message
:
$translate
.
instant
(
'WorkPlaceMaxLength'
)
//
message: $translate.instant('WorkPlaceMaxLength')
}]
//
}]
};
//
};
$scope
.
editWorkPlaceEntity
=
{
//
$scope.editWorkPlaceEntity = {
id
:
''
,
//
id: '',
name
:
''
//
name: ''
};
//
};
//
if
(
!
data
)
{
//
if (!data) {
$scope
.
editWorkPlaceTitle
=
$translate
.
instant
(
'NewWorkPlace'
);
//
$scope.editWorkPlaceTitle = $translate.instant('NewWorkPlace');
}
else
{
//
} else {
$scope
.
editWorkPlaceTitle
=
$translate
.
instant
(
'EditWorkPlace'
);
//
$scope.editWorkPlaceTitle = $translate.instant('EditWorkPlace');
$scope
.
editWorkPlaceEntity
.
id
=
data
.
id
;
//
$scope.editWorkPlaceEntity.id = data.id;
$scope
.
editWorkPlaceEntity
.
name
=
data
.
name
;
//
$scope.editWorkPlaceEntity.name = data.name;
}
//
}
//
//关闭弹窗口
//
//关闭弹窗口
$scope
.
hideEditWorkPlacePanel
=
function
()
{
//
$scope.hideEditWorkPlacePanel = function () {
$scope
.
editWorkPlaceInstance
.
dismiss
(
'cancel'
);
//
$scope.editWorkPlaceInstance.dismiss('cancel');
};
//
};
//
//保存办事地点
//
//保存办事地点
$scope
.
confirmSubmitWorkPlace
=
function
()
{
//
$scope.confirmSubmitWorkPlace = function () {
//必填验证
//
//必填验证
var
dxResult
=
DevExpress
.
validationEngine
.
validateGroup
(
$
(
'#editWorkPlaceForm'
).
dxValidationGroup
(
"instance"
)).
isValid
;
//
var dxResult = DevExpress.validationEngine.validateGroup($('#editWorkPlaceForm').dxValidationGroup("instance")).isValid;
if
(
!
dxResult
)
{
//
if (!dxResult) {
return
;
//
return;
}
//
}
var
workPlaceModel
=
$scope
.
editWorkPlaceEntity
;
//
var workPlaceModel = $scope.editWorkPlaceEntity;
taxCalendarService
.
saveWorkPlace
(
workPlaceModel
).
success
(
function
(
result
)
{
//
taxCalendarService.saveWorkPlace(workPlaceModel).success(function (result) {
if
(
result
==
-
1
)
{
//
if (result == -1) {
SweetAlert
.
warning
(
$translate
.
instant
(
'WorkPlaceNameRepeat'
));
//
SweetAlert.warning($translate.instant('WorkPlaceNameRepeat'));
}
else
{
//
} else {
SweetAlert
.
success
(
$translate
.
instant
(
'CommonSuccess'
));
//
SweetAlert.success($translate.instant('CommonSuccess'));
$scope
.
editWorkPlaceInstance
.
dismiss
(
'cancel'
);
//
$scope.editWorkPlaceInstance.dismiss('cancel');
refreshWorkPlaceList
();
//
refreshWorkPlaceList();
getCalendarConfigurationById
();
//
getCalendarConfigurationById();
}
//
}
//
});
//
});
};
//
};
//
$scope
.
editWorkPlaceInstance
=
$uibModal
.
open
({
//
$scope.editWorkPlaceInstance = $uibModal.open({
ariaLabelledBy
:
'modal-title'
,
//
ariaLabelledBy: 'modal-title',
ariaDescribedBy
:
'modal-body'
,
//
ariaDescribedBy: 'modal-body',
backdrop
:
'static'
,
//
backdrop: 'static',
templateUrl
:
'edit-work-place.html'
,
//
templateUrl: 'edit-work-place.html',
windowClass
:
'data-table'
,
//
windowClass: 'data-table',
appendTo
:
angular
.
element
(
$document
[
0
].
querySelector
(
'#edit-work-place'
)),
//
appendTo: angular.element($document[0].querySelector('#edit-work-place')),
scope
:
$scope
//
scope: $scope
});
//
});
};
//
};
var
refreshTa
xProject
List
=
function
()
{
var
refreshTa
skType
List
=
function
()
{
taxCalendarService
.
getTa
xProject
List
().
success
(
function
(
result
)
{
taxCalendarService
.
getTa
skType
List
().
success
(
function
(
result
)
{
if
(
result
)
{
if
(
result
&&
result
.
result
&&
result
.
data
)
{
$scope
.
ta
xProjectList
=
result
;
$scope
.
ta
skTypeList
=
result
.
data
;
}
}
resetEditBoxTag
();
resetEditBoxTag
();
});
});
};
};
var
refreshWorkPlaceList
=
function
()
{
//
var refreshWorkPlaceList = function () {
taxCalendarService
.
getWorkPlaceList
().
success
(
function
(
result
)
{
//
taxCalendarService.getWorkPlaceList().success(function (result) {
if
(
result
)
{
//
if (result) {
$scope
.
workPlaceList
=
result
;
//
$scope.workPlaceList = result;
}
//
}
resetEditBoxTag
();
//
resetEditBoxTag();
});
//
});
};
//
};
var
getCalendarConfigurationById
=
function
()
{
var
getCalendarConfigurationById
=
function
()
{
if
(
$scope
.
calendarConfigId
)
{
if
(
$scope
.
calendarConfigId
)
{
taxCalendarService
.
get
TaxCalendarConfigurationByID
(
$scope
.
calendarConfigId
).
success
(
function
(
result
)
{
taxCalendarService
.
get
CalendarConfigById
(
$scope
.
calendarConfigId
).
success
(
function
(
result
)
{
if
(
result
)
{
if
(
result
.
result
)
{
$scope
.
taxCalendarConfiguration
=
result
;
$scope
.
taxCalendarConfiguration
=
result
.
data
;
$scope
.
taxCalendarConfiguration
.
companyArr
=
result
.
companyIDs
?
result
.
companyID
s
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
companyArr
=
result
.
data
.
entityIds
?
result
.
data
.
entityId
s
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
monthArr
=
result
.
projectMonths
?
result
.
projectMonths
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
monthArr
=
result
.
data
.
projectMonths
?
result
.
data
.
projectMonths
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
ta
xProjectIdArr
=
result
.
taxProjectIDs
?
result
.
taxProjectID
s
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
ta
skTypeIdArr
=
result
.
data
.
taskTypeIds
?
result
.
data
.
taskTypeId
s
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
projectDayArr
=
result
.
projectDays
?
result
.
projectDays
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
projectDayArr
=
result
.
data
.
projectDays
?
result
.
data
.
projectDays
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
operatorIdArr
=
result
.
operatorIDs
?
result
.
operatorID
s
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
operatorIdArr
=
result
.
data
.
userIds
?
result
.
userId
s
.
split
(
','
)
:
null
;
$scope
.
taxCalendarConfiguration
.
notifierIdArr
=
result
.
notifierIDs
?
result
.
notifierIDs
.
split
(
','
)
:
null
;
//
$scope.taxCalendarConfiguration.notifierIdArr = result.notifierIDs ? result.notifierIDs.split(',') : null;
if
(
$scope
.
taxCalendarConfiguration
.
monthArr
)
{
if
(
$scope
.
taxCalendarConfiguration
.
monthArr
)
{
$scope
.
taxCalendarConfiguration
.
monthArr
=
_
.
map
(
$scope
.
taxCalendarConfiguration
.
monthArr
,
function
(
item
)
{
return
item
*
1
;
});
$scope
.
taxCalendarConfiguration
.
monthArr
=
_
.
map
(
$scope
.
taxCalendarConfiguration
.
monthArr
,
function
(
item
)
{
return
item
*
1
;
});
...
@@ -529,7 +531,8 @@
...
@@ -529,7 +531,8 @@
var
getMaxNumber
=
function
()
{
var
getMaxNumber
=
function
()
{
if
(
!
$scope
.
calendarConfigId
)
{
if
(
!
$scope
.
calendarConfigId
)
{
taxCalendarService
.
getMaxNumber
().
success
(
function
(
data
)
{
taxCalendarService
.
getMaxNumber
().
success
(
function
(
data
)
{
$scope
.
taxCalendarConfiguration
.
calendarNumber
=
data
;
if
(
data
.
result
)
$scope
.
taxCalendarConfiguration
.
orderIndex
=
data
.
data
;
}).
error
(
function
()
{
}).
error
(
function
()
{
});
});
...
@@ -538,14 +541,14 @@
...
@@ -538,14 +541,14 @@
//保存配置-->start
//保存配置-->start
var
startSaveConfig
=
function
(
model
,
flag
)
{
var
startSaveConfig
=
function
(
model
,
flag
)
{
model
.
companyID
s
=
""
;
model
.
entityId
s
=
""
;
model
.
projectMonths
=
""
;
model
.
projectMonths
=
""
;
model
.
ta
xProjectID
s
=
""
;
model
.
ta
skTypeId
s
=
""
;
model
.
projectDays
=
""
;
model
.
projectDays
=
""
;
model
.
operatorIDs
=
""
;
// model.staff
= "";
model
.
notifierIDs
=
""
;
//
model.notifierIDs = "";
if
(
model
.
companyArr
&&
model
.
companyArr
.
length
>
0
)
{
if
(
model
.
companyArr
&&
model
.
companyArr
.
length
>
0
)
{
model
.
companyID
s
=
model
.
companyArr
.
join
(
','
);
model
.
entityId
s
=
model
.
companyArr
.
join
(
','
);
}
}
if
(
model
.
monthArr
&&
model
.
monthArr
.
length
>
0
)
{
if
(
model
.
monthArr
&&
model
.
monthArr
.
length
>
0
)
{
...
@@ -553,8 +556,8 @@
...
@@ -553,8 +556,8 @@
model
.
projectMonths
=
model
.
monthArr
.
join
(
','
);
model
.
projectMonths
=
model
.
monthArr
.
join
(
','
);
}
}
if
(
model
.
ta
xProjectIdArr
&&
model
.
taxProject
IdArr
.
length
>
0
)
{
if
(
model
.
ta
skTypeIdArr
&&
model
.
taskType
IdArr
.
length
>
0
)
{
model
.
ta
xProjectIDs
=
model
.
taxProject
IdArr
.
join
(
','
);
model
.
ta
skTypeIds
=
model
.
taskType
IdArr
.
join
(
','
);
}
}
if
(
model
.
projectDayArr
&&
model
.
projectDayArr
.
length
>
0
)
{
if
(
model
.
projectDayArr
&&
model
.
projectDayArr
.
length
>
0
)
{
...
@@ -562,21 +565,32 @@
...
@@ -562,21 +565,32 @@
model
.
projectDays
=
model
.
projectDayArr
.
join
(
','
);
model
.
projectDays
=
model
.
projectDayArr
.
join
(
','
);
}
}
if
(
model
.
operatorIdArr
&&
model
.
operatorIdArr
.
length
>
0
)
{
//
if (model.operatorIdArr && model.operatorIdArr.length > 0) {
model
.
operatorIDs
=
model
.
operatorIdArr
.
join
(
','
);
// model.staff
= model.operatorIdArr.join(',');
}
//
}
if
(
model
.
notifierIdArr
&&
model
.
notifierIdArr
.
length
>
0
)
{
//
if (model.notifierIdArr && model.notifierIdArr.length > 0) {
model
.
notifierIDs
=
model
.
notifierIdArr
.
join
(
','
);
//
model.notifierIDs = model.notifierIdArr.join(',');
}
//
}
if
(
flag
==
2
)
{
if
(
flag
==
2
)
{
model
.
id
=
null
;
model
.
id
=
null
;
}
}
taxCalendarService
.
saveTaxCalendarConfig
(
model
).
success
(
function
()
{
//暂时写死,以后修改完善
if
(
model
.
id
==
null
){
model
.
taskName
=
"default"
;
model
.
staff
=
"admin"
;
}
taxCalendarService
.
saveCalendarConfig
(
model
).
success
(
function
(
result
)
{
if
(
result
.
result
)
{
SweetAlert
.
success
(
$translate
.
instant
(
'CommonSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'CommonSuccess'
));
}
else
{
SweetAlert
.
error
(
$translate
.
instant
(
'CommonFail'
));
}
$scope
.
backToListPage
();
$scope
.
backToListPage
();
}).
error
(
function
()
{
}).
error
(
function
()
{
SweetAlert
.
error
(
$translate
.
instant
(
'SystemException'
));
});
});
}
}
...
@@ -613,36 +627,37 @@
...
@@ -613,36 +627,37 @@
//检查选择的公司与员工的可访问权限是否匹配
//检查选择的公司与员工的可访问权限是否匹配
var
checkDto
=
{};
var
checkDto
=
{};
checkDto
.
companyList
=
model
.
companyArr
;
checkDto
.
companyList
=
model
.
companyArr
;
checkDto
.
userList
=
_
.
union
(
model
.
operatorIdArr
,
model
.
notifierIdArr
);
// checkDto.userList = _.union(model.operatorIdArr, model.notifierIdArr);
taxCalendarService
.
checkUserCompanyPromiss
(
checkDto
).
success
(
function
(
result
)
{
// taxCalendarService.checkUserCompanyPromiss(checkDto).success(function (result) {
if
(
result
&&
result
.
length
>
0
)
{
// if (result && result.length > 0) {
$scope
.
noPromissUserList
=
result
;
// $scope.noPromissUserList = result;
//关闭弹窗口
// //关闭弹窗口
$scope
.
hideUserPromissCheckPanel
=
function
()
{
// $scope.hideUserPromissCheckPanel = function () {
$scope
.
userPromissInstance
.
dismiss
(
'cancel'
);
// $scope.userPromissInstance.dismiss('cancel');
};
// };
//
$scope
.
userPromissInstance
=
$uibModal
.
open
({
// $scope.userPromissInstance = $uibModal.open({
ariaLabelledBy
:
'modal-title'
,
// ariaLabelledBy: 'modal-title',
ariaDescribedBy
:
'modal-body'
,
// ariaDescribedBy: 'modal-body',
backdrop
:
'static'
,
// backdrop: 'static',
templateUrl
:
'user-promiss-check.html'
,
// templateUrl: 'user-promiss-check.html',
windowClass
:
'data-table'
,
// windowClass: 'data-table',
appendTo
:
angular
.
element
(
$document
[
0
].
querySelector
(
'#user-promiss-check-container'
)),
// appendTo: angular.element($document[0].querySelector('#user-promiss-check-container')),
scope
:
$scope
// scope: $scope
});
// });
}
else
{
// } else {
// startSaveConfig(model, flag);
// });
startSaveConfig
(
model
,
flag
);
startSaveConfig
(
model
,
flag
);
}
// }
});
};
};
//保存配置-->end
//保存配置-->end
//日历设置另存为
//日历设置另存为
$scope
.
saveAsConfig
=
function
()
{
$scope
.
saveAsConfig
=
function
()
{
$scope
.
calendarConfigId
=
null
;
$scope
.
calendarConfigId
=
null
;
$scope
.
PageTitle
=
$translate
.
instant
(
'NewTaxCalendar'
)
+
$translate
.
instant
(
'TaxCalendarSet'
);
$scope
.
PageTitle
=
$translate
.
instant
(
'NewTaxCalendar'
)
+
$translate
.
instant
(
'TaxCalendarSet'
);
$scope
.
isTa
xProject
ReadOnly
=
false
;
$scope
.
isTa
skType
ReadOnly
=
false
;
$scope
.
taxCalendarConfiguration
.
id
=
null
;
$scope
.
taxCalendarConfiguration
.
id
=
null
;
getMaxNumber
();
getMaxNumber
();
};
};
...
@@ -651,10 +666,11 @@
...
@@ -651,10 +666,11 @@
$state
.
go
(
'taxCalendarConfiguration'
);
$state
.
go
(
'taxCalendarConfiguration'
);
};
};
//默认启用
和涉及税款
//默认启用
$scope
.
taxCalendarConfiguration
=
{
$scope
.
taxCalendarConfiguration
=
{
status
:
1
,
status
:
1
,
isRelatedTaxMoney
:
0
companyArr
:
[],
taskTypeIdArr
:
[]
};
};
//tagBox控件不可编辑时,隐藏X按钮
//tagBox控件不可编辑时,隐藏X按钮
...
@@ -674,9 +690,9 @@
...
@@ -674,9 +690,9 @@
(
function
()
{
(
function
()
{
$scope
.
userList
=
[];
$scope
.
userList
=
[];
$scope
.
org
List
=
[];
$scope
.
entity
List
=
[];
$scope
.
workPlaceList
=
[];
//
$scope.workPlaceList = [];
$scope
.
isTa
xProject
ReadOnly
=
!!
$scope
.
isReadOnly
||
!!
$scope
.
calendarConfigId
;
$scope
.
isTa
skType
ReadOnly
=
!!
$scope
.
isReadOnly
||
!!
$scope
.
calendarConfigId
;
userService
.
getAllAvalideUserList
().
success
(
function
(
result
)
{
userService
.
getAllAvalideUserList
().
success
(
function
(
result
)
{
if
(
result
)
{
if
(
result
)
{
$scope
.
userList
=
_
.
map
(
result
,
function
(
item
)
{
$scope
.
userList
=
_
.
map
(
result
,
function
(
item
)
{
...
@@ -686,16 +702,15 @@
...
@@ -686,16 +702,15 @@
}
}
});
});
orgService
.
getAllActiveOrgList
().
success
(
function
(
result
)
{
taxCalendarService
.
getActiveEntityList
().
success
(
function
(
result
)
{
$scope
.
orgList
=
_
.
map
(
result
,
function
(
item
)
{
if
(
result
.
result
)
{
var
obj
=
{
id
:
item
.
id
,
companyName
:
item
.
name
};
$scope
.
entityList
=
result
.
data
;
return
obj
;
}
});
});
});
refreshWorkPlaceList
();
//
refreshWorkPlaceList();
refreshTa
xProject
List
();
refreshTa
skType
List
();
getCalendarConfigurationById
();
getCalendarConfigurationById
();
...
...
atms-web/src/main/webapp/app/admin/systemConfiguration/calendarSetting/taxCalendarConfigEdit/tax-calendar-config-edit.html
View file @
d1ff2b67
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"edit-line row"
>
<div
class=
"edit-line row"
>
<div
class=
"col-user-define-left col-padding"
>
<div
class=
"col-user-define-left col-padding"
>
<span
class=
"title-first-n"
>
{{'Number' | translate}}:
</span>
<span
class=
"title-first-n"
>
{{'Number' | translate}}:
</span>
<div
class=
"form-box bh-box"
ng-model=
"taxCalendarConfiguration.
calendarNumber
"
dx-text-box=
"bhOptions"
></div>
<div
class=
"form-box bh-box"
ng-model=
"taxCalendarConfiguration.
orderIndex
"
dx-text-box=
"bhOptions"
></div>
<div
class=
"form-box"
ng-model=
"taxCalendarConfiguration.status"
dx-radio-group=
"statusOptions"
></div>
<div
class=
"form-box"
ng-model=
"taxCalendarConfiguration.status"
dx-radio-group=
"statusOptions"
></div>
</div>
</div>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
{{'EventMonth' | translate}}:
{{'EventMonth' | translate}}:
</span>
</span>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.monthArr"
dx-validator=
"validateOption.
eventMonthOptions"
dx-tag-box=
"event
MonthOptions"
></div>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.monthArr"
dx-validator=
"validateOption.
configMonthOptions"
dx-tag-box=
"config
MonthOptions"
></div>
</div>
</div>
</div>
</div>
<div
class=
"edit-line row"
>
<div
class=
"edit-line row"
>
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
<span
style=
"color:red;"
>
*
</span>
<span
style=
"color:red;"
>
*
</span>
{{'TaxEvent' | translate}}:
{{'TaxEvent' | translate}}:
</span>
</span>
<div
id=
"tax-project"
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.ta
xProjectIdArr"
dx-validator=
"validateOption.taxOptions"
dx-tag-box=
"tax
Options"
></div>
<div
id=
"tax-project"
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.ta
skTypeIdArr"
dx-validator=
"validateOption.taskTypeOptions"
dx-tag-box=
"taskType
Options"
></div>
<span
ng-if=
"!isReadOnly"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.adminPermission.systemConfiguration.
taxCalendarConfig.editTaxProject}}"
ng-click=
"editTaxProject
List();"
class=
"right-link"
>
{{'EditTaxProject'|translate}}
</span>
<span
ng-if=
"!isReadOnly"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.adminPermission.systemConfiguration.
calendar.editTaskType}}"
ng-click=
"editTaskType
List();"
class=
"right-link"
>
{{'EditTaxProject'|translate}}
</span>
</div>
</div>
<div
class=
"col-user-define-right col-padding"
>
<div
class=
"col-user-define-right col-padding"
>
...
@@ -58,18 +58,16 @@
...
@@ -58,18 +58,16 @@
<span
style=
"color:red;"
>
*
</span>
<span
style=
"color:red;"
>
*
</span>
{{'EventDay' | translate}}:
{{'EventDay' | translate}}:
</span>
</span>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.projectDayArr"
dx-validator=
"validateOption.
eventDateOptions"
dx-tag-box=
"event
DateOptions"
></div>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.projectDayArr"
dx-validator=
"validateOption.
configDateOptions"
dx-tag-box=
"config
DateOptions"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"edit-line row"
>
<div
class=
"edit-line row"
>
<div
class=
"col-user-define-left col-padding"
>
<div
class=
"col-user-define-left col-padding"
>
<span
class=
"title-first-n"
>
{{'RelatedTaxAmount' | translate}}:
</span>
<div
class=
"form-box sssx-box"
ng-model=
"taxCalendarConfiguration.isRelatedTaxMoney"
dx-radio-group=
"isRelatedTaxMoneyOptions"
></div>
<span
class=
"title-first-n"
>
{{'EventAddress' | translate}}:
</span
>
<!-- <span class="title-first-n">{{'EventAddress' | translate}}:</span>--
>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.workPlaceIDs"
dx-select-box=
"addressOptions"
></div
>
<!-- <div class="form-box common-box" ng-model="taxCalendarConfiguration.workPlaceIDs" dx-select-box="addressOptions"></div>--
>
<span
ng-if=
"!isReadOnly"
atms-permission
permission-control-type=
"ngIf"
permission-code=
"{{$root.adminPermission.systemConfiguration.taxCalendarConfig.editWorkPlace}}"
ng-click=
"editWorkPlaceList();"
class=
"right-link"
>
{{'EditWorkPlace'|translate}}
</span
>
<!-- <span ng-if="!isReadOnly" atms-permission permission-control-type="ngIf" permission-code="{{$root.adminPermission.systemConfiguration.taxCalendarConfig.editWorkPlace}}" ng-click="editWorkPlaceList();" class="right-link">{{'EditWorkPlace'|translate}}</span>--
>
</div>
</div>
...
@@ -93,20 +91,20 @@
...
@@ -93,20 +91,20 @@
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.operatorIdArr"
dx-validator=
"validateOption.operatorOptions"
dx-tag-box=
"operatorOptions"
></div>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.operatorIdArr"
dx-validator=
"validateOption.operatorOptions"
dx-tag-box=
"operatorOptions"
></div>
<br
/>
<br
/>
<span
class=
"title-first-n"
>
{{'RelatedPerson' | translate}}:
</span
>
<!-- <span class="title-first-n">{{'RelatedPerson' | translate}}:</span>--
>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.notifierIdArr"
dx-tag-box=
"notifierOptions"
></div
>
<!-- <div class="form-box common-box" ng-model="taxCalendarConfiguration.notifierIdArr" dx-tag-box="notifierOptions"></div>--
>
</div>
</div>
<div
class=
"col-remark-right"
>
<div
class=
"col-remark-right"
>
<span
class=
"title-second-n"
>
{{'Remark' | translate}}:
</span>
<span
class=
"title-second-n"
>
{{'Remark' | translate}}:
</span>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.
remark
"
dx-text-area=
"bzOptions"
></div>
<div
class=
"form-box common-box"
ng-model=
"taxCalendarConfiguration.
notes
"
dx-text-area=
"bzOptions"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"taxCalendarFooter"
>
<div
class=
"taxCalendarFooter"
>
<div
ng-click=
"backToListPage();"
class=
"btn btn-default btn-gray"
>
{{'Cancel'|translate}}
</div>
<div
ng-click=
"backToListPage();"
class=
"btn btn-default btn-gray"
>
{{'Cancel'|translate}}
</div>
<div
ng-if=
"!isReadOnly && calendarConfigId"
ng-click=
"saveAsConfig();"
class=
"btn btn-default btn-red"
>
{{'SaveOther'|translate}}
</div
>
<!-- <div ng-if="!isReadOnly && calendarConfigId" ng-click="saveAsConfig();" class="btn btn-default btn-red">{{'SaveOther'|translate}}</div>--
>
<div
ng-if=
"!isReadOnly"
ng-click=
"saveConfig(1);"
class=
"btn btn-default btn-red"
>
{{'Save'|translate}}
</div>
<div
ng-if=
"!isReadOnly"
ng-click=
"saveConfig(1);"
class=
"btn btn-default btn-red"
>
{{'Save'|translate}}
</div>
</div>
</div>
...
@@ -115,7 +113,7 @@
...
@@ -115,7 +113,7 @@
<script
type=
"text/ng-template"
class=
"content"
id=
"edit-tax-project-pop.html"
>
<script
type=
"text/ng-template"
class=
"content"
id=
"edit-tax-project-pop.html"
>
<
div
class
=
"modal-header"
>
<
div
class
=
"modal-header"
>
<
span
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
hidden
=
"true"
ng
-
click
=
"hideEditTa
xProject
ListPanel()"
>&
times
;
<
/span
>
<
span
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
hidden
=
"true"
ng
-
click
=
"hideEditTa
skType
ListPanel()"
>&
times
;
<
/span
>
<
h4
class
=
"modal-title"
>
<
h4
class
=
"modal-title"
>
<
i
style
=
"color: #b22;font-size: 23px; cursor: pointer;"
class
=
"fa fa-pencil"
><
/i
>
<
i
style
=
"color: #b22;font-size: 23px; cursor: pointer;"
class
=
"fa fa-pencil"
><
/i
>
...
@@ -126,14 +124,14 @@
...
@@ -126,14 +124,14 @@
<
div
class
=
"modal-body"
>
<
div
class
=
"modal-body"
>
<
div
class
=
"row pop-grid-container"
>
<
div
class
=
"row pop-grid-container"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
<
div
dx
-
data
-
grid
=
"ta
xProject
GridOptions"
><
/div
>
<
div
dx
-
data
-
grid
=
"ta
skType
GridOptions"
><
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"modal-footer"
>
<
div
class
=
"modal-footer"
>
<
button
ng
-
click
=
"hideEditTa
xProject
ListPanel();"
class
=
"btn btn-default btn-gray"
>
{{
'Cancel'
|
translate
}}
<
/button
>
<
button
ng
-
click
=
"hideEditTa
skType
ListPanel();"
class
=
"btn btn-default btn-gray"
>
{{
'Cancel'
|
translate
}}
<
/button
>
<
button
ng
-
click
=
"editTa
xProject
();"
class
=
"btn btn-default btn-red"
>
{{
'NewTaxCalendar'
|
translate
}}
<
/button
>
<
button
ng
-
click
=
"editTa
skType
();"
class
=
"btn btn-default btn-red"
>
{{
'NewTaxCalendar'
|
translate
}}
<
/button
>
<
/div
>
<
/div
>
</script>
</script>
...
@@ -141,15 +139,15 @@
...
@@ -141,15 +139,15 @@
<div
id=
"edit-tax-project"
></div>
<div
id=
"edit-tax-project"
></div>
<script
type=
"text/ng-template"
class=
"content"
id=
"edit-tax-project.html"
>
<script
type=
"text/ng-template"
class=
"content"
id=
"edit-tax-project.html"
>
<
div
class
=
"modal-header"
>
<
div
class
=
"modal-header"
>
<
span
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
hidden
=
"true"
ng
-
click
=
"hideEditTa
xProject
Panel()"
>&
times
;
<
/span
>
<
span
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
hidden
=
"true"
ng
-
click
=
"hideEditTa
skType
Panel()"
>&
times
;
<
/span
>
<
h4
class
=
"modal-title"
>
<
h4
class
=
"modal-title"
>
<
i
style
=
"color: #b22;font-size: 23px; cursor: pointer;"
class
=
"fa fa-pencil"
><
/i
>
<
i
style
=
"color: #b22;font-size: 23px; cursor: pointer;"
class
=
"fa fa-pencil"
><
/i
>
&
nbsp
;{{
editTa
xProject
Title
}}
&
nbsp
;{{
editTa
skType
Title
}}
<
/h4
>
<
/h4
>
<
/div
>
<
/div
>
<
div
class
=
"modal-body"
id
=
"editTa
xProject
Form"
dx
-
validation
-
group
=
"{}"
>
<
div
class
=
"modal-body"
id
=
"editTa
skType
Form"
dx
-
validation
-
group
=
"{}"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-lg-3"
>
<
div
class
=
"col-lg-3"
>
<
span
class
=
"form-title"
>
<
span
class
=
"form-title"
>
...
@@ -157,14 +155,14 @@
...
@@ -157,14 +155,14 @@
<
/span
>
<
/span
>
<
/div
>
<
/div
>
<
div
class
=
"col-lg-9"
>
<
div
class
=
"col-lg-9"
>
<
div
class
=
"box-font"
dx
-
text
-
box
=
"{}"
dx
-
validator
=
"validateOption.ta
xProjectText"
ng
-
model
=
"editTaxProjectEntity.taxProjectN
ame"
><
/div
>
<
div
class
=
"box-font"
dx
-
text
-
box
=
"{}"
dx
-
validator
=
"validateOption.ta
skTypeText"
ng
-
model
=
"editTaskTypeEntity.n
ame"
><
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"modal-footer"
>
<
div
class
=
"modal-footer"
>
<
button
ng
-
click
=
"hideEditTa
xProject
Panel();"
class
=
"btn btn-default btn-gray"
>
{{
'Cancel'
|
translate
}}
<
/button
>
<
button
ng
-
click
=
"hideEditTa
skType
Panel();"
class
=
"btn btn-default btn-gray"
>
{{
'Cancel'
|
translate
}}
<
/button
>
<
button
ng
-
click
=
"confirmSubmitTa
xProject
();"
class
=
"btn btn-default btn-red"
>
{{
'Confirm'
|
translate
}}
<
/button
>
<
button
ng
-
click
=
"confirmSubmitTa
skType
();"
class
=
"btn btn-default btn-red"
>
{{
'Confirm'
|
translate
}}
<
/button
>
<
/div
>
<
/div
>
</script>
</script>
...
...
atms-web/src/main/webapp/app/calendar/display/calendar-display.ctrl.js
View file @
d1ff2b67
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
var
scheduleDataSourceList
=
[];
var
scheduleDataSourceList
=
[];
var
ta
xProject
List
=
[];
var
ta
skType
List
=
[];
$scope
.
vatPermission
=
constant
.
vatPermission
;
$scope
.
vatPermission
=
constant
.
vatPermission
;
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
];
];
//全局变量初始化放顶上
//全局变量初始化放顶上
var
Compan
yList
=
[];
var
entit
yList
=
[];
var
CalendarList
=
[];
var
CalendarList
=
[];
var
dataOptions
=
{
var
dataOptions
=
{
...
@@ -622,7 +622,7 @@
...
@@ -622,7 +622,7 @@
status
:
0
,
status
:
0
,
btnCreate
:
true
,
btnCreate
:
true
,
taxProjectID
:
userDefine
.
id
,
taxProjectID
:
userDefine
.
id
,
ta
xProjectName
:
userDefine
.
taxProject
Name
,
ta
skTypeName
:
userDefine
.
taskType
Name
,
colorGroup
:
userDefine
.
colorGroup
colorGroup
:
userDefine
.
colorGroup
};
};
...
@@ -695,7 +695,7 @@
...
@@ -695,7 +695,7 @@
//刷新筛选选择
//刷新筛选选择
function
refreshFilterChoise
()
{
function
refreshFilterChoise
()
{
//链式传递筛选结果
//链式传递筛选结果
var
cScheduleList
=
filterScheduleProperty
(
Compan
yList
,
'companyList'
,
'companyID'
,
dataOptions
.
allScheduleList
);
var
cScheduleList
=
filterScheduleProperty
(
entit
yList
,
'companyList'
,
'companyID'
,
dataOptions
.
allScheduleList
);
var
sScheduleList
=
filterScheduleProperty
(
dataOptions
.
statusList
,
'statusList'
,
'status'
,
cScheduleList
);
var
sScheduleList
=
filterScheduleProperty
(
dataOptions
.
statusList
,
'statusList'
,
'status'
,
cScheduleList
);
ScheduleList
=
filterScheduleProperty
(
dataOptions
.
calendarTypeList
,
'calendarTypeList'
,
'calendarType'
,
sScheduleList
);
ScheduleList
=
filterScheduleProperty
(
dataOptions
.
calendarTypeList
,
'calendarTypeList'
,
'calendarType'
,
sScheduleList
);
refreshSchedule
();
refreshSchedule
();
...
@@ -732,7 +732,7 @@
...
@@ -732,7 +732,7 @@
calendar
.
checked
=
checked
;
calendar
.
checked
=
checked
;
});
});
Compan
yList
.
forEach
(
function
(
calendar
)
{
entit
yList
.
forEach
(
function
(
calendar
)
{
calendar
.
checked
=
checked
;
calendar
.
checked
=
checked
;
});
});
...
@@ -746,7 +746,9 @@
...
@@ -746,7 +746,9 @@
}
}
else
{
else
{
//设置状态
//设置状态
_
.
filter
(
CalendarList
,
function
(
ca
)
{
return
ca
.
id
===
calendarId
})[
0
].
checked
=
checked
;
_
.
filter
(
CalendarList
,
function
(
ca
)
{
return
ca
.
id
===
calendarId
})[
0
].
checked
=
checked
;
}
}
allCheckedCalendars
=
calendarElements
.
every
(
function
(
input
)
{
allCheckedCalendars
=
calendarElements
.
every
(
function
(
input
)
{
...
@@ -842,12 +844,12 @@
...
@@ -842,12 +844,12 @@
var
refreshAll
=
function
(
scheduleDtoList
)
{
var
refreshAll
=
function
(
scheduleDtoList
)
{
ScheduleList
=
[];
ScheduleList
=
[];
//
Compan
yList = [];
//
entit
yList = [];
scheduleDataSourceList
=
scheduleDtoList
;
scheduleDataSourceList
=
scheduleDtoList
;
//提取Compay ID Name 并排重
//提取Compay ID Name 并排重
//
Compan
yList = _.uniq(_.map(scheduleDtoList, function (dt) {
//
entit
yList = _.uniq(_.map(scheduleDtoList, function (dt) {
// return {
// return {
// value: dt.companyID,
// value: dt.companyID,
// name: dt.companyName,
// name: dt.companyName,
...
@@ -908,7 +910,7 @@
...
@@ -908,7 +910,7 @@
$scope
.
permissionData
=
{};
$scope
.
permissionData
=
{};
function
setSchedules
()
{
function
setSchedules
()
{
taxCalendarService
.
get
Tax
CalendarDataForDisplay
(
cal
.
getDateRangeStart
(),
cal
.
getDateRangeEnd
()).
success
(
function
(
scheduleDtoList
)
{
taxCalendarService
.
getCalendarDataForDisplay
(
cal
.
getDateRangeStart
(),
cal
.
getDateRangeEnd
()).
success
(
function
(
scheduleDtoList
)
{
//如果登录用户没有查看,则不显示相应的税务日历
//如果登录用户没有查看,则不显示相应的税务日历
// userService.getUserPermissionNew(loginContext.userName, function (data) {
// userService.getUserPermissionNew(loginContext.userName, function (data) {
// $scope.permissionData = data;
// $scope.permissionData = data;
...
@@ -954,8 +956,7 @@
...
@@ -954,8 +956,7 @@
var
html
=
[];
var
html
=
[];
CalendarList
.
forEach
(
function
(
calendar
)
{
CalendarList
.
forEach
(
function
(
calendar
)
{
html
.
push
(
'<div class="lnb-calendars-item" style="background: '
+
calendar
.
borderColor
+
' ;"><label>'
+
html
.
push
(
'<div class="lnb-calendars-item" style="background: '
+
calendar
.
borderColor
+
' ;"><label>'
+
'<input type="checkbox" class="tui-full-calendar-checkbox-round" value="'
+
calendar
.
id
+
'" checked>'
+
'<input type="checkbox" class="tui-full-calendar-checkbox-round" eleType="calendarList" value="'
+
calendar
.
id
+
'" checked>'
+
// '<span style="border-color: ' + calendar.borderColor + '; background-color: ' + calendar.borderColor + ';margin-top:3px;display:inline-block;vertical-align:top;"></span>' +
'<span style="margin-top:5px;display:inline-block;vertical-align:top;"></span>'
+
'<span style="margin-top:5px;display:inline-block;vertical-align:top;"></span>'
+
'<span style="display:inline-block;line-height:20px;width:80%;color:white;">'
+
calendar
.
name
+
'</span>'
+
'<span style="display:inline-block;line-height:20px;width:80%;color:white;">'
+
calendar
.
name
+
'</span>'
+
'</label></div>'
'</label></div>'
...
@@ -963,7 +964,7 @@
...
@@ -963,7 +964,7 @@
});
});
calendarList
.
innerHTML
=
html
.
join
(
'
\
n'
);
calendarList
.
innerHTML
=
html
.
join
(
'
\
n'
);
renderList
(
Compan
yList
,
'companyList'
,
'#aaa'
);
renderList
(
entit
yList
,
'companyList'
,
'#aaa'
);
renderList
(
dataOptions
.
statusList
,
'statusList'
,
'#aaa'
);
renderList
(
dataOptions
.
statusList
,
'statusList'
,
'#aaa'
);
renderList
(
dataOptions
.
calendarTypeList
,
'calendarTypeList'
,
'#aaa'
);
renderList
(
dataOptions
.
calendarTypeList
,
'calendarTypeList'
,
'#aaa'
);
...
@@ -1006,22 +1007,22 @@
...
@@ -1006,22 +1007,22 @@
}
}
var
getTaxProjectList
=
function
()
{
var
getTaxProjectList
=
function
()
{
ta
xProject
List
=
[];
ta
skType
List
=
[];
var
setColor
=
function
(
data
)
{
var
setColor
=
function
(
data
)
{
var
colorLenth
=
dataOptions
.
colorArray
.
length
;
var
colorLen
g
th
=
dataOptions
.
colorArray
.
length
;
for
(
var
key
=
0
;
key
<
data
.
length
;
key
++
)
{
for
(
var
key
=
0
;
key
<
data
.
length
;
key
++
)
{
var
value
=
data
[
key
];
var
value
=
data
[
key
];
value
.
colorGroup
=
{
value
.
colorGroup
=
{
color
:
dataOptions
.
colorArray
[
key
%
colorLenth
].
color
,
color
:
dataOptions
.
colorArray
[
key
%
colorLen
g
th
].
color
,
bgColor
:
dataOptions
.
colorArray
[
key
%
colorLenth
].
bgColor
,
bgColor
:
dataOptions
.
colorArray
[
key
%
colorLen
g
th
].
bgColor
,
dragBgColor
:
dataOptions
.
colorArray
[
key
%
colorLenth
].
dragBgColor
,
dragBgColor
:
dataOptions
.
colorArray
[
key
%
colorLen
g
th
].
dragBgColor
,
borderColor
:
dataOptions
.
colorArray
[
key
%
colorLenth
].
borderColor
borderColor
:
dataOptions
.
colorArray
[
key
%
colorLen
g
th
].
borderColor
};
};
}
}
ta
xProject
List
=
data
;
ta
skType
List
=
data
;
};
};
var
setCalendar
=
function
()
{
var
setCalendar
=
function
()
{
...
@@ -1029,13 +1030,13 @@
...
@@ -1029,13 +1030,13 @@
CalendarList
=
[];
CalendarList
=
[];
//补全颜色 生成 CalendarList
//补全颜色 生成 CalendarList
var
colorLenth
=
dataOptions
.
colorArray
.
length
;
var
colorLen
g
th
=
dataOptions
.
colorArray
.
length
;
ta
xProject
List
.
forEach
(
function
(
value
)
{
ta
skType
List
.
forEach
(
function
(
value
)
{
var
colorGroup
=
value
.
colorGroup
;
var
colorGroup
=
value
.
colorGroup
;
CalendarList
.
push
({
CalendarList
.
push
({
id
:
value
.
id
,
id
:
value
.
id
,
name
:
value
.
taxProjectN
ame
,
name
:
value
.
n
ame
,
checked
:
true
,
checked
:
true
,
color
:
colorGroup
.
color
,
color
:
colorGroup
.
color
,
bgColor
:
colorGroup
.
bgColor
,
bgColor
:
colorGroup
.
bgColor
,
...
@@ -1046,9 +1047,8 @@
...
@@ -1046,9 +1047,8 @@
});
});
};
};
taxCalendarService
.
getAllTaxProjectList
().
success
(
function
(
data
)
{
taxCalendarService
.
getAllTaskTypeList
().
success
(
function
(
result
)
{
setColor
(
data
);
setColor
(
result
.
data
);
setCalendar
();
setCalendar
();
setSchedules
();
setSchedules
();
}).
error
(
function
(
data
)
{
}).
error
(
function
(
data
)
{
...
@@ -1177,7 +1177,7 @@
...
@@ -1177,7 +1177,7 @@
id
:
param
.
data
.
id
,
id
:
param
.
data
.
id
,
type
:
param
.
data
.
type
,
type
:
param
.
data
.
type
,
taxProjectID
:
param
.
data
.
taxProjectID
,
taxProjectID
:
param
.
data
.
taxProjectID
,
ta
xProjectName
:
param
.
data
.
taxProject
Name
,
ta
skTypeName
:
param
.
data
.
taskType
Name
,
companyID
:
param
.
data
.
companyID
,
companyID
:
param
.
data
.
companyID
,
companyName
:
param
.
data
.
companyName
,
companyName
:
param
.
data
.
companyName
,
workPlaceID
:
param
.
data
.
workPlaceID
,
workPlaceID
:
param
.
data
.
workPlaceID
,
...
@@ -1259,7 +1259,7 @@
...
@@ -1259,7 +1259,7 @@
status
:
0
,
status
:
0
,
guideBound
:
guideBound
,
guideBound
:
guideBound
,
taxProjectID
:
userDefine
.
id
,
taxProjectID
:
userDefine
.
id
,
ta
xProjectName
:
userDefine
.
taxProject
Name
,
ta
skTypeName
:
userDefine
.
taskType
Name
,
colorGroup
:
userDefine
.
colorGroup
colorGroup
:
userDefine
.
colorGroup
};
};
...
@@ -1285,7 +1285,7 @@
...
@@ -1285,7 +1285,7 @@
//修改日历设置事项的事项类别
//修改日历设置事项的事项类别
var
userDefine
=
getUserDefineTaxProject
();
var
userDefine
=
getUserDefineTaxProject
();
if
(
$scope
.
popupOptions
.
operateModel
.
ta
xProjectName
!=
userDefine
.
taxProject
Name
)
{
if
(
$scope
.
popupOptions
.
operateModel
.
ta
skTypeName
!=
userDefine
.
taskType
Name
)
{
$scope
.
popupOptions
.
operateModel
.
taxProjectName
=
$translate
.
instant
(
'CalendarSetEvent'
);
$scope
.
popupOptions
.
operateModel
.
taxProjectName
=
$translate
.
instant
(
'CalendarSetEvent'
);
}
}
}
}
...
@@ -1293,34 +1293,34 @@
...
@@ -1293,34 +1293,34 @@
};
};
var
getUserDefineTaxProject
=
function
()
{
var
getUserDefineTaxProject
=
function
()
{
if
(
!
ta
xProjectList
||
taxProject
List
.
length
===
0
)
{
if
(
!
ta
skTypeList
||
taskType
List
.
length
===
0
)
{
return
null
;
return
null
;
}
}
return
ta
xProject
List
[
0
];
return
ta
skType
List
[
0
];
};
};
var
getTaxProject
=
function
(
id
)
{
var
getTaxProject
=
function
(
id
)
{
if
(
!
ta
xProjectList
||
taxProject
List
.
length
===
0
)
{
if
(
!
ta
skTypeList
||
taskType
List
.
length
===
0
)
{
return
dataOptions
.
colorArray
[
0
];
return
dataOptions
.
colorArray
[
0
];
}
}
var
tax
=
_
.
find
(
ta
xProject
List
,
{
id
:
id
});
var
tax
=
_
.
find
(
ta
skType
List
,
{
id
:
id
});
if
(
tax
)
{
if
(
tax
)
{
return
tax
.
colorGroup
;
return
tax
.
colorGroup
;
}
}
// 没有找到数据,默认取第一条的colorGroup
// 没有找到数据,默认取第一条的colorGroup
return
ta
xProject
List
[
0
].
colorGroup
;
return
ta
skType
List
[
0
].
colorGroup
;
};
};
//获取用户的可访问的公司列表
//获取用户的可访问的公司列表
var
getCompanyList
=
function
()
{
var
getCompanyList
=
function
()
{
CompanyList
=
[]
entityList
=
[];
taxCalendarService
.
get
TaxCalendarUserCompanys
(
loginContext
.
userName
).
success
(
function
(
datas
)
{
taxCalendarService
.
get
ActiveEntityList
().
success
(
function
(
result
)
{
if
(
datas
&&
datas
.
length
>
0
)
{
if
(
result
.
result
)
{
CompanyList
=
_
.
map
(
datas
,
function
(
dt
)
{
entityList
=
_
.
map
(
result
.
data
,
function
(
dt
)
{
return
{
return
{
value
:
dt
.
id
,
value
:
dt
.
id
,
name
:
dt
.
name
,
name
:
dt
.
name
,
...
@@ -1346,7 +1346,7 @@
...
@@ -1346,7 +1346,7 @@
initScopeVariable
();
initScopeVariable
();
initControls
();
initControls
();
getCompanyList
();
getCompanyList
();
//getTa
xProject
List();
//getTa
skType
List();
})();
})();
}
}
...
...
atms-web/src/main/webapp/app/calendar/edit-calendar-task/edit-calendar-task.ctrl.js
View file @
d1ff2b67
...
@@ -45,9 +45,9 @@
...
@@ -45,9 +45,9 @@
];
];
$scope
.
editModel
=
{};
$scope
.
editModel
=
{};
taxCalendarService
.
get
WorkPlace
List
().
success
(
function
(
result
)
{
taxCalendarService
.
get
ActiveEntity
List
().
success
(
function
(
result
)
{
if
(
result
)
{
if
(
result
.
result
)
{
$scope
.
workPlaceList
=
result
;
$scope
.
workPlaceList
=
result
.
data
;
}
}
});
});
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
$scope
.
isReadOnly
=
false
;
$scope
.
isReadOnly
=
false
;
if
(
$scope
.
operateModel
)
{
if
(
$scope
.
operateModel
)
{
$scope
.
editModel
=
$scope
.
operateModel
;
$scope
.
editModel
=
$scope
.
operateModel
;
$scope
.
editModel
.
taxProjectNameShow
=
$scope
.
editModel
.
ta
xProject
Name
;
$scope
.
editModel
.
taxProjectNameShow
=
$scope
.
editModel
.
ta
skType
Name
;
$scope
.
editModel
.
id
=
window
.
PWC
.
newGuid
();
$scope
.
editModel
.
id
=
window
.
PWC
.
newGuid
();
$scope
.
editModel
.
eventDate
=
new
Date
(
$scope
.
operateModel
.
eventDate
).
formatDateTime
(
'yyyy-MM-dd'
);
$scope
.
editModel
.
eventDate
=
new
Date
(
$scope
.
operateModel
.
eventDate
).
formatDateTime
(
'yyyy-MM-dd'
);
$scope
.
editModel
.
statusText
=
$translate
.
instant
(
taxEventFinishStatus
[
$scope
.
editModel
.
status
]);
$scope
.
editModel
.
statusText
=
$translate
.
instant
(
taxEventFinishStatus
[
$scope
.
editModel
.
status
]);
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
if
(
$scope
.
operateModel
)
{
if
(
$scope
.
operateModel
)
{
$scope
.
editModel
=
$scope
.
operateModel
;
$scope
.
editModel
=
$scope
.
operateModel
;
var
showText
=
$scope
.
operateModel
.
ta
xProject
Name
;
var
showText
=
$scope
.
operateModel
.
ta
skType
Name
;
if
(
$scope
.
operateModel
.
calendarNumber
)
{
if
(
$scope
.
operateModel
.
calendarNumber
)
{
showText
+=
' '
+
$scope
.
operateModel
.
calendarNumber
;
showText
+=
' '
+
$scope
.
operateModel
.
calendarNumber
;
...
...
atms-web/src/main/webapp/app/common/webservices/taxCalendarConfiguration.svc.js
View file @
d1ff2b67
...
@@ -2,24 +2,42 @@
...
@@ -2,24 +2,42 @@
webservices
.
factory
(
'taxCalendarService'
,
[
'$http'
,
'apiConfig'
,
function
(
$http
,
apiConfig
)
{
webservices
.
factory
(
'taxCalendarService'
,
[
'$http'
,
'apiConfig'
,
function
(
$http
,
apiConfig
)
{
'use strict'
;
'use strict'
;
return
{
return
{
test
:
function
()
{
return
$http
.
get
(
'/taxCalendar/test'
,
apiConfig
.
create
());
},
getWorkPlaceList
:
function
()
{
getActiveEntityList
:
function
()
{
return
$http
.
get
(
'/taxCalendar/getWorkPlaceList'
,
apiConfig
.
create
());
return
$http
.
get
(
'/calendar/getActiveEntityList'
,
apiConfig
.
create
());
},
getTaskTypeList
:
function
()
{
return
$http
.
get
(
'/calendar/getTaskTypeList'
,
apiConfig
.
create
());
},
},
get
TaxProject
List
:
function
()
{
get
AllTaskType
List
:
function
()
{
return
$http
.
get
(
'/
taxCalendar/getTaxProject
List'
,
apiConfig
.
create
());
return
$http
.
get
(
'/
calendar/getAllTaskType
List'
,
apiConfig
.
create
());
},
},
getAllTaxProjectList
:
function
(
)
{
saveTaskType
:
function
(
data
)
{
return
$http
.
get
(
'/taxCalendar/getAllTaxProjectList'
,
apiConfig
.
create
());
return
$http
.
post
(
'/calendar/saveTaskType'
,
data
,
apiConfig
.
create
());
},
},
get
TaxCalendarConfiguration
List
:
function
(
queryParam
)
{
get
CalendarConfig
List
:
function
(
queryParam
)
{
return
$http
.
post
(
'/
taxCalendar/getTaxCalendarConfiguration
List'
,
queryParam
,
apiConfig
.
create
());
return
$http
.
post
(
'/
calendar/getCalendarConfig
List'
,
queryParam
,
apiConfig
.
create
());
},
},
get
TaxCalendarConfigurationByID
:
function
(
configID
)
{
get
CalendarConfigById
:
function
(
configID
)
{
return
$http
.
get
(
'/
taxCalendar/getTaxCalendarConfigurationByID
/'
+
configID
,
apiConfig
.
create
());
return
$http
.
get
(
'/
calendar/getCalendarConfigById
/'
+
configID
,
apiConfig
.
create
());
},
},
saveTaxProject
:
function
(
data
)
{
saveCalendarConfig
:
function
(
data
)
{
return
$http
.
post
(
'/taxCalendar/saveTaxProject'
,
data
,
apiConfig
.
create
());
return
$http
.
post
(
'/calendar/saveCalendarConfig'
,
data
,
apiConfig
.
create
());
},
getCalendarDataForDisplay
:
function
(
startData
,
endDate
)
{
return
$http
.
post
(
'/calendar/getCalendarDataForDisplay'
,
{
queryStartTime
:
(
new
Date
(
startData
)).
dateTimeToString
(
'yyyyMMdd'
),
queryEndTime
:
(
new
Date
(
endDate
)).
dateTimeToString
(
'yyyyMMdd'
)
+
" 23:59:59"
,
userID
:
''
,
userName
:
''
},
apiConfig
.
create
());
},
getMaxNumber
:
function
()
{
return
$http
.
get
(
'/calendar/getMaxConfigOrder'
,
apiConfig
.
create
());
},
test
:
function
()
{
return
$http
.
get
(
'/taxCalendar/test'
,
apiConfig
.
create
());
},
getWorkPlaceList
:
function
()
{
return
$http
.
get
(
'/taxCalendar/getWorkPlaceList'
,
apiConfig
.
create
());
},
},
deleteTaxProject
:
function
(
taxProjectId
){
deleteTaxProject
:
function
(
taxProjectId
){
return
$http
.
post
(
'/taxCalendar/deleteTaxProject/'
+
taxProjectId
,
{},
apiConfig
.
create
());
return
$http
.
post
(
'/taxCalendar/deleteTaxProject/'
+
taxProjectId
,
{},
apiConfig
.
create
());
...
@@ -30,15 +48,8 @@ webservices.factory('taxCalendarService', ['$http', 'apiConfig', function ($http
...
@@ -30,15 +48,8 @@ webservices.factory('taxCalendarService', ['$http', 'apiConfig', function ($http
deleteWorkPlace
:
function
(
workPlaceId
){
deleteWorkPlace
:
function
(
workPlaceId
){
return
$http
.
post
(
'/taxCalendar/deleteWorkPlace/'
+
workPlaceId
,
{},
apiConfig
.
create
());
return
$http
.
post
(
'/taxCalendar/deleteWorkPlace/'
+
workPlaceId
,
{},
apiConfig
.
create
());
},
},
saveTaxCalendarConfig
:
function
(
data
)
{
return
$http
.
post
(
'/taxCalendar/saveTaxCalendarConfig'
,
data
,
apiConfig
.
create
());
},
getMaxNumber
:
function
()
{
return
$http
.
get
(
'/taxCalendar/getMaxNumber'
,
apiConfig
.
create
());
},
getTaxCalendarDataForDisplay
:
function
(
startData
,
endDate
)
{
return
$http
.
post
(
'/taxCalendar/getTaxCalendarDataForDisplay'
,
{
queryStartTime
:
(
new
Date
(
startData
)).
dateTimeToString
(
'yyyyMMdd'
),
queryEndTime
:
(
new
Date
(
endDate
)).
dateTimeToString
(
'yyyyMMdd'
),
userID
:
''
,
userName
:
''
},
apiConfig
.
create
());
},
getTaxCalendarUserCompanys
:
function
(
userName
)
{
getTaxCalendarUserCompanys
:
function
(
userName
)
{
return
$http
.
get
(
'/taxCalendar/getTaxCalendarUserCompanys/'
+
userName
,
apiConfig
.
create
());
return
$http
.
get
(
'/taxCalendar/getTaxCalendarUserCompanys/'
+
userName
,
apiConfig
.
create
());
},
},
...
...
atms-web/src/main/webapp/app/common/webservices/taxCalendarEvent.svc.js
View file @
d1ff2b67
...
@@ -6,15 +6,15 @@ function ($http, apiConfig, httpCacheService) {
...
@@ -6,15 +6,15 @@ function ($http, apiConfig, httpCacheService) {
return
{
return
{
add
:
function
(
model
)
{
add
:
function
(
model
)
{
return
$http
.
post
(
'
/taxC
alendarEvent/add'
,
model
,
apiConfig
.
create
());
return
$http
.
post
(
'
api/v1/c
alendarEvent/add'
,
model
,
apiConfig
.
create
());
},
},
update
:
function
(
model
)
{
update
:
function
(
model
)
{
return
$http
.
post
(
'
/taxC
alendarEvent/update'
,
model
,
apiConfig
.
create
());
return
$http
.
post
(
'
api/v1/c
alendarEvent/update'
,
model
,
apiConfig
.
create
());
}
}
,
,
deleteEvent
:
function
(
model
)
{
deleteEvent
:
function
(
model
)
{
return
$http
.
post
(
'
/taxC
alendarEvent/delete'
,
model
,
apiConfig
.
create
());
return
$http
.
post
(
'
api/v1/c
alendarEvent/delete'
,
model
,
apiConfig
.
create
());
}
}
};
};
}]);
}]);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment