diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 578500cd..141cd945 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -1016,7 +1016,7 @@
2.1.1
- 13.0.3
+ 12.0.1
2.5.5
diff --git a/SGGL/FineUIPro.Web/HSSE/SecuritySystem/SafetyOrganization.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SecuritySystem/SafetyOrganization.aspx.cs
index 992291c7..465f1c0e 100644
--- a/SGGL/FineUIPro.Web/HSSE/SecuritySystem/SafetyOrganization.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/SecuritySystem/SafetyOrganization.aspx.cs
@@ -119,7 +119,7 @@ namespace FineUIPro.Web.HSSE.SecuritySystem
string strSql = @"SELECT p.PersonId,p.CardNo,p.PersonName,p.ProjectId,p.UnitId,w.WorkPostName,p.Telephone,w.Remark"
+ @" FROM SitePerson_Person AS P"
+ @" LEFT JOIN Base_WorkPost AS W ON P.WorkPostId =W.WorkPostId"
- + @" WHERE w.PostType='1' AND p.ProjectId= '" + this.ProjectId + "' AND p.UnitId='" + unitIdSelect + "'";
+ + @" WHERE w.PostType='1' AND p.ProjectId= '" + this.ProjectId + "' AND p.UnitId='" + unitIdSelect + "' and P.IsUsed=1 and P.OutTime is null";
List listStr = new List();
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index eb8267c4..8d6b7742 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -59742,8 +59742,6 @@ namespace Model
private string _CheckItemSetId;
- private string _ReceiveMan;
-
private string _ResponsibleUnit;
private string _WorkAreaId;
@@ -59752,6 +59750,8 @@ namespace Model
private string _ResponsibleMan;
+ private string _ReceiveMan;
+
private EntityRef _Base_Project;
private EntityRef _Technique_CheckItemSet;
@@ -59792,8 +59792,6 @@ namespace Model
partial void OnPartInPersonNamesChanged();
partial void OnCheckItemSetIdChanging(string value);
partial void OnCheckItemSetIdChanged();
- partial void OnReceiveManChanging(string value);
- partial void OnReceiveManChanged();
partial void OnResponsibleUnitChanging(string value);
partial void OnResponsibleUnitChanged();
partial void OnWorkAreaIdChanging(string value);
@@ -59802,6 +59800,8 @@ namespace Model
partial void OnQuestionTypeChanged();
partial void OnResponsibleManChanging(string value);
partial void OnResponsibleManChanged();
+ partial void OnReceiveManChanging(string value);
+ partial void OnReceiveManChanged();
#endregion
public Check_CheckSpecial()
@@ -60139,26 +60139,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceiveMan", DbType="NVarChar(2000)")]
- public string ReceiveMan
- {
- get
- {
- return this._ReceiveMan;
- }
- set
- {
- if ((this._ReceiveMan != value))
- {
- this.OnReceiveManChanging(value);
- this.SendPropertyChanging();
- this._ReceiveMan = value;
- this.SendPropertyChanged("ReceiveMan");
- this.OnReceiveManChanged();
- }
- }
- }
-
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponsibleUnit", DbType="NVarChar(50)")]
public string ResponsibleUnit
{
@@ -60239,6 +60219,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceiveMan", DbType="NVarChar(2000)")]
+ public string ReceiveMan
+ {
+ get
+ {
+ return this._ReceiveMan;
+ }
+ set
+ {
+ if ((this._ReceiveMan != value))
+ {
+ this.OnReceiveManChanging(value);
+ this.SendPropertyChanging();
+ this._ReceiveMan = value;
+ this.SendPropertyChanged("ReceiveMan");
+ this.OnReceiveManChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_CheckSpecial_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{