111
This commit is contained in:
@@ -7,6 +7,9 @@ namespace Model
|
||||
{
|
||||
public class ResponeData
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool success
|
||||
{
|
||||
get;
|
||||
|
||||
+754
-1
@@ -29,7 +29,11 @@ namespace Model
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnCreated();
|
||||
partial void InsertAttachFile(AttachFile instance);
|
||||
partial void OnCreated()
|
||||
{
|
||||
this.CommandTimeout = 600;
|
||||
}
|
||||
partial void InsertAttachFile(AttachFile instance);
|
||||
partial void UpdateAttachFile(AttachFile instance);
|
||||
partial void DeleteAttachFile(AttachFile instance);
|
||||
partial void InsertAudiFlow(AudiFlow instance);
|
||||
@@ -149,9 +153,15 @@ namespace Model
|
||||
partial void InsertFC_SignedContracts(FC_SignedContracts instance);
|
||||
partial void UpdateFC_SignedContracts(FC_SignedContracts instance);
|
||||
partial void DeleteFC_SignedContracts(FC_SignedContracts instance);
|
||||
partial void InsertFC_ToDo(FC_ToDo instance);
|
||||
partial void UpdateFC_ToDo(FC_ToDo instance);
|
||||
partial void DeleteFC_ToDo(FC_ToDo instance);
|
||||
partial void InsertFilesManagement(FilesManagement instance);
|
||||
partial void UpdateFilesManagement(FilesManagement instance);
|
||||
partial void DeleteFilesManagement(FilesManagement instance);
|
||||
partial void InsertSafetyPerformance(SafetyPerformance instance);
|
||||
partial void UpdateSafetyPerformance(SafetyPerformance instance);
|
||||
partial void DeleteSafetyPerformance(SafetyPerformance instance);
|
||||
partial void InsertScore_JournalEvaluation(Score_JournalEvaluation instance);
|
||||
partial void UpdateScore_JournalEvaluation(Score_JournalEvaluation instance);
|
||||
partial void DeleteScore_JournalEvaluation(Score_JournalEvaluation instance);
|
||||
@@ -606,6 +616,14 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<FC_ToDo> FC_ToDo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<FC_ToDo>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<FilesManagement> FilesManagement
|
||||
{
|
||||
get
|
||||
@@ -622,6 +640,14 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<SafetyPerformance> SafetyPerformance
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<SafetyPerformance>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Score_JournalEvaluation> Score_JournalEvaluation
|
||||
{
|
||||
get
|
||||
@@ -1391,6 +1417,10 @@ namespace Model
|
||||
|
||||
private EntitySet<FC_SESRelatedData> _FC_SESRelatedData;
|
||||
|
||||
private EntitySet<FC_ToDo> _FC_ToDo;
|
||||
|
||||
private EntitySet<SafetyPerformance> _SafetyPerformance;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
@@ -1411,6 +1441,8 @@ namespace Model
|
||||
{
|
||||
this._EMC_OneTimeContracts = new EntitySet<EMC_OneTimeContracts>(new Action<EMC_OneTimeContracts>(this.attach_EMC_OneTimeContracts), new Action<EMC_OneTimeContracts>(this.detach_EMC_OneTimeContracts));
|
||||
this._FC_SESRelatedData = new EntitySet<FC_SESRelatedData>(new Action<FC_SESRelatedData>(this.attach_FC_SESRelatedData), new Action<FC_SESRelatedData>(this.detach_FC_SESRelatedData));
|
||||
this._FC_ToDo = new EntitySet<FC_ToDo>(new Action<FC_ToDo>(this.attach_FC_ToDo), new Action<FC_ToDo>(this.detach_FC_ToDo));
|
||||
this._SafetyPerformance = new EntitySet<SafetyPerformance>(new Action<SafetyPerformance>(this.attach_SafetyPerformance), new Action<SafetyPerformance>(this.detach_SafetyPerformance));
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
@@ -1540,6 +1572,32 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FC_ToDo_Base_Contractor", Storage="_FC_ToDo", ThisKey="ContractorId", OtherKey="ContractId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<FC_ToDo> FC_ToDo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FC_ToDo;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._FC_ToDo.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyPerformance_Base_Contractor", Storage="_SafetyPerformance", ThisKey="ContractorId", OtherKey="ContractorId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<SafetyPerformance> SafetyPerformance
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SafetyPerformance;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._SafetyPerformance.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
@@ -1583,6 +1641,30 @@ namespace Model
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Contractor = null;
|
||||
}
|
||||
|
||||
private void attach_FC_ToDo(FC_ToDo entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Contractor = this;
|
||||
}
|
||||
|
||||
private void detach_FC_ToDo(FC_ToDo entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Contractor = null;
|
||||
}
|
||||
|
||||
private void attach_SafetyPerformance(SafetyPerformance entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Contractor = this;
|
||||
}
|
||||
|
||||
private void detach_SafetyPerformance(SafetyPerformance entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Contractor = null;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_Currency")]
|
||||
@@ -12698,6 +12780,8 @@ namespace Model
|
||||
|
||||
private string _AuditResult;
|
||||
|
||||
private string _ToDoId;
|
||||
|
||||
private EntityRef<FC_SESRelatedData> _FC_SESRelatedData;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
@@ -12740,6 +12824,8 @@ namespace Model
|
||||
partial void OnAuditDateChanged();
|
||||
partial void OnAuditResultChanging(string value);
|
||||
partial void OnAuditResultChanged();
|
||||
partial void OnToDoIdChanging(string value);
|
||||
partial void OnToDoIdChanged();
|
||||
#endregion
|
||||
|
||||
public FC_ContractManagement()
|
||||
@@ -13097,6 +13183,26 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ToDoId", DbType="NVarChar(50)")]
|
||||
public string ToDoId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ToDoId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ToDoId != value))
|
||||
{
|
||||
this.OnToDoIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ToDoId = value;
|
||||
this.SendPropertyChanged("ToDoId");
|
||||
this.OnToDoIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FC_ContractManagement_FC_SESRelatedData", Storage="_FC_SESRelatedData", ThisKey="FC_ID", OtherKey="ID", IsForeignKey=true)]
|
||||
public FC_SESRelatedData FC_SESRelatedData
|
||||
{
|
||||
@@ -21626,6 +21732,390 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.FC_ToDo")]
|
||||
public partial class FC_ToDo : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _ToDoId;
|
||||
|
||||
private string _FO_NO;
|
||||
|
||||
private string _ContractId;
|
||||
|
||||
private string _ToDoMan;
|
||||
|
||||
private string _ViolationBehavior;
|
||||
|
||||
private string _Result;
|
||||
|
||||
private System.Nullable<int> _Number;
|
||||
|
||||
private System.Nullable<int> _Number2;
|
||||
|
||||
private System.Nullable<bool> _IsHandle;
|
||||
|
||||
private System.Nullable<System.DateTime> _HandleDate;
|
||||
|
||||
private string _Def;
|
||||
|
||||
private EntityRef<Base_Contractor> _Base_Contractor;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnToDoIdChanging(string value);
|
||||
partial void OnToDoIdChanged();
|
||||
partial void OnFO_NOChanging(string value);
|
||||
partial void OnFO_NOChanged();
|
||||
partial void OnContractIdChanging(string value);
|
||||
partial void OnContractIdChanged();
|
||||
partial void OnToDoManChanging(string value);
|
||||
partial void OnToDoManChanged();
|
||||
partial void OnViolationBehaviorChanging(string value);
|
||||
partial void OnViolationBehaviorChanged();
|
||||
partial void OnResultChanging(string value);
|
||||
partial void OnResultChanged();
|
||||
partial void OnNumberChanging(System.Nullable<int> value);
|
||||
partial void OnNumberChanged();
|
||||
partial void OnNumber2Changing(System.Nullable<int> value);
|
||||
partial void OnNumber2Changed();
|
||||
partial void OnIsHandleChanging(System.Nullable<bool> value);
|
||||
partial void OnIsHandleChanged();
|
||||
partial void OnHandleDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnHandleDateChanged();
|
||||
partial void OnDefChanging(string value);
|
||||
partial void OnDefChanged();
|
||||
#endregion
|
||||
|
||||
public FC_ToDo()
|
||||
{
|
||||
this._Base_Contractor = default(EntityRef<Base_Contractor>);
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ToDoId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string ToDoId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ToDoId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ToDoId != value))
|
||||
{
|
||||
this.OnToDoIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ToDoId = value;
|
||||
this.SendPropertyChanged("ToDoId");
|
||||
this.OnToDoIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FO_NO", DbType="NVarChar(50)")]
|
||||
public string FO_NO
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FO_NO;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FO_NO != value))
|
||||
{
|
||||
this.OnFO_NOChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FO_NO = value;
|
||||
this.SendPropertyChanged("FO_NO");
|
||||
this.OnFO_NOChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractId", DbType="NVarChar(50)")]
|
||||
public string ContractId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContractId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContractId != value))
|
||||
{
|
||||
if (this._Base_Contractor.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnContractIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ContractId = value;
|
||||
this.SendPropertyChanged("ContractId");
|
||||
this.OnContractIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ToDoMan", DbType="NVarChar(50)")]
|
||||
public string ToDoMan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ToDoMan;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ToDoMan != value))
|
||||
{
|
||||
if (this._Sys_User.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnToDoManChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ToDoMan = value;
|
||||
this.SendPropertyChanged("ToDoMan");
|
||||
this.OnToDoManChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationBehavior", DbType="NVarChar(50)")]
|
||||
public string ViolationBehavior
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ViolationBehavior;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ViolationBehavior != value))
|
||||
{
|
||||
this.OnViolationBehaviorChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ViolationBehavior = value;
|
||||
this.SendPropertyChanged("ViolationBehavior");
|
||||
this.OnViolationBehaviorChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Result", DbType="NVarChar(50)")]
|
||||
public string Result
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Result;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Result != value))
|
||||
{
|
||||
this.OnResultChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Result = value;
|
||||
this.SendPropertyChanged("Result");
|
||||
this.OnResultChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Number", DbType="Int")]
|
||||
public System.Nullable<int> Number
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Number;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Number != value))
|
||||
{
|
||||
this.OnNumberChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Number = value;
|
||||
this.SendPropertyChanged("Number");
|
||||
this.OnNumberChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Number2", DbType="Int")]
|
||||
public System.Nullable<int> Number2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Number2;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Number2 != value))
|
||||
{
|
||||
this.OnNumber2Changing(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Number2 = value;
|
||||
this.SendPropertyChanged("Number2");
|
||||
this.OnNumber2Changed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsHandle", DbType="Bit")]
|
||||
public System.Nullable<bool> IsHandle
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IsHandle;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IsHandle != value))
|
||||
{
|
||||
this.OnIsHandleChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._IsHandle = value;
|
||||
this.SendPropertyChanged("IsHandle");
|
||||
this.OnIsHandleChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> HandleDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HandleDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HandleDate != value))
|
||||
{
|
||||
this.OnHandleDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HandleDate = value;
|
||||
this.SendPropertyChanged("HandleDate");
|
||||
this.OnHandleDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Def", DbType="NVarChar(100)")]
|
||||
public string Def
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Def;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Def != value))
|
||||
{
|
||||
this.OnDefChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Def = value;
|
||||
this.SendPropertyChanged("Def");
|
||||
this.OnDefChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FC_ToDo_Base_Contractor", Storage="_Base_Contractor", ThisKey="ContractId", OtherKey="ContractorId", IsForeignKey=true)]
|
||||
public Base_Contractor Base_Contractor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Base_Contractor.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Base_Contractor previousValue = this._Base_Contractor.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_Contractor.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_Contractor.Entity = null;
|
||||
previousValue.FC_ToDo.Remove(this);
|
||||
}
|
||||
this._Base_Contractor.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.FC_ToDo.Add(this);
|
||||
this._ContractId = value.ContractorId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ContractId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Contractor");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FC_ToDo_Sys_User", Storage="_Sys_User", ThisKey="ToDoMan", OtherKey="UserId", IsForeignKey=true)]
|
||||
public Sys_User Sys_User
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Sys_User.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Sys_User previousValue = this._Sys_User.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Sys_User.Entity = null;
|
||||
previousValue.FC_ToDo.Remove(this);
|
||||
}
|
||||
this._Sys_User.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.FC_ToDo.Add(this);
|
||||
this._ToDoMan = value.UserId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ToDoMan = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Sys_User");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.FilesManagement")]
|
||||
public partial class FilesManagement : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
@@ -21961,6 +22451,205 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SafetyPerformance")]
|
||||
public partial class SafetyPerformance : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _SafetyPerformanceId;
|
||||
|
||||
private string _ContractorId;
|
||||
|
||||
private string _Years;
|
||||
|
||||
private string _YearPrize;
|
||||
|
||||
private System.Nullable<decimal> _Bonus;
|
||||
|
||||
private EntityRef<Base_Contractor> _Base_Contractor;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnSafetyPerformanceIdChanging(string value);
|
||||
partial void OnSafetyPerformanceIdChanged();
|
||||
partial void OnContractorIdChanging(string value);
|
||||
partial void OnContractorIdChanged();
|
||||
partial void OnYearsChanging(string value);
|
||||
partial void OnYearsChanged();
|
||||
partial void OnYearPrizeChanging(string value);
|
||||
partial void OnYearPrizeChanged();
|
||||
partial void OnBonusChanging(System.Nullable<decimal> value);
|
||||
partial void OnBonusChanged();
|
||||
#endregion
|
||||
|
||||
public SafetyPerformance()
|
||||
{
|
||||
this._Base_Contractor = default(EntityRef<Base_Contractor>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyPerformanceId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string SafetyPerformanceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SafetyPerformanceId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._SafetyPerformanceId != value))
|
||||
{
|
||||
this.OnSafetyPerformanceIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._SafetyPerformanceId = value;
|
||||
this.SendPropertyChanged("SafetyPerformanceId");
|
||||
this.OnSafetyPerformanceIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorId", DbType="NVarChar(50)")]
|
||||
public string ContractorId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContractorId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContractorId != value))
|
||||
{
|
||||
if (this._Base_Contractor.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnContractorIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ContractorId = value;
|
||||
this.SendPropertyChanged("ContractorId");
|
||||
this.OnContractorIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Years", DbType="NVarChar(10)")]
|
||||
public string Years
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Years;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Years != value))
|
||||
{
|
||||
this.OnYearsChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Years = value;
|
||||
this.SendPropertyChanged("Years");
|
||||
this.OnYearsChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YearPrize", DbType="NVarChar(20)")]
|
||||
public string YearPrize
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._YearPrize;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._YearPrize != value))
|
||||
{
|
||||
this.OnYearPrizeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._YearPrize = value;
|
||||
this.SendPropertyChanged("YearPrize");
|
||||
this.OnYearPrizeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Bonus", DbType="Decimal(9,2)")]
|
||||
public System.Nullable<decimal> Bonus
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Bonus;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Bonus != value))
|
||||
{
|
||||
this.OnBonusChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Bonus = value;
|
||||
this.SendPropertyChanged("Bonus");
|
||||
this.OnBonusChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyPerformance_Base_Contractor", Storage="_Base_Contractor", ThisKey="ContractorId", OtherKey="ContractorId", IsForeignKey=true)]
|
||||
public Base_Contractor Base_Contractor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Base_Contractor.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Base_Contractor previousValue = this._Base_Contractor.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_Contractor.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_Contractor.Entity = null;
|
||||
previousValue.SafetyPerformance.Remove(this);
|
||||
}
|
||||
this._Base_Contractor.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.SafetyPerformance.Add(this);
|
||||
this._ContractorId = value.ContractorId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ContractorId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Contractor");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.Score_JournalEvaluation")]
|
||||
public partial class Score_JournalEvaluation : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
@@ -26699,6 +27388,8 @@ namespace Model
|
||||
|
||||
private EntitySet<FC_SignedContracts> _FC_SignedContracts;
|
||||
|
||||
private EntitySet<FC_ToDo> _FC_ToDo;
|
||||
|
||||
private EntitySet<SSR> _SSR;
|
||||
|
||||
private EntitySet<SSR> _SSR_Sys_User1;
|
||||
@@ -26773,6 +27464,7 @@ namespace Model
|
||||
this._FC_SESRelatedData_Sys_User1 = new EntitySet<FC_SESRelatedData>(new Action<FC_SESRelatedData>(this.attach_FC_SESRelatedData_Sys_User1), new Action<FC_SESRelatedData>(this.detach_FC_SESRelatedData_Sys_User1));
|
||||
this._FC_SESRelatedData_Sys_User2 = new EntitySet<FC_SESRelatedData>(new Action<FC_SESRelatedData>(this.attach_FC_SESRelatedData_Sys_User2), new Action<FC_SESRelatedData>(this.detach_FC_SESRelatedData_Sys_User2));
|
||||
this._FC_SignedContracts = new EntitySet<FC_SignedContracts>(new Action<FC_SignedContracts>(this.attach_FC_SignedContracts), new Action<FC_SignedContracts>(this.detach_FC_SignedContracts));
|
||||
this._FC_ToDo = new EntitySet<FC_ToDo>(new Action<FC_ToDo>(this.attach_FC_ToDo), new Action<FC_ToDo>(this.detach_FC_ToDo));
|
||||
this._SSR = new EntitySet<SSR>(new Action<SSR>(this.attach_SSR), new Action<SSR>(this.detach_SSR));
|
||||
this._SSR_Sys_User1 = new EntitySet<SSR>(new Action<SSR>(this.attach_SSR_Sys_User1), new Action<SSR>(this.detach_SSR_Sys_User1));
|
||||
this._StandardTemplate = new EntitySet<StandardTemplate>(new Action<StandardTemplate>(this.attach_StandardTemplate), new Action<StandardTemplate>(this.detach_StandardTemplate));
|
||||
@@ -27340,6 +28032,19 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FC_ToDo_Sys_User", Storage="_FC_ToDo", ThisKey="UserId", OtherKey="ToDoMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<FC_ToDo> FC_ToDo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FC_ToDo;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._FC_ToDo.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SSR_Sys_User", Storage="_SSR", ThisKey="UserId", OtherKey="RequisitionerId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<SSR> SSR
|
||||
{
|
||||
@@ -27698,6 +28403,18 @@ namespace Model
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_FC_ToDo(FC_ToDo entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = this;
|
||||
}
|
||||
|
||||
private void detach_FC_ToDo(FC_ToDo entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_SSR(SSR entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
@@ -28062,6 +28779,8 @@ namespace Model
|
||||
|
||||
private string _Contractor;
|
||||
|
||||
private string _ContractorId;
|
||||
|
||||
private string _DisciplineId;
|
||||
|
||||
private string _Discipline;
|
||||
@@ -28080,6 +28799,8 @@ namespace Model
|
||||
|
||||
private System.Nullable<System.DateTime> _Expire_Date;
|
||||
|
||||
private string _FC_Status;
|
||||
|
||||
private System.Nullable<decimal> _YearDiff;
|
||||
|
||||
private System.Nullable<decimal> _Spending_commitment;
|
||||
@@ -28232,6 +28953,22 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorId", DbType="NVarChar(50)")]
|
||||
public string ContractorId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContractorId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContractorId != value))
|
||||
{
|
||||
this._ContractorId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisciplineId", DbType="NVarChar(50)")]
|
||||
public string DisciplineId
|
||||
{
|
||||
@@ -28376,6 +29113,22 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FC_Status", DbType="NVarChar(50)")]
|
||||
public string FC_Status
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FC_Status;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FC_Status != value))
|
||||
{
|
||||
this._FC_Status = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YearDiff", DbType="Decimal(9,2)")]
|
||||
public System.Nullable<decimal> YearDiff
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user