20241227 新增support document

This commit is contained in:
2024-12-27 23:42:33 +08:00
parent c64319cbe7
commit 782619de37
14 changed files with 2075 additions and 174 deletions
+494 -36
View File
@@ -170,6 +170,12 @@ namespace Model
partial void InsertStandardTemplate(StandardTemplate instance);
partial void UpdateStandardTemplate(StandardTemplate instance);
partial void DeleteStandardTemplate(StandardTemplate instance);
partial void InsertSupportDocument_GuideManual(SupportDocument_GuideManual instance);
partial void UpdateSupportDocument_GuideManual(SupportDocument_GuideManual instance);
partial void DeleteSupportDocument_GuideManual(SupportDocument_GuideManual instance);
partial void InsertSupportDocument_Template(SupportDocument_Template instance);
partial void UpdateSupportDocument_Template(SupportDocument_Template instance);
partial void DeleteSupportDocument_Template(SupportDocument_Template instance);
partial void InsertSyncDataUserLogs(SyncDataUserLogs instance);
partial void UpdateSyncDataUserLogs(SyncDataUserLogs instance);
partial void DeleteSyncDataUserLogs(SyncDataUserLogs instance);
@@ -664,6 +670,22 @@ namespace Model
}
}
public System.Data.Linq.Table<SupportDocument_GuideManual> SupportDocument_GuideManual
{
get
{
return this.GetTable<SupportDocument_GuideManual>();
}
}
public System.Data.Linq.Table<SupportDocument_Template> SupportDocument_Template
{
get
{
return this.GetTable<SupportDocument_Template>();
}
}
public System.Data.Linq.Table<SyncDataUserLogs> SyncDataUserLogs
{
get
@@ -23856,6 +23878,404 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SupportDocument_GuideManual")]
public partial class SupportDocument_GuideManual : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _GuideManualId;
private string _GuideManual;
private string _UploadBy;
private System.Nullable<System.DateTime> _UploadDate;
private string _AttachUrl;
private EntityRef<Sys_User> _Sys_User;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnGuideManualIdChanging(string value);
partial void OnGuideManualIdChanged();
partial void OnGuideManualChanging(string value);
partial void OnGuideManualChanged();
partial void OnUploadByChanging(string value);
partial void OnUploadByChanged();
partial void OnUploadDateChanging(System.Nullable<System.DateTime> value);
partial void OnUploadDateChanged();
partial void OnAttachUrlChanging(string value);
partial void OnAttachUrlChanged();
#endregion
public SupportDocument_GuideManual()
{
this._Sys_User = default(EntityRef<Sys_User>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GuideManualId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string GuideManualId
{
get
{
return this._GuideManualId;
}
set
{
if ((this._GuideManualId != value))
{
this.OnGuideManualIdChanging(value);
this.SendPropertyChanging();
this._GuideManualId = value;
this.SendPropertyChanged("GuideManualId");
this.OnGuideManualIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GuideManual", DbType="NVarChar(200)")]
public string GuideManual
{
get
{
return this._GuideManual;
}
set
{
if ((this._GuideManual != value))
{
this.OnGuideManualChanging(value);
this.SendPropertyChanging();
this._GuideManual = value;
this.SendPropertyChanged("GuideManual");
this.OnGuideManualChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UploadBy", DbType="NVarChar(50)")]
public string UploadBy
{
get
{
return this._UploadBy;
}
set
{
if ((this._UploadBy != value))
{
if (this._Sys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnUploadByChanging(value);
this.SendPropertyChanging();
this._UploadBy = value;
this.SendPropertyChanged("UploadBy");
this.OnUploadByChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UploadDate", DbType="DateTime")]
public System.Nullable<System.DateTime> UploadDate
{
get
{
return this._UploadDate;
}
set
{
if ((this._UploadDate != value))
{
this.OnUploadDateChanging(value);
this.SendPropertyChanging();
this._UploadDate = value;
this.SendPropertyChanged("UploadDate");
this.OnUploadDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(500)")]
public string AttachUrl
{
get
{
return this._AttachUrl;
}
set
{
if ((this._AttachUrl != value))
{
this.OnAttachUrlChanging(value);
this.SendPropertyChanging();
this._AttachUrl = value;
this.SendPropertyChanged("AttachUrl");
this.OnAttachUrlChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SupportDocument_GuideManual_Sys_User", Storage="_Sys_User", ThisKey="UploadBy", 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.SupportDocument_GuideManual.Remove(this);
}
this._Sys_User.Entity = value;
if ((value != null))
{
value.SupportDocument_GuideManual.Add(this);
this._UploadBy = value.UserId;
}
else
{
this._UploadBy = 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.SupportDocument_Template")]
public partial class SupportDocument_Template : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _TemplateId;
private string _Template;
private string _UploadBy;
private System.Nullable<System.DateTime> _UploadDate;
private string _AttachUrl;
private EntityRef<Sys_User> _Sys_User;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnTemplateIdChanging(string value);
partial void OnTemplateIdChanged();
partial void OnTemplateChanging(string value);
partial void OnTemplateChanged();
partial void OnUploadByChanging(string value);
partial void OnUploadByChanged();
partial void OnUploadDateChanging(System.Nullable<System.DateTime> value);
partial void OnUploadDateChanged();
partial void OnAttachUrlChanging(string value);
partial void OnAttachUrlChanged();
#endregion
public SupportDocument_Template()
{
this._Sys_User = default(EntityRef<Sys_User>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TemplateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string TemplateId
{
get
{
return this._TemplateId;
}
set
{
if ((this._TemplateId != value))
{
this.OnTemplateIdChanging(value);
this.SendPropertyChanging();
this._TemplateId = value;
this.SendPropertyChanged("TemplateId");
this.OnTemplateIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Template", DbType="NVarChar(200)")]
public string Template
{
get
{
return this._Template;
}
set
{
if ((this._Template != value))
{
this.OnTemplateChanging(value);
this.SendPropertyChanging();
this._Template = value;
this.SendPropertyChanged("Template");
this.OnTemplateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UploadBy", DbType="NVarChar(50)")]
public string UploadBy
{
get
{
return this._UploadBy;
}
set
{
if ((this._UploadBy != value))
{
if (this._Sys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnUploadByChanging(value);
this.SendPropertyChanging();
this._UploadBy = value;
this.SendPropertyChanged("UploadBy");
this.OnUploadByChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UploadDate", DbType="DateTime")]
public System.Nullable<System.DateTime> UploadDate
{
get
{
return this._UploadDate;
}
set
{
if ((this._UploadDate != value))
{
this.OnUploadDateChanging(value);
this.SendPropertyChanging();
this._UploadDate = value;
this.SendPropertyChanged("UploadDate");
this.OnUploadDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(500)")]
public string AttachUrl
{
get
{
return this._AttachUrl;
}
set
{
if ((this._AttachUrl != value))
{
this.OnAttachUrlChanging(value);
this.SendPropertyChanging();
this._AttachUrl = value;
this.SendPropertyChanged("AttachUrl");
this.OnAttachUrlChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SupportDocument_Template_Sys_User", Storage="_Sys_User", ThisKey="UploadBy", 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.SupportDocument_Template.Remove(this);
}
this._Sys_User.Entity = value;
if ((value != null))
{
value.SupportDocument_Template.Add(this);
this._UploadBy = value.UserId;
}
else
{
this._UploadBy = 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.SyncDataUserLogs")]
public partial class SyncDataUserLogs : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -25873,6 +26293,10 @@ namespace Model
private EntitySet<StandardTemplate> _StandardTemplate;
private EntitySet<SupportDocument_GuideManual> _SupportDocument_GuideManual;
private EntitySet<SupportDocument_Template> _SupportDocument_Template;
private EntityRef<Base_Depart> _Base_Depart;
private EntityRef<Sys_Role> _Sys_Role;
@@ -25940,6 +26364,8 @@ namespace Model
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));
this._SupportDocument_GuideManual = new EntitySet<SupportDocument_GuideManual>(new Action<SupportDocument_GuideManual>(this.attach_SupportDocument_GuideManual), new Action<SupportDocument_GuideManual>(this.detach_SupportDocument_GuideManual));
this._SupportDocument_Template = new EntitySet<SupportDocument_Template>(new Action<SupportDocument_Template>(this.attach_SupportDocument_Template), new Action<SupportDocument_Template>(this.detach_SupportDocument_Template));
this._Base_Depart = default(EntityRef<Base_Depart>);
this._Sys_Role = default(EntityRef<Sys_Role>);
this._Sys_UserToEMial = new EntitySet<Sys_UserToEMial>(new Action<Sys_UserToEMial>(this.attach_Sys_UserToEMial), new Action<Sys_UserToEMial>(this.detach_Sys_UserToEMial));
@@ -26541,6 +26967,32 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SupportDocument_GuideManual_Sys_User", Storage="_SupportDocument_GuideManual", ThisKey="UserId", OtherKey="UploadBy", DeleteRule="NO ACTION")]
public EntitySet<SupportDocument_GuideManual> SupportDocument_GuideManual
{
get
{
return this._SupportDocument_GuideManual;
}
set
{
this._SupportDocument_GuideManual.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SupportDocument_Template_Sys_User", Storage="_SupportDocument_Template", ThisKey="UserId", OtherKey="UploadBy", DeleteRule="NO ACTION")]
public EntitySet<SupportDocument_Template> SupportDocument_Template
{
get
{
return this._SupportDocument_Template;
}
set
{
this._SupportDocument_Template.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Sys_User_Base_Depart", Storage="_Base_Depart", ThisKey="DepartId", OtherKey="DepartId", IsForeignKey=true)]
public Base_Depart Base_Depart
{
@@ -26870,6 +27322,30 @@ namespace Model
entity.Sys_User = null;
}
private void attach_SupportDocument_GuideManual(SupportDocument_GuideManual entity)
{
this.SendPropertyChanging();
entity.Sys_User = this;
}
private void detach_SupportDocument_GuideManual(SupportDocument_GuideManual entity)
{
this.SendPropertyChanging();
entity.Sys_User = null;
}
private void attach_SupportDocument_Template(SupportDocument_Template entity)
{
this.SendPropertyChanging();
entity.Sys_User = this;
}
private void detach_SupportDocument_Template(SupportDocument_Template entity)
{
this.SendPropertyChanging();
entity.Sys_User = null;
}
private void attach_Sys_UserToEMial(Sys_UserToEMial entity)
{
this.SendPropertyChanging();
@@ -31628,8 +32104,6 @@ namespace Model
private string _Remark;
private string _FileType;
private string _Contract_Admin;
private string _Main_Coordinator;
@@ -31640,10 +32114,10 @@ namespace Model
private string _BycDept;
private System.Nullable<bool> _IsExport;
private string _ContractorShortName;
private string _FileType;
public View_FC_ContractManagement()
{
}
@@ -31792,22 +32266,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileType", DbType="NVarChar(50)")]
public string FileType
{
get
{
return this._FileType;
}
set
{
if ((this._FileType != value))
{
this._FileType = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contract_Admin", DbType="NVarChar(50)")]
public string Contract_Admin
{
@@ -31888,22 +32346,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsExport", DbType="Bit")]
public System.Nullable<bool> IsExport
{
get
{
return this._IsExport;
}
set
{
if ((this._IsExport != value))
{
this._IsExport = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorShortName", DbType="NVarChar(50)")]
public string ContractorShortName
{
@@ -31919,6 +32361,22 @@ namespace Model
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileType", DbType="VarChar(18)")]
public string FileType
{
get
{
return this._FileType;
}
set
{
if ((this._FileType != value))
{
this._FileType = value;
}
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_FC_ContractManagementLists")]