|
@@ -120,7 +120,7 @@ namespace OASystem.API.Controllers
|
|
|
CheckBoxsRepository checkBoxs, GroupCostRepository GroupCostRepository, CostTypeHotelNumberRepository CostTypeHotelNumberRepository,
|
|
|
GroupCostParameterRepository GroupCostParameterRepository, HotelPriceRepository hotelPriceRep, CustomersRepository customersRep, SetDataRepository setDataRep,
|
|
|
TourClientListRepository tourClientListRep, TeamRateRepository teamRateRep, IHubContext<ChatHub, IChatClient> hubContext, UsersRepository usersRep, IJuHeApiService juHeApi,
|
|
|
- InvertedListRepository invertedListRep, VisaFeeInfoRepository visaFeeInfoRep )
|
|
|
+ InvertedListRepository invertedListRep, VisaFeeInfoRepository visaFeeInfoRep)
|
|
|
{
|
|
|
_mapper = mapper;
|
|
|
_grpScheduleRep = grpScheduleRep;
|
|
@@ -318,7 +318,7 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostGroupPageList(GroupPageListDto dto)
|
|
|
{
|
|
|
- #region 参数验证
|
|
|
+ #region 参数验证
|
|
|
if (dto.UserId < 1) return Ok(JsonView(false, "员工Id为空"));
|
|
|
if (dto.PageId < 1) return Ok(JsonView(false, "页面Id为空"));
|
|
|
|
|
@@ -1497,7 +1497,7 @@ namespace OASystem.API.Controllers
|
|
|
string nameContent = $@"{cityInfo.Country}-{cityInfo.City}";
|
|
|
|
|
|
var carFeeItem = carFeeItems.Find(it => it.Id == touristGuideGroundReservations.PriceType);
|
|
|
- if (carFeeItem != null )
|
|
|
+ if (carFeeItem != null)
|
|
|
{
|
|
|
nameContent += $@"({carFeeItem.Name})";
|
|
|
}
|
|
@@ -1510,10 +1510,10 @@ namespace OASystem.API.Controllers
|
|
|
_detail.PriceNameContent = touristGuideGroundReservations.Area;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
List<Grp_CarTouristGuideGroundReservationsContent> touristGuideGroundReservationsContents = _CarTouristGuideGroundReservationsContent
|
|
|
.Where(s => s.CTGGRId == touristGuideGroundReservations.Id && s.IsDel == 0 && s.Price != 0).ToList();
|
|
@@ -3715,11 +3715,12 @@ namespace OASystem.API.Controllers
|
|
|
if (rateInfo != null)
|
|
|
{
|
|
|
item.Rate = Convert.ToDecimal((Convert.ToDecimal(rateInfo.FSellPri == null ? 0.00M : rateInfo.FSellPri) / 100.00M).ToString("#0.0000"));
|
|
|
- reteInfos.Add(new {
|
|
|
- currCode= item.CurrencyCode,
|
|
|
+ reteInfos.Add(new
|
|
|
+ {
|
|
|
+ currCode = item.CurrencyCode,
|
|
|
currName = item.CurrencyName,
|
|
|
rate = item.Rate,
|
|
|
- lastUpdateDt = rateInfo.Date + " "+ rateInfo.Time
|
|
|
+ lastUpdateDt = rateInfo.Date + " " + rateInfo.Time
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -4600,7 +4601,7 @@ namespace OASystem.API.Controllers
|
|
|
//}
|
|
|
|
|
|
List<string> countrys = _groupRepository.GroupSplitCountry(_DelegationInfo.VisitCountry);
|
|
|
- dic.Add("ReturnCode", string.Join( "、", countrys));
|
|
|
+ dic.Add("ReturnCode", string.Join("、", countrys));
|
|
|
#endregion
|
|
|
|
|
|
|
|
@@ -4617,7 +4618,7 @@ namespace OASystem.API.Controllers
|
|
|
dic.Add("Day", _DelegationInfo.VisitDays.ToString());
|
|
|
|
|
|
dic.Add("CultivateDay", dac4.Count.ToString()); //培训天数
|
|
|
- // dic.Add("VisitCountry", _DelegationInfo.VisitCountry);
|
|
|
+ // dic.Add("VisitCountry", _DelegationInfo.VisitCountry);
|
|
|
|
|
|
NodeCollection allTables = doc.GetChildNodes(NodeType.Table, true);
|
|
|
Aspose.Words.Tables.Table table1 = allTables[0] as Aspose.Words.Tables.Table;
|
|
@@ -4652,7 +4653,7 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
//删除多余行
|
|
|
//cultivateRowIndex -= 2;
|
|
|
- int delRows = 10 + 7 - cultivateRowIndex;
|
|
|
+ int delRows = 10 + 7 - cultivateRowIndex;
|
|
|
if (delRows > 0)
|
|
|
{
|
|
|
for (int i = 0; i < delRows; i++)
|
|
@@ -4674,7 +4675,7 @@ namespace OASystem.API.Controllers
|
|
|
decimal cityTranfficFeeToatal = _EnterExitCosts.CityTranffic; //城市区间交通费
|
|
|
dic.Add("CityTranfficFeeToatal", cityTranfficFeeToatal.ToString("#0.00"));//
|
|
|
//其他费用
|
|
|
- decimal otherFeeTotal = _EnterExitCosts.Visa + _EnterExitCosts.Safe + _EnterExitCosts.Ticket + _EnterExitCosts.YiMiao + _EnterExitCosts.HeSuan+ _EnterExitCosts.Service;
|
|
|
+ decimal otherFeeTotal = _EnterExitCosts.Visa + _EnterExitCosts.Safe + _EnterExitCosts.Ticket + _EnterExitCosts.YiMiao + _EnterExitCosts.HeSuan + _EnterExitCosts.Service;
|
|
|
dic.Add("OtherFeeTotal", otherFeeTotal.ToString("#0.00"));
|
|
|
|
|
|
//其他费用合计
|
|
@@ -4682,7 +4683,7 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
decimal _jjcFeeToatal = _EnterExitCosts.AirJJ + _otherFeeTotal; //经济舱
|
|
|
decimal _gwcFeeToatal = _EnterExitCosts.AirGW + _otherFeeTotal; //公务舱
|
|
|
-
|
|
|
+
|
|
|
//公务舱合计
|
|
|
|
|
|
//国际旅费
|
|
@@ -11144,7 +11145,7 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(false, _view.Msg));
|
|
|
}
|
|
|
|
|
|
- return Ok(JsonView(true,"操作成功!", _view.Data));
|
|
|
+ return Ok(JsonView(true, "操作成功!", _view.Data));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -11175,9 +11176,95 @@ namespace OASystem.API.Controllers
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> Test_SendMsg(PostTourClientListDownloadFile _dto)
|
|
|
+ public async Task<IActionResult> Test_DataChange(PostTourClientListDownloadFile _dto)
|
|
|
{
|
|
|
- DeleReminderMessage.PostMessageByWebhook();
|
|
|
+ _airTicketResRep.ChangeDataBase(DBEnum.OA2014DB);
|
|
|
+
|
|
|
+ string sql = string.Format(@" Select * From Visa With(Nolock) ");
|
|
|
+ List<OA2014_Visa> list_visa = _airTicketResRep._sqlSugar.SqlQueryable<OA2014_Visa>(sql).ToList();
|
|
|
+
|
|
|
+ _airTicketResRep.ChangeDataBase(DBEnum.OA2023DB);
|
|
|
+ Dictionary<string, int> dic_psg = new Dictionary<string, int>();
|
|
|
+ dic_psg.Add("客人", 974);
|
|
|
+ dic_psg.Add("司机", 975);
|
|
|
+ dic_psg.Add("导游", 976);
|
|
|
+ dic_psg.Add("公司内部人员", 977);
|
|
|
+ dic_psg.Add("司机/导游/公司内部人员", 978);
|
|
|
+
|
|
|
+ foreach (var item in list_visa)
|
|
|
+ {
|
|
|
+ Grp_VisaInfo temp = new Grp_VisaInfo();
|
|
|
+
|
|
|
+ temp.Id = item.Id;
|
|
|
+ temp.DIId = item.DIId;
|
|
|
+ temp.VisaClient = item.VisaClient;
|
|
|
+ temp.VisaPrice = Convert.ToDecimal(item.VisaPrice);
|
|
|
+ temp.VisaCurrency = item.VisaCurrency;
|
|
|
+
|
|
|
+ temp.IsThird = item.IsThird;
|
|
|
+ if (dic_psg.ContainsKey(item.PassengerType))
|
|
|
+ {
|
|
|
+ temp.PassengerType = dic_psg[item.PassengerType];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ temp.PassengerType = -1;
|
|
|
+ }
|
|
|
+
|
|
|
+ temp.VisaNumber = item.VisaNumber;
|
|
|
+ temp.VisaFreeNumber = item.VisaFreeNumber;
|
|
|
+ temp.CreateUserId = item.Operators;
|
|
|
+
|
|
|
+ DateTime dt_ct;
|
|
|
+ bool b_ct = DateTime.TryParse(item.OperatorsDate, out dt_ct);
|
|
|
+ if (b_ct)
|
|
|
+ {
|
|
|
+ temp.CreateTime = dt_ct;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ temp.CreateTime = DateTime.Now;
|
|
|
+ }
|
|
|
+
|
|
|
+ temp.DeleteTime = "";
|
|
|
+ temp.DeleteUserId = 0;
|
|
|
+ temp.Remark = item.Remark;
|
|
|
+ if (string.IsNullOrEmpty(temp.Remark)) {
|
|
|
+ temp.Remark = "";
|
|
|
+ }
|
|
|
+
|
|
|
+ temp.IsDel = item.IsDel;
|
|
|
+ temp.VisaDescription = item.VisaAttachment;
|
|
|
+
|
|
|
+ string sqlInsert = string.Format(@" INSERT INTO [dbo].[Grp_VisaInfo]
|
|
|
+
|
|
|
+([Id]
|
|
|
+ ,[DIId]
|
|
|
+ ,[VisaClient]
|
|
|
+ ,[VisaPrice]
|
|
|
+ ,[VisaCurrency]
|
|
|
+
|
|
|
+ ,[IsThird]
|
|
|
+ ,[PassengerType]
|
|
|
+ ,[VisaNumber]
|
|
|
+ ,[VisaFreeNumber]
|
|
|
+ ,[CreateUserId]
|
|
|
+
|
|
|
+ ,[CreateTime]
|
|
|
+ ,[DeleteTime]
|
|
|
+ ,[DeleteUserId]
|
|
|
+ ,[Remark]
|
|
|
+ ,[IsDel]
|
|
|
+ ,[visaDescription])
|
|
|
+ VALUES
|
|
|
+ ({0},{1},'{2}',{3},{4}
|
|
|
+,{5},{6},{7},{8},{9}
|
|
|
+,'{10}','{11}',{12},'{13}',{14},'{15}') ",temp.Id,temp.DIId,temp.VisaClient,temp.VisaPrice,temp.VisaCurrency,
|
|
|
+temp.IsThird,temp.PassengerType,temp.VisaNumber,temp.VisaNumber,temp.CreateUserId,
|
|
|
+temp.CreateTime, temp.DeleteTime, temp.DeleteUserId, temp.Remark,temp.IsDel,temp.VisaDescription
|
|
|
+);
|
|
|
+ await _airTicketResRep.ExecuteCommandAsync(sqlInsert);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return Ok(JsonView(true, "操作成功!"));
|
|
|
}
|