|
@@ -2592,6 +2592,9 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
_entity.PriceDetailType = dto.priceDetailType;
|
|
|
_entity.FilePath = dto.filePath;
|
|
|
_entity.Remark = dto.remark;
|
|
|
+ _entity.PriceCount = dto.PriceCount;
|
|
|
+ _entity.PriceDt = DateTime.Parse(dto.PriceDt);
|
|
|
+ _entity.PriceSum = dto.price * dto.PriceCount;
|
|
|
|
|
|
_daiRep.BeginTran();
|
|
|
if (dto.editType == 1)
|
|
@@ -2617,7 +2620,10 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
PriceDetailType = dto.priceDetailType,
|
|
|
Coefficient = dto.coefficient,
|
|
|
FilePath = dto.filePath,
|
|
|
- Remark = dto.remark
|
|
|
+ Remark = dto.remark,
|
|
|
+ PriceCount = dto.PriceCount,
|
|
|
+ PriceDt = _entity.PriceDt,
|
|
|
+ PriceSum = _entity.PriceSum
|
|
|
});
|
|
|
if (!res)
|
|
|
{
|
|
@@ -2825,7 +2831,8 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
int endIndex = startIndex + dto.PageSize - 1;
|
|
|
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,CAST(f.Price as varchar)+' '+s.[Name] as PriceStr,f.FilePath,f.CreateUserId,f.CreateTime,c.IsAuditGM
|
|
|
+ f.PriceName,f.PriceType,f.PriceDetailType,f.Price,f.PriceCount,CAST(f.PriceSum as varchar)+' '+s.[Name] as PriceStr,
|
|
|
+ f.CreateUserId,f.PriceDt,c.IsAuditGM
|
|
|
From Fin_GroupExtraCost f
|
|
|
Inner Join Grp_CreditCardPayment c On f.Id = c.CId
|
|
|
Inner Join Sys_SetData s On f.PriceCurrency = s.Id
|
|
@@ -2852,16 +2859,16 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
|
|
|
foreach (var item in dataList)
|
|
|
{
|
|
|
- DateTime dtTemp_CreateTime;
|
|
|
- bool b_ct = DateTime.TryParse(item.CreateTime, out dtTemp_CreateTime);
|
|
|
+ DateTime dtTemp_PriceDt;
|
|
|
+ bool b_ct = DateTime.TryParse(item.PriceDt, out dtTemp_PriceDt);
|
|
|
if (b_ct)
|
|
|
{
|
|
|
- item.CreateTime = dtTemp_CreateTime.ToString("yyyy-MM-dd HH:mm");
|
|
|
+ item.PriceDt = dtTemp_PriceDt.ToString("yyyy-MM-dd HH:mm");
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- //费用详细类型
|
|
|
+ //费用类型
|
|
|
if (dic_setData.ContainsKey(item.PriceType))
|
|
|
{
|
|
|
item.PriceTypeStr = dic_setData[item.PriceType];
|
|
@@ -2877,6 +2884,23 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (item.PriceDetailType > 0) {
|
|
|
+ if (dic_setData.ContainsKey(item.PriceDetailType))
|
|
|
+ {
|
|
|
+ item.PriceTypeStr = item.PriceTypeStr + " - " + dic_setData[item.PriceDetailType];
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Sys_SetData sd_priceTypeDetail = _daiRep.Query<Sys_SetData>(s => s.Id == item.PriceDetailType).First();
|
|
|
+ if (sd_priceTypeDetail != null)
|
|
|
+ {
|
|
|
+ string tempName = sd_priceTypeDetail.Name.Replace("n", "");
|
|
|
+ item.PriceTypeStr = item.PriceTypeStr + " - " + tempName;
|
|
|
+ dic_setData.Add(item.PriceDetailType, tempName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//系统用户
|
|
|
if (dic_user.ContainsKey(item.CreateUserId))
|
|
|
{
|