1
This commit is contained in:
@@ -136,7 +136,12 @@ namespace BLL
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable getInPersonListData(string projectId, string unitId, string personName, string identityCard, Grid Grid1)
|
public static IEnumerable getInPersonListData(string projectId, string unitId, string personName, string identityCard, Grid Grid1)
|
||||||
{
|
{
|
||||||
IQueryable<Model.SitePerson_Person> getInPersonList = getInPersonLists.Where(x => x.ProjectId == projectId);
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
|
||||||
|
IQueryable<Model.SitePerson_Person> getInPersonList = from x in db.SitePerson_Person
|
||||||
|
where x.States == Const.ProjectPersonStates_1
|
||||||
|
select x;
|
||||||
|
getInPersonList = getInPersonLists.Where(x => x.ProjectId == projectId);
|
||||||
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
|
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
|
||||||
{
|
{
|
||||||
if (unitId == "0")
|
if (unitId == "0")
|
||||||
@@ -171,7 +176,7 @@ namespace BLL
|
|||||||
x.CardNo,
|
x.CardNo,
|
||||||
x.PersonName,
|
x.PersonName,
|
||||||
x.UnitId,
|
x.UnitId,
|
||||||
Funs.DB.Base_Unit.First(u => u.UnitId == x.UnitId).UnitName,
|
db.Base_Unit.First(u => u.UnitId == x.UnitId).UnitName,
|
||||||
x.IdentityCard,
|
x.IdentityCard,
|
||||||
IsInName = "",
|
IsInName = "",
|
||||||
InOuDate = DateTime.Now.ToShortDateString(),
|
InOuDate = DateTime.Now.ToShortDateString(),
|
||||||
|
|||||||
Reference in New Issue
Block a user