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

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 -1
View File
@@ -5,7 +5,7 @@ namespace BLL
{
public static class PersonTotalService
{
/// <summary>
/// 获取人员信息
+1 -3
View File
@@ -1,8 +1,6 @@
using FineUIPro;
using System;
using System.Collections;
using System.Linq;
using Model;
namespace BLL
{
@@ -48,7 +46,7 @@ namespace BLL
x.CompilePersonId,
x.CompileTime,
x.WorkPostId,
WorkPostName=Funs.DB.Base_WorkPost.First(U=>U.WorkPostId == x.WorkPostId).WorkPostName,
WorkPostName = Funs.DB.Base_WorkPost.First(U => U.WorkPostId == x.WorkPostId).WorkPostName,
x.ApprovePersonId,
x.ApproveTime,
x.State,
@@ -4,7 +4,7 @@ namespace BLL
{
public static class Person_DutyTemplateService
{
/// <summary>
/// 获取员工责任书模板信息
/// </summary>
@@ -1,9 +1,6 @@
using FineUIPro;
using System;
using System.Collections;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
using Model;
namespace BLL
{
@@ -23,7 +20,7 @@ namespace BLL
/// 定义变量
/// </summary>
private static IQueryable<Model.Person_PersonContract> getDataLists = from x in Funs.DB.Person_PersonContract
select x;
select x;
/// <summary>
/// 获取分页列表
@@ -34,8 +31,8 @@ namespace BLL
public static IEnumerable getListData(string personId, Grid Grid1)
{
var db1 = Funs.DB;
var q= from x in db1.Person_PersonContract
select x;
var q = from x in db1.Person_PersonContract
select x;
IQueryable<Model.Person_PersonContract> getDataList = q.Where(x => x.PersonId == personId);
count = getDataList.Count();
if (count == 0)
@@ -43,7 +40,7 @@ namespace BLL
return null;
}
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in getDataList
select new
{
@@ -55,7 +52,7 @@ namespace BLL
db1.Base_Project.First(u => u.ProjectId == x.ProjectId).ProjectName,
x.LeadManId,
x.Telephone,
x.ContractType,
x.ContractType,
x.StartDate,
x.EndDate,
};
+1 -3
View File
@@ -1,8 +1,6 @@
using FineUIPro;
using System;
using System.Collections;
using System.Linq;
using Model;
namespace BLL
{
@@ -34,7 +32,7 @@ namespace BLL
{
Model.SGGLDB db = Funs.DB;
IQueryable<Model.Person_PersonTrain> getDataLists = from x in Funs.DB.Person_PersonTrain
select x;
select x;
IQueryable<Model.Person_PersonTrain> getDataList = getDataLists.Where(x => x.PersonId == personId);
count = getDataList.Count();
if (count == 0)
-3
View File
@@ -1,7 +1,4 @@
using FineUIPro;
using Microsoft.Office.Interop.Excel;
using Microsoft.Office.Interop.Word;
using Model;
using System;
using System.Collections;
using System.Collections.Generic;
@@ -6,7 +6,7 @@ namespace BLL
{
public static class Person_QuarterCheckApproveService
{
/// <summary>
/// 获取人员信息
@@ -6,7 +6,7 @@ namespace BLL
{
public static class Person_QuarterCheckItemService
{
/// <summary>
/// 获取人员信息
@@ -7,7 +7,7 @@ namespace BLL
{
public static class Person_QuarterCheckService
{
/// <summary>
/// 获取人员信息
@@ -1,7 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Model;
namespace BLL
{
+11 -12
View File
@@ -1,8 +1,6 @@
using FineUIPro;
using NPOI.SS.Formula.Functions;
using System.Collections;
using System.Linq;
using Model;
namespace BLL
{
@@ -23,7 +21,7 @@ namespace BLL
/// </summary>
private static IQueryable<Model.Person_Persons> getDataLists = from x in Funs.DB.Person_Persons
where x.PersonId != Const.sysglyId && x.PersonId != Const.hfnbdId && x.UnitId == Const.UnitId_SEDIN
&& x.DepartId == Const.Depart_constructionId
&& x.DepartId == Const.Depart_constructionId
&& x.CurrentProjectId == null && (!x.IsOffice.HasValue || x.IsOffice == false)
select x;
@@ -38,9 +36,9 @@ namespace BLL
/// <param name="isPost"></param>
/// <param name="Grid1"></param>
/// <returns></returns>
public static IEnumerable getListData(string workPostId, string postTitleId, string name, string certificateId, Grid Grid1)
public static IEnumerable getListData(string workPostId, string postTitleId, string name, string certificateId, Grid Grid1)
{
IQueryable<Model.Person_Persons> getDataList = getDataLists;
IQueryable<Model.Person_Persons> getDataList = getDataLists;
if (!string.IsNullOrEmpty(workPostId) && workPostId != Const._Null)
{
getDataList = getDataList.Where(e => e.WorkPostId == workPostId);
@@ -49,7 +47,7 @@ namespace BLL
{
getDataList = getDataList.Where(e => e.PostTitleId == postTitleId);
}
if (!string.IsNullOrEmpty(name))
{
getDataList = getDataList.Where(e => e.PersonName.Contains(name));
@@ -58,7 +56,7 @@ namespace BLL
{
getDataList = getDataList.Where(e => e.CertificateId.Contains(certificateId));
}
count = getDataList.Count();
if (count == 0)
{
@@ -75,7 +73,7 @@ namespace BLL
x.IdentityCard,
Sex = x.Sex ?? "1",
x.Birthday,
x.UnitId,
x.UnitId,
x.DepartId,
x.WorkPostId,
WorkPostName = WorkPostService.getWorkPostNamesWorkPostIds(x.WorkPostId),
@@ -88,7 +86,7 @@ namespace BLL
x.CurrentProjectId,
LastProjectName = getCurrentProjectName(x.PersonId),
x.CurrentProjectWorkPostId,
LastWorkPostName = getCurrentProjectWorkPostName(x.PersonId),
LastWorkPostName = getCurrentProjectWorkPostName(x.PersonId),
IsPost = x.IsPost ?? true,
IsPostName = x.IsPost == false ? "否" : "是",
x.SignatureUrl,
@@ -106,9 +104,10 @@ namespace BLL
/// <returns></returns>
public static string getCurrentProjectName(string PersonId)
{
var getItem = (from x in Funs.DB.SitePerson_PersonItem where x.PersonId == PersonId
orderby x.InTime descending
select x).FirstOrDefault();
var getItem = (from x in Funs.DB.SitePerson_PersonItem
where x.PersonId == PersonId
orderby x.InTime descending
select x).FirstOrDefault();
if (getItem != null)
{
return ProjectService.GetShortNameByProjectId(getItem.ProjectId);
@@ -4,7 +4,7 @@ namespace BLL
{
public static class Person_TrainingPlanService
{
/// <summary>
/// 获取人员信息
/// </summary>