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

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
@@ -231,7 +231,7 @@ namespace BLL
/// ActionPlanID
/// </summary>
/// <param name="ActionPlanID"></param>
public static Document Print( string ActionPlanID)
public static Document Print(string ActionPlanID)
{
string rootPath = Funs.RootPath;
@@ -550,12 +550,12 @@ namespace BLL
doc.UpdateWordCount();
File.Delete(Path);
}
doc.Save(newUrl);
Document doc1 = new Aspose.Words.Document(newUrl);
doc.Save(newUrl);
Document doc1 = new Aspose.Words.Document(newUrl);
File.Delete(newUrl);
return doc1;
}
public static void PrintFile( string Id)
public static void PrintFile(string Id)
{
string rootPath = Funs.RootPath;
string newUrl = string.Empty;
@@ -566,7 +566,7 @@ namespace BLL
File.Delete(newUrl);
}
var q = PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(Id);
var doc = BLL.PHTGL_ActionPlanFormationService.Print( Id);
var doc = BLL.PHTGL_ActionPlanFormationService.Print(Id);
doc.Save(newUrl);
//生成PDF文件
string pdfUrl = newUrl.Replace(".docx", ".pdf");
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using Model;
using System.Collections.Generic;
using System.Linq;
using Model;
namespace BLL
{
@@ -1,11 +1,11 @@
using Aspose.Words;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using Model;
namespace BLL
{
@@ -186,7 +186,7 @@ namespace BLL
File.Delete(newUrl);
return doc1;
}
public static void PrintFile( string Id)
public static void PrintFile(string Id)
{
string rootPath = Funs.RootPath;
@@ -197,7 +197,7 @@ namespace BLL
{
File.Delete(newUrl);
}
var doc = Print( Id);
var doc = Print(Id);
doc.Save(newUrl);
//生成PDF文件
@@ -24,7 +24,7 @@ namespace BLL
Model.PHTGL_BidApproveUserReview_Sch1 table = new Model.PHTGL_BidApproveUserReview_Sch1();
table.ID = newtable.ID;
table.ApproveUserReviewID = newtable.ApproveUserReviewID;
var name= BLL.Person_PersonsService.GetPersonsNameById(newtable.ApproveUserName);
var name = BLL.Person_PersonsService.GetPersonsNameById(newtable.ApproveUserName);
if (!string.IsNullOrEmpty(name))
{
table.ApproveUserName = name;
@@ -1,11 +1,7 @@
using FineUIPro;
using MiniExcelLibs.Attributes;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
namespace BLL
@@ -41,11 +37,11 @@ namespace BLL
(string.IsNullOrEmpty(table.ApprovePersonFormCode) || x.ApprovePersonFormCode.Contains(table.ApprovePersonFormCode)) &&
(string.IsNullOrEmpty(table.BidWinner) || x.BidWinner.Contains(table.BidWinner)) &&
(string.IsNullOrEmpty(table.SetSubReviewCode) || x.SetSubReviewCode.Contains(table.SetSubReviewCode)) &&
(string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId))&&
(string.IsNullOrEmpty(table.BidNoticeCode) || x.BidNoticeCode.Contains(table.BidNoticeCode))&&
(string.IsNullOrEmpty(table.BidUnitFileCode) || x.BidUnitFileCode.Contains(table.BidUnitFileCode))&&
(table.State == null||x.State==table.State)
select x
(string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId)) &&
(string.IsNullOrEmpty(table.BidNoticeCode) || x.BidNoticeCode.Contains(table.BidNoticeCode)) &&
(string.IsNullOrEmpty(table.BidUnitFileCode) || x.BidUnitFileCode.Contains(table.BidUnitFileCode)) &&
(table.State == null || x.State == table.State)
select x
;
return q.ToList();
@@ -64,7 +60,7 @@ namespace BLL
{
return null;
}
q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
q = q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
@@ -108,8 +104,8 @@ namespace BLL
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook
{
BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId,
UnitId= newtable.UnitId,
DepartId= newtable.DepartId,
UnitId = newtable.UnitId,
DepartId = newtable.DepartId,
EPCCode = newtable.EPCCode,
ProjectShortName = newtable.ProjectShortName,
ProjectCode = newtable.ProjectCode,
@@ -125,10 +121,10 @@ namespace BLL
ApprovePersonFormCode = newtable.ApprovePersonFormCode,
BidWinner = newtable.BidWinner,
SetSubReviewCode = newtable.SetSubReviewCode,
ProjectId= newtable.ProjectId,
State=newtable.State,
BidNoticeCode=newtable.BidNoticeCode,
BidUnitFileCode=newtable.BidUnitFileCode,
ProjectId = newtable.ProjectId,
State = newtable.State,
BidNoticeCode = newtable.BidNoticeCode,
BidUnitFileCode = newtable.BidUnitFileCode,
};
var db1 = Funs.DB;
db1.PHTGL_BidDocumentsStandingBook.InsertOnSubmit(table);
@@ -150,8 +146,8 @@ namespace BLL
if (table != null)
{
table.BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId;
table.UnitId= newtable.UnitId;
table.DepartId= newtable.DepartId;
table.UnitId = newtable.UnitId;
table.DepartId = newtable.DepartId;
table.EPCCode = newtable.EPCCode;
table.ProjectShortName = newtable.ProjectShortName;
table.ProjectCode = newtable.ProjectCode;
@@ -167,10 +163,10 @@ namespace BLL
table.ApprovePersonFormCode = newtable.ApprovePersonFormCode;
table.BidWinner = newtable.BidWinner;
table.SetSubReviewCode = newtable.SetSubReviewCode;
table.ProjectId=newtable.ProjectId;
table.State=newtable.State;
table.BidNoticeCode= newtable.BidNoticeCode;
table.BidUnitFileCode=newtable.BidUnitFileCode;
table.ProjectId = newtable.ProjectId;
table.State = newtable.State;
table.BidNoticeCode = newtable.BidNoticeCode;
table.BidUnitFileCode = newtable.BidUnitFileCode;
db1.SubmitChanges();
}
@@ -1,9 +1,9 @@
using Aspose.Words;
using Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Model;
namespace BLL
{
@@ -141,7 +141,7 @@ namespace BLL
/// </summary>
/// <param name="dropName"></param>
/// <param name="isShowPlease"></param>
public static void InitGetBidCompleteDropDownList(FineUIPro.DropDownList dropName,string projectid, bool isShowPlease)
public static void InitGetBidCompleteDropDownList(FineUIPro.DropDownList dropName, string projectid, bool isShowPlease)
{
dropName.DataValueField = "BidDocumentsReviewId";
dropName.DataTextField = "BidDocumentsCode";
@@ -244,9 +244,9 @@ namespace BLL
Document doc1 = new Aspose.Words.Document(newUrl);
File.Delete(newUrl);
return doc1;
}
public static void PrintFile( string Id)
public static void PrintFile(string Id)
{
string rootPath = Funs.RootPath;
@@ -258,7 +258,7 @@ namespace BLL
{
File.Delete(newUrl);
}
var doc = Print( Id);
var doc = Print(Id);
doc.Save(newUrl);
//生成PDF文件
@@ -1,5 +1,5 @@
using Aspose.Words;
using NPOI.SS.Formula.Functions;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
@@ -7,7 +7,6 @@ using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Web.UI.WebControls;
using Model;
namespace BLL
{
@@ -238,7 +237,7 @@ namespace BLL
+ @" FROM PHTGL_SetSubReview_Sch1 AS Sch1 "
+ @"where 1=1 AND SetSubReviewID = @SetSubReviewID order by SortIndex ";
break;
}
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace(".docx", string.Format("{0:yyyy-MM}", DateTime.Now) + ".docx");
@@ -315,7 +314,7 @@ namespace BLL
doc.Save(newUrl);
Document doc1 = new Aspose.Words.Document(newUrl);
File.Delete(newUrl);
return doc1;
}
@@ -345,7 +344,7 @@ namespace BLL
}
}
break;
case PHTGL_SetSubReviewService.Type_MinPrice:
if (Act != null)
@@ -361,9 +360,9 @@ namespace BLL
}
}
break;
}
newUrl = rootPath + initTemplatePath;