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
c4910a26
Commit
c4910a26
authored
Aug 20, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
faaf7596
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
9 deletions
+32
-9
CustomerOrderModule.cs
REBORN.Module.SellModule/CustomerOrderModule.cs
+32
-9
No files found.
REBORN.Module.SellModule/CustomerOrderModule.cs
View file @
c4910a26
...
...
@@ -5085,6 +5085,38 @@ namespace REBORN.Module.SellModule
/// <returns></returns>
public
string
SetGuestOrderInfo
(
RB_CRMTicket_Order_Extend
demodel
,
RB_Supplier
supplierModel
,
List
<
RB_Appoint_OP
>
appointOPList
,
UserInfo
userInfo
)
{
if
(
supplierModel
.
ID
==
0
)
//供应商要新增
{
var
supplierId
=
supplierRepository
.
Insert
(
supplierModel
);
if
(
supplierId
>
0
)
{
supplierModel
.
ID
=
supplierId
;
demodel
.
SupplierId
=
supplierId
;
}
}
else
{
demodel
.
SupplierId
=
supplierModel
.
ID
;
IDictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Supplier
.
Name
),
supplierModel
.
Name
},
{
nameof
(
RB_Supplier
.
Contact
),
supplierModel
.
Contact
},
{
nameof
(
RB_Supplier
.
CompanyName
),
supplierModel
.
CompanyName
},
{
nameof
(
RB_Supplier
.
UpdateBy
),
supplierModel
.
UpdateBy
},
{
nameof
(
RB_Supplier
.
UpdateDate
),
DateTime
.
Now
},
{
nameof
(
RB_Supplier
.
DutyParagraph
),
supplierModel
.
DutyParagraph
},
{
nameof
(
RB_Supplier
.
Tel
),
supplierModel
.
Tel
},
{
nameof
(
RB_Supplier
.
CompanyPhone
),
supplierModel
.
CompanyPhone
},
{
nameof
(
RB_Supplier
.
OpeningBank
),
supplierModel
.
OpeningBank
},
{
nameof
(
RB_Supplier
.
BankNo
),
supplierModel
.
BankNo
},
};
IList
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Supplier
.
ID
),
FiledValue
=
supplierModel
.
ID
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
supplierRepository
.
Update
(
fileds
,
whereHelpers
);
}
if
(
demodel
.
OrderId
>
0
)
{
var
oldModel
=
cRMTicket_OrderRepository
.
GetEntity
(
demodel
.
OrderId
);
...
...
@@ -5213,15 +5245,6 @@ namespace REBORN.Module.SellModule
}
else
{
if
(
supplierModel
.
ID
==
0
)
//供应商要新增
{
var
supplierId
=
supplierRepository
.
Insert
(
supplierModel
);
if
(
supplierId
>
0
)
{
supplierModel
.
ID
=
supplierId
;
demodel
.
SupplierId
=
supplierId
;
}
}
int
OrderId
=
cRMTicket_OrderRepository
.
Insert
(
demodel
);
if
(
OrderId
>
0
)
{
...
...
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