|
|
@ -234,7 +234,6 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
|
|
|
|
sMsg = Util.GetLastExceptionMsg(ex); |
|
|
|
LogAndSendEmail(sMsg + "Params:" + JsonToString(i_crm), ex, i_crm.ORIGID, i_crm.USERID, nameof(BookingMaintain_QryService), "", "QueryPage 預訂管理(分頁查詢)", "", "", ""); |
|
|
|
System.Diagnostics.Debug.WriteLine("預訂管理 sMsg" + ": " + sMsg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -734,7 +733,6 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
{ |
|
|
|
|
|
|
|
var rsBookingDic = new Dictionary<string, BookingDTO>(); |
|
|
|
|
|
|
|
var BookingDic = FindAllByIDsAsDictionary(sBookingID, sBookingNo, sAccount); |
|
|
|
|
|
|
|
MemberMaintain_QryService mm_qry = new MemberMaintain_QryService(); |
|
|
@ -780,52 +778,63 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
if (!string.IsNullOrEmpty(Booking.ServiceID)) |
|
|
|
{ |
|
|
|
|
|
|
|
var Service = Booking.OnSiteService; |
|
|
|
|
|
|
|
var Service = Booking.OnSiteService; ////////////////////////////////////Service is null
|
|
|
|
if (OnSiteServiceDic.ContainsKey(Booking.ServiceID)) { |
|
|
|
Service = OnSiteServiceDic[Booking.ServiceID]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
rsService.ServiceID = Service.ServiceID; |
|
|
|
rsService.ServiceName = Service.ServiceName; |
|
|
|
var ServiceLogoPath = AllFileDic.Values.Where(w => w.ParentID == Service.PreviewFile).Select(s => s.FilePath).FirstOrDefault(); |
|
|
|
rsService.Logo = SEFileService.FilePathToURL(ServiceLogoPath); |
|
|
|
if (Service != null) { |
|
|
|
rsService.ServiceID = Service.ServiceID; |
|
|
|
rsService.ServiceName = Service.ServiceName; |
|
|
|
var ServiceLogoPath = AllFileDic.Values.Where(w => w.ParentID == Service.PreviewFile).Select(s => s.FilePath).FirstOrDefault(); |
|
|
|
rsService.Logo = SEFileService.FilePathToURL(ServiceLogoPath); |
|
|
|
} |
|
|
|
|
|
|
|
//rsService.BoothNo = "";
|
|
|
|
|
|
|
|
List<string> SubCategoryIDs = new List<string>(); |
|
|
|
if (Service != null) |
|
|
|
{ |
|
|
|
if (!string.IsNullOrEmpty(Service.SubCategoryID)) |
|
|
|
{ |
|
|
|
SubCategoryIDs = JsonConvert.DeserializeObject<List<string>>(Service.SubCategoryID); |
|
|
|
} |
|
|
|
rsService.SubCategoryIDs = SubCategoryIDs; |
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(Service.SubCategoryID)) { |
|
|
|
SubCategoryIDs = JsonConvert.DeserializeObject<List<string>>(Service.SubCategoryID); |
|
|
|
} |
|
|
|
|
|
|
|
rsService.SubCategoryIDs = SubCategoryIDs; |
|
|
|
|
|
|
|
var rsSupplier = new View_SCM_Supplier(); |
|
|
|
|
|
|
|
if (rsSupplierDic.ContainsKey(Service.SupplierID)) |
|
|
|
if (Service != null) |
|
|
|
{ |
|
|
|
rsSupplier = rsSupplierDic[Service.SupplierID]; |
|
|
|
if (rsSupplierDic.ContainsKey(Service.SupplierID)) |
|
|
|
{ |
|
|
|
rsSupplier = rsSupplierDic[Service.SupplierID]; |
|
|
|
|
|
|
|
ProviderDTO Provider = new ProviderDTO(); |
|
|
|
Provider.ProviderID = rsSupplier.SupplierID; |
|
|
|
Provider.ProviderName = rsSupplier.CompanyName; |
|
|
|
Provider.ProviderStatus = Booking.SupplierStatus; |
|
|
|
ProviderDTO Provider = new ProviderDTO(); |
|
|
|
Provider.ProviderID = rsSupplier.SupplierID; |
|
|
|
Provider.ProviderName = rsSupplier.CompanyName; |
|
|
|
Provider.ProviderStatus = Booking.SupplierStatus; |
|
|
|
|
|
|
|
var ProviderLogoPath = AllFileDic.Values.Where(w => w.ParentID == rsSupplier.LogoFile).Select(s => s.FilePath).FirstOrDefault(); |
|
|
|
Provider.Logo = SEFileService.FilePathToURL(ProviderLogoPath); |
|
|
|
var ProviderLogoPath = AllFileDic.Values.Where(w => w.ParentID == rsSupplier.LogoFile).Select(s => s.FilePath).FirstOrDefault(); |
|
|
|
Provider.Logo = SEFileService.FilePathToURL(ProviderLogoPath); |
|
|
|
|
|
|
|
rsService.Provider = Provider; |
|
|
|
rsService.Provider = Provider; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
rsService.ServiceStartDate = Booking.ServiceDateS; |
|
|
|
rsService.ServiceEndDate = Booking.ServiceDateE; |
|
|
|
rsBooking.CancellationPolicy = Service.CancelPolicy; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
rsService.ServiceStartDate = Booking.ServiceDateS; |
|
|
|
rsService.ServiceEndDate = Booking.ServiceDateE; |
|
|
|
|
|
|
|
rsBooking.CancellationPolicy = Service.CancelPolicy; |
|
|
|
rsBooking.OnSiteService = rsService; |
|
|
|
|
|
|
|
} |
|
|
|
rsBooking.OnSiteService = rsService; |
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(Booking.OrderQuestion)) |
|
|
|
{ |
|
|
@ -850,7 +859,6 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
rsMember.FirstName = Member.FirstName; |
|
|
|
rsMember.LastName = Member.LastName; |
|
|
|
rsMember.Email = Member.Email; |
|
|
|
|
|
|
|
rsBooking.Member = rsMember; |
|
|
|
|
|
|
|
} |
|
|
|