diff --git a/SUBQHSE/FineUIPro.Web/common/main.aspx b/SUBQHSE/FineUIPro.Web/common/main.aspx index c025eef..92487fe 100644 --- a/SUBQHSE/FineUIPro.Web/common/main.aspx +++ b/SUBQHSE/FineUIPro.Web/common/main.aspx @@ -1303,7 +1303,7 @@ $.get(videoHost + 'api/v1/login?username=' + VideoUserName + '&password=' + VideoPassWord, function (data1) { that.authToken = data1.AuthToken; $.get(videoHost + 'api/v1/device/channeltree?token=' + that.authToken, function (data2) { - for (var i = 0; i < data2.length && i <= 0; i++) { + for (var i = 1; i < data2.length && i <= 1; i++) { $.get(videoHost + 'api/v1/device/channeltree?serial=' + data2[i].serial + '&token=' + that.authToken, function (data3) { for (var j = 0; j < data3.length; j++) { that.videoids.push(data3[j].id); diff --git a/SUBQHSE/Model/Model.cs b/SUBQHSE/Model/Model.cs index 2fcc10b..e832241 100644 --- a/SUBQHSE/Model/Model.cs +++ b/SUBQHSE/Model/Model.cs @@ -201246,6 +201246,8 @@ namespace Model private EntityRef _Base_Unit; + private EntityRef _HSSE_Hazard_HazardRegisterTypes; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -201345,6 +201347,7 @@ namespace Model public HSSE_Hazard_HazardRegister() { this._Base_Unit = default(EntityRef); + this._HSSE_Hazard_HazardRegisterTypes = default(EntityRef); OnCreated(); } @@ -201863,6 +201866,10 @@ namespace Model { if ((this._RegisterTypesId != value)) { + if (this._HSSE_Hazard_HazardRegisterTypes.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } this.OnRegisterTypesIdChanging(value); this.SendPropertyChanging(); this._RegisterTypesId = value; @@ -202286,6 +202293,40 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_HSSE_Hazard_HazardRegisterTypes", Storage="_HSSE_Hazard_HazardRegisterTypes", ThisKey="RegisterTypesId", OtherKey="RegisterTypesId", IsForeignKey=true)] + public HSSE_Hazard_HazardRegisterTypes HSSE_Hazard_HazardRegisterTypes + { + get + { + return this._HSSE_Hazard_HazardRegisterTypes.Entity; + } + set + { + HSSE_Hazard_HazardRegisterTypes previousValue = this._HSSE_Hazard_HazardRegisterTypes.Entity; + if (((previousValue != value) + || (this._HSSE_Hazard_HazardRegisterTypes.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._HSSE_Hazard_HazardRegisterTypes.Entity = null; + previousValue.HSSE_Hazard_HazardRegister.Remove(this); + } + this._HSSE_Hazard_HazardRegisterTypes.Entity = value; + if ((value != null)) + { + value.HSSE_Hazard_HazardRegister.Add(this); + this._RegisterTypesId = value.RegisterTypesId; + } + else + { + this._RegisterTypesId = default(string); + } + this.SendPropertyChanged("HSSE_Hazard_HazardRegisterTypes"); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -202403,6 +202444,8 @@ namespace Model private EntityRef _Base_Unit; + private EntityRef _HSSE_Hazard_HazardRegisterTypes; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -202500,6 +202543,7 @@ namespace Model public HSSE_Hazard_HazardRegister_Unit() { this._Base_Unit = default(EntityRef); + this._HSSE_Hazard_HazardRegisterTypes = default(EntityRef); OnCreated(); } @@ -202947,7 +202991,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(500)")] public string HandleIdea { get @@ -203018,6 +203062,10 @@ namespace Model { if ((this._RegisterTypesId != value)) { + if (this._HSSE_Hazard_HazardRegisterTypes.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } this.OnRegisterTypesIdChanging(value); this.SendPropertyChanging(); this._RegisterTypesId = value; @@ -203327,7 +203375,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(400)")] public string Requirements { get @@ -203421,6 +203469,40 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_Unit_HSSE_Hazard_HazardRegister_UnitTypes", Storage="_HSSE_Hazard_HazardRegisterTypes", ThisKey="RegisterTypesId", OtherKey="RegisterTypesId", IsForeignKey=true)] + public HSSE_Hazard_HazardRegisterTypes HSSE_Hazard_HazardRegisterTypes + { + get + { + return this._HSSE_Hazard_HazardRegisterTypes.Entity; + } + set + { + HSSE_Hazard_HazardRegisterTypes previousValue = this._HSSE_Hazard_HazardRegisterTypes.Entity; + if (((previousValue != value) + || (this._HSSE_Hazard_HazardRegisterTypes.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._HSSE_Hazard_HazardRegisterTypes.Entity = null; + previousValue.HSSE_Hazard_HazardRegister_Unit.Remove(this); + } + this._HSSE_Hazard_HazardRegisterTypes.Entity = value; + if ((value != null)) + { + value.HSSE_Hazard_HazardRegister_Unit.Add(this); + this._RegisterTypesId = value.RegisterTypesId; + } + else + { + this._RegisterTypesId = default(string); + } + this.SendPropertyChanged("HSSE_Hazard_HazardRegisterTypes"); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -203462,6 +203544,10 @@ namespace Model private System.Nullable _IsPunished; + private EntitySet _HSSE_Hazard_HazardRegister; + + private EntitySet _HSSE_Hazard_HazardRegister_Unit; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -203484,6 +203570,8 @@ namespace Model public HSSE_Hazard_HazardRegisterTypes() { + this._HSSE_Hazard_HazardRegister = new EntitySet(new Action(this.attach_HSSE_Hazard_HazardRegister), new Action(this.detach_HSSE_Hazard_HazardRegister)); + this._HSSE_Hazard_HazardRegister_Unit = new EntitySet(new Action(this.attach_HSSE_Hazard_HazardRegister_Unit), new Action(this.detach_HSSE_Hazard_HazardRegister_Unit)); OnCreated(); } @@ -203627,6 +203715,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_HSSE_Hazard_HazardRegisterTypes", Storage="_HSSE_Hazard_HazardRegister", ThisKey="RegisterTypesId", OtherKey="RegisterTypesId", DeleteRule="NO ACTION")] + public EntitySet HSSE_Hazard_HazardRegister + { + get + { + return this._HSSE_Hazard_HazardRegister; + } + set + { + this._HSSE_Hazard_HazardRegister.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_Unit_HSSE_Hazard_HazardRegister_UnitTypes", Storage="_HSSE_Hazard_HazardRegister_Unit", ThisKey="RegisterTypesId", OtherKey="RegisterTypesId", DeleteRule="NO ACTION")] + public EntitySet HSSE_Hazard_HazardRegister_Unit + { + get + { + return this._HSSE_Hazard_HazardRegister_Unit; + } + set + { + this._HSSE_Hazard_HazardRegister_Unit.Assign(value); + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -203646,6 +203760,30 @@ namespace Model this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } + + private void attach_HSSE_Hazard_HazardRegister(HSSE_Hazard_HazardRegister entity) + { + this.SendPropertyChanging(); + entity.HSSE_Hazard_HazardRegisterTypes = this; + } + + private void detach_HSSE_Hazard_HazardRegister(HSSE_Hazard_HazardRegister entity) + { + this.SendPropertyChanging(); + entity.HSSE_Hazard_HazardRegisterTypes = null; + } + + private void attach_HSSE_Hazard_HazardRegister_Unit(HSSE_Hazard_HazardRegister_Unit entity) + { + this.SendPropertyChanging(); + entity.HSSE_Hazard_HazardRegisterTypes = this; + } + + private void detach_HSSE_Hazard_HazardRegister_Unit(HSSE_Hazard_HazardRegister_Unit entity) + { + this.SendPropertyChanging(); + entity.HSSE_Hazard_HazardRegisterTypes = null; + } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.HSSE_MajorSecurityRisk")] @@ -467920,7 +468058,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterTypesName", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterTypesName", DbType="NVarChar(200)")] public string RegisterTypesName { get @@ -468041,8 +468179,6 @@ namespace Model private string _States; - private string _ReviewedManId; - private string _IsEffective; private string _ResponsibleMan; @@ -468413,22 +468549,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewedManId", DbType="NVarChar(2000)")] - public string ReviewedManId - { - get - { - return this._ReviewedManId; - } - set - { - if ((this._ReviewedManId != value)) - { - this._ReviewedManId = value; - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEffective", DbType="Char(1)")] public string IsEffective { @@ -468589,7 +468709,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(500)")] public string HandleIdea { get @@ -468973,7 +469093,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterTypesName", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterTypesName", DbType="NVarChar(200)")] public string RegisterTypesName { get @@ -469037,7 +469157,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(400)")] public string Requirements { get