Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
huatu_API
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
liudong1993
huatu_API
Commits
0331ae0c
Commit
0331ae0c
authored
Aug 26, 2025
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/liudong1993/huatu_api
parents
3efab4b7
a0c88e59
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
190 additions
and
66 deletions
+190
-66
FinancialModule.cs
REBORN.Module.FinanceModule/FinancialModule.cs
+20
-36
FinancialModule3.cs
REBORN.Module.FinanceModule/FinancialModule3.cs
+2
-11
Rb_employeeRepository.cs
REBORN.Repository/User/Rb_employeeRepository.cs
+1
-1
FinancialService.cs
REBORN.Services.FinanceService/FinancialService.cs
+52
-0
FinancialService2.cs
REBORN.Services.FinanceService/FinancialService2.cs
+1
-1
FinancialService3.cs
REBORN.Services.FinanceService/FinancialService3.cs
+114
-17
No files found.
REBORN.Module.FinanceModule/FinancialModule.cs
View file @
0331ae0c
...
...
@@ -870,28 +870,14 @@ namespace REBORN.Module.FinanceModule
else
{
//F_Query_AllIncomPay-查看所有
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_AllIncomPay,"
))
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_AllIncomPay,"
)
||
(
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Cashier,"
)
)
{
}
//F_Query_SelfBranch-查看本公司
else
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_SelfBranch,"
))
{
//日币 春花特殊权限
bool
IsJapanSelect
=
false
;
if
(
userInfo
.
EmployeeId
==
2739
&&
userInfo
.
RB_Group_id
==
2
)
{
IsJapanSelect
=
true
;
// 2024-07-25 邱老师同意 春花可以查询所有单据 主要为了核实 付款金额
//验证是否 日本账户&& (model.TradeWay == BranchAccountEnum.Bank || model.TradeWay == BranchAccountEnum.Cash) && model.BankID > 0
//var arModel = accountRelationRepository.GetList(new RB_AccountRelation() { AccountType = model.TradeWay, AccountID = model.BankID }).FirstOrDefault();
//if (arModel != null && arModel.RB_Branch_Id == userInfo.RB_Branch_id) {
// IsJapanSelect = true;
//}
}
if
(!
IsJapanSelect
)
{
model
.
RB_Branch_Id
=
userInfo
.
RB_Branch_id
;
}
model
.
RB_Branch_Id
=
userInfo
.
RB_Branch_id
;
}
//F_Query_SelfDepart查看本部门
else
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_SelfDepart,"
))
...
...
@@ -2116,34 +2102,32 @@ namespace REBORN.Module.FinanceModule
public
List
<
RB_Finance_Extend
>
GetList
(
RB_Finance_Extend
model
,
UserInfo
userInfo
)
{
//判断条件
//总公司财务
if
(
Config
.
FinanceDepartmentId
==
userInfo
.
RB_Department_Id
||
IsHeadOrFinacne
(
userInfo
))
userInfo
.
ActionMenuCode
=
GetActionCode
(
userInfo
.
RB_Post_Id
);
if
(
string
.
IsNullOrEmpty
(
userInfo
.
ActionMenuCode
))
{
//TODO不做操作
model
.
UpdateBy
=
userInfo
.
EmployeeId
;
}
//分公司财务和分公司负责人能查看自己所负责的出纳会计窗口的数据
else
if
(
IsBranchHeadOrFinacne
(
userInfo
))
else
{
//日币 春花特殊权限
bool
IsJapanSelect
=
false
;
if
(
userInfo
.
EmployeeId
==
2739
&&
userInfo
.
RB_Group_id
==
2
)
//F_Query_AllIncomPay-查看所有
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_AllIncomPay,"
)
||
(
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Cashier,"
))
{
IsJapanSelect
=
true
;
//验证是否 日本账户&& (model.TradeWay == BranchAccountEnum.Bank || model.TradeWay == BranchAccountEnum.Cash) && model.BankID > 0
//var arModel = accountRelationRepository.GetList(new RB_AccountRelation() { AccountType = model.TradeWay, AccountID = model.BankID }).FirstOrDefault();
//if (arModel != null && arModel.RB_Branch_Id == userInfo.RB_Branch_id)
//{
// IsJapanSelect = true;
//}
}
if
(!
IsJapanSelect
)
//F_Query_SelfBranch-查看本公司
else
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_SelfBranch,"
))
{
model
.
RB_Branch_Id
=
userInfo
.
RB_Branch_id
;
}
}
else
{
model
.
UpdateBy
=
userInfo
.
EmployeeId
;
//F_Query_SelfDepart查看本部门
else
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_SelfDepart,"
))
{
model
.
RB_Depart_Id
=
userInfo
.
RB_Department_Id
;
}
else
{
model
.
UpdateBy
=
userInfo
.
EmployeeId
;
}
}
//国内机票特殊处理
if
(
model
.
RB_Branch_Id
==
45
)
...
...
REBORN.Module.FinanceModule/FinancialModule3.cs
View file @
0331ae0c
...
...
@@ -3338,23 +3338,14 @@ namespace REBORN.Module.FinanceModule
else
{
//F_Query_AllIncomPay-查看所有
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_AllIncomPay,"
))
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_AllIncomPay,"
)
||
(
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Cashier,"
)
)
{
}
//F_Query_SelfBranch-查看本公司
else
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_SelfBranch,"
))
{
//日币 春花特殊权限
bool
IsJapanSelect
=
false
;
if
(
userInfo
.
EmployeeId
==
2739
&&
userInfo
.
RB_Group_id
==
2
)
{
IsJapanSelect
=
true
;
// 2024-07-25 邱老师同意 春花可以查询所有单据 主要为了核实 付款金额
}
if
(!
IsJapanSelect
)
{
model
.
RB_Branch_Id
=
userInfo
.
RB_Branch_id
;
}
model
.
RB_Branch_Id
=
userInfo
.
RB_Branch_id
;
}
else
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_SelfDepart,"
))
{
...
...
REBORN.Repository/User/Rb_employeeRepository.cs
View file @
0331ae0c
...
...
@@ -305,7 +305,7 @@ left join {nameof(RB_Post)} p on e.{nameof(RB_Employee.RB_Post_Id)}=p.{nameof(RB
}
if
(
where
.
RB_Branch_id
>=
0
)
{
sb
.
AppendFormat
(
" AND
RB_Employee.{0}={1}
"
,
nameof
(
Model
.
Entity
.
RB_Employee
.
RB_Branch_id
),
where
.
RB_Branch_id
);
sb
.
AppendFormat
(
" AND
(RB_Employee.{0}={1} or RB_Employee.IsGroupShow=1)
"
,
nameof
(
Model
.
Entity
.
RB_Employee
.
RB_Branch_id
),
where
.
RB_Branch_id
);
}
if
(
where
.
RB_Department_Id
>
0
)
{
...
...
REBORN.Services.FinanceService/FinancialService.cs
View file @
0331ae0c
...
...
@@ -6160,6 +6160,32 @@ namespace REBORN.Services.FinanceService
//{
// return ApiResult.Failed("请选择汇款/付款日期");
//}
#
region
权限
userInfo
.
ActionMenuCode
=
module
.
GetActionCode
(
userInfo
.
RB_Post_Id
);
if
(
string
.
IsNullOrEmpty
(
userInfo
.
ActionMenuCode
))
{
return
ApiResult
.
Failed
(
"没有权限"
);
}
else
{
//F_Query_AllIncomPay-查看所有
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_AllIncomPay,"
)
||
(
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Cashier,"
))
{
}
//F_Query_SelfBranch-查看本公司
else
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_SelfBranch,"
))
{
model
.
RB_Branch_Id
=
userInfo
.
RB_Branch_id
;
}
else
{
return
ApiResult
.
Failed
(
"没有权限"
);
}
}
#
endregion
var
data
=
module
.
GetAccountDetailList
(
model
,
out
_
,
out
_
);
var
list
=
data
.
Select
(
x
=>
new
{
...
...
@@ -6290,6 +6316,32 @@ namespace REBORN.Services.FinanceService
return
Common
.
Plugin
.
ExcelTempLateHelper
.
ToExcelExtend
(
slist
);
}
model
.
IsAirResponsibilitySelect
=
AccountToExcelType
==
2
?
11
:
0
;
#
region
权限
userInfo
.
ActionMenuCode
=
module
.
GetActionCode
(
userInfo
.
RB_Post_Id
);
if
(
string
.
IsNullOrEmpty
(
userInfo
.
ActionMenuCode
))
{
return
Common
.
Plugin
.
ExcelTempLateHelper
.
ToExcelExtend
(
slist
);
}
else
{
//F_Query_AllIncomPay-查看所有
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_AllIncomPay,"
)
||
(
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Cashier,"
))
{
}
//F_Query_SelfBranch-查看本公司
else
if
((
","
+
userInfo
.
ActionMenuCode
+
","
).
Contains
(
",F_Query_SelfBranch,"
))
{
model
.
RB_Branch_Id
=
userInfo
.
RB_Branch_id
;
}
else
{
return
Common
.
Plugin
.
ExcelTempLateHelper
.
ToExcelExtend
(
slist
);
}
}
#
endregion
var
list
=
module
.
GetAccountDetailList
(
model
,
out
_
,
out
_
);
#
endregion
if
(!
list
.
Any
())
...
...
REBORN.Services.FinanceService/FinancialService2.cs
View file @
0331ae0c
...
...
@@ -3423,7 +3423,7 @@ namespace REBORN.Services.FinanceService
model
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
if
((
model
.
BankList
==
null
||
model
.
BankList
.
Count
==
0
)
||
(
string
.
IsNullOrEmpty
(
model
.
sTradeDate
)
||
string
.
IsNullOrEmpty
(
model
.
eTradeDate
)))
{
return
ApiResult
.
Failed
(
"账户/交易日期必须选择
其中一个
"
);
return
ApiResult
.
Failed
(
"账户/交易日期必须选择"
);
}
if
(
model
.
BankList
!=
null
&&
model
.
BankList
.
Count
>
0
&&
(!
model
.
BankList
.
FirstOrDefault
().
Type
.
HasValue
||
model
.
BankList
.
FirstOrDefault
().
Type
.
Value
==
0
||
!
model
.
BankList
.
FirstOrDefault
().
AccountId
.
HasValue
||
model
.
BankList
.
FirstOrDefault
().
AccountId
.
Value
==
0
))
{
...
...
REBORN.Services.FinanceService/FinancialService3.cs
View file @
0331ae0c
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