代码无效引用清理,试压包资料界面看板修改

This commit is contained in:
2025-10-10 14:33:21 +08:00
parent 87fb529521
commit 55b798135c
933 changed files with 5897 additions and 7541 deletions
@@ -1,11 +1,11 @@
using System;
using FineUIPro;
using MiniExcelLibs;
using Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using FineUIPro;
using MiniExcelLibs;
using Model;
namespace BLL
{
@@ -78,27 +78,27 @@ namespace BLL
querytable.IsTemplate = false;
querytable.ParentId = item.MainProjectQuantityId;
var tb = PHTGL_QuantityService.GetPHTGL_QuantityByModle(querytable);
var exportmodel = (from x in tb
select new
{
= x.Major,
= x.SubProject,
= x.SubItemProject,
= x.ProjectCode,
=x.ProjectName,
= x.ProjectDescription,
= x.UnitOfMeasurement,
=x.Quantity,
=x.TotalCostFixedComprehensiveUnitPrice,
=x.MainMaterialCost,
=x.TotalPrice,
=x.CalculationRule,
=x.WorkContent,
=x.Remarks,
}).ToList();
sheets.Add(item.MainProjectQuantityName,exportmodel);
var exportmodel = (from x in tb
select new
{
= x.Major,
= x.SubProject,
= x.SubItemProject,
= x.ProjectCode,
= x.ProjectName,
= x.ProjectDescription,
= x.UnitOfMeasurement,
= x.Quantity,
= x.TotalCostFixedComprehensiveUnitPrice,
= x.MainMaterialCost,
= x.TotalPrice,
= x.CalculationRule,
= x.WorkContent,
= x.Remarks,
}).ToList();
sheets.Add(item.MainProjectQuantityName, exportmodel);
}
string path = Funs.RootPath + @"File\Excel\Temp\招标工作清单-"+ bidProjectQuantity.BidProjectCode+ ".xlsx";
string path = Funs.RootPath + @"File\Excel\Temp\招标工作清单-" + bidProjectQuantity.BidProjectCode + ".xlsx";
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HH-mm}", DateTime.Now) + ".xlsx");
MiniExcel.SaveAs(path, sheets);
string fileName = "招标工作清单-" + bidProjectQuantity.BidProjectCode + ".xlsx";
@@ -117,7 +117,7 @@ namespace BLL
{
var sheets = new Dictionary<string, object>();
var mainProjectList = PHTGL_MainProjectQuantityService.GetPHTGL_MainProjectQuantityById(mainProjectQuantityId);//获取主项
if (mainProjectList==null)
if (mainProjectList == null)
{
return;
}
@@ -126,25 +126,25 @@ namespace BLL
querytable.ParentId = mainProjectQuantityId;
var tb = PHTGL_QuantityService.GetPHTGL_QuantityByModle(querytable);
var exportmodel = (from x in tb
select new
{
= x.Major,
= x.SubProject,
= x.SubItemProject,
= x.ProjectCode,
= x.ProjectName,
= x.ProjectDescription,
= x.UnitOfMeasurement,
= x.Quantity,
= x.TotalCostFixedComprehensiveUnitPrice,
= x.MainMaterialCost,
= x.TotalPrice,
= x.CalculationRule,
= x.WorkContent,
= x.Remarks,
}).ToList();
select new
{
= x.Major,
= x.SubProject,
= x.SubItemProject,
= x.ProjectCode,
= x.ProjectName,
= x.ProjectDescription,
= x.UnitOfMeasurement,
= x.Quantity,
= x.TotalCostFixedComprehensiveUnitPrice,
= x.MainMaterialCost,
= x.TotalPrice,
= x.CalculationRule,
= x.WorkContent,
= x.Remarks,
}).ToList();
sheets.Add(mainProjectList.MainProjectQuantityName, exportmodel);
string path = Funs.RootPath + @"File\Excel\Temp\招标工作清单-" + mainProjectList.MainProjectQuantityCode + ".xlsx";
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HH-mm}", DateTime.Now) + ".xlsx");
MiniExcel.SaveAs(path, sheets);
@@ -202,16 +202,16 @@ namespace BLL
q = q.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
{
x.BidProjectQuantityId,
x.LotNumber,
x.BidProjectCode,
x.IsMainProject,
x.ProjectId,
x.CreatorId,
x.CreateDate
};
select new
{
x.BidProjectQuantityId,
x.LotNumber,
x.BidProjectCode,
x.IsMainProject,
x.ProjectId,
x.CreatorId,
x.CreateDate
};
}
#endregion