20210830
This commit is contained in:
parent
969c81925b
commit
8ce6070be5
|
@ -1,6 +0,0 @@
|
||||||
ALTER TABLE SitePerson_Checking ALTER COLUMN IdentityCard NVARCHAR(50)
|
|
||||||
GO
|
|
||||||
ALTER TABLE SitePerson_Checking ALTER COLUMN Address NVARCHAR(200)
|
|
||||||
GO
|
|
||||||
ALTER TABLE SitePerson_Checking ALTER COLUMN WorkAreaName NVARCHAR(200)
|
|
||||||
GO
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('214A1AE1-816E-4DDA-8E6E-04EB35F02A12','ÏÖ³¡ÈËÔ±','ZHGL/RealName/OnPost.aspx',50,'D78C6E54-4240-4E82-B9B5-8ED76CF62981','Menu_ZHGL',1,1,1)
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE SitePerson_Person ADD IsCardNoOK BIT NULL
|
||||||
|
GO
|
||||||
|
ALTER TABLE SitePerson_Person_BAK ADD IsCardNoOK BIT NULL
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[RealName_Project] ADD JTproCode nvarchar(50) null
|
||||||
|
go
|
||||||
|
update RealName_Project set JTproCode=proCode
|
||||||
|
go
|
|
@ -1,2 +1,6 @@
|
||||||
alter table dbo.Comprehensive_DesignDrawings drop constraint FK_Comprehensive_DesignDrawings_Base_CNProfessional
|
ALTER TABLE SitePerson_Checking ALTER COLUMN IdentityCard NVARCHAR(50)
|
||||||
|
GO
|
||||||
|
ALTER TABLE SitePerson_Checking ALTER COLUMN Address NVARCHAR(200)
|
||||||
|
GO
|
||||||
|
ALTER TABLE SitePerson_Checking ALTER COLUMN WorkAreaName NVARCHAR(200)
|
||||||
GO
|
GO
|
|
@ -1,7 +1,7 @@
|
||||||
delete from Sys_ButtonToMenu where MenuId in (select MenuId from Sys_Menu where MenuType='Menu_ZHGL')
|
--delete from Sys_ButtonToMenu where MenuId in (select MenuId from Sys_Menu where MenuType='Menu_ZHGL')
|
||||||
go
|
--go
|
||||||
delete from Sys_Menu where MenuType='Menu_ZHGL'
|
--delete from Sys_Menu where MenuType='Menu_ZHGL'
|
||||||
go
|
--go
|
||||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
VALUES('2572CDC8-BA26-4C74-B6F7-CB3D63E91E72','安全体系','',10,'0','Menu_ZHGL',1,0,1)
|
VALUES('2572CDC8-BA26-4C74-B6F7-CB3D63E91E72','安全体系','',10,'0','Menu_ZHGL',1,0,1)
|
||||||
GO
|
GO
|
||||||
|
@ -396,7 +396,9 @@ GO
|
||||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
VALUES('4882C5F0-9D49-4B2E-BA30-E806D3CDF6FA','离岗人员修正','ZHGL/RealName/LeavePost.aspx',40,'D78C6E54-4240-4E82-B9B5-8ED76CF62981','Menu_ZHGL',1,1,1)
|
VALUES('4882C5F0-9D49-4B2E-BA30-E806D3CDF6FA','离岗人员修正','ZHGL/RealName/LeavePost.aspx',40,'D78C6E54-4240-4E82-B9B5-8ED76CF62981','Menu_ZHGL',1,1,1)
|
||||||
GO
|
GO
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('214A1AE1-816E-4DDA-8E6E-04EB35F02A12','在岗人员','ZHGL/RealName/OnPost.aspx',50,'D78C6E54-4240-4E82-B9B5-8ED76CF62981','Menu_ZHGL',1,1,1)
|
||||||
|
GO
|
||||||
----本部综合管理
|
----本部综合管理
|
||||||
--INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
--INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
--VALUES('A57CBE1D-B9F4-4FB6-A428-10197734AAB6','数据统计','',30,'0','Menu_ZHGL',1,0,1)
|
--VALUES('A57CBE1D-B9F4-4FB6-A428-10197734AAB6','数据统计','',30,'0','Menu_ZHGL',1,0,1)
|
||||||
|
@ -406,4 +408,4 @@ GO
|
||||||
--VALUES('2D79CBCF-20A6-4146-B832-58368315FC96','隐患整改统计','ZHGL/DataStatistics/RectifyNoticesStatistics.aspx',20,'A57CBE1D-B9F4-4FB6-A428-10197734AAB6','Menu_ZHGL',1,1,1)
|
--VALUES('2D79CBCF-20A6-4146-B832-58368315FC96','隐患整改统计','ZHGL/DataStatistics/RectifyNoticesStatistics.aspx',20,'A57CBE1D-B9F4-4FB6-A428-10197734AAB6','Menu_ZHGL',1,1,1)
|
||||||
--INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
--INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
--VALUES('69EEFFAB-166E-4419-A334-E53EDFE7D9D7','安全会议统计','ZHGL/DataStatistics/MeetStatistics.aspx',30,'A57CBE1D-B9F4-4FB6-A428-10197734AAB6','Menu_ZHGL',1,1,1)
|
--VALUES('69EEFFAB-166E-4419-A334-E53EDFE7D9D7','安全会议统计','ZHGL/DataStatistics/MeetStatistics.aspx',30,'A57CBE1D-B9F4-4FB6-A428-10197734AAB6','Menu_ZHGL',1,1,1)
|
||||||
--GO
|
--GO
|
||||||
|
|
|
@ -822,6 +822,7 @@ namespace BLL
|
||||||
{
|
{
|
||||||
newPerson.Isprint = "0";
|
newPerson.Isprint = "0";
|
||||||
newPerson.PersonId = SQLHelper.GetNewID();
|
newPerson.PersonId = SQLHelper.GetNewID();
|
||||||
|
newPerson.IsCardNoOK = IDCardValid.CheckIDCard(person.IdentityCard);
|
||||||
db.SitePerson_Person.InsertOnSubmit(newPerson);
|
db.SitePerson_Person.InsertOnSubmit(newPerson);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.PersonListMenuId, person.ProjectId, person.UnitId, person.PersonId, newPerson.InTime);
|
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.PersonListMenuId, person.ProjectId, person.UnitId, person.PersonId, newPerson.InTime);
|
||||||
|
@ -901,6 +902,7 @@ namespace BLL
|
||||||
getPerson.RealNameUpdateTime = null;
|
getPerson.RealNameUpdateTime = null;
|
||||||
getPerson.IsForeign = person.IsForeign;
|
getPerson.IsForeign = person.IsForeign;
|
||||||
getPerson.IsOutside = person.IsOutside;
|
getPerson.IsOutside = person.IsOutside;
|
||||||
|
getPerson.IsCardNoOK = IDCardValid.CheckIDCard(getPerson.IdentityCard);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(newPerson.PersonId))
|
if (!string.IsNullOrEmpty(newPerson.PersonId))
|
||||||
|
|
|
@ -710,6 +710,8 @@
|
||||||
<Compile Include="ZHGL\ProjectAccident\AccidentStatisticsService.cs" />
|
<Compile Include="ZHGL\ProjectAccident\AccidentStatisticsService.cs" />
|
||||||
<Compile Include="ZHGL\ProjectAccident\ProjectAccidentReportService.cs" />
|
<Compile Include="ZHGL\ProjectAccident\ProjectAccidentReportService.cs" />
|
||||||
<Compile Include="ZHGL\RealName\BasicDataService.cs" />
|
<Compile Include="ZHGL\RealName\BasicDataService.cs" />
|
||||||
|
<Compile Include="ZHGL\RealName\RealName_ProjectService.cs" />
|
||||||
|
<Compile Include="ZHGL\RealName\OnPostService.cs" />
|
||||||
<Compile Include="ZHGL\RealName\LeavePostService.cs" />
|
<Compile Include="ZHGL\RealName\LeavePostService.cs" />
|
||||||
<Compile Include="ZHGL\RealName\CityService.cs" />
|
<Compile Include="ZHGL\RealName\CityService.cs" />
|
||||||
<Compile Include="ZHGL\RealName\CountryService.cs" />
|
<Compile Include="ZHGL\RealName\CountryService.cs" />
|
||||||
|
|
|
@ -590,5 +590,20 @@ namespace BLL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取年龄
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="birthDate"></param>
|
||||||
|
/// <param name="now"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static int CalculateAgeCorrect(DateTime birthDate)
|
||||||
|
{
|
||||||
|
DateTime now = DateTime.Now;
|
||||||
|
int age = now.Year - birthDate.Year;
|
||||||
|
if (now.Month < birthDate.Month || (now.Month == birthDate.Month && now.Day < birthDate.Day)) age--;
|
||||||
|
return age;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,10 @@ namespace BLL
|
||||||
/// <returns>验证成功为True,否则为False</returns>
|
/// <returns>验证成功为True,否则为False</returns>
|
||||||
public static bool CheckIDCard(string Id)
|
public static bool CheckIDCard(string Id)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(Id))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (Id.Length == 18)
|
if (Id.Length == 18)
|
||||||
{
|
{
|
||||||
bool check = CheckIDCard18(Id);
|
bool check = CheckIDCard18(Id);
|
||||||
|
|
|
@ -410,6 +410,7 @@ namespace BLL
|
||||||
Nation = person.Nation,
|
Nation = person.Nation,
|
||||||
CountryCode = person.CountryCode,
|
CountryCode = person.CountryCode,
|
||||||
ProvinceCode = person.ProvinceCode,
|
ProvinceCode = person.ProvinceCode,
|
||||||
|
IsCardNoOK=IDCardValid.CheckIDCard(person.IdentityCard),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (person.InTime.HasValue)
|
if (person.InTime.HasValue)
|
||||||
|
@ -500,6 +501,7 @@ namespace BLL
|
||||||
newPerson.Nation = person.Nation;
|
newPerson.Nation = person.Nation;
|
||||||
newPerson.CountryCode = person.CountryCode;
|
newPerson.CountryCode = person.CountryCode;
|
||||||
newPerson.ProvinceCode = person.ProvinceCode;
|
newPerson.ProvinceCode = person.ProvinceCode;
|
||||||
|
newPerson.IsCardNoOK = IDCardValid.CheckIDCard(person.IdentityCard);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,113 @@
|
||||||
|
using FineUIPro;
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
public static class OnPostService
|
||||||
|
{
|
||||||
|
public static Model.SGGLDB db = Funs.DB;
|
||||||
|
|
||||||
|
#region 获取列表
|
||||||
|
/// <summary>
|
||||||
|
/// 记录数
|
||||||
|
/// </summary>
|
||||||
|
public static int count
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 定义变量
|
||||||
|
/// </summary>
|
||||||
|
private static IQueryable<Model.SitePerson_Person> getDataLists = from x in db.SitePerson_Person
|
||||||
|
where x.IsUsed == true
|
||||||
|
select x;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="projectId"></param>
|
||||||
|
/// <param name="personName"></param>
|
||||||
|
/// <param name="identityCard"></param>
|
||||||
|
/// <param name="Grid1"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static IEnumerable getListData(string projectId, string personName, string identityCard, string rblStates, string rbInfo, string rbIDCardNo, string rbRealName,
|
||||||
|
Grid Grid1)
|
||||||
|
{
|
||||||
|
IQueryable<Model.SitePerson_Person> getDataList = getDataLists;
|
||||||
|
if (projectId != Const._Null && !string.IsNullOrEmpty(projectId))
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => x.ProjectId == projectId);
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(personName))
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => x.PersonName.Contains(personName));
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(identityCard))
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => x.IdentityCard.Contains(identityCard));
|
||||||
|
}
|
||||||
|
if (rblStates == "1")
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => !x.OutTime.HasValue);
|
||||||
|
}
|
||||||
|
if (rblStates == "0")
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => x.OutTime.HasValue);
|
||||||
|
}
|
||||||
|
if (rbInfo == "1")
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => x.HeadImage != null && x.IsCardNoOK ==true);
|
||||||
|
}
|
||||||
|
if (rbInfo == "0")
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => x.HeadImage == null || x.IsCardNoOK ==false);
|
||||||
|
}
|
||||||
|
if (rbInfo == "1")
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => x.IsCardNoOK == true);
|
||||||
|
}
|
||||||
|
if (rbInfo == "0")
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x =>x.IsCardNoOK == false);
|
||||||
|
}
|
||||||
|
if (rbRealName == "1")
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => x.RealNameAddTime.HasValue);
|
||||||
|
}
|
||||||
|
if (rbRealName == "0")
|
||||||
|
{
|
||||||
|
getDataList = getDataList.Where(x => !x.RealNameAddTime.HasValue);
|
||||||
|
}
|
||||||
|
count = getDataList.Count();
|
||||||
|
if (count == 0)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||||
|
return from x in getDataList
|
||||||
|
select new
|
||||||
|
{
|
||||||
|
x.PersonId,
|
||||||
|
x.IdentityCard,
|
||||||
|
x.PersonName,
|
||||||
|
x.ProjectId,
|
||||||
|
//db.Base_Project.First(y => x.ProjectId == y.ProjectId).ShortName,
|
||||||
|
SexName = x.Sex == "1" ? "男" : "女",
|
||||||
|
x.InTime,
|
||||||
|
x.OutTime,
|
||||||
|
x.Birthday,
|
||||||
|
x.CountryCode,
|
||||||
|
x.ProvinceCode,
|
||||||
|
db.ProjectData_TeamGroup.First(z => x.TeamGroupId == z.TeamGroupId).TeamGroupName,
|
||||||
|
db.Base_WorkPost.First(z => x.WorkPostId == z.WorkPostId).WorkPostName,
|
||||||
|
IsPostName = x.OutTime.HasValue ? "是" : "否",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,42 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
public static class RealName_ProjectService
|
||||||
|
{
|
||||||
|
public static Model.SGGLDB db = Funs.DB;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static List<Model.RealName_Project> GetRealName_ProjectList()
|
||||||
|
{
|
||||||
|
return (from x in Funs.DB.RealName_Project orderby x.ProCode select x).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="proCode"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static string GeJTproCodeByproCode(string proCode)
|
||||||
|
{
|
||||||
|
string code = string.Empty;
|
||||||
|
var project = Funs.DB.RealName_Project.FirstOrDefault(e => e.ProCode == proCode);
|
||||||
|
if (project != null)
|
||||||
|
{
|
||||||
|
code = project.JTproCode;
|
||||||
|
if (string.IsNullOrEmpty(code))
|
||||||
|
{
|
||||||
|
code = project.ProCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -502,7 +502,7 @@ namespace BLL
|
||||||
JArray arr = JArray.Parse(obj["data"].ToString());
|
JArray arr = JArray.Parse(obj["data"].ToString());
|
||||||
foreach (var item in arr)
|
foreach (var item in arr)
|
||||||
{
|
{
|
||||||
proCode = item["proCode"].ToString();
|
string JTproCode = item["proCode"].ToString();
|
||||||
string proName = item["proName"].ToString();
|
string proName = item["proName"].ToString();
|
||||||
string proShortName = item["proShortName"].ToString();
|
string proShortName = item["proShortName"].ToString();
|
||||||
if (!string.IsNullOrEmpty(proCode))
|
if (!string.IsNullOrEmpty(proCode))
|
||||||
|
@ -512,6 +512,7 @@ namespace BLL
|
||||||
{
|
{
|
||||||
getProject.ProName = proName;
|
getProject.ProName = proName;
|
||||||
getProject.ProShortName = proShortName;
|
getProject.ProShortName = proShortName;
|
||||||
|
getProject.JTproCode = JTproCode;
|
||||||
Funs.DB.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -520,6 +521,7 @@ namespace BLL
|
||||||
{
|
{
|
||||||
ID = SQLHelper.GetNewID(),
|
ID = SQLHelper.GetNewID(),
|
||||||
ProCode = proCode,
|
ProCode = proCode,
|
||||||
|
JTproCode=JTproCode,
|
||||||
ProName = proName,
|
ProName = proName,
|
||||||
ProShortName = proShortName
|
ProShortName = proShortName
|
||||||
};
|
};
|
||||||
|
@ -719,7 +721,7 @@ namespace BLL
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
unitId=x.UnitId,
|
unitId=x.UnitId,
|
||||||
proCode = y.JTProjectCode,
|
proCode = z.JTproCode,
|
||||||
collCropCode = u.CollCropCode,
|
collCropCode = u.CollCropCode,
|
||||||
collCropType = db.Sys_Const.First(t => t.GroupId == ConstValue.Group_ProjectUnitType && t.ConstValue == x.UnitType).Remark,
|
collCropType = db.Sys_Const.First(t => t.GroupId == ConstValue.Group_ProjectUnitType && t.ConstValue == x.UnitType).Remark,
|
||||||
entryTime = string.Format("{0:yyyy-MM-dd}", x.InTime),
|
entryTime = string.Format("{0:yyyy-MM-dd}", x.InTime),
|
||||||
|
@ -840,7 +842,7 @@ namespace BLL
|
||||||
&& u.CollCropCode != null && u.CollCropCode != ""
|
&& u.CollCropCode != null && u.CollCropCode != ""
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
proCode = y.JTProjectCode,
|
proCode = z.JTproCode,
|
||||||
collCropCode = u.CollCropCode,
|
collCropCode = u.CollCropCode,
|
||||||
teamType = x.TeamTypeId,
|
teamType = x.TeamTypeId,
|
||||||
teamName = x.TeamGroupName,
|
teamName = x.TeamGroupName,
|
||||||
|
@ -913,13 +915,14 @@ namespace BLL
|
||||||
string contenttype = "application/json;charset=unicode";
|
string contenttype = "application/json;charset=unicode";
|
||||||
var getData = (from x in Funs.DB.SitePerson_Person
|
var getData = (from x in Funs.DB.SitePerson_Person
|
||||||
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
|
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
|
||||||
|
join z in Funs.DB.RealName_Project on y.JTProjectCode equals z.ProCode
|
||||||
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
||||||
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
||||||
join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
||||||
where ((x.IdentityCard != null && x.IdentityCard != "" && identityCard == null) || (identityCard != null && x.IdentityCard == identityCard))
|
where ((x.IdentityCard != null && x.IdentityCard != "" && identityCard == null) || (identityCard != null && x.IdentityCard == identityCard))
|
||||||
&& y.JTProjectCode == proCode
|
&& y.JTProjectCode == proCode && z.JTproCode != null
|
||||||
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
||||||
&& ((type == Const.BtnModify && !x.RealNameUpdateTime.HasValue) || (type != Const.BtnModify && !x.RealNameAddTime.HasValue && x.IsUsed && !x.OutTime.HasValue))
|
&& ((type == Const.BtnModify && !x.RealNameUpdateTime.HasValue && x.RealNameAddTime.HasValue) || (type != Const.BtnModify && !x.RealNameAddTime.HasValue && x.IsUsed && !x.OutTime.HasValue))
|
||||||
&& (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18)
|
&& (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18)
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
|
@ -942,7 +945,7 @@ namespace BLL
|
||||||
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
||||||
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
||||||
headImage = x.HeadImage,
|
headImage = x.HeadImage,
|
||||||
proCode = y.JTProjectCode,
|
proCode = z.JTproCode,
|
||||||
teamId = v.TeamId,
|
teamId = v.TeamId,
|
||||||
mobile = x.Telephone,
|
mobile = x.Telephone,
|
||||||
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
||||||
|
@ -1036,12 +1039,14 @@ namespace BLL
|
||||||
string contenttype = "application/json;charset=unicode";
|
string contenttype = "application/json;charset=unicode";
|
||||||
var getData = (from x in Funs.DB.SitePerson_Person
|
var getData = (from x in Funs.DB.SitePerson_Person
|
||||||
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
|
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
|
||||||
|
join z in Funs.DB.RealName_Project on y.JTProjectCode equals z.ProCode
|
||||||
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
||||||
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
||||||
join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
||||||
where x.IdentityCard == identityCard && y.JTProjectCode == proCode
|
where x.IdentityCard == identityCard && y.JTProjectCode == proCode
|
||||||
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
||||||
&& (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18)
|
&& (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18)
|
||||||
|
&& z.JTproCode != null
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
name = x.PersonName,
|
name = x.PersonName,
|
||||||
|
@ -1061,7 +1066,7 @@ namespace BLL
|
||||||
countryCode = x.CountryCode,
|
countryCode = x.CountryCode,
|
||||||
provinceCode = x.ProvinceCode,
|
provinceCode = x.ProvinceCode,
|
||||||
headImage = x.HeadImage,
|
headImage = x.HeadImage,
|
||||||
proCode = y.JTProjectCode,
|
proCode = z.JTproCode,
|
||||||
teamId = v.TeamId,
|
teamId = v.TeamId,
|
||||||
mobile = x.Telephone,
|
mobile = x.Telephone,
|
||||||
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
||||||
|
@ -1160,15 +1165,17 @@ namespace BLL
|
||||||
join p in Funs.DB.SitePerson_Person on x.PersonId equals p.PersonId
|
join p in Funs.DB.SitePerson_Person on x.PersonId equals p.PersonId
|
||||||
join v in Funs.DB.ProjectData_TeamGroup on p.TeamGroupId equals v.TeamGroupId
|
join v in Funs.DB.ProjectData_TeamGroup on p.TeamGroupId equals v.TeamGroupId
|
||||||
join r in Funs.DB.RealName_CollTeam on v.TeamId equals r.TeamId
|
join r in Funs.DB.RealName_CollTeam on v.TeamId equals r.TeamId
|
||||||
|
join z in Funs.DB.RealName_Project on x.ProCode equals z.ProCode
|
||||||
where x.IdcardNumber != null && x.IdcardType != null && x.ChangeTime.HasValue
|
where x.IdcardNumber != null && x.IdcardType != null && x.ChangeTime.HasValue
|
||||||
&& (proCode == null || x.ProCode == proCode) && p.HeadImage != null && p.HeadImage.Length > 0
|
&& (proCode == null || x.ProCode == proCode) && p.HeadImage != null && p.HeadImage.Length > 0
|
||||||
&& v.TeamId.HasValue && p.HeadImage != null && r.TeamId.HasValue
|
&& v.TeamId.HasValue && p.HeadImage != null && r.TeamId.HasValue
|
||||||
&& (p.IdentityCard.Length == 15 || p.IdentityCard.Length == 18)
|
&& (p.IdentityCard.Length == 15 || p.IdentityCard.Length == 18) && p.RealNameAddTime.HasValue
|
||||||
|
&& z.JTproCode != null
|
||||||
orderby x.ChangeTime descending
|
orderby x.ChangeTime descending
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
p.PersonId,
|
p.PersonId,
|
||||||
proCode = x.ProCode,
|
proCode = z.JTproCode,
|
||||||
name = x.Name,
|
name = x.Name,
|
||||||
idcardType = x.IdcardType,
|
idcardType = x.IdcardType,
|
||||||
idcardNumber = x.IdcardNumber,
|
idcardNumber = x.IdcardNumber,
|
||||||
|
@ -1247,7 +1254,7 @@ namespace BLL
|
||||||
{
|
{
|
||||||
var getProject = new
|
var getProject = new
|
||||||
{
|
{
|
||||||
proCode
|
proCode = RealName_ProjectService.GeJTproCodeByproCode(proCode),
|
||||||
};
|
};
|
||||||
var returndata = BLL.APIGetHttpService.OutsideHttp(Funs.RealNameApiUrl + "/foreignApi/baseData/getCollTeam", "POST", null, newToken, JsonConvert.SerializeObject(getProject));
|
var returndata = BLL.APIGetHttpService.OutsideHttp(Funs.RealNameApiUrl + "/foreignApi/baseData/getCollTeam", "POST", null, newToken, JsonConvert.SerializeObject(getProject));
|
||||||
if (!string.IsNullOrEmpty(returndata))
|
if (!string.IsNullOrEmpty(returndata))
|
||||||
|
@ -1304,13 +1311,14 @@ namespace BLL
|
||||||
{
|
{
|
||||||
var getCollTeam = (from x in Funs.DB.ProjectData_TeamGroup
|
var getCollTeam = (from x in Funs.DB.ProjectData_TeamGroup
|
||||||
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
|
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
|
||||||
|
join z in Funs.DB.RealName_Project on y.JTProjectCode equals z.ProCode
|
||||||
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
||||||
join s in Funs.DB.SitePerson_Person on x.GroupLeaderId equals s.PersonId into jonPerson
|
join s in Funs.DB.SitePerson_Person on x.GroupLeaderId equals s.PersonId into jonPerson
|
||||||
from s in jonPerson.DefaultIfEmpty()
|
from s in jonPerson.DefaultIfEmpty()
|
||||||
where teamGroupIds.Contains(x.TeamGroupId)
|
where teamGroupIds.Contains(x.TeamGroupId) && z.JTproCode != null
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
proCode = y.JTProjectCode,
|
proCode = z.JTproCode,
|
||||||
collCropCode = u.CollCropCode,
|
collCropCode = u.CollCropCode,
|
||||||
teamType = x.TeamTypeId,
|
teamType = x.TeamTypeId,
|
||||||
teamName = x.TeamGroupName,
|
teamName = x.TeamGroupName,
|
||||||
|
@ -1344,9 +1352,10 @@ namespace BLL
|
||||||
{
|
{
|
||||||
var getData = (from x in db.SitePerson_Person
|
var getData = (from x in db.SitePerson_Person
|
||||||
join y in db.Base_Project on x.ProjectId equals y.ProjectId
|
join y in db.Base_Project on x.ProjectId equals y.ProjectId
|
||||||
|
join z in Funs.DB.RealName_Project on y.JTProjectCode equals z.ProCode
|
||||||
join v in db.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
join v in db.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
||||||
join w in db.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
join w in db.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
||||||
where personList.Contains(x.PersonId)
|
where personList.Contains(x.PersonId) && z.JTproCode != null
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
name = x.PersonName,
|
name = x.PersonName,
|
||||||
|
@ -1368,7 +1377,7 @@ namespace BLL
|
||||||
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
||||||
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
||||||
headImage = x.HeadImage,
|
headImage = x.HeadImage,
|
||||||
proCode = y.JTProjectCode,
|
proCode = z.JTproCode,
|
||||||
teamId = v.TeamId,
|
teamId = v.TeamId,
|
||||||
mobile = x.Telephone,
|
mobile = x.Telephone,
|
||||||
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue