修改总包合同
This commit is contained in:
@@ -12320,10 +12320,6 @@ namespace Model
|
||||
|
||||
private System.Nullable<bool> _IsCompanyReview;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<Person_Persons> _Person_Persons;
|
||||
|
||||
private EntitySet<ActionPlan_MainContractApprove> _ActionPlan_MainContractApprove;
|
||||
|
||||
private EntitySet<ActionPlan_MainContractOpinion> _ActionPlan_MainContractOpinion;
|
||||
@@ -12364,8 +12360,6 @@ namespace Model
|
||||
|
||||
public ActionPlan_MainContract()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._Person_Persons = default(EntityRef<Person_Persons>);
|
||||
this._ActionPlan_MainContractApprove = new EntitySet<ActionPlan_MainContractApprove>(new Action<ActionPlan_MainContractApprove>(this.attach_ActionPlan_MainContractApprove), new Action<ActionPlan_MainContractApprove>(this.detach_ActionPlan_MainContractApprove));
|
||||
this._ActionPlan_MainContractOpinion = new EntitySet<ActionPlan_MainContractOpinion>(new Action<ActionPlan_MainContractOpinion>(this.attach_ActionPlan_MainContractOpinion), new Action<ActionPlan_MainContractOpinion>(this.detach_ActionPlan_MainContractOpinion));
|
||||
OnCreated();
|
||||
@@ -12402,10 +12396,6 @@ namespace Model
|
||||
{
|
||||
if ((this._ProjectId != value))
|
||||
{
|
||||
if (this._Base_Project.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnProjectIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectId = value;
|
||||
@@ -12526,10 +12516,6 @@ namespace Model
|
||||
{
|
||||
if ((this._CompileMan != value))
|
||||
{
|
||||
if (this._Person_Persons.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnCompileManChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileMan = value;
|
||||
@@ -12659,74 +12645,6 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_MainContract_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||
public Base_Project Base_Project
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Base_Project.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Base_Project previousValue = this._Base_Project.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_Project.Entity = null;
|
||||
previousValue.ActionPlan_MainContract.Remove(this);
|
||||
}
|
||||
this._Base_Project.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.ActionPlan_MainContract.Add(this);
|
||||
this._ProjectId = value.ProjectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ProjectId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Project");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_MainContract_Person_Persons_CompileMan", Storage="_Person_Persons", ThisKey="CompileMan", OtherKey="PersonId", IsForeignKey=true)]
|
||||
public Person_Persons Person_Persons
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Person_Persons.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Person_Persons previousValue = this._Person_Persons.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Person_Persons.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Person_Persons.Entity = null;
|
||||
previousValue.ActionPlan_MainContract.Remove(this);
|
||||
}
|
||||
this._Person_Persons.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.ActionPlan_MainContract.Add(this);
|
||||
this._CompileMan = value.PersonId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._CompileMan = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Person_Persons");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_MainContractApprove_ActionPlan_MainContract", Storage="_ActionPlan_MainContractApprove", ThisKey="MainContractId", OtherKey="MainContractId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ActionPlan_MainContractApprove> ActionPlan_MainContractApprove
|
||||
{
|
||||
@@ -23728,8 +23646,6 @@ namespace Model
|
||||
|
||||
private EntitySet<ActionPlan_CompanyManagerRule> _ActionPlan_CompanyManagerRule;
|
||||
|
||||
private EntitySet<ActionPlan_MainContract> _ActionPlan_MainContract;
|
||||
|
||||
private EntitySet<ActionPlan_ManagerRule> _ActionPlan_ManagerRule;
|
||||
|
||||
private EntitySet<ActionPlan_ProjectManagerRule> _ActionPlan_ProjectManagerRule;
|
||||
@@ -24135,7 +24051,6 @@ namespace Model
|
||||
this._Accident_NoFourLetoff = new EntitySet<Accident_NoFourLetoff>(new Action<Accident_NoFourLetoff>(this.attach_Accident_NoFourLetoff), new Action<Accident_NoFourLetoff>(this.detach_Accident_NoFourLetoff));
|
||||
this._ActionPlan_ActionPlanList = new EntitySet<ActionPlan_ActionPlanList>(new Action<ActionPlan_ActionPlanList>(this.attach_ActionPlan_ActionPlanList), new Action<ActionPlan_ActionPlanList>(this.detach_ActionPlan_ActionPlanList));
|
||||
this._ActionPlan_CompanyManagerRule = new EntitySet<ActionPlan_CompanyManagerRule>(new Action<ActionPlan_CompanyManagerRule>(this.attach_ActionPlan_CompanyManagerRule), new Action<ActionPlan_CompanyManagerRule>(this.detach_ActionPlan_CompanyManagerRule));
|
||||
this._ActionPlan_MainContract = new EntitySet<ActionPlan_MainContract>(new Action<ActionPlan_MainContract>(this.attach_ActionPlan_MainContract), new Action<ActionPlan_MainContract>(this.detach_ActionPlan_MainContract));
|
||||
this._ActionPlan_ManagerRule = new EntitySet<ActionPlan_ManagerRule>(new Action<ActionPlan_ManagerRule>(this.attach_ActionPlan_ManagerRule), new Action<ActionPlan_ManagerRule>(this.detach_ActionPlan_ManagerRule));
|
||||
this._ActionPlan_ProjectManagerRule = new EntitySet<ActionPlan_ProjectManagerRule>(new Action<ActionPlan_ProjectManagerRule>(this.attach_ActionPlan_ProjectManagerRule), new Action<ActionPlan_ProjectManagerRule>(this.detach_ActionPlan_ProjectManagerRule));
|
||||
this._ActionPlan_ProjectPlan = new EntitySet<ActionPlan_ProjectPlan>(new Action<ActionPlan_ProjectPlan>(this.attach_ActionPlan_ProjectPlan), new Action<ActionPlan_ProjectPlan>(this.detach_ActionPlan_ProjectPlan));
|
||||
@@ -24965,19 +24880,6 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_MainContract_Base_Project", Storage="_ActionPlan_MainContract", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ActionPlan_MainContract> ActionPlan_MainContract
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ActionPlan_MainContract;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._ActionPlan_MainContract.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_ManagerRule_Base_Project", Storage="_ActionPlan_ManagerRule", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ActionPlan_ManagerRule> ActionPlan_ManagerRule
|
||||
{
|
||||
@@ -27295,18 +27197,6 @@ namespace Model
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_ActionPlan_MainContract(ActionPlan_MainContract entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = this;
|
||||
}
|
||||
|
||||
private void detach_ActionPlan_MainContract(ActionPlan_MainContract entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_ActionPlan_ManagerRule(ActionPlan_ManagerRule entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
@@ -154753,8 +154643,6 @@ namespace Model
|
||||
|
||||
private EntitySet<ActionPlan_CompanyManagerRule> _ActionPlan_CompanyManagerRule;
|
||||
|
||||
private EntitySet<ActionPlan_MainContract> _ActionPlan_MainContract;
|
||||
|
||||
private EntitySet<ActionPlan_MainContractApprove> _ActionPlan_MainContractApprove;
|
||||
|
||||
private EntitySet<ActionPlan_ManagerRule> _ActionPlan_ManagerRule;
|
||||
@@ -155357,7 +155245,6 @@ namespace Model
|
||||
this._ActionPlan_ActionPlanList = new EntitySet<ActionPlan_ActionPlanList>(new Action<ActionPlan_ActionPlanList>(this.attach_ActionPlan_ActionPlanList), new Action<ActionPlan_ActionPlanList>(this.detach_ActionPlan_ActionPlanList));
|
||||
this._ActionPlan_ActionPlanListApprove = new EntitySet<ActionPlan_ActionPlanListApprove>(new Action<ActionPlan_ActionPlanListApprove>(this.attach_ActionPlan_ActionPlanListApprove), new Action<ActionPlan_ActionPlanListApprove>(this.detach_ActionPlan_ActionPlanListApprove));
|
||||
this._ActionPlan_CompanyManagerRule = new EntitySet<ActionPlan_CompanyManagerRule>(new Action<ActionPlan_CompanyManagerRule>(this.attach_ActionPlan_CompanyManagerRule), new Action<ActionPlan_CompanyManagerRule>(this.detach_ActionPlan_CompanyManagerRule));
|
||||
this._ActionPlan_MainContract = new EntitySet<ActionPlan_MainContract>(new Action<ActionPlan_MainContract>(this.attach_ActionPlan_MainContract), new Action<ActionPlan_MainContract>(this.detach_ActionPlan_MainContract));
|
||||
this._ActionPlan_MainContractApprove = new EntitySet<ActionPlan_MainContractApprove>(new Action<ActionPlan_MainContractApprove>(this.attach_ActionPlan_MainContractApprove), new Action<ActionPlan_MainContractApprove>(this.detach_ActionPlan_MainContractApprove));
|
||||
this._ActionPlan_ManagerRule = new EntitySet<ActionPlan_ManagerRule>(new Action<ActionPlan_ManagerRule>(this.attach_ActionPlan_ManagerRule), new Action<ActionPlan_ManagerRule>(this.detach_ActionPlan_ManagerRule));
|
||||
this._ActionPlan_ProjectManagerRule = new EntitySet<ActionPlan_ProjectManagerRule>(new Action<ActionPlan_ProjectManagerRule>(this.attach_ActionPlan_ProjectManagerRule), new Action<ActionPlan_ProjectManagerRule>(this.detach_ActionPlan_ProjectManagerRule));
|
||||
@@ -156996,19 +156883,6 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_MainContract_Person_Persons_CompileMan", Storage="_ActionPlan_MainContract", ThisKey="PersonId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ActionPlan_MainContract> ActionPlan_MainContract
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ActionPlan_MainContract;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._ActionPlan_MainContract.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ActionPlan_MainContractApprove_Person_Persons", Storage="_ActionPlan_MainContractApprove", ThisKey="PersonId", OtherKey="ApproveMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ActionPlan_MainContractApprove> ActionPlan_MainContractApprove
|
||||
{
|
||||
@@ -160210,18 +160084,6 @@ namespace Model
|
||||
entity.Person_Persons = null;
|
||||
}
|
||||
|
||||
private void attach_ActionPlan_MainContract(ActionPlan_MainContract entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Person_Persons = this;
|
||||
}
|
||||
|
||||
private void detach_ActionPlan_MainContract(ActionPlan_MainContract entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Person_Persons = null;
|
||||
}
|
||||
|
||||
private void attach_ActionPlan_MainContractApprove(ActionPlan_MainContractApprove entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
||||
Reference in New Issue
Block a user