Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
04e6394c
Commit
04e6394c
authored
Apr 07, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
‘考勤下发’ 考勤-调动记录表(单条添加)
parent
7652ec8b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
0 deletions
+73
-0
performance/Performance.Api/Controllers/AttendanceController.cs
+20
-0
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+10
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.DtoModels/AutoMapper/AutoMapperConfigs.cs
+2
-0
performance/Performance.DtoModels/Response/AttendanceData.cs
+24
-0
performance/Performance.EntityModels/Entity/per_attendance.cs
+4
-0
performance/Performance.Services/AttendanceService.cs
+8
-0
No files found.
performance/Performance.Api/Controllers/AttendanceController.cs
View file @
04e6394c
...
@@ -97,6 +97,19 @@ public ApiResponse BatchCallIn(int allotId, int hospitalId, SaveCollectData requ
...
@@ -97,6 +97,19 @@ public ApiResponse BatchCallIn(int allotId, int hospitalId, SaveCollectData requ
// 表格错误提醒参考PersonService.CreatePerson方法
// 表格错误提醒参考PersonService.CreatePerson方法
return
_attendanceService
.
BatchCallIn
(
allotId
,
hospitalId
,
request
);
return
_attendanceService
.
BatchCallIn
(
allotId
,
hospitalId
,
request
);
}
}
/// <summary>
/// 考勤-调动记录表(单条添加)
/// </summary>
/// <param name="allotId"></param>
/// <param name="hospitalId"></param>
/// <param name="request"></param>
/// <returns></returns>
[
HttpPost
(
"CallIn/Add"
)]
public
ApiResponse
AttendanceAdd
(
int
allotId
,
int
hospitalId
,
AttendanceData
request
)
{
return
_attendanceService
.
AttendanceAdd
(
allotId
,
hospitalId
,
request
);
}
#
endregion
#
endregion
#
region
考勤类型
#
region
考勤类型
...
@@ -180,6 +193,13 @@ public ApiResponse AttendanceBatch(int allotId, int hospitalId, SaveCollectData
...
@@ -180,6 +193,13 @@ public ApiResponse AttendanceBatch(int allotId, int hospitalId, SaveCollectData
// 表格错误提醒参考PersonService.CreatePerson方法
// 表格错误提醒参考PersonService.CreatePerson方法
return
_attendanceService
.
AttendanceBatch
(
allotId
,
hospitalId
,
request
);
return
_attendanceService
.
AttendanceBatch
(
allotId
,
hospitalId
,
request
);
}
}
//public ApiResponse AttendanceAdd(int allotId, int hospitalId, SaveCollectData request)
//{
// return _attendanceService.AttendanceAdd(allotId, hospitalId, request);
//}
#
endregion
#
endregion
/// <summary>
/// <summary>
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
04e6394c
...
@@ -3053,6 +3053,16 @@
...
@@ -3053,6 +3053,16 @@
状态描述
状态描述
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.Response.AttendanceData.PersonnelNumber"
>
<summary>
工号
</summary>
</member>
<member
name=
"P:Performance.DtoModels.Response.AttendanceData.PremanentStaff"
>
<summary>
人员系数
</summary>
</member>
<member
name=
"P:Performance.DtoModels.Response.AttendanceIssueChoose.AllotId"
>
<member
name=
"P:Performance.DtoModels.Response.AttendanceIssueChoose.AllotId"
>
<summary>
<summary>
绩效Id
绩效Id
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
04e6394c
...
@@ -6118,6 +6118,11 @@
...
@@ -6118,6 +6118,11 @@
修改时间
修改时间
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.Entity.per_attendance.PermanentStaff"
>
<summary>
人员系数
</summary>
</member>
<member
name=
"P:Performance.EntityModels.Entity.per_attendance_issue.HospitalId"
>
<member
name=
"P:Performance.EntityModels.Entity.per_attendance_issue.HospitalId"
>
<summary>
<summary>
医院Id
医院Id
...
...
performance/Performance.DtoModels/AutoMapper/AutoMapperConfigs.cs
View file @
04e6394c
using
AutoMapper
;
using
AutoMapper
;
using
Performance.DtoModels.Request
;
using
Performance.DtoModels.Request
;
using
Performance.DtoModels.Response
;
using
Performance.EntityModels
;
using
Performance.EntityModels
;
using
Performance.EntityModels.Entity
;
using
Performance.EntityModels.Entity
;
using
Performance.Infrastructure
;
using
Performance.Infrastructure
;
...
@@ -277,6 +278,7 @@ public AutoMapperConfigs()
...
@@ -277,6 +278,7 @@ public AutoMapperConfigs()
.
ReverseMap
();
.
ReverseMap
();
CreateMap
<
cof_again
,
CofAgainRequest
>().
ReverseMap
();
CreateMap
<
cof_again
,
CofAgainRequest
>().
ReverseMap
();
CreateMap
<
AttendanceData
,
per_attendance
>().
ReverseMap
();
}
}
}
}
}
}
performance/Performance.DtoModels/Response/AttendanceData.cs
0 → 100644
View file @
04e6394c
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Performance.DtoModels.Response
{
public
class
AttendanceData
{
/// <summary>
/// 工号
/// </summary>
public
string
PersonnelNumber
{
get
;
set
;
}
public
string
PersonnelName
{
get
;
set
;
}
//姓名
public
string
CallInUnitType
{
get
;
set
;
}
//人员类别
/// <summary>
/// 人员系数
/// </summary>
public
string
PremanentStaff
{
get
;
set
;
}
public
string
CallInAccountingUnit
{
get
;
set
;
}
//核算单元
public
DateTime
?
CallInDate
{
get
;
set
;
}
//调入时间
}
}
performance/Performance.EntityModels/Entity/per_attendance.cs
View file @
04e6394c
...
@@ -17,6 +17,10 @@ public class per_attendance
...
@@ -17,6 +17,10 @@ public class per_attendance
public
int
AllotId
{
get
;
set
;
}
//绩效Id
public
int
AllotId
{
get
;
set
;
}
//绩效Id
public
string
PersonnelNumber
{
get
;
set
;
}
//工号
public
string
PersonnelNumber
{
get
;
set
;
}
//工号
public
string
PersonnelName
{
get
;
set
;
}
//姓名
public
string
PersonnelName
{
get
;
set
;
}
//姓名
/// <summary>
/// 人员系数
/// </summary>
public
string
PermanentStaff
{
get
;
set
;
}
public
string
CallInUnitType
{
get
;
set
;
}
//人员类别
public
string
CallInUnitType
{
get
;
set
;
}
//人员类别
public
string
CallInAccountingUnit
{
get
;
set
;
}
//核算单元
public
string
CallInAccountingUnit
{
get
;
set
;
}
//核算单元
public
DateTime
?
CallInDate
{
get
;
set
;
}
//调入时间
public
DateTime
?
CallInDate
{
get
;
set
;
}
//调入时间
...
...
performance/Performance.Services/AttendanceService.cs
View file @
04e6394c
...
@@ -338,6 +338,14 @@ public ApiResponse BatchCallIn(int allotId, int hospitalId, SaveCollectData requ
...
@@ -338,6 +338,14 @@ public ApiResponse BatchCallIn(int allotId, int hospitalId, SaveCollectData requ
}
}
public
ApiResponse
AttendanceAdd
(
int
allotId
,
int
hospitalId
,
AttendanceData
request
)
{
var
data
=
mapper
.
Map
<
per_attendance
>(
request
);
data
.
AllotId
=
allotId
;
data
.
HospitalId
=
hospitalId
;
perforPerAttendanceRepository
.
Add
(
data
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
#
endregion
#
endregion
#
region
考勤类型
#
region
考勤类型
...
...
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