Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
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
Property
Commits
1ae6a775
Commit
1ae6a775
authored
Jul 31, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/liudong1993/property
parents
bc7c25d3
decbd10b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
SuppliesModule.cs
Property.Modele.FixedAssets/SuppliesModule.cs
+8
-3
No files found.
Property.Modele.FixedAssets/SuppliesModule.cs
View file @
1ae6a775
...
...
@@ -2700,9 +2700,11 @@ namespace Property.Module.FixedAssets
AccountNumber
=
System
.
DateTime
.
Now
.
AddDays
(-
1
).
ToString
(
"yyyyMMdd"
),
TemplateId
=
130
,
OrderSource
=
16
,
OtherType
=
17
,
Remark
=
System
.
DateTime
.
Now
.
ToString
(
"yyyy年MM月dd日"
)
+
"自动生成财务单据"
,
detailList
,
RB_Depart_Id
=
RB_Department_Id
RB_Depart_Id
=
RB_Department_Id
,
ReFinanceId
=
Id
};
sign
=
EncryptionHelper
.
AesEncrypt
(
JsonHelper
.
Serialize
(
financeObj
),
Config
.
FinanceKey
);
}
...
...
@@ -2731,14 +2733,16 @@ namespace Property.Module.FixedAssets
applyModel
.
DetailList
.
ForEach
(
x
=>
x
.
CreateDate
=
applyModel
.
CreateDate
);
applyModel
.
DetailList
.
ForEach
(
x
=>
x
.
RB_Branch_Id
=
applyModel
.
RB_Branch_Id
);
applyModel
.
DetailList
.
ForEach
(
x
=>
x
.
RB_Group_Id
=
applyModel
.
RB_Group_Id
);
applyModel
.
DetailList
.
ForEach
(
x
=>
x
.
Remark
=
applyModel
.
Remark
);
//更新已出库的商品信息
foreach
(
var
item
in
applyModel
.
DetailList
)
//更新盘点商品的盘点状态
{
Dictionary
<
string
,
object
>
filesApplyGoods
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Supplies_CheckDetail
.
DealStatus
),
1
},
{
nameof
(
RB_Supplies_CheckDetail
.
UpdateBy
),
applyModel
.
CreateBy
},
{
nameof
(
RB_Supplies_CheckDetail
.
UpdateDate
),
applyModel
.
CreateDate
}
{
nameof
(
RB_Supplies_CheckDetail
.
UpdateDate
),
applyModel
.
CreateDate
},
{
nameof
(
RB_Supplies_CheckDetail
.
FinanceId
),
frid
},
{
nameof
(
RB_Supplies_CheckDetail
.
Remark
),
item
.
Remark
+(
string
.
IsNullOrWhiteSpace
(
item
.
Remark
)?
""
:
","
)+
" 自动生成财务单据:"
+
frid
+
",最新单价:"
+
Math
.
Round
((
item
.
ReportLossPrice
??
0
)
/
(
item
.
ReportLossNum
??
1
),
2
,
MidpointRounding
.
AwayFromZero
)},
};
List
<
WhereHelper
>
wheresApplyGoods
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
...
...
@@ -2749,6 +2753,7 @@ namespace Property.Module.FixedAssets
};
supplies_CheckDetailRepository
.
Update
(
filesApplyGoods
,
wheresApplyGoods
,
trans
);
}
applyModel
.
DetailList
.
ForEach
(
x
=>
x
.
Remark
=
applyModel
.
Remark
);
//新增盘点商品的信息
suppliesReportLossRecordDetailRepository
.
InsertBatch
(
applyModel
.
DetailList
,
trans
);
}
...
...
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