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
b8e01522
Commit
b8e01522
authored
Aug 31, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
821dd112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
28 deletions
+29
-28
PropertyModule.cs
Mall.Module.Property/PropertyModule.cs
+29
-28
No files found.
Mall.Module.Property/PropertyModule.cs
View file @
b8e01522
...
...
@@ -89,10 +89,7 @@ namespace Mall.Module.Property
/// 采购单明细
/// </summary>
private
readonly
RB_Procurement_DetailRepository
procurement_DetailRepository
=
new
RB_Procurement_DetailRepository
();
/// <summary>
/// 员工
/// </summary>
private
readonly
RB_EmployeeRepository
employeeRepository
=
new
RB_EmployeeRepository
();
/// <summary>
/// 仓库
/// </summary>
...
...
@@ -268,17 +265,19 @@ namespace Mall.Module.Property
}
else
{
item
.
SpecificationPriceList
=
new
List
<
RB_Goods_SpecificationPrice_Extend
>();
item
.
SpecificationPriceList
.
Add
(
new
RB_Goods_SpecificationPrice_Extend
()
item
.
SpecificationPriceList
=
new
List
<
RB_Goods_SpecificationPrice_Extend
>
{
Id
=
item
.
GoodsId
??
0
,
GoodsId
=
item
.
GoodsId
,
GoodsNumbers
=
item
.
GoodsNumbers
,
GoodsWeight
=
item
.
GoodsWeight
,
InventoryNum
=
item
.
InventoryNum
,
SpecificationSort
=
""
,
AttrList
=
new
List
<
string
>()
{
"规格:"
+
item
.
DefaultSpecificationName
}
});
new
RB_Goods_SpecificationPrice_Extend
()
{
Id
=
item
.
GoodsId
??
0
,
GoodsId
=
item
.
GoodsId
,
GoodsNumbers
=
item
.
GoodsNumbers
,
GoodsWeight
=
item
.
GoodsWeight
,
InventoryNum
=
item
.
InventoryNum
,
SpecificationSort
=
""
,
AttrList
=
new
List
<
string
>()
{
"规格:"
+
item
.
DefaultSpecificationName
}
}
};
}
}
}
...
...
@@ -637,20 +636,22 @@ namespace Mall.Module.Property
}
#
region
生成入库单
RB_Supplies_StockIn_Extend
stockInModel
=
new
RB_Supplies_StockIn_Extend
();
stockInModel
.
ProcurementId
=
pModel
.
Id
;
stockInModel
.
WarehouseId
=
pModel
.
WareHouseId
;
stockInModel
.
StockInDate
=
DateTime
.
Now
;
stockInModel
.
Status
=
0
;
stockInModel
.
RB_Branch_Id
=
eRPBranchId
;
stockInModel
.
RB_Group_Id
=
eRPGroupId
;
stockInModel
.
CreateBy
=
eRPEmpId
;
stockInModel
.
CreateDate
=
DateTime
.
Now
;
stockInModel
.
UpdateBy
=
eRPEmpId
;
stockInModel
.
UpdateDate
=
DateTime
.
Now
;
stockInModel
.
SupplierName
=
pModel
.
SupplierName
;
stockInModel
.
DetailList
=
new
List
<
RB_Supplies_StockInDetail_Extend
>();
stockInModel
.
Money
=
0
;
RB_Supplies_StockIn_Extend
stockInModel
=
new
RB_Supplies_StockIn_Extend
{
ProcurementId
=
pModel
.
Id
,
WarehouseId
=
pModel
.
WareHouseId
,
StockInDate
=
DateTime
.
Now
,
Status
=
0
,
RB_Branch_Id
=
eRPBranchId
,
RB_Group_Id
=
eRPGroupId
,
CreateBy
=
eRPEmpId
,
CreateDate
=
DateTime
.
Now
,
UpdateBy
=
eRPEmpId
,
UpdateDate
=
DateTime
.
Now
,
SupplierName
=
pModel
.
SupplierName
,
DetailList
=
new
List
<
RB_Supplies_StockInDetail_Extend
>(),
Money
=
0
};
foreach
(
var
item
in
demodel
.
DetailList
)
{
var
dModel
=
DetailList
.
Where
(
x
=>
x
.
GoodsId
==
item
.
GoodsId
&&
x
.
SpecificationKey
==
item
.
SpecificationKey
).
FirstOrDefault
();
...
...
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