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
1964832e
Commit
1964832e
authored
Nov 02, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增提取日志显示,自定义加载上次配置
parent
18e7c8b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
245 additions
and
2 deletions
+245
-2
performance/Performance.Api/Controllers/ConfigController.cs
+39
-0
performance/Performance.Api/Controllers/TemplateController.cs
+17
-0
performance/Performance.Api/wwwroot/Performance.Api.xml
+20
-0
performance/Performance.DtoModels/Request/CopyRequest.cs
+19
-0
performance/Performance.Services/ConfigService.cs
+141
-1
performance/Performance.Services/LogManageService.cs
+8
-0
performance/Performance.Services/UserService.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/ConfigController.cs
View file @
1964832e
...
...
@@ -813,5 +813,43 @@ public ApiResponse SaveDrugtypeFactor([FromBody] DrugtypeFactorRequest request)
}
#
endregion
/// <summary>
/// 加载上次
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
HttpPost
(
"loadthelasttime"
)]
public
ApiResponse
LoadTheLastTime
([
FromBody
]
CopyRequest
request
)
{
var
allot
=
_allotService
.
GetAllot
(
request
.
AllotId
);
if
(
allot
==
null
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"AllotID错误"
);
_configService
.
NewCopy
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
"保存成功!"
);
}
/// <summary>
/// 下拉
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
HttpPost
(
"copydropdown"
)]
public
ApiResponse
CopyDropDown
()
{
var
result
=
new
List
<
CopyDrop
>
{
new
CopyDrop
{
Label
=
"工作量配置"
,
Value
=
"workItems"
},
new
CopyDrop
{
Label
=
"收入费用类别"
,
Value
=
"drugTypes"
},
new
CopyDrop
{
Label
=
"支出费用类别"
,
Value
=
"drugTypeDisburses"
},
new
CopyDrop
{
Label
=
"费用类别系数"
,
Value
=
"drugTypeFactors"
},
new
CopyDrop
{
Label
=
"科室类型"
,
Value
=
"deptTypes"
},
new
CopyDrop
{
Label
=
"二次绩效配置"
,
Value
=
"agains"
},
new
CopyDrop
{
Label
=
"核算单元及组别"
,
Value
=
"accountings"
},
};
;
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
}
}
\ No newline at end of file
performance/Performance.Api/Controllers/TemplateController.cs
View file @
1964832e
...
...
@@ -285,6 +285,21 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest
// B 使用配置作为模板
}
/// <summary>
/// 提取日志
/// </summary>
/// <returns></returns>
[
HttpPost
(
"PrejudgeLog/{allotId}"
)]
public
ApiResponse
PrejudgeLog
([
FromRoute
]
int
allotId
)
{
var
allot
=
allotService
.
GetAllot
(
allotId
);
if
(
allot
==
null
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"AllotID错误"
);
var
result
=
logService
.
GetLogDbug
(
allotId
);
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
#
endregion
新版提取
/// <summary>
...
...
@@ -439,5 +454,7 @@ public IActionResult ExtractIncome(int allotId)
var
memi
=
provider
.
Mappings
[
fileExt
];
return
File
(
memoryStream
,
memi
,
Path
.
GetFileName
(
filepath
));
}
}
}
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
1964832e
...
...
@@ -843,6 +843,20 @@
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.ConfigController.LoadTheLastTime(Performance.DtoModels.CopyRequest)"
>
<summary>
加载上次
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.ConfigController.CopyDropDown"
>
<summary>
下拉
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.CostTransferController.SubmitApplications(Performance.DtoModels.CostTransferRequest)"
>
<summary>
申请划拨
...
...
@@ -1946,6 +1960,12 @@
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.TemplateController.PrejudgeLog(System.Int32)"
>
<summary>
提取日志
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.TemplateController.DownFile(Performance.DtoModels.AllotRequest)"
>
<summary>
从WebAPI下载文件
...
...
performance/Performance.DtoModels/Request/CopyRequest.cs
0 → 100644
View file @
1964832e
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
CopyRequest
{
public
int
AllotId
{
get
;
set
;
}
public
string
[]
Type
{
get
;
set
;
}
}
public
class
CopyDrop
{
public
string
Label
{
get
;
set
;
}
public
string
Value
{
get
;
set
;
}
}
}
performance/Performance.Services/ConfigService.cs
View file @
1964832e
This diff is collapsed.
Click to expand it.
performance/Performance.Services/LogManageService.cs
View file @
1964832e
...
...
@@ -3,9 +3,11 @@
using
Microsoft.Extensions.Options
;
using
Performance.DtoModels
;
using
Performance.DtoModels.AppSettings
;
using
Performance.EntityModels
;
using
Performance.Infrastructure
;
using
Performance.Repository
;
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
namespace
Performance.Services
...
...
@@ -130,5 +132,11 @@ public bool ClearExtractLog(int allotId)
{
return
logdbug
.
ClearExtractLog
(
allotId
);
}
//todo:log信息展示
public
List
<
log_dbug
>
GetLogDbug
(
int
allotId
)
{
return
logdbug
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
Type
==
2
);
}
}
}
performance/Performance.Services/UserService.cs
View file @
1964832e
...
...
@@ -760,7 +760,7 @@ public string SaveUserHandsFlat(UserCollectData request)
var
getUsers
=
_userRepository
.
GetEntities
();
var
roles
=
_roleRepository
.
GetEntities
();
var
hospitals
=
_hospitalRepository
.
GetEntities
();
//hack:后续修改为accounting中的数据
var
accounts
=
perforCofaccountingRepository
.
GetEntities
();
//var allot = _perallotRepository.GetEntities(t => t.HospitalId == request.HospitalId);
//var res = accounts?.Join(allot, t => t.AllotId, w => w.ID, (t, w) => new cof_accounting { AccountingUnit = t.AccountingUnit }).Distinct();
...
...
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