Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PropertyEdu
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
PropertyEdu
Commits
dcde14c7
Commit
dcde14c7
authored
May 14, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3a7e30ec
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
42 additions
and
10 deletions
+42
-10
RB_Supplies_Material_Extend.cs
...erty.Model/Extend/Supplies/RB_Supplies_Material_Extend.cs
+5
-0
PropertyModule.cs
Property.Modele.FixedAssets/PropertyModule.cs
+4
-1
SuppliesModule.cs
Property.Modele.FixedAssets/SuppliesModule.cs
+9
-5
RB_Property_BuyingRequisitionRepository.cs
...itory/Property/RB_Property_BuyingRequisitionRepository.cs
+7
-0
RB_Property_ProcurementRepository.cs
....Repository/Property/RB_Property_ProcurementRepository.cs
+4
-0
RB_Supplies_ProcurementRepository.cs
....Repository/Supplies/RB_Supplies_ProcurementRepository.cs
+4
-0
RB_Supplies_StockInRepository.cs
...erty.Repository/Supplies/RB_Supplies_StockInRepository.cs
+4
-1
RB_Supplies_StockOutApplyForRepository.cs
...sitory/Supplies/RB_Supplies_StockOutApplyForRepository.cs
+2
-2
WarehouseController.cs
Property.WebApi/Controllers/Mall/WarehouseController.cs
+1
-0
SuppliesController.cs
Property.WebApi/Controllers/Property/SuppliesController.cs
+2
-1
No files found.
Property.Model/Extend/Supplies/RB_Supplies_Material_Extend.cs
View file @
dcde14c7
...
...
@@ -30,6 +30,11 @@ namespace Property.Model.Extend
/// 仓库id
/// </summary>
public
int
?
WareHouseId
{
get
;
set
;
}
/// <summary>
/// 是否查询库存 1是
/// </summary>
public
int
?
IsSelectInventory
{
get
;
set
;
}
/// <summary>
/// 库存数量
/// </summary>
...
...
Property.Modele.FixedAssets/PropertyModule.cs
View file @
dcde14c7
...
...
@@ -3807,6 +3807,8 @@ namespace Property.Module.FixedAssets
{
var
list
=
property_BuyingRequisitionRepository
.
GetPageList
(
pageIndex
,
pageSize
,
demodel
,
out
count
);
if
(
list
.
Any
())
{
string
SchoolIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
SchoolId
).
Distinct
());
var
slist
=
schoolRepository
.
GetSchoolListRepository
(
new
RB_School_ViewModel
()
{
Group_Id
=
demodel
.
RB_Group_Id
??
0
,
QSIds
=
SchoolIds
});
foreach
(
var
item
in
list
)
{
if
(
item
.
Images
==
""
||
item
.
Images
==
null
)
{
...
...
@@ -3818,6 +3820,7 @@ namespace Property.Module.FixedAssets
{
item
.
ImageList
.
Add
(
Config
.
GetFileUrl
(
img
));
}
item
.
SchoolName
=
slist
.
Where
(
x
=>
x
.
SId
==
item
.
SchoolId
).
FirstOrDefault
()?.
SName
??
""
;
}
}
return
list
;
...
...
@@ -4507,7 +4510,7 @@ namespace Property.Module.FixedAssets
//先生成采购信息
demodel
.
SupplierName
=
supplierModel
.
Name
;
demodel
.
TotalNumber
=
demodel
.
DetailList
.
Sum
(
x
=>
x
.
Number
);
demodel
.
TotalCostMoney
=
demodel
.
DetailList
.
Sum
(
x
=>
x
.
CostMoney
);
demodel
.
TotalCostMoney
=
demodel
.
DetailList
.
Sum
(
x
=>
x
.
CostMoney
*
x
.
Number
);
demodel
.
StockInStatus
=
1
;
int
ProcurementId
=
property_ProcurementRepository
.
Insert
(
demodel
);
if
(
ProcurementId
>
0
)
{
...
...
Property.Modele.FixedAssets/SuppliesModule.cs
View file @
dcde14c7
...
...
@@ -205,6 +205,10 @@ namespace Property.Module.FixedAssets
string
Sstr
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
Id
).
Distinct
());
iList
=
supplies_InventoryRepository
.
GetList
(
new
RB_Supplies_Inventory_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
WarehouseIdStr
=
demodel
.
WareHouseId
.
Value
.
ToString
(),
SuppliesIdStr
=
Sstr
});
}
if
(
demodel
.
IsSelectInventory
==
1
&&
list
.
Any
())
{
string
Sstr
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
Id
).
Distinct
());
iList
=
supplies_InventoryRepository
.
GetList
(
new
RB_Supplies_Inventory_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
SuppliesIdStr
=
Sstr
});
}
foreach
(
var
item
in
list
)
{
if
(
item
.
Images
==
""
||
item
.
Images
==
null
)
...
...
@@ -217,7 +221,7 @@ namespace Property.Module.FixedAssets
{
item
.
ImageList
.
Add
(
Config
.
GetFileUrl
(
img
));
}
item
.
InventoryNum
=
iList
.
Where
(
x
=>
x
.
SuppliesId
==
item
.
Id
)
.
FirstOrDefault
()?.
Number
??
0
;
item
.
InventoryNum
=
iList
.
Where
(
x
=>
x
.
SuppliesId
==
item
.
Id
)
?.
Sum
(
x
=>
x
.
Number
??
0
)
;
item
.
GoodsSpecificationList
=
new
List
<
string
>();
item
.
GoodsCategoryList
=
new
List
<
string
>();
if
(!
string
.
IsNullOrEmpty
(
item
.
SpecificationName
))
...
...
@@ -3909,7 +3913,7 @@ namespace Property.Module.FixedAssets
//先生成采购信息
demodel
.
SupplierName
=
supplierModel
.
Name
;
demodel
.
TotalNumber
=
demodel
.
DetailList
.
Sum
(
x
=>
x
.
Number
);
demodel
.
TotalCostMoney
=
demodel
.
DetailList
.
Sum
(
x
=>
x
.
CostMoney
);
demodel
.
TotalCostMoney
=
demodel
.
DetailList
.
Sum
(
x
=>
x
.
CostMoney
*
x
.
Number
);
demodel
.
StockInStatus
=
1
;
int
ProcurementId
=
supplies_ProcurementRepository
.
Insert
(
demodel
);
if
(
ProcurementId
>
0
)
...
...
@@ -4013,7 +4017,7 @@ namespace Property.Module.FixedAssets
}
};
property_BuyingRequisitionRepository
.
Update
(
keyValues
,
wheres
);
Remark
=
"通过请购单【"
+
demodel
.
BuyingRequisitionId
+
"】生成
资产
采购单;"
;
Remark
=
"通过请购单【"
+
demodel
.
BuyingRequisitionId
+
"】生成
耗材
采购单;"
;
}
//更新采购信息 单据id
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
...
...
@@ -4046,7 +4050,7 @@ namespace Property.Module.FixedAssets
}
};
property_BuyingRequisitionRepository
.
Update
(
keyValues
,
wheres
);
Remark
=
"通过请购单【"
+
demodel
.
BuyingRequisitionId
+
"】生成
资产
采购单;"
;
Remark
=
"通过请购单【"
+
demodel
.
BuyingRequisitionId
+
"】生成
耗材
采购单;"
;
}
//更新采购信息 单据id
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
...
...
@@ -4755,7 +4759,7 @@ namespace Property.Module.FixedAssets
var
financeObj
=
new
{
demodel
.
CreateBy
,
userInfo
.
EmployeeId
,
IsPublic
=
0
,
//存货出库
ClientType
=
10
,
configModel
.
ClientID
,
...
...
Property.Repository/Property/RB_Property_BuyingRequisitionRepository.cs
View file @
dcde14c7
...
...
@@ -29,6 +29,9 @@ namespace Property.Repository
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
Name
))
{
where
+=
" and pb."
+
nameof
(
RB_Property_BuyingRequisition_Extend
.
Name
)
+
" like '%"
+
dmodel
.
Name
+
"%'"
;
}
if
(
dmodel
.
Id
>
0
)
{
where
+=
" and pb."
+
nameof
(
RB_Property_BuyingRequisition_Extend
.
Id
)
+
" ="
+
dmodel
.
Id
;
}
if
(
dmodel
.
Type
>
0
)
{
where
+=
" and pb."
+
nameof
(
RB_Property_BuyingRequisition_Extend
.
Type
)
+
" ="
+
dmodel
.
Type
;
}
...
...
@@ -112,6 +115,10 @@ left join rb_property_category pc on pb.CategoryId = pc.Id
where
+=
" and pu."
+
nameof
(
RB_Property_BuyingRequisition_Extend
.
Name
)
+
" like @Name"
;
parameters
.
Add
(
"Name"
,
"%"
+
dmodel
.
Name
+
"%"
);
}
if
(
dmodel
.
Id
>
0
)
{
where
+=
" and pu."
+
nameof
(
RB_Property_BuyingRequisition_Extend
.
Id
)
+
"="
+
dmodel
.
Id
;
}
if
(
dmodel
.
CategoryId
>
0
)
{
where
+=
" and pu."
+
nameof
(
RB_Property_BuyingRequisition_Extend
.
CategoryId
)
+
"="
+
dmodel
.
CategoryId
;
...
...
Property.Repository/Property/RB_Property_ProcurementRepository.cs
View file @
dcde14c7
...
...
@@ -30,6 +30,10 @@ namespace Property.Repository
{
where
+=
" and pc."
+
nameof
(
RB_Property_Procurement_Extend
.
SchoolId
)
+
"="
+
dmodel
.
SchoolId
;
}
if
(
dmodel
.
Id
>
0
)
{
where
+=
" and pc."
+
nameof
(
RB_Property_Procurement_Extend
.
Id
)
+
"="
+
dmodel
.
Id
;
}
if
(
dmodel
.
StockInStatus
>
0
)
{
where
+=
" and pc."
+
nameof
(
RB_Property_Procurement_Extend
.
StockInStatus
)
+
"="
+
dmodel
.
StockInStatus
;
...
...
Property.Repository/Supplies/RB_Supplies_ProcurementRepository.cs
View file @
dcde14c7
...
...
@@ -30,6 +30,10 @@ namespace Property.Repository
{
where
+=
" and pc."
+
nameof
(
RB_Supplies_Procurement_Extend
.
SchoolId
)
+
"="
+
dmodel
.
SchoolId
;
}
if
(
dmodel
.
Id
>
0
)
{
where
+=
" and pc."
+
nameof
(
RB_Supplies_Procurement_Extend
.
Id
)
+
"="
+
dmodel
.
Id
;
}
if
(
dmodel
.
StockInStatus
>
0
)
{
where
+=
" and pc."
+
nameof
(
RB_Supplies_Procurement_Extend
.
StockInStatus
)
+
"="
+
dmodel
.
StockInStatus
;
...
...
Property.Repository/Supplies/RB_Supplies_StockInRepository.cs
View file @
dcde14c7
...
...
@@ -58,6 +58,9 @@ namespace Property.Repository
if
(
dmodel
.
FinanceId
>
0
)
{
where
+=
" and p.FinanceId ="
+
dmodel
.
FinanceId
;
}
if
(
dmodel
.
ProcurementId
>
0
)
{
where
+=
" and ss.ProcurementId ="
+
dmodel
.
ProcurementId
;
}
if
(
dmodel
.
StockInState
>
0
)
{
where
+=
" and ss."
+
nameof
(
RB_Supplies_StockIn_Extend
.
StockInState
)
+
"="
+
(
int
)
dmodel
.
StockInState
;
}
...
...
@@ -66,7 +69,7 @@ namespace Property.Repository
left join rb_supplies_warehouse sw on ss.WarehouseId=sw.Id
left join rb_supplies_stockindetail ssd on ss.Id=ssd.StockInId
left join rb_supplies_material sm on ssd.SuppliesId=sm.Id
left join
RB_P
rocurement p on ss.ProcurementId=p.Id
left join
rb_supplies_p
rocurement p on ss.ProcurementId=p.Id
{
where
}
group by ss.Id order by ss.Id desc"
;
return
GetPage
<
RB_Supplies_StockIn_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
}
...
...
Property.Repository/Supplies/RB_Supplies_StockOutApplyForRepository.cs
View file @
dcde14c7
...
...
@@ -61,7 +61,7 @@ namespace Property.Repository
left join rb_supplies_stockoutapplyfordetail pc2 on pc.Id=pc2.ApplyForId
left join rb_supplies_material m on pc2.SuppliesId = m.Id
{
where
}
group by pc.Id order by pc.Id desc"
;
return
GetPage
<
RB_Supplies_StockOutApplyFor_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
return
GetPage
<
RB_Supplies_StockOutApplyFor_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
,
parms
).
ToList
();
}
/// <summary>
...
...
@@ -106,7 +106,7 @@ left join rb_supplies_material m on pc2.SuppliesId = m.Id
left join rb_supplies_stockoutapplyfordetail pc2 on pc.Id=pc2.ApplyForId
left join rb_supplies_material m on pc2.SuppliesId = m.Id
{
where
}
group by pc.Id order by pc.Id desc"
;
return
Get
<
RB_Supplies_StockOutApplyFor_Extend
>(
sql
).
ToList
();
return
Get
<
RB_Supplies_StockOutApplyFor_Extend
>(
sql
,
parms
).
ToList
();
}
}
}
Property.WebApi/Controllers/Mall/WarehouseController.cs
View file @
dcde14c7
...
...
@@ -73,6 +73,7 @@ namespace Property.WebApi.Controllers.Mall
x
.
WareHouseName
,
x
.
WarehouseId
,
x
.
Remark
,
x
.
ApplyForId
,
x
.
EmployeeId
,
EmName
=
CacheManager
.
User
.
UserReidsCache
.
GetEmployee
(
x
.
EmployeeId
)?.
EmName
??
""
,
DetailList
=
x
.
DetailList
.
Select
(
z
=>
new
...
...
Property.WebApi/Controllers/Property/SuppliesController.cs
View file @
dcde14c7
...
...
@@ -669,6 +669,7 @@ namespace Property.WebApi.Controllers.User
x
.
WareHouseName
,
x
.
WarehouseId
,
x
.
Remark
,
x
.
ApplyForId
,
x
.
EmployeeId
,
EmName
=
CacheManager
.
User
.
UserReidsCache
.
GetEmployee
(
x
.
EmployeeId
)?.
EmName
??
""
,
DetailList
=
x
.
DetailList
.
Select
(
z
=>
new
...
...
@@ -3311,7 +3312,7 @@ namespace Property.WebApi.Controllers.User
{
return
ApiResult
.
ParamIsNull
(
"仓库盘点中,不能出库"
);
}
demodel
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
string
msg
=
suppliesModule
.
SetSuppliesApplyForStockOut
(
demodel
,
userInfo
);
if
(
msg
==
""
)
{
...
...
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