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
0d6c172a
Commit
0d6c172a
authored
Jul 26, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回审核录入数据
parent
3cea149b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
114 additions
and
13 deletions
+114
-13
performance/Performance.Api/Controllers/CollectController.cs
+58
-4
performance/Performance.Api/Job/JobRegistry.cs
+1
-1
performance/Performance.Api/wwwroot/Performance.Api.xml
+20
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+20
-0
performance/Performance.DtoModels/HandsonTable.cs
+7
-6
performance/Performance.EntityModels/Entity/collect_data.cs
+8
-2
performance/Performance.Services/CollectService.cs
+0
-0
No files found.
performance/Performance.Api/Controllers/CollectController.cs
View file @
0d6c172a
...
...
@@ -109,10 +109,65 @@ public ApiResponse SaveCollectData(int allotId, [FromBody] SaveCollectData reque
{
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数无效"
);
collectService
.
SaveCollectData
(
allotId
,
request
);
collectService
.
SaveCollectData
(
allotId
,
request
,
claim
.
GetUserId
()
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
}
\ No newline at end of file
/// <summary>
/// 提交采集信息
/// </summary>
[
HttpPost
]
[
Route
(
"submitcollectdata/{allotId}"
)]
public
ApiResponse
SubmitCollectData
(
int
allotId
,
[
FromQuery
]
string
sheetName
)
{
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数无效"
);
collectService
.
SubmitCollectData
(
allotId
,
sheetName
,
claim
.
GetUserId
());
return
new
ApiResponse
(
ResponseType
.
OK
);
}
/// <summary>
/// 数据录入显示列表
/// </summary>
[
HttpPost
]
[
Route
(
"collectdatalist/{hospitalId}"
)]
public
ApiResponse
CollectDataList
(
int
hospitalId
)
{
if
(
hospitalId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数无效"
);
var
data
=
collectService
.
CollectDataList
(
hospitalId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
data
);
}
/// <summary>
/// 核算办显示列表
/// </summary>
[
HttpPost
]
[
Route
(
"performanceforlist/{allotId}"
)]
public
ApiResponse
PerformanceforList
(
int
allotId
)
{
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数无效"
);
var
data
=
collectService
.
PerformanceforList
(
allotId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
data
);
}
/// <summary>
/// 科室显示列表
/// </summary>
[
HttpPost
]
[
Route
(
"departmentlist/{allotId}"
)]
public
ApiResponse
DepartmentList
(
int
allotId
,
[
FromQuery
]
int
userId
)
{
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数无效"
);
var
data
=
collectService
.
DepartmentList
(
allotId
,
userId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
data
);
}
}
}
performance/Performance.Api/Job/JobRegistry.cs
View file @
0d6c172a
...
...
@@ -8,7 +8,7 @@ public JobRegistry()
{
//Schedule<ExtractDataJob>().ToRunNow().AndEvery(1).Days().At(23, 0);
//Schedule<ExtractDataJob>().ToRunEvery(1).Days().At(23, 0);
Schedule
<
ExtractGenerateJob
>().
ToRunEvery
(
1
).
Days
().
At
(
14
,
00
);
Schedule
<
ExtractGenerateJob
>().
ToRunEvery
(
1
).
Days
().
At
(
23
,
00
);
}
}
}
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
0d6c172a
...
...
@@ -397,6 +397,26 @@
保存采集内容
</summary>
</member>
<member
name=
"M:Performance.Api.Controllers.CollectController.SubmitCollectData(System.Int32,System.String)"
>
<summary>
提交采集信息
</summary>
</member>
<member
name=
"M:Performance.Api.Controllers.CollectController.CollectDataList(System.Int32)"
>
<summary>
数据录入显示列表
</summary>
</member>
<member
name=
"M:Performance.Api.Controllers.CollectController.PerformanceforList(System.Int32)"
>
<summary>
核算办显示列表
</summary>
</member>
<member
name=
"M:Performance.Api.Controllers.CollectController.DepartmentList(System.Int32,System.Int32)"
>
<summary>
科室显示列表
</summary>
</member>
<member
name=
"M:Performance.Api.Controllers.ComputeController.GetCompute(Performance.DtoModels.ComputerRequest)"
>
<summary>
获取绩效发放列表
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
0d6c172a
...
...
@@ -2276,6 +2276,26 @@
单元格value
</summary>
</member>
<member
name=
"P:Performance.EntityModels.collect_data.Status"
>
<summary>
1 保存 2 提交 3 审核通过 4 驳回 5 部分审核
</summary>
</member>
<member
name=
"P:Performance.EntityModels.collect_data.SavedUser"
>
<summary>
保存数据的用户
</summary>
</member>
<member
name=
"P:Performance.EntityModels.collect_data.SavedTime"
>
<summary>
保存数据的时间
</summary>
</member>
<member
name=
"P:Performance.EntityModels.collect_data.SubmitUser"
>
<summary>
提交数据的用户
</summary>
</member>
<member
name=
"T:Performance.EntityModels.collect_permission"
>
<summary>
...
...
performance/Performance.DtoModels/HandsonTable.cs
View file @
0d6c172a
...
...
@@ -48,12 +48,12 @@ public void SetRowData(IEnumerable<HandsonRowData> datas, bool isTypein)
var
dic
=
CreateDataRow
(
"编号"
,
dt
.
Row
.
ToString
());
foreach
(
var
item
in
dt
.
CellData
)
{
if
(
dic
.
ContainsKey
(
item
.
Name
.
ToLower
())
&&
isTypein
&&
_permissions
.
Any
(
w
=>
w
.
HeadName
.
ToLower
()
==
item
.
Name
.
ToLower
()))
dic
[
item
.
Name
.
ToLower
()]
=
item
.
Value
?.
ToString
()
??
""
;
else
if
(
dic
.
ContainsKey
(
item
.
Name
.
ToLower
())
&&
_permissions
.
Any
(
w
=>
w
.
HeadName
.
ToLower
()
==
item
.
Name
.
ToLower
()
&&
w
.
AttachLast
>
0
))
dic
[
item
.
Name
.
ToLower
()]
=
item
.
Value
?.
ToString
()
??
""
;
else
if
(
dic
.
ContainsKey
(
item
.
Name
.
ToLower
())
&&
_permissions
.
Any
(
w
=>
w
.
HeadName
.
ToLower
()
==
item
.
Name
.
ToLower
()))
dic
[
item
.
Name
.
ToLower
()]
=
item
.
Value
?.
ToString
()
??
""
;
//
if (dic.ContainsKey(item.Name.ToLower()) && isTypein && _permissions.Any(w => w.HeadName.ToLower() == item.Name.ToLower()))
//
dic[item.Name.ToLower()] = item.Value?.ToString() ?? "";
//
else if (dic.ContainsKey(item.Name.ToLower()) && _permissions.Any(w => w.HeadName.ToLower() == item.Name.ToLower() && w.AttachLast > 0))
//
dic[item.Name.ToLower()] = item.Value?.ToString() ?? "";
//
else if (dic.ContainsKey(item.Name.ToLower()) && _permissions.Any(w => w.HeadName.ToLower() == item.Name.ToLower()))
dic
[
item
.
Name
.
ToLower
()]
=
item
.
Value
?.
ToString
()
??
""
;
}
Data
.
Add
(
dic
);
}
...
...
@@ -66,6 +66,7 @@ private void InitColHeaders(int sheetType, string[] cols)
new
DefalutHandsonHeader
{
SheetType
=
SheetType
.
OtherIncome
,
Necessity
=
new
[]
{
"核算单元(医技组)"
,
"核算单元(医生组)"
,
"核算单元(护理组)"
,
"科室名称"
}
},
new
DefalutHandsonHeader
{
SheetType
=
SheetType
.
Expend
,
Necessity
=
new
[]
{
"核算单元(医技组)"
,
"核算单元(医生组)"
,
"核算单元(护理组)"
,
"科室名称"
}
},
new
DefalutHandsonHeader
{
SheetType
=
SheetType
.
Workload
,
Necessity
=
new
[]
{
"核算单元"
,
"科室名称"
}
},
new
DefalutHandsonHeader
{
SheetType
=
SheetType
.
SpecialUnit
,
Necessity
=
new
[]
{
"科室名称"
}
},
//new DefalutHandsonHeader{ SheetType = SheetType.AccountExtra, Necessity = new[] { "核算单元","科室名称" } },
//new DefalutHandsonHeader{ SheetType = SheetType.PersonExtra, Necessity = new[] { "核算单元","科室名称" } },
};
...
...
performance/Performance.EntityModels/Entity/collect_data.cs
View file @
0d6c172a
...
...
@@ -3,6 +3,7 @@
// * FileName: .cs
// </copyright>
//-----------------------------------------------------------------------
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
...
...
@@ -81,7 +82,7 @@ public class collect_data
public
string
CellValue
{
get
;
set
;
}
/// <summary>
/// 1 保存 2 提交 3 审核通过 4 驳回
/// 1 保存 2 提交
(等待审核)
3 审核通过 4 驳回
/// </summary>
public
int
Status
{
get
;
set
;
}
...
...
@@ -93,6 +94,11 @@ public class collect_data
/// <summary>
/// 保存数据的时间
/// </summary>
public
int
SavedTime
{
get
;
set
;
}
public
Nullable
<
DateTime
>
SavedTime
{
get
;
set
;
}
/// <summary>
/// 提交数据的用户
/// </summary>
public
Nullable
<
int
>
SubmitUser
{
get
;
set
;
}
}
}
performance/Performance.Services/CollectService.cs
View file @
0d6c172a
This diff is collapsed.
Click to expand it.
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