Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
5414ab84
Commit
5414ab84
authored
Mar 01, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增投资采购审核
parent
e5b4a493
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
1 deletion
+77
-1
RB_InvestmentProcurement.cs
Mall.Model/Entity/TradePavilion/RB_InvestmentProcurement.cs
+20
-0
RB_Procurement_Extend.cs
Mall.Model/Extend/TradePavilion/RB_Procurement_Extend.cs
+19
-1
InvestmentProcurementModule.cs
Mall.Module.TradePavilion/InvestmentProcurementModule.cs
+18
-0
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+20
-0
No files found.
Mall.Model/Entity/TradePavilion/RB_InvestmentProcurement.cs
View file @
5414ab84
...
...
@@ -175,5 +175,25 @@ namespace Mall.Model.Entity.TradePavilion
/// 删除状态
/// </summary>
public
DateStateEnum
Status
{
get
;
set
;
}
/// <summary>
/// 审核状态(0-待审核,1-审核通过,2-拒绝)
/// </summary>
public
int
AuditStatus
{
get
;
set
;
}
/// <summary>
/// 审核内容
/// </summary>
public
string
AuditContent
{
get
;
set
;
}
/// <summary>
/// 审核时间
/// </summary>
public
DateTime
?
AuditTime
{
get
;
set
;
}
/// <summary>
/// 审核人
/// </summary>
public
int
AuditBy
{
get
;
set
;
}
}
}
Mall.Model/Extend/TradePavilion/RB_Procurement_Extend.cs
View file @
5414ab84
...
...
@@ -7,6 +7,24 @@ namespace Mall.Model.Extend.TradePavilion
/// </summary>
public
class
RB_InvestmentProcurement_Extend
:
RB_InvestmentProcurement
{
/// <summary>
/// 审核状态字符串
/// </summary>
public
string
AuditStatusStr
{
get
{
string
str
=
"待审核"
;
if
(
this
.
AuditStatus
==
1
)
{
str
=
"审核通过"
;
}
if
(
this
.
AuditStatus
==
2
)
{
str
=
"拒绝"
;
}
return
str
;
}
}
}
}
Mall.Module.TradePavilion/InvestmentProcurementModule.cs
View file @
5414ab84
...
...
@@ -107,5 +107,23 @@ namespace Mall.Module.TradePavilion
return
flag
;
}
/// <summary>
/// 采购/投资审核
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
AuditInvestmentProcurementModule
(
RB_InvestmentProcurement_Extend
model
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_InvestmentProcurement_Extend
.
AuditStatus
),
model
.
AuditStatus
},
{
nameof
(
RB_InvestmentProcurement_Extend
.
AuditBy
),
model
.
AuditBy
},
{
nameof
(
RB_InvestmentProcurement_Extend
.
AuditTime
),
model
.
AuditTime
},
{
nameof
(
RB_InvestmentProcurement_Extend
.
AuditContent
),
model
.
AuditContent
},
};
bool
flag
=
repository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_InvestmentProcurement_Extend
.
Id
),
model
.
Id
));
return
flag
;
}
}
}
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
5414ab84
...
...
@@ -227,6 +227,26 @@ namespace Mall.WebApi.Controllers.TradePavilion
var
flag
=
procurementModule
.
RemoveInvestmentProcurementModule
(
Id
,
Status
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 投资采购审核
/// </summary>
/// <returns></returns>
public
ApiResult
AutitInvestmentProcurement
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
Int32
.
TryParse
(
RequestParm
.
uid
,
out
int
Uid
);
var
extModel
=
new
RB_InvestmentProcurement_Extend
()
{
Id
=
parms
.
GetInt
(
"Id"
),
AuditStatus
=
parms
.
GetInt
(
"AuditStatus"
),
AuditTime
=
DateTime
.
Now
,
AuditBy
=
Uid
,
AuditContent
=
parms
.
GetStringValue
(
"AuditContent"
)
};
var
flag
=
procurementModule
.
AuditInvestmentProcurementModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
#
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