| 
					
				 | 
			
			
				@@ -396,12 +396,14 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #region 酒店预定费用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 List<GroupHotelFeeView> groupHotelFeeViews = new List<GroupHotelFeeView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //ccp.RMBPrice As CNYPrice 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //(((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100) As CNYPrice 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 string hotelFeeSql = string.Format(@"Select hr.Id As HrId,hr.DiId As HrDiId,hr.City,hr.HotelName,hr.CheckInDate,hr.CheckOutDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      sd1.Name As PaymentCurrency,hr.SingleRoomPrice,hr.SingleRoomCount,hr.DoubleRoomPrice, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      hr.DoubleRoomCount,hr.SuiteRoomPrice,hr.SuiteRoomCount,hr.OtherRoomPrice,hr.OtherRoomCount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      hr.BreakfastPrice,sd4.Name As BreakfastCurrency,hr.Isoppay,hr.GovernmentRent, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      sd5.Name As GovernmentRentCurrency,hr.CityTax,sd6.Name As CityTaxCurrency, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                     ccp.PayMoney,ccp.RMBPrice As CNYPrice,ccp.DayRate,ccp.Payee,ccp.OrbitalPrivateTransfer, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                     ccp.PayMoney,(((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100) As CNYPrice,ccp.DayRate,ccp.Payee,ccp.OrbitalPrivateTransfer, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      sd2.Name As PayWay,sd3.Name As CardType,ccp.IsPay,u.CnName As Applicant 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      From Grp_HotelReservations  hr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                      Left Join Grp_CreditCardPayment ccp On hr.Id = ccp.CId 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -537,11 +539,12 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #region 机票预订费用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //(((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100) As CNYPrice 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //ccp.RMBPrice As CNYPrice 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 List<GroupAirFeeView> groupAirFeeViews = new List<GroupAirFeeView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 string groupAirFeeSql = string.Format(@"Select atr.Id As AirId,atr.DIId As AirDiId,atr.FlightsCode,atr.FlightsCity,sd4.Name As AirTypeName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                         atr.FlightsDate,atr.FlightsTime,atr.ClientName,atr.ClientNum,ccp.PayMoney, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                        sd1.Name As PayMoneyCurrency,ccp.RMBPrice As CNYPrice,ccp.DayRate,ccp.Payee,ccp.AuditGMDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                        sd1.Name As PayMoneyCurrency,(((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100) As CNYPrice,ccp.DayRate,ccp.Payee,ccp.AuditGMDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                         ccp.OrbitalPrivateTransfer,sd2.Name As PayWay,sd3.Name As CardType,ccp.IsPay,u.CnName As Applicant,atr.CreateTime, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                         atr.CType 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                         From Grp_AirTicketReservations atr 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -754,7 +757,8 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 List<GroupVisaFeeView> groupVisaFeeViews = new List<GroupVisaFeeView>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 string groupVisaFeeSql = string.Format(@"Select vi.Id As VisaId,vi.DIId As VisaDiId,vi.VisaClient,ccp.PayMoney,sd1.Name As PayMoneyCurrency, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                          ccp.DayRate,ccp.Payee,ccp.AuditGMDate,ccp.OrbitalPrivateTransfer,sd2.Name As PayWay, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                         sd3.Name As CardTypeName,ccp.IsPay,u.CnName As Applicant,vi.CreateTime 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                         sd3.Name As CardTypeName,ccp.IsPay,u.CnName As Applicant,vi.CreateTime, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+(((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100) As CNYPrice 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                          From Grp_VisaInfo vi 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                          Left Join Grp_CreditCardPayment ccp On ccp.isdel = 0 And ccp.CTable = 80 And vi.Id = ccp.CId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                          Left Join Sys_SetData sd1 On ccp.PaymentCurrency = sd1.Id 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -812,7 +816,7 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         itemClientName = itemClientName.Substring(0, itemClientName.Length - 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     item.VisaClient = itemClientName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    VisaCNYTotalPirce += item.PayMoney; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    VisaCNYTotalPirce += item.CNYPrice; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (!string.IsNullOrEmpty(item.AuditGMDate)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         item.AuditGMDate = Convert.ToDateTime(item.AuditGMDate).ToString("yyyy-MM-dd HH:mm:ss"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -820,7 +824,7 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 _geView.GroupVisaFeeViews = groupVisaFeeViews; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _geView.GroupVisaFeeStr = string.Format(@"人民币总费用:{0} CNY", VisaCNYTotalPirce.ConvertToDecimal1()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _geView.GroupVisaFeeStr = string.Format(@"人民币总费用:{0} CNY", VisaCNYTotalPirce.ConvertToDecimal1().ToString("#.00")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #region 邀请/公务活动  CTable = 81 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -829,7 +833,7 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 string groupInvitationalFeeSql = string.Format(@"Select ioa.Id As IOAId,ioa.DiId As IOADiId,ioa.InviterArea,ioa.Inviter,ioa.InviteTime, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                                  ioa.InviteCost,sd3.Name As InviteCurrency,ioa.SendCost,sd4.Name As SendCurrency,ioa.EventsCost, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                                  sd5.Name As EventsCurrency,ioa.TranslateCost,sd6.Name As TranslateCurrency,ccp.PayMoney, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                 sd7.Name As PaymentCurrency,ccp.RMBPrice As CNYPrice,ccp.Payee,ccp.AuditGMDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                 sd7.Name As PaymentCurrency,ccp.RMBPrice As CNYPrice,(((ccp.PayMoney * ccp.DayRate) / ccp.PayPercentage) * 100) As CNYPrice2,ccp.Payee,ccp.AuditGMDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                                  ccp.OrbitalPrivateTransfer,sd2.Name As PayWay,ccp.IsPay,u.CnName As Applicant,ioa.CreateTime 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                                  From  Grp_InvitationOfficialActivities ioa 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                                  Left Join Grp_CreditCardPayment ccp On ccp.isdel = 0 And ccp.CTable = 81 And ioa.Id = ccp.CId 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -905,7 +909,7 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 foreach (var item in groupInvitationalFeeViews) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    InvitationalCNYTotalPrice += item.CNYPrice; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    InvitationalCNYTotalPrice += item.CNYPrice2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (!string.IsNullOrEmpty(item.AuditGMDate)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -926,7 +930,7 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 _geView.GroupInvitationalFeeViews = groupInvitationalFeeViews; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _geView.GroupInvitationalFeeStr = string.Format(@"人民币总费用:{0} CNY", InvitationalCNYTotalPrice); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _geView.GroupInvitationalFeeStr = string.Format(@"人民币总费用:{0} CNY", InvitationalCNYTotalPrice.ToString("#.00")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #region 保险费用 
			 |