2023-04-25-001

This commit is contained in:
2023-04-25 21:38:01 +08:00
parent 6813e22226
commit 418ef0bd4a
15 changed files with 207 additions and 33 deletions
@@ -28,6 +28,8 @@ namespace BLL
{
var q = from x in db.PHTGL_BidDocumentsStandingBook
where
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
(string.IsNullOrEmpty(table.DepartId) || x.DepartId.Contains(table.DepartId)) &&
(string.IsNullOrEmpty(table.BidDocumentsStandingBookId) || x.BidDocumentsStandingBookId.Contains(table.BidDocumentsStandingBookId)) &&
(string.IsNullOrEmpty(table.EPCCode) || x.EPCCode.Contains(table.EPCCode)) &&
(string.IsNullOrEmpty(table.ProjectShortName) || x.ProjectShortName.Contains(table.ProjectShortName)) &&
@@ -70,6 +72,8 @@ namespace BLL
select new
{
x.BidDocumentsStandingBookId,
x.UnitId,
x.DepartId,
x.EPCCode,
x.ProjectShortName,
x.ProjectCode,
@@ -106,6 +110,8 @@ namespace BLL
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook
{
BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId,
UnitId= newtable.UnitId,
DepartId= newtable.DepartId,
EPCCode = newtable.EPCCode,
ProjectShortName = newtable.ProjectShortName,
ProjectCode = newtable.ProjectCode,
@@ -145,6 +151,8 @@ namespace BLL
if (table != null)
{
table.BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId;
table.UnitId= newtable.UnitId;
table.DepartId= newtable.DepartId;
table.EPCCode = newtable.EPCCode;
table.ProjectShortName = newtable.ProjectShortName;
table.ProjectCode = newtable.ProjectCode;