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
324445cc
Commit
324445cc
authored
Mar 25, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增用户bug修复
parent
b5931dfa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
29 deletions
+14
-29
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+0
-15
performance/Performance.DtoModels/Request/HospitalRequest.cs
+11
-11
performance/Performance.Services/HospitalService.cs
+3
-3
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
324445cc
...
...
@@ -1662,26 +1662,11 @@
医院状态 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.DtoModels.HospitalRequest.IsOpenWorkYear"
>
<summary>
是否开启年资系数 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.DtoModels.HospitalRequest.IsOpenDrugprop"
>
<summary>
是否开启药占比系数 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.DtoModels.HospitalRequest.IsOpenIncome"
>
<summary>
是否开启ICU有效收入系数 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.DtoModels.HospitalRequest.IsOpenDirector"
>
<summary>
是否开启规模/效率绩效 1 启用 2 禁用
</summary>
</member>
<member
name=
"P:Performance.DtoModels.IncomeRequest.SheetNameKeyword"
>
<summary>
关键字匹配
...
...
performance/Performance.DtoModels/Request/HospitalRequest.cs
View file @
324445cc
...
...
@@ -38,19 +38,19 @@ public class HospitalRequest
/// <summary>
/// 是否开启年资系数 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenWorkYear
{
get
;
set
;
}
//
public Nullable<int> IsOpenWorkYear { get; set; }
/// <summary>
/// 是否开启药占比系数 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenDrugprop
{
get
;
set
;
}
/// <summary>
/// 是否开启ICU有效收入系数 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenIncome
{
get
;
set
;
}
/// <summary>
/// 是否开启规模/效率绩效 1 启用 2 禁用
/// </summary>
public
Nullable
<
int
>
IsOpenDirector
{
get
;
set
;
}
///
//
<summary>
///
//
是否开启ICU有效收入系数 1 启用 2 禁用
///
//
</summary>
//
public Nullable<int> IsOpenIncome { get; set; }
///
//
<summary>
///
//
是否开启规模/效率绩效 1 启用 2 禁用
///
//
</summary>
//
public Nullable<int> IsOpenDirector { get; set; }
}
public
class
HospitalRequestValidator
:
AbstractValidator
<
HospitalRequest
>
...
...
@@ -60,10 +60,10 @@ public HospitalRequestValidator()
Action
action
=
()
=>
{
RuleFor
(
x
=>
x
.
HosName
).
NotNull
().
NotEmpty
().
Length
(
1
,
50
);
RuleFor
(
x
=>
x
.
AreaCode
).
NotNull
().
NotEmpty
().
Length
(
1
,
50
);
//
RuleFor(x => x.AreaCode).NotNull().NotEmpty().Length(1, 50);
RuleFor
(
x
=>
x
.
HosLevel
).
NotNull
().
NotEmpty
().
Length
(
1
,
50
);
RuleFor
(
x
=>
x
.
HosType
).
NotNull
().
NotEmpty
().
Length
(
1
,
50
);
RuleFor
(
x
=>
x
.
IsOpenWorkYear
).
NotNull
().
InclusiveBetween
(
1
,
2
);
//
RuleFor(x => x.IsOpenWorkYear).NotNull().InclusiveBetween(1, 2);
};
RuleSet
(
"Insert"
,
()
=>
...
...
performance/Performance.Services/HospitalService.cs
View file @
324445cc
...
...
@@ -129,10 +129,10 @@ public HospitalResponse Update(HospitalRequest request)
hospital
.
HosType
=
request
.
HosType
;
hospital
.
AreaCode
=
request
.
AreaCode
;
hospital
.
States
=
request
.
States
;
hospital
.
IsOpenWorkYear
=
request
.
IsOpenWorkYear
;
hospital
.
IsOpenDirector
=
request
.
IsOpenDirector
;
//
hospital.IsOpenWorkYear = request.IsOpenWorkYear;
//
hospital.IsOpenDirector = request.IsOpenDirector;
hospital
.
IsOpenDrugprop
=
request
.
IsOpenDrugprop
;
hospital
.
IsOpenIncome
=
request
.
IsOpenIncome
;
//
hospital.IsOpenIncome = request.IsOpenIncome;
if
(!
_hospitalRepository
.
Update
(
hospital
))
throw
new
PerformanceException
(
"保存失败"
);
...
...
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