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
ddc31604
Commit
ddc31604
authored
Sep 23, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
af0a1a3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+16
-0
No files found.
Mall.Module.Product/GuideCarModule.cs
View file @
ddc31604
...
...
@@ -2416,6 +2416,22 @@ namespace Mall.Module.Product
date_remark
=
"剩余座位数不足,请重新选择出发日期"
;
}
#
region
线路验证
if
(
gmodel
.
CarType
==
GuideCarGoodsTypeEnum
.
Line
)
{
var
tdlist
=
goods_TargetDateRepository
.
GetList
(
new
RB_Goods_TargetDate_Extend
()
{
GoodsId
=
item
.
GoodsId
??
0
,
StartTime
=
demodel
.
TripSTime
.
Value
.
ToString
(
"yyyy-MM-dd"
),
EndTime
=
demodel
.
TripETime
.
Value
.
ToString
(
"yyyy-MM-dd"
)
});
var
firstModel
=
tdlist
.
OrderBy
(
x
=>
x
.
Date
).
FirstOrDefault
();
var
endModel
=
tdlist
.
OrderByDescending
(
x
=>
x
.
Date
).
FirstOrDefault
();
if
(
endModel
!=
null
&&
endModel
.
IsReserve
==
2
)
{
date_enable
=
false
;
date_remark
=
"日期范围不在可预定的范围内,请提前日期选择"
;
}
if
(
endModel
!=
null
&&
endModel
.
IsReserve
==
1
&&
endModel
.
ReserveNum
>
0
){
date_enable
=
false
;
date_remark
=
"日期范围不在可预定的范围内,请提前日期选择"
;
}
}
#
endregion
string
SiteName
=
sitelist
.
Where
(
x
=>
x
.
ID
==
gmodel
.
SiteId
).
FirstOrDefault
()?.
SiteName
??
""
;
var
guideModel
=
guidelist
.
Where
(
x
=>
x
.
ID
==
gmodel
.
GuideId
).
FirstOrDefault
();
string
GuideName
=
guideModel
?.
Name
??
""
;
...
...
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