20250312 费用增补

This commit is contained in:
2025-03-12 10:19:37 +08:00
parent f6b3af99f6
commit a8aa85835c
3 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -102,7 +102,7 @@ namespace FineUIPro.Web.SES
//var u = string.Join(",", sesdata.Where(p => p.User_Representative != null).Select(p => p.User_Representative).Distinct());
//var m = string.Join(",", sesdata.Where(p => p.Main_Coordinator != null).Select(p => p.Main_Coordinator).Distinct());
string cruUser = CurrUser.UserId;
string strSql = @"SELECT * from View_FC_SESRelatedData ";
string strSql = @"SELECT * from View_FC_SESRelatedData where 1=1";
List<SqlParameter> listStr = new List<SqlParameter>();
@@ -4412,11 +4412,11 @@ namespace FineUIPro.Web.SES
var contracts = BLL.ContractManagementService.GetContractManagementById(rowID);
if (contracts != null)
{
//删除费用增补回写的Contract Budget随之变化
//删除费用增补回写的Contract Budget-费用增补中的Supplemented Budget
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(contracts.FC_ID.ToString());
if (data != null)
{
data.Actual_Budget = data.Actual_Budget - contracts.TotalBudget;
data.Actual_Budget = data.Actual_Budget - contracts.SupplementedBudget;
BLL.SESRelatedDataService.UpdateSESRelatedData(data);
}
BLL.ContractManagementService.DeleteContractManagementById(rowID);