Commit dc9f1c24 authored by liudong1993's avatar liudong1993

1

parent 2b3168e9
...@@ -3151,6 +3151,16 @@ TEL:03-3779-9111"; ...@@ -3151,6 +3151,16 @@ TEL:03-3779-9111";
var guestList = new List<RB_Travel_Guest_Extend>(); var guestList = new List<RB_Travel_Guest_Extend>();
if (model.Id > 0) if (model.Id > 0)
{ {
if (VisaProductModel.Id == 0)//签证要新增
{
var hotelId = sell_VisaProductRepository.Insert(VisaProductModel, trans);
if (hotelId > 0)
{
VisaProductModel.Id = hotelId;
model.VisaId = hotelId;
}
}
visaOrderId = model.Id; visaOrderId = model.Id;
guestList = GuestRepository.GetPeopleList(new RB_Travel_Guest_Extend { OrderId = visaOrderId, IsAllograph = 1 }).OrderByDescending(x => x.Id).ToList(); guestList = GuestRepository.GetPeopleList(new RB_Travel_Guest_Extend { OrderId = visaOrderId, IsAllograph = 1 }).OrderByDescending(x => x.Id).ToList();
if (model.PeopleNum < tempModel.PeopleNum && model.VisaPlanId > 0)//小于之前的人数就删除 if (model.PeopleNum < tempModel.PeopleNum && model.VisaPlanId > 0)//小于之前的人数就删除
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment