|
@@ -3267,6 +3267,7 @@ namespace OASystem.API.Controllers
|
|
|
_entity.Area = dto.Area;
|
|
|
_entity.SupervisorConfirm = dto.SupervisorConfirm;
|
|
|
_entity.ManagerConfirm = dto.ManagerConfirm;
|
|
|
+ _entity.SYsupervisorConfirm = dto.SYsupervisorConfirm;
|
|
|
|
|
|
DateTime dt_PriceDt;
|
|
|
bool b_PriceDt = DateTime.TryParse(dto.PriceDt, out dt_PriceDt);
|
|
@@ -3579,8 +3580,9 @@ namespace OASystem.API.Controllers
|
|
|
string sql_data = string.Format(@"Select * From (
|
|
|
Select row_number() over (order by f.Id Desc) as RowNumber,f.Id,f.DiId,
|
|
|
f.PriceName,f.PriceType,f.PriceDetailType,CAST(f.Price as varchar)+' '+s.[Name] as PriceStr,f.PriceCount,CAST(f.PriceSum as varchar)+' '+s.[Name] as PriceSumStr,
|
|
|
- f.CreateUserId,f.PriceDt,c.IsAuditGM,f.ManagerConfirm,f.SupervisorConfirm,
|
|
|
- CASE ManagerConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'ManagerConfirmStr' , CASE SupervisorConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'SupervisorConfirmStr'
|
|
|
+ f.CreateUserId,f.PriceDt,c.IsAuditGM,f.ManagerConfirm,f.SupervisorConfirm,f.Remark,
|
|
|
+ CASE ManagerConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'ManagerConfirmStr' , CASE SupervisorConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'SupervisorConfirmStr',
|
|
|
+ CASE SYsupervisorConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'SYsupervisorConfirmStr'
|
|
|
From Fin_GroupExtraCost f
|
|
|
Inner Join Grp_CreditCardPayment c On f.Id = c.CId
|
|
|
Inner Join Sys_SetData s On f.PriceCurrency = s.Id
|
|
@@ -3589,8 +3591,9 @@ namespace OASystem.API.Controllers
|
|
|
) temp Where RowNumber Between {1} and {2}", sqlWhere, startIndex, endIndex);
|
|
|
string sql_count = string.Format(@"Select Count(1) as DataCount From (
|
|
|
Select row_number() over (order by f.Id Desc) as RowNumber,f.Id,f.DiId,
|
|
|
- f.PriceName,f.PriceType,f.Price,f.FilePath,f.CreateUserId,f.CreateTime,c.IsAuditGM,f.ManagerConfirm,f.SupervisorConfirm,
|
|
|
- CASE ManagerConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'ManagerConfirmStr' , CASE SupervisorConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'SupervisorConfirmStr'
|
|
|
+ f.PriceName,f.PriceType,f.Price,f.FilePath,f.CreateUserId,f.CreateTime,c.IsAuditGM,f.ManagerConfirm,f.SupervisorConfirm,f.Remark,
|
|
|
+ CASE ManagerConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'ManagerConfirmStr' , CASE SupervisorConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'SupervisorConfirmStr',
|
|
|
+ CASE SYsupervisorConfirm WHEN 1 THEN '已确认' ELSE '未确认' END as 'SYsupervisorConfirmStr'
|
|
|
From Fin_GroupExtraCost f
|
|
|
Inner Join Grp_CreditCardPayment c On f.Id = c.CId
|
|
|
Inner Join Sys_SetData s On f.PriceCurrency = s.Id
|
|
@@ -4029,8 +4032,7 @@ Group by PriceType ", dto.diId);
|
|
|
JoinType.Left, s1.Id == l.toCurr && s1.IsDel == 0,
|
|
|
JoinType.Left, i.Id == l.DiId && i.IsDel == 0
|
|
|
))
|
|
|
- .Where((f, c, s, g) => f.IsDel == 0 && f.DiId == dto.diId &&
|
|
|
- (f.ManagerConfirm == 1 || f.ManagerConfirm == null || f.SupervisorConfirm == 1 || f.SupervisorConfirm == null))
|
|
|
+ .Where((f, c, s, g) => f.IsDel == 0 && f.DiId == dto.diId)
|
|
|
.Select((f, c, s, g, r, l, s1, i) => new
|
|
|
{
|
|
|
c.PaymentCurrency,
|
|
@@ -4054,9 +4056,25 @@ Group by PriceType ", dto.diId);
|
|
|
f.PriceDt,
|
|
|
i.VisitPNumber,
|
|
|
f.DiId,
|
|
|
- f.PriceCurrency
|
|
|
+ f.PriceCurrency,
|
|
|
+ f.SupervisorConfirm,
|
|
|
+ f.ManagerConfirm,
|
|
|
+ f.SYsupervisorConfirm,
|
|
|
})
|
|
|
.ToList()
|
|
|
+ .Where(x=> {
|
|
|
+ var count = 0;
|
|
|
+ var stringArr = new string[] { "SYsupervisorConfirm", "SupervisorConfirm", "ManagerConfirm" };
|
|
|
+ foreach (var item in stringArr)
|
|
|
+ {
|
|
|
+ var number = x.GetType()?.GetProperty(item)?.GetValue(x).ObjToInt();
|
|
|
+ if (number > 0)
|
|
|
+ {
|
|
|
+ count++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return count > 1;
|
|
|
+ })
|
|
|
.Select(x =>
|
|
|
{
|
|
|
var costPirce = x.Price;
|
|
@@ -4101,11 +4119,11 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
if (x.toCurr != x.PaymentCurrency)
|
|
|
{
|
|
|
- remake += $"{x.PriceDt.ToString("M/d")} {findCheck?.Name} {x.PaymentCurrencyStr} {(int)Math.Round(oldPrice)}( 折算{x.toCurrStr} {(int)Math.Round(costPirce)}) - 财政{cost} * {x.VisitPNumber} = {x.toCurrStr}{costResultPirce}";
|
|
|
+ remake += $" {x.PriceDt.ToString("M/d")} {findCheck?.Name} {x.PaymentCurrencyStr} {(int)Math.Round(oldPrice)}( 折算{x.toCurrStr} {(int)Math.Round(costPirce)}) - 财政{cost} * {x.VisitPNumber} = {x.toCurrStr}{costResultPirce}";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- remake += $"{x.PriceDt.ToString("M/d")} {findCheck?.Name}{x.PaymentCurrencyStr} {(int)Math.Round(costPirce)} - 财政{cost} * {x.VisitPNumber} = {x.PaymentCurrencyStr}{costResultPirce}";
|
|
|
+ remake += $" {x.PriceDt.ToString("M/d")} {findCheck?.Name}{x.PaymentCurrencyStr} {(int)Math.Round(costPirce)} - 财政{cost} * {x.VisitPNumber} = {x.PaymentCurrencyStr}{costResultPirce}";
|
|
|
}
|
|
|
|
|
|
costPirce = costResultPirce;
|
|
@@ -4315,6 +4333,7 @@ Group by PriceType ", dto.diId);
|
|
|
{
|
|
|
{1 ,"ManagerConfirm" },
|
|
|
{2 ,"SupervisorConfirm" },
|
|
|
+ {3 ,"SYsupervisorConfirm" },
|
|
|
};
|
|
|
if (dto.DataId < 1 || confirmStatusArr.Keys.Contains(dto.ConfirmId) == false)
|
|
|
{
|