fix:一人一档导出

This commit is contained in:
geh
2025-04-14 19:47:49 +08:00
parent 24390f1ea0
commit 4d7e4d1806
13 changed files with 1483 additions and 299 deletions
+454 -107
View File
@@ -2927,6 +2927,9 @@ namespace Model
partial void InsertZJ_Energy(ZJ_Energy instance);
partial void UpdateZJ_Energy(ZJ_Energy instance);
partial void DeleteZJ_Energy(ZJ_Energy instance);
partial void InsertZJ_EnvironmentalCheck(ZJ_EnvironmentalCheck instance);
partial void UpdateZJ_EnvironmentalCheck(ZJ_EnvironmentalCheck instance);
partial void DeleteZJ_EnvironmentalCheck(ZJ_EnvironmentalCheck instance);
partial void InsertZJ_SuperviseCheck(ZJ_SuperviseCheck instance);
partial void UpdateZJ_SuperviseCheck(ZJ_SuperviseCheck instance);
partial void DeleteZJ_SuperviseCheck(ZJ_SuperviseCheck instance);
@@ -10290,14 +10293,6 @@ namespace Model
}
}
public System.Data.Linq.Table<UnitWorkTemp1> UnitWorkTemp1
{
get
{
return this.GetTable<UnitWorkTemp1>();
}
}
public System.Data.Linq.Table<Unqualified_WorkContact> Unqualified_WorkContact
{
get
@@ -11858,6 +11853,14 @@ namespace Model
}
}
public System.Data.Linq.Table<ZJ_EnvironmentalCheck> ZJ_EnvironmentalCheck
{
get
{
return this.GetTable<ZJ_EnvironmentalCheck>();
}
}
public System.Data.Linq.Table<ZJ_SuperviseCheck> ZJ_SuperviseCheck
{
get
@@ -291346,6 +291349,8 @@ namespace Model
private EntityRef<ProjectData_TeamGroup> _ProjectData_TeamGroup;
private EntityRef<SitePerson_Person> _SitePerson_Person;
private EntityRef<Sys_User> _Sys_User;
#region
@@ -291437,6 +291442,7 @@ namespace Model
this._Base_Project = default(EntityRef<Base_Project>);
this._Base_Unit = default(EntityRef<Base_Unit>);
this._ProjectData_TeamGroup = default(EntityRef<ProjectData_TeamGroup>);
this._SitePerson_Person = default(EntityRef<SitePerson_Person>);
this._Sys_User = default(EntityRef<Sys_User>);
OnCreated();
}
@@ -291564,6 +291570,10 @@ namespace Model
{
if ((this._PersonId != value))
{
if (this._SitePerson_Person.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnPersonIdChanging(value);
this.SendPropertyChanging();
this._PersonId = value;
@@ -292339,6 +292349,40 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Perfomance_PersonPerfomance_SitePerson_Person", Storage="_SitePerson_Person", ThisKey="PersonId", OtherKey="PersonId", IsForeignKey=true)]
public SitePerson_Person SitePerson_Person
{
get
{
return this._SitePerson_Person.Entity;
}
set
{
SitePerson_Person previousValue = this._SitePerson_Person.Entity;
if (((previousValue != value)
|| (this._SitePerson_Person.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._SitePerson_Person.Entity = null;
previousValue.Perfomance_PersonPerfomance.Remove(this);
}
this._SitePerson_Person.Entity = value;
if ((value != null))
{
value.Perfomance_PersonPerfomance.Add(this);
this._PersonId = value.PersonId;
}
else
{
this._PersonId = default(string);
}
this.SendPropertyChanged("SitePerson_Person");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Perfomance_PersonPerfomance_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
public Sys_User Sys_User
{
@@ -363368,6 +363412,8 @@ namespace Model
private EntitySet<HJGL_WeldJoint> _HJGL_WeldJoint_SitePerson_Person_CoverWelder;
private EntitySet<Perfomance_PersonPerfomance> _Perfomance_PersonPerfomance;
private EntitySet<QualityAudit_EquipmentPersonQuality> _QualityAudit_EquipmentPersonQuality;
private EntitySet<QualityAudit_PersonQuality> _QualityAudit_PersonQuality;
@@ -363561,6 +363607,7 @@ namespace Model
this._HJGL_RepairRecord = new EntitySet<HJGL_RepairRecord>(new Action<HJGL_RepairRecord>(this.attach_HJGL_RepairRecord), new Action<HJGL_RepairRecord>(this.detach_HJGL_RepairRecord));
this._HJGL_WeldJoint = new EntitySet<HJGL_WeldJoint>(new Action<HJGL_WeldJoint>(this.attach_HJGL_WeldJoint), new Action<HJGL_WeldJoint>(this.detach_HJGL_WeldJoint));
this._HJGL_WeldJoint_SitePerson_Person_CoverWelder = new EntitySet<HJGL_WeldJoint>(new Action<HJGL_WeldJoint>(this.attach_HJGL_WeldJoint_SitePerson_Person_CoverWelder), new Action<HJGL_WeldJoint>(this.detach_HJGL_WeldJoint_SitePerson_Person_CoverWelder));
this._Perfomance_PersonPerfomance = new EntitySet<Perfomance_PersonPerfomance>(new Action<Perfomance_PersonPerfomance>(this.attach_Perfomance_PersonPerfomance), new Action<Perfomance_PersonPerfomance>(this.detach_Perfomance_PersonPerfomance));
this._QualityAudit_EquipmentPersonQuality = new EntitySet<QualityAudit_EquipmentPersonQuality>(new Action<QualityAudit_EquipmentPersonQuality>(this.attach_QualityAudit_EquipmentPersonQuality), new Action<QualityAudit_EquipmentPersonQuality>(this.detach_QualityAudit_EquipmentPersonQuality));
this._QualityAudit_PersonQuality = new EntitySet<QualityAudit_PersonQuality>(new Action<QualityAudit_PersonQuality>(this.attach_QualityAudit_PersonQuality), new Action<QualityAudit_PersonQuality>(this.detach_QualityAudit_PersonQuality));
this._QualityAudit_SafePersonQuality = new EntitySet<QualityAudit_SafePersonQuality>(new Action<QualityAudit_SafePersonQuality>(this.attach_QualityAudit_SafePersonQuality), new Action<QualityAudit_SafePersonQuality>(this.detach_QualityAudit_SafePersonQuality));
@@ -365118,6 +365165,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Perfomance_PersonPerfomance_SitePerson_Person", Storage="_Perfomance_PersonPerfomance", ThisKey="PersonId", OtherKey="PersonId", DeleteRule="NO ACTION")]
public EntitySet<Perfomance_PersonPerfomance> Perfomance_PersonPerfomance
{
get
{
return this._Perfomance_PersonPerfomance;
}
set
{
this._Perfomance_PersonPerfomance.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_QualityAudit_EquipmentPersonQuality_SitePerson_Person", Storage="_QualityAudit_EquipmentPersonQuality", ThisKey="PersonId", OtherKey="PersonId", DeleteRule="NO ACTION")]
public EntitySet<QualityAudit_EquipmentPersonQuality> QualityAudit_EquipmentPersonQuality
{
@@ -365685,6 +365745,18 @@ namespace Model
entity.CoverWelder = null;
}
private void attach_Perfomance_PersonPerfomance(Perfomance_PersonPerfomance entity)
{
this.SendPropertyChanging();
entity.SitePerson_Person = this;
}
private void detach_Perfomance_PersonPerfomance(Perfomance_PersonPerfomance entity)
{
this.SendPropertyChanging();
entity.SitePerson_Person = null;
}
private void attach_QualityAudit_EquipmentPersonQuality(QualityAudit_EquipmentPersonQuality entity)
{
this.SendPropertyChanging();
@@ -437275,6 +437347,12 @@ namespace Model
private string _UnitId;
private string _Signature;
private string _Fingerprint;
private string _CompanyTrainingItemId;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<SitePerson_Person> _SitePerson_Person;
@@ -437311,6 +437389,12 @@ namespace Model
partial void OnDurationChanged();
partial void OnUnitIdChanging(string value);
partial void OnUnitIdChanged();
partial void OnSignatureChanging(string value);
partial void OnSignatureChanged();
partial void OnFingerprintChanging(string value);
partial void OnFingerprintChanged();
partial void OnCompanyTrainingItemIdChanging(string value);
partial void OnCompanyTrainingItemIdChanged();
#endregion
public Training_TestRecord()
@@ -437574,6 +437658,66 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Signature", DbType="NVarChar(1000)")]
public string Signature
{
get
{
return this._Signature;
}
set
{
if ((this._Signature != value))
{
this.OnSignatureChanging(value);
this.SendPropertyChanging();
this._Signature = value;
this.SendPropertyChanged("Signature");
this.OnSignatureChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Fingerprint", DbType="NVarChar(1000)")]
public string Fingerprint
{
get
{
return this._Fingerprint;
}
set
{
if ((this._Fingerprint != value))
{
this.OnFingerprintChanging(value);
this.SendPropertyChanging();
this._Fingerprint = value;
this.SendPropertyChanged("Fingerprint");
this.OnFingerprintChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanyTrainingItemId", DbType="NVarChar(50)")]
public string CompanyTrainingItemId
{
get
{
return this._CompanyTrainingItemId;
}
set
{
if ((this._CompanyTrainingItemId != value))
{
this.OnCompanyTrainingItemIdChanging(value);
this.SendPropertyChanging();
this._CompanyTrainingItemId = value;
this.SendPropertyChanged("CompanyTrainingItemId");
this.OnCompanyTrainingItemIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Training_TestRecord_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
@@ -441126,105 +441270,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UnitWorkTemp1")]
public partial class UnitWorkTemp1
{
private string _UnitId;
private string _UnitName;
private string _WorkPostId;
private string _WorkPostName;
private System.Nullable<int> _PNum;
public UnitWorkTemp1()
{
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
public string UnitId
{
get
{
return this._UnitId;
}
set
{
if ((this._UnitId != value))
{
this._UnitId = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(200)")]
public string UnitName
{
get
{
return this._UnitName;
}
set
{
if ((this._UnitName != value))
{
this._UnitName = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPostId", DbType="NVarChar(50)")]
public string WorkPostId
{
get
{
return this._WorkPostId;
}
set
{
if ((this._WorkPostId != value))
{
this._WorkPostId = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPostName", DbType="VarChar(10) NOT NULL", CanBeNull=false)]
public string WorkPostName
{
get
{
return this._WorkPostName;
}
set
{
if ((this._WorkPostName != value))
{
this._WorkPostName = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="pNum", Storage="_PNum", DbType="Int")]
public System.Nullable<int> PNum
{
get
{
return this._PNum;
}
set
{
if ((this._PNum != value))
{
this._PNum = value;
}
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Unqualified_WorkContact")]
public partial class Unqualified_WorkContact : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -516660,6 +516705,308 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZJ_EnvironmentalCheck")]
public partial class ZJ_EnvironmentalCheck : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _Id;
private string _ProjectId;
private System.Nullable<double> _Tsp;
private System.Nullable<double> _Temp;
private System.Nullable<double> _Noise;
private System.Nullable<double> _Humid;
private System.Nullable<double> _PmTwoPointFive;
private System.Nullable<double> _WindSpeed;
private System.Nullable<double> _PmTen;
private System.Nullable<System.DateTime> _Time;
private System.Nullable<System.DateTime> _CreateTime;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnTspChanging(System.Nullable<double> value);
partial void OnTspChanged();
partial void OnTempChanging(System.Nullable<double> value);
partial void OnTempChanged();
partial void OnNoiseChanging(System.Nullable<double> value);
partial void OnNoiseChanged();
partial void OnHumidChanging(System.Nullable<double> value);
partial void OnHumidChanged();
partial void OnPmTwoPointFiveChanging(System.Nullable<double> value);
partial void OnPmTwoPointFiveChanged();
partial void OnWindSpeedChanging(System.Nullable<double> value);
partial void OnWindSpeedChanged();
partial void OnPmTenChanging(System.Nullable<double> value);
partial void OnPmTenChanged();
partial void OnTimeChanging(System.Nullable<System.DateTime> value);
partial void OnTimeChanged();
partial void OnCreateTimeChanging(System.Nullable<System.DateTime> value);
partial void OnCreateTimeChanged();
#endregion
public ZJ_EnvironmentalCheck()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tsp", DbType="Float")]
public System.Nullable<double> Tsp
{
get
{
return this._Tsp;
}
set
{
if ((this._Tsp != value))
{
this.OnTspChanging(value);
this.SendPropertyChanging();
this._Tsp = value;
this.SendPropertyChanged("Tsp");
this.OnTspChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Temp", DbType="Float")]
public System.Nullable<double> Temp
{
get
{
return this._Temp;
}
set
{
if ((this._Temp != value))
{
this.OnTempChanging(value);
this.SendPropertyChanging();
this._Temp = value;
this.SendPropertyChanged("Temp");
this.OnTempChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Noise", DbType="Float")]
public System.Nullable<double> Noise
{
get
{
return this._Noise;
}
set
{
if ((this._Noise != value))
{
this.OnNoiseChanging(value);
this.SendPropertyChanging();
this._Noise = value;
this.SendPropertyChanged("Noise");
this.OnNoiseChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Humid", DbType="Float")]
public System.Nullable<double> Humid
{
get
{
return this._Humid;
}
set
{
if ((this._Humid != value))
{
this.OnHumidChanging(value);
this.SendPropertyChanging();
this._Humid = value;
this.SendPropertyChanged("Humid");
this.OnHumidChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PmTwoPointFive", DbType="Float")]
public System.Nullable<double> PmTwoPointFive
{
get
{
return this._PmTwoPointFive;
}
set
{
if ((this._PmTwoPointFive != value))
{
this.OnPmTwoPointFiveChanging(value);
this.SendPropertyChanging();
this._PmTwoPointFive = value;
this.SendPropertyChanged("PmTwoPointFive");
this.OnPmTwoPointFiveChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WindSpeed", DbType="Float")]
public System.Nullable<double> WindSpeed
{
get
{
return this._WindSpeed;
}
set
{
if ((this._WindSpeed != value))
{
this.OnWindSpeedChanging(value);
this.SendPropertyChanging();
this._WindSpeed = value;
this.SendPropertyChanged("WindSpeed");
this.OnWindSpeedChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PmTen", DbType="Float")]
public System.Nullable<double> PmTen
{
get
{
return this._PmTen;
}
set
{
if ((this._PmTen != value))
{
this.OnPmTenChanging(value);
this.SendPropertyChanging();
this._PmTen = value;
this.SendPropertyChanged("PmTen");
this.OnPmTenChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Time", DbType="DateTime")]
public System.Nullable<System.DateTime> Time
{
get
{
return this._Time;
}
set
{
if ((this._Time != value))
{
this.OnTimeChanging(value);
this.SendPropertyChanging();
this._Time = value;
this.SendPropertyChanged("Time");
this.OnTimeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateTime", DbType="DateTime")]
public System.Nullable<System.DateTime> CreateTime
{
get
{
return this._CreateTime;
}
set
{
if ((this._CreateTime != value))
{
this.OnCreateTimeChanging(value);
this.SendPropertyChanging();
this._CreateTime = value;
this.SendPropertyChanged("CreateTime");
this.OnCreateTimeChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZJ_SuperviseCheck")]
public partial class ZJ_SuperviseCheck : INotifyPropertyChanging, INotifyPropertyChanged
{