|
@@ -217,42 +217,45 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
List<Gsd_ExtraCostsView> _ExtraCostsViews = await _sqlSugar.SqlQueryable<Gsd_ExtraCostsView>(_ecSql).ToListAsync();
|
|
|
|
|
|
- //模拟数据
|
|
|
- if (_ExtraCostsViews.Count < 1)
|
|
|
- {
|
|
|
- _ExtraCostsViews.Add(new Gsd_ExtraCostsView()
|
|
|
- {
|
|
|
- GECId = 0,
|
|
|
- GECDiId = 2334,
|
|
|
- PriceName = "模拟数据-超支费用名称",
|
|
|
- PayMoney = 1000.00M,
|
|
|
- PaymentCurrency = "CNY",
|
|
|
- DayRate = 1.0000M,
|
|
|
- CNYPrice = 1000.00M,
|
|
|
- Payee = "模拟数据-超支费用收款方",
|
|
|
- OrbitalPrivateTransfer = 1,
|
|
|
- PayWay = "刷卡",
|
|
|
- CardType = "招行卡",
|
|
|
- IsPay = 1,
|
|
|
- Applicant = "刘华举"
|
|
|
- });
|
|
|
- _ExtraCostsViews.Add(new Gsd_ExtraCostsView()
|
|
|
- {
|
|
|
- GECId = 0,
|
|
|
- GECDiId = 2334,
|
|
|
- PriceName = "模拟数据-超支费用名称",
|
|
|
- PayMoney = 1000.00M,
|
|
|
- PaymentCurrency = "CNY",
|
|
|
- DayRate = 1.0000M,
|
|
|
- CNYPrice = 1000.00M,
|
|
|
- Payee = "模拟数据-超支费用收款方",
|
|
|
- OrbitalPrivateTransfer = 1,
|
|
|
- PayWay = "刷卡",
|
|
|
- CardType = "招行卡",
|
|
|
- IsPay = 1,
|
|
|
- Applicant = "刘华举"
|
|
|
- });
|
|
|
- }
|
|
|
+ #region 模拟数据
|
|
|
+
|
|
|
+ //if (_ExtraCostsViews.Count < 1)
|
|
|
+ //{
|
|
|
+ // _ExtraCostsViews.Add(new Gsd_ExtraCostsView()
|
|
|
+ // {
|
|
|
+ // GECId = 0,
|
|
|
+ // GECDiId = 2334,
|
|
|
+ // PriceName = "模拟数据-超支费用名称",
|
|
|
+ // PayMoney = 1000.00M,
|
|
|
+ // PaymentCurrency = "CNY",
|
|
|
+ // DayRate = 1.0000M,
|
|
|
+ // CNYPrice = 1000.00M,
|
|
|
+ // Payee = "模拟数据-超支费用收款方",
|
|
|
+ // OrbitalPrivateTransfer = 1,
|
|
|
+ // PayWay = "刷卡",
|
|
|
+ // CardType = "招行卡",
|
|
|
+ // IsPay = 1,
|
|
|
+ // Applicant = "刘华举"
|
|
|
+ // });
|
|
|
+ // _ExtraCostsViews.Add(new Gsd_ExtraCostsView()
|
|
|
+ // {
|
|
|
+ // GECId = 0,
|
|
|
+ // GECDiId = 2334,
|
|
|
+ // PriceName = "模拟数据-超支费用名称",
|
|
|
+ // PayMoney = 1000.00M,
|
|
|
+ // PaymentCurrency = "CNY",
|
|
|
+ // DayRate = 1.0000M,
|
|
|
+ // CNYPrice = 1000.00M,
|
|
|
+ // Payee = "模拟数据-超支费用收款方",
|
|
|
+ // OrbitalPrivateTransfer = 1,
|
|
|
+ // PayWay = "刷卡",
|
|
|
+ // CardType = "招行卡",
|
|
|
+ // IsPay = 1,
|
|
|
+ // Applicant = "刘华举"
|
|
|
+ // });
|
|
|
+ //}
|
|
|
+ #endregion
|
|
|
+
|
|
|
|
|
|
exTotalAmount = _ExtraCostsViews.Sum(it => it.CNYPrice);
|
|
|
|
|
@@ -323,43 +326,46 @@ namespace OASystem.API.Controllers
|
|
|
_promView.Add(gsd_PaymentRefund);
|
|
|
}
|
|
|
|
|
|
- //模拟数据
|
|
|
- if (_promView.Count < 1)
|
|
|
- {
|
|
|
- _promView.Add(new Gsd_PaymentRefundAndOtherMoneyView() {
|
|
|
- Id = 0,
|
|
|
- DiId = 2334,
|
|
|
- PriceName = "模拟数据-费用名称",
|
|
|
- PayCurrencyCode ="CNY",
|
|
|
- PayCurrencyName = "人名币",
|
|
|
- Price = 1000.00M,
|
|
|
- CNYPrice = 1000.00M,
|
|
|
- ThisRate = 1.00M,
|
|
|
- Payee="模拟数据-收款方",
|
|
|
- PayTime = "2023-01-01 15:20:01",
|
|
|
- OrbitalPrivateTransfer = 1,
|
|
|
- PayType = "刷卡",
|
|
|
- IsPay = 1,
|
|
|
- Applicant = "刘华举"
|
|
|
- });
|
|
|
- _promView.Add(new Gsd_PaymentRefundAndOtherMoneyView()
|
|
|
- {
|
|
|
- Id = 0,
|
|
|
- DiId = 2334,
|
|
|
- PriceName = "模拟数据-费用名称",
|
|
|
- PayCurrencyCode = "CNY",
|
|
|
- PayCurrencyName = "人名币",
|
|
|
- Price = 1000.00M,
|
|
|
- CNYPrice = 1000.00M,
|
|
|
- ThisRate = 1.00M,
|
|
|
- Payee = "模拟数据-收款方",
|
|
|
- PayTime = "2023-01-01 15:20:01",
|
|
|
- OrbitalPrivateTransfer = 1,
|
|
|
- PayType = "刷卡",
|
|
|
- IsPay = 1,
|
|
|
- Applicant = "刘华举"
|
|
|
- });
|
|
|
- }
|
|
|
+ #region 模拟数据
|
|
|
+
|
|
|
+ //if (_promView.Count < 1)
|
|
|
+ //{
|
|
|
+ // _promView.Add(new Gsd_PaymentRefundAndOtherMoneyView()
|
|
|
+ // {
|
|
|
+ // Id = 0,
|
|
|
+ // DiId = 2334,
|
|
|
+ // PriceName = "模拟数据-费用名称",
|
|
|
+ // PayCurrencyCode = "CNY",
|
|
|
+ // PayCurrencyName = "人名币",
|
|
|
+ // Price = 1000.00M,
|
|
|
+ // CNYPrice = 1000.00M,
|
|
|
+ // ThisRate = 1.00M,
|
|
|
+ // Payee = "模拟数据-收款方",
|
|
|
+ // PayTime = "2023-01-01 15:20:01",
|
|
|
+ // OrbitalPrivateTransfer = 1,
|
|
|
+ // PayType = "刷卡",
|
|
|
+ // IsPay = 1,
|
|
|
+ // Applicant = "刘华举"
|
|
|
+ // });
|
|
|
+ // _promView.Add(new Gsd_PaymentRefundAndOtherMoneyView()
|
|
|
+ // {
|
|
|
+ // Id = 0,
|
|
|
+ // DiId = 2334,
|
|
|
+ // PriceName = "模拟数据-费用名称",
|
|
|
+ // PayCurrencyCode = "CNY",
|
|
|
+ // PayCurrencyName = "人名币",
|
|
|
+ // Price = 1000.00M,
|
|
|
+ // CNYPrice = 1000.00M,
|
|
|
+ // ThisRate = 1.00M,
|
|
|
+ // Payee = "模拟数据-收款方",
|
|
|
+ // PayTime = "2023-01-01 15:20:01",
|
|
|
+ // OrbitalPrivateTransfer = 1,
|
|
|
+ // PayType = "刷卡",
|
|
|
+ // IsPay = 1,
|
|
|
+ // Applicant = "刘华举"
|
|
|
+ // });
|
|
|
+ //}
|
|
|
+ #endregion
|
|
|
|
|
|
promTotalAmount = _promView.Sum(it => it.CNYPrice);
|
|
|
_giView.PaymentRefundAndOtherMoneyViews = _promView;
|
|
@@ -736,60 +742,61 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
groupInvitationalFeeViews = await _sqlSugar.SqlQueryable<GroupInvitationalFeeView>(groupInvitationalFeeSql).ToListAsync();
|
|
|
|
|
|
- //模拟数据
|
|
|
- if (groupInvitationalFeeViews.Count < 1)
|
|
|
- {
|
|
|
- groupInvitationalFeeViews.Add(new GroupInvitationalFeeView()
|
|
|
- {
|
|
|
- IOAId = 0,
|
|
|
- IOADiId = 2334,
|
|
|
- InviterArea = "模拟数据-邀请方地区",
|
|
|
- Inviter = "模拟数据-邀请方",
|
|
|
- InviteTime = "2023-10-10",
|
|
|
- InviteCost = 100.00M,
|
|
|
- InviteCurrency = "EUR",
|
|
|
- SendCost = 100.00M,
|
|
|
- SendCurrency = "EUR",
|
|
|
- EventsCost = 10000.00M,
|
|
|
- EventsCurrency = "EUR",
|
|
|
- TranslateCost = 300.00M,
|
|
|
- TranslateCurrency = "EUR",
|
|
|
- PayMoney = 10500.00M,
|
|
|
- PaymentCurrency = "EUR",
|
|
|
- CNYPrice = 76765.50M,
|
|
|
- Payee = "模拟数据-收款方",
|
|
|
- AuditGMDate = "2023-12-05",
|
|
|
- OrbitalPrivateTransfer = 1,
|
|
|
- PayWay = "刷卡",
|
|
|
- IsPay = 1,
|
|
|
- Applicant = "刘华举"
|
|
|
- });
|
|
|
- groupInvitationalFeeViews.Add(new GroupInvitationalFeeView()
|
|
|
- {
|
|
|
- IOAId = 0,
|
|
|
- IOADiId = 2334,
|
|
|
- InviterArea = "模拟数据-邀请方地区",
|
|
|
- Inviter = "模拟数据-邀请方",
|
|
|
- InviteTime = "2023-10-10",
|
|
|
- InviteCost = 100.00M,
|
|
|
- InviteCurrency = "EUR",
|
|
|
- SendCost = 100.00M,
|
|
|
- SendCurrency = "EUR",
|
|
|
- EventsCost = 10000.00M,
|
|
|
- EventsCurrency = "EUR",
|
|
|
- TranslateCost = 300.00M,
|
|
|
- TranslateCurrency = "EUR",
|
|
|
- PayMoney = 10500.00M,
|
|
|
- PaymentCurrency = "EUR",
|
|
|
- CNYPrice = 76765.50M,
|
|
|
- Payee = "模拟数据-收款方",
|
|
|
- AuditGMDate = "2023-12-05",
|
|
|
- OrbitalPrivateTransfer = 1,
|
|
|
- PayWay = "刷卡",
|
|
|
- IsPay = 1,
|
|
|
- Applicant = "刘华举"
|
|
|
- });
|
|
|
- }
|
|
|
+ #region 模拟数据
|
|
|
+ //if (groupInvitationalFeeViews.Count < 1)
|
|
|
+ //{
|
|
|
+ // groupInvitationalFeeViews.Add(new GroupInvitationalFeeView()
|
|
|
+ // {
|
|
|
+ // IOAId = 0,
|
|
|
+ // IOADiId = 2334,
|
|
|
+ // InviterArea = "模拟数据-邀请方地区",
|
|
|
+ // Inviter = "模拟数据-邀请方",
|
|
|
+ // InviteTime = "2023-10-10",
|
|
|
+ // InviteCost = 100.00M,
|
|
|
+ // InviteCurrency = "EUR",
|
|
|
+ // SendCost = 100.00M,
|
|
|
+ // SendCurrency = "EUR",
|
|
|
+ // EventsCost = 10000.00M,
|
|
|
+ // EventsCurrency = "EUR",
|
|
|
+ // TranslateCost = 300.00M,
|
|
|
+ // TranslateCurrency = "EUR",
|
|
|
+ // PayMoney = 10500.00M,
|
|
|
+ // PaymentCurrency = "EUR",
|
|
|
+ // CNYPrice = 76765.50M,
|
|
|
+ // Payee = "模拟数据-收款方",
|
|
|
+ // AuditGMDate = "2023-12-05",
|
|
|
+ // OrbitalPrivateTransfer = 1,
|
|
|
+ // PayWay = "刷卡",
|
|
|
+ // IsPay = 1,
|
|
|
+ // Applicant = "刘华举"
|
|
|
+ // });
|
|
|
+ // groupInvitationalFeeViews.Add(new GroupInvitationalFeeView()
|
|
|
+ // {
|
|
|
+ // IOAId = 0,
|
|
|
+ // IOADiId = 2334,
|
|
|
+ // InviterArea = "模拟数据-邀请方地区",
|
|
|
+ // Inviter = "模拟数据-邀请方",
|
|
|
+ // InviteTime = "2023-10-10",
|
|
|
+ // InviteCost = 100.00M,
|
|
|
+ // InviteCurrency = "EUR",
|
|
|
+ // SendCost = 100.00M,
|
|
|
+ // SendCurrency = "EUR",
|
|
|
+ // EventsCost = 10000.00M,
|
|
|
+ // EventsCurrency = "EUR",
|
|
|
+ // TranslateCost = 300.00M,
|
|
|
+ // TranslateCurrency = "EUR",
|
|
|
+ // PayMoney = 10500.00M,
|
|
|
+ // PaymentCurrency = "EUR",
|
|
|
+ // CNYPrice = 76765.50M,
|
|
|
+ // Payee = "模拟数据-收款方",
|
|
|
+ // AuditGMDate = "2023-12-05",
|
|
|
+ // OrbitalPrivateTransfer = 1,
|
|
|
+ // PayWay = "刷卡",
|
|
|
+ // IsPay = 1,
|
|
|
+ // Applicant = "刘华举"
|
|
|
+ // });
|
|
|
+ //}
|
|
|
+ #endregion
|
|
|
|
|
|
decimal InvitationalCNYTotalPrice = 0.00M;
|
|
|
|
|
@@ -907,42 +914,45 @@ namespace OASystem.API.Controllers
|
|
|
Where dp.IsDel = 0 And ccp.IsAuditGM = 1 And ccp.IsPay = 1 And dp.Diid = {0}",_dto.DiId);
|
|
|
groupDecreaseFeeViews = await _sqlSugar.SqlQueryable<GroupDecreaseFeeView>(groupDecreaseFeeSql).ToListAsync();
|
|
|
|
|
|
- //模拟数据
|
|
|
- if (groupDecreaseFeeViews.Count < 1)
|
|
|
- {
|
|
|
- groupDecreaseFeeViews.Add(new GroupDecreaseFeeView()
|
|
|
- {
|
|
|
- DPId = 0,
|
|
|
- DPDiId = 2334,
|
|
|
- PriceName = "模拟数据-费用名称",
|
|
|
- PayMoney = 1000.00M,
|
|
|
- PayMoneyCurrency = "CNY",
|
|
|
- DayRate = 1.0000M,
|
|
|
- CNYPrice = 1.0000M,
|
|
|
- AuditGMDate = "2023-12-10 12:13:00",
|
|
|
- Payee = "模拟数据-付款方",
|
|
|
- OrbitalPrivateTransfer = 1,
|
|
|
- PayWay = "现金",
|
|
|
- IsPay = 1,
|
|
|
- Applicant = "刘华举"
|
|
|
- });
|
|
|
- groupDecreaseFeeViews.Add(new GroupDecreaseFeeView()
|
|
|
- {
|
|
|
- DPId = 0,
|
|
|
- DPDiId = 2334,
|
|
|
- PriceName = "模拟数据-费用名称",
|
|
|
- PayMoney = 1000.00M,
|
|
|
- PayMoneyCurrency = "CNY",
|
|
|
- DayRate = 1.0000M,
|
|
|
- CNYPrice = 1.0000M,
|
|
|
- AuditGMDate = "2023-12-10 12:13:00",
|
|
|
- Payee = "模拟数据-付款方",
|
|
|
- OrbitalPrivateTransfer = 1,
|
|
|
- PayWay = "现金",
|
|
|
- IsPay = 1,
|
|
|
- Applicant = "刘华举"
|
|
|
- });
|
|
|
- }
|
|
|
+ #region 模拟数据
|
|
|
+
|
|
|
+ //if (groupDecreaseFeeViews.Count < 1)
|
|
|
+ //{
|
|
|
+ // groupDecreaseFeeViews.Add(new GroupDecreaseFeeView()
|
|
|
+ // {
|
|
|
+ // DPId = 0,
|
|
|
+ // DPDiId = 2334,
|
|
|
+ // PriceName = "模拟数据-费用名称",
|
|
|
+ // PayMoney = 1000.00M,
|
|
|
+ // PayMoneyCurrency = "CNY",
|
|
|
+ // DayRate = 1.0000M,
|
|
|
+ // CNYPrice = 1.0000M,
|
|
|
+ // AuditGMDate = "2023-12-10 12:13:00",
|
|
|
+ // Payee = "模拟数据-付款方",
|
|
|
+ // OrbitalPrivateTransfer = 1,
|
|
|
+ // PayWay = "现金",
|
|
|
+ // IsPay = 1,
|
|
|
+ // Applicant = "刘华举"
|
|
|
+ // });
|
|
|
+ // groupDecreaseFeeViews.Add(new GroupDecreaseFeeView()
|
|
|
+ // {
|
|
|
+ // DPId = 0,
|
|
|
+ // DPDiId = 2334,
|
|
|
+ // PriceName = "模拟数据-费用名称",
|
|
|
+ // PayMoney = 1000.00M,
|
|
|
+ // PayMoneyCurrency = "CNY",
|
|
|
+ // DayRate = 1.0000M,
|
|
|
+ // CNYPrice = 1.0000M,
|
|
|
+ // AuditGMDate = "2023-12-10 12:13:00",
|
|
|
+ // Payee = "模拟数据-付款方",
|
|
|
+ // OrbitalPrivateTransfer = 1,
|
|
|
+ // PayWay = "现金",
|
|
|
+ // IsPay = 1,
|
|
|
+ // Applicant = "刘华举"
|
|
|
+ // });
|
|
|
+ //}
|
|
|
+
|
|
|
+ #endregion
|
|
|
|
|
|
decimal DecreaseCNYTotalPrice = 0.00M;
|
|
|
foreach (var item in groupDecreaseFeeViews)
|