2023-05-09 接口更新
This commit is contained in:
parent
2b8ff1a35c
commit
e16d0cfca5
|
@ -5,3 +5,62 @@ CREATE NONCLUSTERED INDEX [NonClusteredIndex-CostControlId-ProjectId] ON [dbo].[
|
||||||
[ProjectId] ASC
|
[ProjectId] ASC
|
||||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[Information_EnvironmentalData](
|
||||||
|
[Id] [varchar](50) NOT NULL,
|
||||||
|
[UnitId] [varchar](50) NULL,
|
||||||
|
[TotalEnergyConsumption] [int] NULL,
|
||||||
|
[IncomeComprehensiveEnergyConsumption] [int] NULL,
|
||||||
|
[NewWaterConsumption] [int] NULL,
|
||||||
|
[ReportDate] [date] NULL,
|
||||||
|
[CreateMan] [varchar](50) NULL,
|
||||||
|
[CreateDate] [datetime] NULL,
|
||||||
|
CONSTRAINT [PK_Information_EnvironmentalData] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[Id] ASC
|
||||||
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
SET ANSI_PADDING OFF
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'能耗总量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_EnvironmentalData', @level2type=N'COLUMN',@level2name=N'TotalEnergyConsumption'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'万元营业收入综合能耗' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_EnvironmentalData', @level2type=N'COLUMN',@level2name=N'IncomeComprehensiveEnergyConsumption'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用新水量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_EnvironmentalData', @level2type=N'COLUMN',@level2name=N'NewWaterConsumption'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上报日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_EnvironmentalData', @level2type=N'COLUMN',@level2name=N'ReportDate'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_EnvironmentalData', @level2type=N'COLUMN',@level2name=N'CreateMan'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_EnvironmentalData', @level2type=N'COLUMN',@level2name=N'CreateDate'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
alter table [dbo].[Accident_AccidentReport] add AccidentDegree char(1) null
|
||||||
|
GO
|
||||||
|
|
||||||
|
alter table [dbo].Accident_AccidentPersonRecord add IsAttempt char(1) null
|
||||||
|
GO
|
||||||
|
|
||||||
|
alter table [dbo].[License_LicenseManager] add [IsHighRisk] bit null
|
||||||
|
GO
|
||||||
|
|
||||||
|
alter table [dbo].[Check_RectifyNoticesItem] add RectifyId nvarchar(50) null
|
||||||
|
GO
|
||||||
|
|
||||||
|
alter table [dbo].[Base_TrainType] add TrainType nvarchar(50) null
|
||||||
|
GO
|
||||||
|
|
||||||
|
alter table [dbo].SitePerson_Person add IsSafetyMonitoring bit null
|
||||||
|
GO
|
||||||
|
|
|
@ -278,7 +278,10 @@ namespace BLL
|
||||||
/// HSE工程师岗位Id
|
/// HSE工程师岗位Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string WorkPost_HSSEEngineer = "9b15af2e-6131-462c-9f8a-71533957ca0e";
|
public static string WorkPost_HSSEEngineer = "9b15af2e-6131-462c-9f8a-71533957ca0e";
|
||||||
|
/// <summary>
|
||||||
|
/// 项目安全总监岗位Id
|
||||||
|
/// </summary>
|
||||||
|
public static string WorkPost_ProjectHSSEDirector = "5e6e259e-ea0a-4a63-8f52-df4a19a6c9fa";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// HSE经理岗位Id
|
/// HSE经理岗位Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -144,7 +144,7 @@ namespace BLL
|
||||||
|
|
||||||
//public static void GollSafetyData(string projectId)
|
//public static void GollSafetyData(string projectId)
|
||||||
//{
|
//{
|
||||||
// var thisUnit = BLL.CommonService.GetIsThisUnit();
|
// var thisUnit = BLL.Const.UnitId_CWCEC;
|
||||||
// if (CommonService.GetIsThisUnit(Const.UnitId_ECEC))
|
// if (CommonService.GetIsThisUnit(Const.UnitId_ECEC))
|
||||||
// {
|
// {
|
||||||
// ////判断单据是否 加入到企业管理资料
|
// ////判断单据是否 加入到企业管理资料
|
||||||
|
|
|
@ -35,12 +35,14 @@ namespace BLL
|
||||||
|
|
||||||
public static List<Model.CQMSData_CQMS> GetCQMSData_CQMSByModle(Model.CQMSData_CQMS table)
|
public static List<Model.CQMSData_CQMS> GetCQMSData_CQMSByModle(Model.CQMSData_CQMS table)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
var q = from x in db.CQMSData_CQMS
|
var q = from x in db.CQMSData_CQMS
|
||||||
where
|
where
|
||||||
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
||||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||||
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
||||||
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
|
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
|
||||||
|
orderby x.ReportDate descending
|
||||||
select x
|
select x
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -109,6 +111,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void AddCQMSData_CQMS(Model.CQMSData_CQMS newtable)
|
public static void AddCQMSData_CQMS(Model.CQMSData_CQMS newtable)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.CQMSData_CQMS table = new Model.CQMSData_CQMS
|
Model.CQMSData_CQMS table = new Model.CQMSData_CQMS
|
||||||
{
|
{
|
||||||
Id = newtable.Id,
|
Id = newtable.Id,
|
||||||
|
@ -155,6 +158,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void DeleteCQMSData_CQMSById(string Id)
|
public static void DeleteCQMSData_CQMSById(string Id)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.CQMSData_CQMS table = db.CQMSData_CQMS.FirstOrDefault(x => x.Id == Id);
|
Model.CQMSData_CQMS table = db.CQMSData_CQMS.FirstOrDefault(x => x.Id == Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
@ -165,6 +169,7 @@ namespace BLL
|
||||||
|
|
||||||
public static Model.CQMSData_CQMS GetCQMSData_CQMSById(string Id)
|
public static Model.CQMSData_CQMS GetCQMSData_CQMSById(string Id)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
return db.CQMSData_CQMS.FirstOrDefault(x => x.Id == Id);
|
return db.CQMSData_CQMS.FirstOrDefault(x => x.Id == Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -295,7 +300,13 @@ namespace BLL
|
||||||
|
|
||||||
public static CQMSData StatisticalData()
|
public static CQMSData StatisticalData()
|
||||||
{
|
{
|
||||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(BLL.Const.UnitId_CWCEC);
|
string thisUnitId = string.Empty;
|
||||||
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
|
if (thisUnit != null)
|
||||||
|
{
|
||||||
|
thisUnitId = thisUnit;
|
||||||
|
}
|
||||||
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
Project_CQMSDataService.StatisticalAllProjectData();
|
Project_CQMSDataService.StatisticalAllProjectData();
|
||||||
|
|
||||||
var ProjectData = (from x in Funs.DB.Project_CQMSData_CQMS
|
var ProjectData = (from x in Funs.DB.Project_CQMSData_CQMS
|
||||||
|
@ -303,7 +314,7 @@ namespace BLL
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
Model.CQMSData_CQMS table = new Model.CQMSData_CQMS
|
Model.CQMSData_CQMS table = new Model.CQMSData_CQMS
|
||||||
{
|
{
|
||||||
UnitId = BLL.Const.UnitId_CWCEC,
|
UnitId = thisUnitId,
|
||||||
CollCropCode = base_Unit.CollCropCode,
|
CollCropCode = base_Unit.CollCropCode,
|
||||||
UnitName = base_Unit.UnitName,
|
UnitName = base_Unit.UnitName,
|
||||||
ReportDate = DateTime.Now.Date,
|
ReportDate = DateTime.Now.Date,
|
||||||
|
@ -405,6 +416,7 @@ namespace BLL
|
||||||
}
|
}
|
||||||
public static void UpdateCQMSData_CQMS(Model.CQMSData_CQMS newtable)
|
public static void UpdateCQMSData_CQMS(Model.CQMSData_CQMS newtable)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.CQMSData_CQMS table = db.CQMSData_CQMS.FirstOrDefault(x => x.Id == newtable.Id);
|
Model.CQMSData_CQMS table = db.CQMSData_CQMS.FirstOrDefault(x => x.Id == newtable.Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,12 +25,14 @@ namespace BLL
|
||||||
|
|
||||||
public static List<Model.HJGLData_HJGL> GetHJGLData_HJGLByModle(Model.HJGLData_HJGL table)
|
public static List<Model.HJGLData_HJGL> GetHJGLData_HJGLByModle(Model.HJGLData_HJGL table)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
var q = from x in db.HJGLData_HJGL
|
var q = from x in db.HJGLData_HJGL
|
||||||
where
|
where
|
||||||
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
||||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||||
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
||||||
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
|
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
|
||||||
|
orderby x.ReportDate descending
|
||||||
select x
|
select x
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -74,6 +76,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void AddHJGLData_HJGL(Model.HJGLData_HJGL newtable)
|
public static void AddHJGLData_HJGL(Model.HJGLData_HJGL newtable)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.HJGLData_HJGL table = new Model.HJGLData_HJGL
|
Model.HJGLData_HJGL table = new Model.HJGLData_HJGL
|
||||||
{
|
{
|
||||||
Id = newtable.Id,
|
Id = newtable.Id,
|
||||||
|
@ -96,6 +99,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void DeleteHJGLData_HJGLById(string Id)
|
public static void DeleteHJGLData_HJGLById(string Id)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.HJGLData_HJGL table = db.HJGLData_HJGL.FirstOrDefault(x => x.Id == Id);
|
Model.HJGLData_HJGL table = db.HJGLData_HJGL.FirstOrDefault(x => x.Id == Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
@ -106,6 +110,7 @@ namespace BLL
|
||||||
|
|
||||||
public static Model.HJGLData_HJGL GetHJGLData_HJGLById(string Id)
|
public static Model.HJGLData_HJGL GetHJGLData_HJGLById(string Id)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
return db.HJGLData_HJGL.FirstOrDefault(x => x.Id == Id);
|
return db.HJGLData_HJGL.FirstOrDefault(x => x.Id == Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,7 +239,12 @@ namespace BLL
|
||||||
public static HJGLData StatisticalData()
|
public static HJGLData StatisticalData()
|
||||||
{
|
{
|
||||||
HJGLData data = new HJGLData();
|
HJGLData data = new HJGLData();
|
||||||
string thisUnitId = BLL.Const.UnitId_CWCEC;
|
string thisUnitId = string.Empty;
|
||||||
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
|
if (thisUnit != null)
|
||||||
|
{
|
||||||
|
thisUnitId = thisUnit;
|
||||||
|
}
|
||||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
var ProjectData = (from x in Funs.DB.Project_HJGLData_HJGL
|
var ProjectData = (from x in Funs.DB.Project_HJGLData_HJGL
|
||||||
where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date
|
where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date
|
||||||
|
@ -291,6 +301,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void UpdateHJGLData_HJGL(Model.HJGLData_HJGL newtable)
|
public static void UpdateHJGLData_HJGL(Model.HJGLData_HJGL newtable)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.HJGLData_HJGL table = db.HJGLData_HJGL.FirstOrDefault(x => x.Id == newtable.Id);
|
Model.HJGLData_HJGL table = db.HJGLData_HJGL.FirstOrDefault(x => x.Id == newtable.Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,12 +25,14 @@ namespace BLL
|
||||||
|
|
||||||
public static List<Model.HSSEData_HSSE> GetHSSEData_HSSEByModle(Model.HSSEData_HSSE table)
|
public static List<Model.HSSEData_HSSE> GetHSSEData_HSSEByModle(Model.HSSEData_HSSE table)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
var q = from x in db.HSSEData_HSSE
|
var q = from x in db.HSSEData_HSSE
|
||||||
where
|
where
|
||||||
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
||||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||||
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
||||||
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
|
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
|
||||||
|
orderby x.ReportDate descending
|
||||||
select x
|
select x
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -139,6 +141,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void AddHSSEData_HSSE(Model.HSSEData_HSSE newtable)
|
public static void AddHSSEData_HSSE(Model.HSSEData_HSSE newtable)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.HSSEData_HSSE table = new Model.HSSEData_HSSE
|
Model.HSSEData_HSSE table = new Model.HSSEData_HSSE
|
||||||
{
|
{
|
||||||
Id = newtable.Id,
|
Id = newtable.Id,
|
||||||
|
@ -226,6 +229,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void DeleteHSSEData_HSSEById(string Id)
|
public static void DeleteHSSEData_HSSEById(string Id)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.HSSEData_HSSE table = db.HSSEData_HSSE.FirstOrDefault(x => x.Id == Id);
|
Model.HSSEData_HSSE table = db.HSSEData_HSSE.FirstOrDefault(x => x.Id == Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
@ -236,6 +240,7 @@ namespace BLL
|
||||||
|
|
||||||
public static Model.HSSEData_HSSE GetHSSEData_HSSEById(string Id)
|
public static Model.HSSEData_HSSE GetHSSEData_HSSEById(string Id)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
return db.HSSEData_HSSE.FirstOrDefault(x => x.Id == Id);
|
return db.HSSEData_HSSE.FirstOrDefault(x => x.Id == Id);
|
||||||
}
|
}
|
||||||
public static Model.HSSEData GetItemById(string Id)
|
public static Model.HSSEData GetItemById(string Id)
|
||||||
|
@ -521,7 +526,12 @@ namespace BLL
|
||||||
public static HSSEData StatisticalData()
|
public static HSSEData StatisticalData()
|
||||||
{
|
{
|
||||||
HSSEData data = new HSSEData();
|
HSSEData data = new HSSEData();
|
||||||
string thisUnitId = BLL.Const.UnitId_CWCEC;
|
string thisUnitId = string.Empty;
|
||||||
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
|
if (thisUnit != null)
|
||||||
|
{
|
||||||
|
thisUnitId = thisUnit;
|
||||||
|
}
|
||||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
Project_HSSEData_HSSEService.StatisticalAllProjectData();
|
Project_HSSEData_HSSEService.StatisticalAllProjectData();
|
||||||
|
|
||||||
|
@ -628,6 +638,7 @@ namespace BLL
|
||||||
}
|
}
|
||||||
public static void UpdateHSSEData_HSSE(Model.HSSEData_HSSE newtable)
|
public static void UpdateHSSEData_HSSE(Model.HSSEData_HSSE newtable)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.HSSEData_HSSE table = db.HSSEData_HSSE.FirstOrDefault(x => x.Id == newtable.Id);
|
Model.HSSEData_HSSE table = db.HSSEData_HSSE.FirstOrDefault(x => x.Id == newtable.Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
@ -719,16 +730,16 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetHeadOfficeInspectorGeneralNum()
|
public static int GetHeadOfficeInspectorGeneralNum()
|
||||||
{
|
{
|
||||||
//string unitId = string.Empty;
|
string unitId = string.Empty;
|
||||||
//var thisUnit = CommonService.GetIsThisUnit();
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
//if (thisUnit != null)
|
if (thisUnit != null)
|
||||||
//{
|
{
|
||||||
// unitId = thisUnit.UnitId;
|
unitId = thisUnit;
|
||||||
//}
|
}
|
||||||
//int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
||||||
// where x.IsOnJob == true && x.WorkPostId == BLL.Const.WorkPost_HSSEDirector && x.UnitId == unitId
|
where x.IsOnJob == true && x.WorkPostId == BLL.Const.WorkPost_HSSEDirector && x.UnitId == unitId
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取企业总部专职人数
|
/// 获取企业总部专职人数
|
||||||
|
@ -736,17 +747,17 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetHeadOfficeFullTimeNum()
|
public static int GetHeadOfficeFullTimeNum()
|
||||||
{
|
{
|
||||||
//string unitId = string.Empty;
|
string unitId = string.Empty;
|
||||||
//var thisUnit = CommonService.GetIsThisUnit();
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
//if (thisUnit != null)
|
if (thisUnit != null)
|
||||||
//{
|
{
|
||||||
// unitId = thisUnit.UnitId;
|
unitId = thisUnit;
|
||||||
//}
|
}
|
||||||
//int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
||||||
// join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||||
// where x.IsOnJob == true && y.IsHsse == true && x.UnitId == unitId
|
where x.IsOnJob == true && y.IsHsse == true && x.UnitId == unitId
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取分支机构总监人数
|
/// 获取分支机构总监人数
|
||||||
|
@ -754,16 +765,16 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetBranchInspectorGeneralNum()
|
public static int GetBranchInspectorGeneralNum()
|
||||||
{
|
{
|
||||||
//string unitId = string.Empty;
|
string unitId = string.Empty;
|
||||||
//var thisUnit = CommonService.GetIsThisUnit();
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
//if (thisUnit != null)
|
if (thisUnit != null)
|
||||||
//{
|
{
|
||||||
// unitId = thisUnit.UnitId;
|
unitId = thisUnit;
|
||||||
//}
|
}
|
||||||
//int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
||||||
// where x.IsOnJob == true && x.WorkPostId == BLL.Const.WorkPost_HSSEDirector && x.UnitId != unitId
|
where x.IsOnJob == true && x.WorkPostId == BLL.Const.WorkPost_HSSEDirector && x.UnitId != unitId
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取分支机构专职人数
|
/// 获取分支机构专职人数
|
||||||
|
@ -771,17 +782,17 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetBranchFullTimeNum()
|
public static int GetBranchFullTimeNum()
|
||||||
{
|
{
|
||||||
//string unitId = string.Empty;
|
string unitId = string.Empty;
|
||||||
//var thisUnit = CommonService.GetIsThisUnit();
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
//if (thisUnit != null)
|
if (thisUnit != null)
|
||||||
//{
|
{
|
||||||
// unitId = thisUnit.UnitId;
|
unitId = thisUnit;
|
||||||
//}
|
}
|
||||||
//int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
||||||
// join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||||
// where x.IsOnJob == true && y.IsHsse == true && x.UnitId != unitId
|
where x.IsOnJob == true && y.IsHsse == true && x.UnitId != unitId
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -322,7 +322,12 @@ namespace BLL
|
||||||
/// <param name="cQMSDateType">数据类型</param>
|
/// <param name="cQMSDateType">数据类型</param>
|
||||||
public static void StatisticalData(string projectid, CQMSDateType cQMSDateType)
|
public static void StatisticalData(string projectid, CQMSDateType cQMSDateType)
|
||||||
{
|
{
|
||||||
string thisUnitId = BLL.Const.UnitId_CWCEC;
|
string thisUnitId = string.Empty;
|
||||||
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
|
if (thisUnit != null)
|
||||||
|
{
|
||||||
|
thisUnitId = thisUnit;
|
||||||
|
}
|
||||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
Model.Project_CQMSData_CQMS table = new Model.Project_CQMSData_CQMS();
|
Model.Project_CQMSData_CQMS table = new Model.Project_CQMSData_CQMS();
|
||||||
|
|
||||||
|
@ -406,11 +411,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetTrainPersonNum(string projectid)
|
public static int GetTrainPersonNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//int result = (from x in Funs.DB.Comprehensive_InspectionPerson
|
int result = (from x in Funs.DB.Comprehensive_InspectionPerson
|
||||||
// where x.ProjectId == projectid && x.IsTrain == true && x.CompileDate.Value.Year == date.Year && x.CompileDate.Value.Month == date.Month && x.CompileDate.Value.Day == date.Day
|
where x.ProjectId == projectid && x.IsTrain == true && x.CompileDate.Value.Year == date.Year && x.CompileDate.Value.Month == date.Month && x.CompileDate.Value.Day == date.Day
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取技术交底人次数
|
/// 获取技术交底人次数
|
||||||
|
@ -418,12 +423,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetTechnicalDisclosePersonNum(string projectid)
|
public static int GetTechnicalDisclosePersonNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//var result = (from x in Funs.DB.Comprehensive_DesignDetails
|
var result = (from x in Funs.DB.Comprehensive_DesignDetails
|
||||||
// where x.ProjectId == projectid && x.DetailsDate.Value.Year == date.Year && x.DetailsDate.Value.Month == date.Month && x.DetailsDate.Value.Day == date.Day
|
where x.ProjectId == projectid && x.DetailsDate.Value.Year == date.Year && x.DetailsDate.Value.Month == date.Month && x.DetailsDate.Value.Day == date.Day
|
||||||
// select x.JoinPersonNum ).ToList().Sum(x=>x.Value);
|
select x.JoinPersonNum).ToList().Sum(x => x.Value);
|
||||||
//var q = Funs.GetNewIntOrZero(result.ToString());
|
var q = Funs.GetNewIntOrZero(result.ToString());
|
||||||
return 0;
|
return q;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取在用计量器具数
|
/// 获取在用计量器具数
|
||||||
|
@ -442,10 +447,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetOKNum(string projectid)
|
public static int GetOKNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Comprehensive_InspectionMachine
|
int result = (from x in Funs.DB.Comprehensive_InspectionMachine
|
||||||
// where x.ProjectId == projectid && x.IsOnSite == true && x.InspectionType.Contains("计量") && x.IsCheckOK == true
|
where x.ProjectId == projectid && x.IsOnSite == true && x.InspectionType.Contains("计量") && x.IsCheckOK == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取企业总部人数
|
/// 获取企业总部人数
|
||||||
|
@ -471,11 +476,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetProjectPersonNum(string projectid)
|
public static int GetProjectPersonNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Comprehensive_InspectionPerson
|
int result = (from x in Funs.DB.Comprehensive_InspectionPerson
|
||||||
// join y in Funs.DB.Base_WorkPost on x.PostId equals y.WorkPostId
|
join y in Funs.DB.Base_WorkPost on x.PostId equals y.WorkPostId
|
||||||
// where x.ProjectId == projectid && y.IsCQMS == true && x.IsOnSite == true
|
where x.ProjectId == projectid && y.IsCQMS == true && x.IsOnSite == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取问题个数
|
/// 获取问题个数
|
||||||
|
@ -517,7 +522,7 @@ namespace BLL
|
||||||
public static int GetSNum(string projectid)
|
public static int GetSNum(string projectid)
|
||||||
{
|
{
|
||||||
int result = (from x in Funs.DB.WBS_BreakdownProject
|
int result = (from x in Funs.DB.WBS_BreakdownProject
|
||||||
where x.ProjectId == projectid && x.Class.Contains("S")
|
where x.ProjectId == projectid && x.Class.Contains("S") && x.IsSelected == true
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -528,7 +533,7 @@ namespace BLL
|
||||||
public static int GetANum(string projectid)
|
public static int GetANum(string projectid)
|
||||||
{
|
{
|
||||||
int result = (from x in Funs.DB.WBS_BreakdownProject
|
int result = (from x in Funs.DB.WBS_BreakdownProject
|
||||||
where x.ProjectId == projectid && x.Class.Contains("A")
|
where x.ProjectId == projectid && x.Class.Contains("A") && x.IsSelected == true
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -539,7 +544,7 @@ namespace BLL
|
||||||
public static int GetBNum(string projectid)
|
public static int GetBNum(string projectid)
|
||||||
{
|
{
|
||||||
int result = (from x in Funs.DB.WBS_BreakdownProject
|
int result = (from x in Funs.DB.WBS_BreakdownProject
|
||||||
where x.ProjectId == projectid && x.Class.Contains("B")
|
where x.ProjectId == projectid && x.Class.Contains("B") && x.IsSelected == true
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -550,7 +555,7 @@ namespace BLL
|
||||||
public static int GetCNum(string projectid)
|
public static int GetCNum(string projectid)
|
||||||
{
|
{
|
||||||
int result = (from x in Funs.DB.WBS_BreakdownProject
|
int result = (from x in Funs.DB.WBS_BreakdownProject
|
||||||
where x.ProjectId == projectid && x.Class.Contains("C")
|
where x.ProjectId == projectid && x.Class.Contains("C") && x.IsSelected == true
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -560,11 +565,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetKeyProcessNum(string projectid)
|
public static int GetKeyProcessNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "1"
|
where y.ProjectId == projectid && y.CheckAcceptType == "1"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取关键工序验收合格数
|
/// 获取关键工序验收合格数
|
||||||
|
@ -572,12 +577,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetKeyProcessOKNum(string projectid)
|
public static int GetKeyProcessOKNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "1" && z.IsOnceQualified == true
|
where y.ProjectId == projectid && y.CheckAcceptType == "1" && z.IsOnceQualified == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取特殊过程验收数
|
/// 获取特殊过程验收数
|
||||||
|
@ -585,11 +590,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSpecialProcessNum(string projectid)
|
public static int GetSpecialProcessNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "2"
|
where y.ProjectId == projectid && y.CheckAcceptType == "2"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取特殊过程验收合格数
|
/// 获取特殊过程验收合格数
|
||||||
|
@ -597,12 +602,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSpecialProcessOKNum(string projectid)
|
public static int GetSpecialProcessOKNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "2" && z.IsOnceQualified == true
|
where y.ProjectId == projectid && y.CheckAcceptType == "2" && z.IsOnceQualified == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取隐蔽工程验收数
|
/// 获取隐蔽工程验收数
|
||||||
|
@ -610,11 +615,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetConcealedWorksNum(string projectid)
|
public static int GetConcealedWorksNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "3"
|
where y.ProjectId == projectid && y.CheckAcceptType == "3"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取隐蔽工程验收合格数
|
/// 获取隐蔽工程验收合格数
|
||||||
|
@ -622,12 +627,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetConcealedWorksOKNum(string projectid)
|
public static int GetConcealedWorksOKNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "3" && z.IsOnceQualified == true
|
where y.ProjectId == projectid && y.CheckAcceptType == "3" && z.IsOnceQualified == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取单位工程一次验收数
|
/// 获取单位工程一次验收数
|
||||||
|
@ -635,11 +640,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetUnitProjectOnesNum(string projectid)
|
public static int GetUnitProjectOnesNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "4"
|
where y.ProjectId == projectid && y.CheckAcceptType == "4"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取单位工程一次验收合格数
|
/// 获取单位工程一次验收合格数
|
||||||
|
@ -647,12 +652,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetUnitProjectOnesOKNum(string projectid)
|
public static int GetUnitProjectOnesOKNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "4" && z.IsOnceQualified == true
|
where y.ProjectId == projectid && y.CheckAcceptType == "4" && z.IsOnceQualified == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取材料进场复验数
|
/// 获取材料进场复验数
|
||||||
|
@ -660,11 +665,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetMaterialInRecheckNum(string projectid)
|
public static int GetMaterialInRecheckNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "5"
|
where y.ProjectId == projectid && y.CheckAcceptType == "5"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取材料进场复验合格数
|
/// 获取材料进场复验合格数
|
||||||
|
@ -672,12 +677,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetMaterialInRecheckOKNum(string projectid)
|
public static int GetMaterialInRecheckOKNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
int result = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
// join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
join y in Funs.DB.WBS_BreakdownProject on x.ControlPointType equals y.BreakdownProjectId
|
||||||
// join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
join z in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals z.InspectionId
|
||||||
// where y.ProjectId == projectid && y.CheckAcceptType == "5" && z.IsOnceQualified == true
|
where y.ProjectId == projectid && y.CheckAcceptType == "5" && z.IsOnceQualified == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取单项工程个数
|
/// 获取单项工程个数
|
||||||
|
@ -707,10 +712,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSubProjectNum(string projectid)
|
public static int GetSubProjectNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.WBS_DivisionProject
|
int result = (from x in Funs.DB.WBS_DivisionProject
|
||||||
// where x.ProjectId == projectid && x.SubItemType == "1"
|
where x.ProjectId == projectid && x.SubItemType == "1" && x.IsSelected == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取分项工程个数
|
/// 获取分项工程个数
|
||||||
|
@ -718,10 +723,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSubdivisionalWorksNum(string projectid)
|
public static int GetSubdivisionalWorksNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.WBS_DivisionProject
|
int result = (from x in Funs.DB.WBS_DivisionProject
|
||||||
// where x.ProjectId == projectid && x.SubItemType == "3"
|
where x.ProjectId == projectid && x.SubItemType == "3" && x.IsSelected == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取检验批个数
|
/// 获取检验批个数
|
||||||
|
@ -730,7 +735,7 @@ namespace BLL
|
||||||
public static int GetInspectionLotNum(string projectid)
|
public static int GetInspectionLotNum(string projectid)
|
||||||
{
|
{
|
||||||
int result = (from x in Funs.DB.WBS_BreakdownProject
|
int result = (from x in Funs.DB.WBS_BreakdownProject
|
||||||
where x.ProjectId == projectid
|
where x.ProjectId == projectid && x.IsSelected == true
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,39 +202,44 @@ namespace BLL
|
||||||
/// <param name="projectid"></param>
|
/// <param name="projectid"></param>
|
||||||
public static void StatisticalData(string projectid)
|
public static void StatisticalData(string projectid)
|
||||||
{
|
{
|
||||||
//string thisUnitId = BLL.Const.UnitId_CWCEC;
|
string thisUnitId = string.Empty;
|
||||||
//var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
//var list = from x in db.CH_CheckItem
|
if (thisUnit != null)
|
||||||
// join y in db.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
{
|
||||||
// where y.ProjectId == projectid
|
thisUnitId = thisUnit;
|
||||||
// select x;
|
}
|
||||||
//var types = (from x in list select x.Defects_Definition).Distinct().ToList();
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
//foreach (var t in types)
|
var list = from x in db.CH_CheckItem
|
||||||
//{
|
join y in db.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||||
// if (!string.IsNullOrEmpty(t))
|
where y.ProjectId == projectid
|
||||||
// {
|
select x;
|
||||||
// Model.Project_HJGLData_Defect table = new Model.Project_HJGLData_Defect
|
var types = (from x in list select x.Defects_Definition).Distinct().ToList();
|
||||||
// {
|
foreach (var t in types)
|
||||||
// UnitId = thisUnitId,
|
{
|
||||||
// CollCropCode = base_Unit.CollCropCode,
|
if (!string.IsNullOrEmpty(t))
|
||||||
// UnitName = base_Unit.UnitName,
|
{
|
||||||
// ProjectId = projectid,
|
Model.Project_HJGLData_Defect table = new Model.Project_HJGLData_Defect
|
||||||
// ReportDate = DateTime.Now.Date,
|
{
|
||||||
// DefectName = t,
|
UnitId = thisUnitId,
|
||||||
// DefectNum = list.Count(x => x.Defects_Definition == t),
|
CollCropCode = base_Unit.CollCropCode,
|
||||||
// };
|
UnitName = base_Unit.UnitName,
|
||||||
// if (IsReportByToday(projectid, t))
|
ProjectId = projectid,
|
||||||
// {
|
ReportDate = DateTime.Now.Date,
|
||||||
// table.Id = getTodayProject_HJGLData_Defect(projectid, t).Id;
|
DefectName = t,
|
||||||
// UpdateProject_HJGLData_Defect(table);
|
DefectNum = list.Count(x => x.Defects_Definition == t),
|
||||||
// }
|
};
|
||||||
// else
|
if (IsReportByToday(projectid, t))
|
||||||
// {
|
{
|
||||||
// table.Id = SQLHelper.GetNewID();
|
table.Id = getTodayProject_HJGLData_Defect(projectid, t).Id;
|
||||||
// AddProject_HJGLData_Defect(table);
|
UpdateProject_HJGLData_Defect(table);
|
||||||
// }
|
}
|
||||||
// }
|
else
|
||||||
//}
|
{
|
||||||
|
table.Id = SQLHelper.GetNewID();
|
||||||
|
AddProject_HJGLData_Defect(table);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取缺陷名称
|
/// 获取缺陷名称
|
||||||
|
|
|
@ -228,7 +228,12 @@ namespace BLL
|
||||||
/// <param name="hJGLDateType">数据类型</param>
|
/// <param name="hJGLDateType">数据类型</param>
|
||||||
public static void StatisticalData(string projectid,HJGLDateType hJGLDateType)
|
public static void StatisticalData(string projectid,HJGLDateType hJGLDateType)
|
||||||
{
|
{
|
||||||
string thisUnitId = BLL.Const.UnitId_CWCEC;
|
string thisUnitId = string.Empty;
|
||||||
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
|
if (thisUnit != null)
|
||||||
|
{
|
||||||
|
thisUnitId = thisUnit;
|
||||||
|
}
|
||||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
Model.Project_HJGLData_HJGL table = new Model.Project_HJGLData_HJGL();
|
Model.Project_HJGLData_HJGL table = new Model.Project_HJGLData_HJGL();
|
||||||
if (IsReportByToday(projectid))
|
if (IsReportByToday(projectid))
|
||||||
|
@ -298,7 +303,7 @@ namespace BLL
|
||||||
{
|
{
|
||||||
//int result = Convert.ToInt32((from x in Funs.DB.PW_JointInfo
|
//int result = Convert.ToInt32((from x in Funs.DB.PW_JointInfo
|
||||||
// where x.ProjectId == projectid
|
// where x.ProjectId == projectid
|
||||||
// select x.JOT_Size).ToList().Sum(x=>x.Value));
|
// select x.JOT_Size).ToList().Sum());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -309,7 +314,7 @@ namespace BLL
|
||||||
{
|
{
|
||||||
//int result = Convert.ToInt32((from x in Funs.DB.PW_JointInfo
|
//int result = Convert.ToInt32((from x in Funs.DB.PW_JointInfo
|
||||||
// where x.ProjectId == projectid
|
// where x.ProjectId == projectid
|
||||||
// select x.JOT_DoneDin ).ToList().Sum(x => x.Value));
|
// select x.JOT_DoneDin ).ToList().Sum());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -318,10 +323,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetTotalFilmNum(string projectid)
|
public static int GetTotalFilmNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.CH_CheckItem
|
//int result = Convert.ToInt32((from x in Funs.DB.CH_CheckItem
|
||||||
// join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
// join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||||
// where y.ProjectId == projectid
|
// where y.ProjectId == projectid
|
||||||
// select x.CHT_TotalFilm ).ToList().Sum(x => x.Value);
|
// select x.CHT_TotalFilm ).ToList().Sum());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -330,10 +335,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetOKFilmNum(string projectid)
|
public static int GetOKFilmNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.CH_CheckItem
|
//int result = Convert.ToInt32((from x in Funs.DB.CH_CheckItem
|
||||||
// join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
// join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||||
// where y.ProjectId == projectid
|
// where y.ProjectId == projectid
|
||||||
// select x.CHT_PassFilm).ToList().Sum(x => x.Value);
|
// select x.CHT_PassFilm).ToList().Sum());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -216,7 +216,8 @@ namespace BLL
|
||||||
/// <param name="newtable"></param>
|
/// <param name="newtable"></param>
|
||||||
public static void AddProject_HSSEData_HSSE(Model.Project_HSSEData_HSSE newtable)
|
public static void AddProject_HSSEData_HSSE(Model.Project_HSSEData_HSSE newtable)
|
||||||
{
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
Model.Project_HSSEData_HSSE table = new Model.Project_HSSEData_HSSE
|
Model.Project_HSSEData_HSSE table = new Model.Project_HSSEData_HSSE
|
||||||
{
|
{
|
||||||
Id = newtable.Id,
|
Id = newtable.Id,
|
||||||
|
@ -299,20 +300,22 @@ namespace BLL
|
||||||
db.Project_HSSEData_HSSE.InsertOnSubmit(table);
|
db.Project_HSSEData_HSSE.InsertOnSubmit(table);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 删除实体
|
/// 删除实体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="Id"></param>
|
/// <param name="Id"></param>
|
||||||
public static void DeleteProject_HSSEData_HSSEById(string Id)
|
public static void DeleteProject_HSSEData_HSSEById(string Id)
|
||||||
{
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
Model.Project_HSSEData_HSSE table = db.Project_HSSEData_HSSE.FirstOrDefault(x => x.Id == Id);
|
Model.Project_HSSEData_HSSE table = db.Project_HSSEData_HSSE.FirstOrDefault(x => x.Id == Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
db.Project_HSSEData_HSSE.DeleteOnSubmit(table);
|
db.Project_HSSEData_HSSE.DeleteOnSubmit(table);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据id获取实体
|
/// 根据id获取实体
|
||||||
|
@ -324,16 +327,19 @@ namespace BLL
|
||||||
return db.Project_HSSEData_HSSE.FirstOrDefault(x => x.Id == Id);
|
return db.Project_HSSEData_HSSE.FirstOrDefault(x => x.Id == Id);
|
||||||
}
|
}
|
||||||
public static List<Model.Project_HSSEData_HSSE> GetProject_HSSEData_HSSEByProjectid(string Projectid)
|
public static List<Model.Project_HSSEData_HSSE> GetProject_HSSEData_HSSEByProjectid(string Projectid)
|
||||||
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
var q = (from x in db.Project_HSSEData_HSSE
|
var q = (from x in db.Project_HSSEData_HSSE
|
||||||
where x.ProjectId == Projectid
|
where x.ProjectId == Projectid
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
return q;
|
return q;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public static void UpdateProject_HSSEData_HSSE(Model.Project_HSSEData_HSSE newtable)
|
public static void UpdateProject_HSSEData_HSSE(Model.Project_HSSEData_HSSE newtable)
|
||||||
{
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
Model.Project_HSSEData_HSSE table = db.Project_HSSEData_HSSE.FirstOrDefault(x => x.Id == newtable.Id);
|
Model.Project_HSSEData_HSSE table = db.Project_HSSEData_HSSE.FirstOrDefault(x => x.Id == newtable.Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
@ -415,7 +421,7 @@ namespace BLL
|
||||||
table.SuperFinishedNum = newtable.SuperFinishedNum;
|
table.SuperFinishedNum = newtable.SuperFinishedNum;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 判断该项目的该日期是否统计数据
|
/// 判断该项目的该日期是否统计数据
|
||||||
|
@ -481,7 +487,12 @@ namespace BLL
|
||||||
/// <param name="projectid"></param>
|
/// <param name="projectid"></param>
|
||||||
public static void StatisticalData(string projectid, HSSEDateType hSSEDateType)
|
public static void StatisticalData(string projectid, HSSEDateType hSSEDateType)
|
||||||
{
|
{
|
||||||
string thisUnitId = BLL.Const.UnitId_CWCEC;
|
string thisUnitId = string.Empty;
|
||||||
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
|
if (thisUnit != null)
|
||||||
|
{
|
||||||
|
thisUnitId = thisUnit;
|
||||||
|
}
|
||||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
Model.Project_HSSEData_HSSE table = new Model.Project_HSSEData_HSSE();
|
Model.Project_HSSEData_HSSE table = new Model.Project_HSSEData_HSSE();
|
||||||
if (IsReportByToday(projectid))
|
if (IsReportByToday(projectid))
|
||||||
|
@ -716,12 +727,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSafeTrainNum(string projectid)
|
public static int GetSafeTrainNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//int result = (from x in Funs.DB.EduTrain_TrainRecord
|
int result = (from x in Funs.DB.EduTrain_TrainRecord
|
||||||
// join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
||||||
// where x.ProjectId == projectid && x.TrainStartDate.Value.Year == date.Year && x.TrainStartDate.Value.Month == date.Month && x.TrainStartDate.Value.Day == date.Day && y.TrainType == "1"
|
where x.ProjectId == projectid && x.TrainStartDate.Value.Year == date.Year && x.TrainStartDate.Value.Month == date.Month && x.TrainStartDate.Value.Day == date.Day && y.TrainType == "1"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取专项培训数
|
/// 获取专项培训数
|
||||||
|
@ -729,12 +740,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSpecialTrainNum(string projectid)
|
public static int GetSpecialTrainNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//int result = (from x in Funs.DB.EduTrain_TrainRecord
|
int result = (from x in Funs.DB.EduTrain_TrainRecord
|
||||||
// join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
||||||
// where x.ProjectId == projectid && x.TrainStartDate.Value.Year == date.Year && x.TrainStartDate.Value.Month == date.Month && x.TrainStartDate.Value.Day == date.Day && y.TrainType == "2"
|
where x.ProjectId == projectid && x.TrainStartDate.Value.Year == date.Year && x.TrainStartDate.Value.Month == date.Month && x.TrainStartDate.Value.Day == date.Day && y.TrainType == "2"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取特种作业培训数
|
/// 获取特种作业培训数
|
||||||
|
@ -742,12 +753,12 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSpecialOperationTrainNum(string projectid)
|
public static int GetSpecialOperationTrainNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//int result = (from x in Funs.DB.EduTrain_TrainRecord
|
int result = (from x in Funs.DB.EduTrain_TrainRecord
|
||||||
// join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
||||||
// where x.ProjectId == projectid && x.TrainStartDate.Value.Year == date.Year && x.TrainStartDate.Value.Month == date.Month && x.TrainStartDate.Value.Day == date.Day && y.TrainType == "3"
|
where x.ProjectId == projectid && x.TrainStartDate.Value.Year == date.Year && x.TrainStartDate.Value.Month == date.Month && x.TrainStartDate.Value.Day == date.Day && y.TrainType == "3"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取能耗总量
|
/// 获取能耗总量
|
||||||
|
@ -818,10 +829,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetProjectInspectorGeneralNum(string projectid)
|
public static int GetProjectInspectorGeneralNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.SitePerson_Person
|
int result = (from x in Funs.DB.SitePerson_Person
|
||||||
// where x.ProjectId == projectid && x.WorkPostId == BLL.Const.WorkPost_ProjectHSSEDirector && x.IsUsed == true
|
where x.ProjectId == projectid && x.WorkPostId == BLL.Const.WorkPost_ProjectHSSEDirector && x.IsUsed == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取项目专职人数
|
/// 获取项目专职人数
|
||||||
|
@ -841,10 +852,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetProjectSafetyMonitorNum(string projectid)
|
public static int GetProjectSafetyMonitorNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.SitePerson_Person
|
int result = (from x in Funs.DB.SitePerson_Person
|
||||||
// where x.ProjectId == projectid && x.IsSafetyMonitoring == true && x.IsUsed == true
|
where x.ProjectId == projectid && x.IsSafetyMonitoring == true && x.IsUsed == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取在岗执业注安师
|
/// 获取在岗执业注安师
|
||||||
|
@ -852,11 +863,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSafetyInjectionEngineer(string projectid)
|
public static int GetSafetyInjectionEngineer(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.SitePerson_Person
|
int result = (from x in Funs.DB.SitePerson_Person
|
||||||
// join y in Funs.DB.Base_Certificate on x.CertificateId equals y.CertificateId
|
join y in Funs.DB.Base_Certificate on x.CertificateId equals y.CertificateId
|
||||||
// where x.ProjectId == projectid && y.IsRegisterHSSE == true && x.IsUsed == true
|
where x.ProjectId == projectid && y.IsRegisterHSSE == true && x.IsUsed == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取A证人员
|
/// 获取A证人员
|
||||||
|
@ -864,11 +875,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetCertificateANum(string projectid)
|
public static int GetCertificateANum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.SitePerson_Person
|
int result = (from x in Funs.DB.SitePerson_Person
|
||||||
// join y in Funs.DB.Base_Certificate on x.CertificateId equals y.CertificateId
|
join y in Funs.DB.Base_Certificate on x.CertificateId equals y.CertificateId
|
||||||
// where x.ProjectId == projectid && y.CertificateType == "A" && x.IsUsed == true
|
where x.ProjectId == projectid && y.CertificateType == "A" && x.IsUsed == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取B证人员
|
/// 获取B证人员
|
||||||
|
@ -876,11 +887,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetCertificateBNum(string projectid)
|
public static int GetCertificateBNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.SitePerson_Person
|
int result = (from x in Funs.DB.SitePerson_Person
|
||||||
// join y in Funs.DB.Base_Certificate on x.CertificateId equals y.CertificateId
|
join y in Funs.DB.Base_Certificate on x.CertificateId equals y.CertificateId
|
||||||
// where x.ProjectId == projectid && y.CertificateType == "B" && x.IsUsed == true
|
where x.ProjectId == projectid && y.CertificateType == "B" && x.IsUsed == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取C证人员
|
/// 获取C证人员
|
||||||
|
@ -888,11 +899,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetCertificateCNum(string projectid)
|
public static int GetCertificateCNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.SitePerson_Person
|
int result = (from x in Funs.DB.SitePerson_Person
|
||||||
// join y in Funs.DB.Base_Certificate on x.CertificateId equals y.CertificateId
|
join y in Funs.DB.Base_Certificate on x.CertificateId equals y.CertificateId
|
||||||
// where x.ProjectId == projectid && y.CertificateType == "C" && x.IsUsed == true
|
where x.ProjectId == projectid && y.CertificateType == "C" && x.IsUsed == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取企业安委会会议数
|
/// 获取企业安委会会议数
|
||||||
|
@ -999,7 +1010,7 @@ namespace BLL
|
||||||
DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
int result = (from x in Funs.DB.Accident_AccidentPersonRecord
|
int result = (from x in Funs.DB.Accident_AccidentPersonRecord
|
||||||
join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId
|
join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId
|
||||||
where x.ProjectId == projectid && x.AccidentDate.Year == date.Year && x.AccidentDate.Month == date.Month && x.AccidentDate.Day == date.Day && y.AccidentTypeName.Contains("未遂")
|
where x.ProjectId == projectid && x.AccidentDate.Year == date.Year && x.AccidentDate.Month == date.Month && x.AccidentDate.Day == date.Day && x.IsAttempt=="1"
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -1012,7 +1023,7 @@ namespace BLL
|
||||||
DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
int result = (from x in Funs.DB.Accident_AccidentPersonRecord
|
int result = (from x in Funs.DB.Accident_AccidentPersonRecord
|
||||||
join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId
|
join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId
|
||||||
where x.ProjectId == projectid && x.AccidentDate.Year == date.Year && x.AccidentDate.Month == date.Month && x.AccidentDate.Day == date.Day && !y.AccidentTypeName.Contains("未遂")
|
where x.ProjectId == projectid && x.AccidentDate.Year == date.Year && x.AccidentDate.Month == date.Month && x.AccidentDate.Day == date.Day && x.IsAttempt != "1"
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -1022,9 +1033,9 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetGeneralAccidentNum(string projectid)
|
public static int GetGeneralAccidentNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//int result = (from x in Funs.DB.Accident_AccidentReport where x.ProjectId == projectid && x.AccidentDate.Value.Year == date.Year && x.AccidentDate.Value.Month == date.Month && x.AccidentDate.Value.Day == date.Day && x.AccidentDegree == "1" select x).Count();
|
int result = (from x in Funs.DB.Accident_AccidentReport where x.ProjectId == projectid && x.AccidentDate.Value.Year == date.Year && x.AccidentDate.Value.Month == date.Month && x.AccidentDate.Value.Day == date.Day && x.AccidentDegree == "1" select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取较大事故数
|
/// 获取较大事故数
|
||||||
|
@ -1032,9 +1043,9 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetMajorAccidentNum(string projectid)
|
public static int GetMajorAccidentNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//int result = (from x in Funs.DB.Accident_AccidentReport where x.ProjectId == projectid && x.AccidentDate.Value.Year == date.Year && x.AccidentDate.Value.Month == date.Month && x.AccidentDate.Value.Day == date.Day && x.AccidentDegree == "2" select x).Count();
|
int result = (from x in Funs.DB.Accident_AccidentReport where x.ProjectId == projectid && x.AccidentDate.Value.Year == date.Year && x.AccidentDate.Value.Month == date.Month && x.AccidentDate.Value.Day == date.Day && x.AccidentDegree == "2" select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取重大事故数
|
/// 获取重大事故数
|
||||||
|
@ -1042,9 +1053,9 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSeriousAccidentNum(string projectid)
|
public static int GetSeriousAccidentNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//int result = (from x in Funs.DB.Accident_AccidentReport where x.ProjectId == projectid && x.AccidentDate.Value.Year == date.Year && x.AccidentDate.Value.Month == date.Month && x.AccidentDate.Value.Day == date.Day && x.AccidentDegree == "3" select x).Count();
|
int result = (from x in Funs.DB.Accident_AccidentReport where x.ProjectId == projectid && x.AccidentDate.Value.Year == date.Year && x.AccidentDate.Value.Month == date.Month && x.AccidentDate.Value.Day == date.Day && x.AccidentDegree == "3" select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取特别重大事故数
|
/// 获取特别重大事故数
|
||||||
|
@ -1052,9 +1063,9 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSpecialSeriousAccidentNum(string projectid)
|
public static int GetSpecialSeriousAccidentNum(string projectid)
|
||||||
{
|
{
|
||||||
//DateTime date = DateTime.Now;
|
DateTime date = DateTime.Now;
|
||||||
//int result = (from x in Funs.DB.Accident_AccidentReport where x.ProjectId == projectid && x.AccidentDate.Value.Year == date.Year && x.AccidentDate.Value.Month == date.Month && x.AccidentDate.Value.Day == date.Day && x.AccidentDegree == "4" select x).Count();
|
int result = (from x in Funs.DB.Accident_AccidentReport where x.ProjectId == projectid && x.AccidentDate.Value.Year == date.Year && x.AccidentDate.Value.Month == date.Month && x.AccidentDate.Value.Day == date.Day && x.AccidentDegree == "4" select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取企业级综合预案数
|
/// 获取企业级综合预案数
|
||||||
|
@ -1171,15 +1182,15 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetUseEquipmentNum(string projectid)
|
public static int GetUseEquipmentNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.InApproveManager_EquipmentInItem
|
int result = (from x in Funs.DB.InApproveManager_EquipmentInItem
|
||||||
// join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
|
join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
|
||||||
// where y.ProjectId == projectid && x.IsUsed == true
|
where y.ProjectId == projectid && x.IsUsed == true
|
||||||
// select x).Count() +
|
select x).Count() +
|
||||||
// (from x in Funs.DB.InApproveManager_GeneralEquipmentInItem
|
(from x in Funs.DB.InApproveManager_GeneralEquipmentInItem
|
||||||
// join y in Funs.DB.InApproveManager_GeneralEquipmentIn on x.GeneralEquipmentInId equals y.GeneralEquipmentInId
|
join y in Funs.DB.InApproveManager_GeneralEquipmentIn on x.GeneralEquipmentInId equals y.GeneralEquipmentInId
|
||||||
// where y.ProjectId == projectid && x.IsUsed == true
|
where y.ProjectId == projectid && x.IsUsed == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取施工机具特种设备数
|
/// 获取施工机具特种设备数
|
||||||
|
@ -1187,11 +1198,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSpecialEquipmentNum(string projectid)
|
public static int GetSpecialEquipmentNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.InApproveManager_EquipmentInItem
|
int result = (from x in Funs.DB.InApproveManager_EquipmentInItem
|
||||||
// join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
|
join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
|
||||||
// where y.ProjectId == projectid && x.IsUsed == true
|
where y.ProjectId == projectid && x.IsUsed == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取作业许可项数
|
/// 获取作业许可项数
|
||||||
|
@ -1199,10 +1210,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetLicensesNum(string projectid)
|
public static int GetLicensesNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.License_LicenseManager
|
int result = (from x in Funs.DB.License_LicenseManager
|
||||||
// where x.ProjectId == projectid && x.IsHighRisk == true
|
where x.ProjectId == projectid && x.IsHighRisk == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取作业许可关闭项数
|
/// 获取作业许可关闭项数
|
||||||
|
@ -1210,10 +1221,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetLicensesCloseNum(string projectid)
|
public static int GetLicensesCloseNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.License_LicenseManager
|
int result = (from x in Funs.DB.License_LicenseManager
|
||||||
// where x.ProjectId == projectid && x.IsHighRisk == true && x.WorkStates == "3"
|
where x.ProjectId == projectid && x.IsHighRisk == true && x.WorkStates == "3"
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取一般隐患整改闭环项
|
/// 获取一般隐患整改闭环项
|
||||||
|
@ -1269,11 +1280,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetGeneralRiskNum(string projectid)
|
public static int GetGeneralRiskNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
int result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
||||||
// join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
||||||
// where x.ProjectId == projectid && y.RiskLevel == 2 && x.IsStart == true
|
where x.ProjectId == projectid && y.RiskLevel == 2 && x.IsStart == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取低风险数
|
/// 获取低风险数
|
||||||
|
@ -1281,11 +1292,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetLowRiskNum(string projectid)
|
public static int GetLowRiskNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
int result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
||||||
// join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
||||||
// where x.ProjectId == projectid && y.RiskLevel == 1 && x.IsStart == true
|
where x.ProjectId == projectid && y.RiskLevel == 1 && x.IsStart == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取中风险数
|
/// 获取中风险数
|
||||||
|
@ -1293,11 +1304,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetMediumRiskNum(string projectid)
|
public static int GetMediumRiskNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
int result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
||||||
// join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
||||||
// where x.ProjectId == projectid && y.RiskLevel == 3 && x.IsStart == true
|
where x.ProjectId == projectid && y.RiskLevel == 3 && x.IsStart == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取高风险数
|
/// 获取高风险数
|
||||||
|
@ -1305,11 +1316,11 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetHighRiskNum(string projectid)
|
public static int GetHighRiskNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
int result = (from x in Funs.DB.Hazard_HazardSelectedItem
|
||||||
// join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
|
||||||
// where x.ProjectId == projectid && y.RiskLevel == 4 && x.IsStart == true
|
where x.ProjectId == projectid && y.RiskLevel == 4 && x.IsStart == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取危大工程审批完成数
|
/// 获取危大工程审批完成数
|
||||||
|
@ -1317,10 +1328,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetCompletedNum(string projectid)
|
public static int GetCompletedNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Solution_LargerHazard
|
int result = (from x in Funs.DB.Solution_LargerHazard
|
||||||
// where x.ProjectId == projectid && x.States == "1" && x.IsSuperLargerHazard == false
|
where x.ProjectId == projectid && x.States == "1" && x.IsSuperLargerHazard == false
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取危大工程培训人次数
|
/// 获取危大工程培训人次数
|
||||||
|
@ -1328,10 +1339,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetTrainPersonNum(string projectid)
|
public static int GetTrainPersonNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Solution_LargerHazard
|
int result = (from x in Funs.DB.Solution_LargerHazard
|
||||||
// where x.ProjectId == projectid && x.IsSuperLargerHazard == false
|
where x.ProjectId == projectid && x.IsSuperLargerHazard == false
|
||||||
// select x.TrainPersonNum ).ToList().Sum(x=>x.Value);
|
select x.TrainPersonNum ).ToList().Sum(x=>x.Value);
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取危大工程施工个数
|
/// 获取危大工程施工个数
|
||||||
|
@ -1339,10 +1350,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetConstructionNum(string projectid)
|
public static int GetConstructionNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Solution_LargerHazard
|
int result = (from x in Funs.DB.Solution_LargerHazard
|
||||||
// where x.ProjectId == projectid && x.States == "2" && x.IsSuperLargerHazard == false
|
where x.ProjectId == projectid && x.States == "2" && x.IsSuperLargerHazard == false
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取危大工程完工个数
|
/// 获取危大工程完工个数
|
||||||
|
@ -1350,10 +1361,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetFinishedNum(string projectid)
|
public static int GetFinishedNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Solution_LargerHazard
|
int result = (from x in Funs.DB.Solution_LargerHazard
|
||||||
// where x.ProjectId == projectid && x.States == "3" && x.IsSuperLargerHazard == false
|
where x.ProjectId == projectid && x.States == "3" && x.IsSuperLargerHazard == false
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取超危大工程审批完成数
|
/// 获取超危大工程审批完成数
|
||||||
|
@ -1361,10 +1372,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSuperCompletedNum(string projectid)
|
public static int GetSuperCompletedNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Solution_LargerHazard
|
int result = (from x in Funs.DB.Solution_LargerHazard
|
||||||
// where x.ProjectId == projectid && x.States == "1" && x.IsSuperLargerHazard == true
|
where x.ProjectId == projectid && x.States == "1" && x.IsSuperLargerHazard == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取超危大工程培训人次数
|
/// 获取超危大工程培训人次数
|
||||||
|
@ -1372,8 +1383,8 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSuperTrainPersonNum(string projectid)
|
public static int GetSuperTrainPersonNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Solution_LargerHazard where x.ProjectId == projectid && x.IsSuperLargerHazard == true select x.TrainPersonNum).ToList().Sum(x => x.Value);
|
int result = (from x in Funs.DB.Solution_LargerHazard where x.ProjectId == projectid && x.IsSuperLargerHazard == true select x.TrainPersonNum).ToList().Sum(x => x.Value);
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取超危大工程施工个数
|
/// 获取超危大工程施工个数
|
||||||
|
@ -1381,10 +1392,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSuperConstructionNum(string projectid)
|
public static int GetSuperConstructionNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Solution_LargerHazard
|
int result = (from x in Funs.DB.Solution_LargerHazard
|
||||||
// where x.ProjectId == projectid && x.States == "2" && x.IsSuperLargerHazard == true
|
where x.ProjectId == projectid && x.States == "2" && x.IsSuperLargerHazard == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取超危大工程完工个数
|
/// 获取超危大工程完工个数
|
||||||
|
@ -1392,10 +1403,10 @@ namespace BLL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSuperFinishedNum(string projectid)
|
public static int GetSuperFinishedNum(string projectid)
|
||||||
{
|
{
|
||||||
//int result = (from x in Funs.DB.Solution_LargerHazard
|
int result = (from x in Funs.DB.Solution_LargerHazard
|
||||||
// where x.ProjectId == projectid && x.States == "3" && x.IsSuperLargerHazard == true
|
where x.ProjectId == projectid && x.States == "3" && x.IsSuperLargerHazard == true
|
||||||
// select x).Count();
|
select x).Count();
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,40 +210,46 @@ namespace BLL
|
||||||
/// <param name="projectid"></param>
|
/// <param name="projectid"></param>
|
||||||
public static void StatisticalData(string projectid)
|
public static void StatisticalData(string projectid)
|
||||||
{
|
{
|
||||||
//var base_Unit = BLL.UnitService.GetUnitByUnitId(BLL.Const.UnitId_CWCEC);
|
string thisUnitId = string.Empty;
|
||||||
//DateTime date = DateTime.Now;
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
//Model.SGGLDB db = Funs.DB;
|
if (thisUnit != null)
|
||||||
//var list = from x in db.Check_RectifyNoticesItem
|
{
|
||||||
// join y in db.Check_RectifyNotices on x.RectifyNoticesId equals y.RectifyNoticesId
|
thisUnitId = thisUnit;
|
||||||
// where y.ProjectId == projectid && y.CheckedDate.Value.Year == date.Year && y.CheckedDate.Value.Month == date.Month && y.CheckedDate.Value.Day == date.Day
|
}
|
||||||
// select x;
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
//var types = (from x in db.Technique_Rectify
|
DateTime date = DateTime.Now;
|
||||||
// join y in list on x.RectifyId equals y.RectifyId
|
Model.SGGLDB db = Funs.DB;
|
||||||
// select new { x.RectifyId, x.RectifyName }).Distinct().ToList();
|
var list = from x in db.Check_RectifyNoticesItem
|
||||||
//foreach (var type in types)
|
join y in db.Check_RectifyNotices on x.RectifyNoticesId equals y.RectifyNoticesId
|
||||||
//{
|
where y.ProjectId == projectid && y.CheckedDate.Value.Year == date.Year && y.CheckedDate.Value.Month == date.Month && y.CheckedDate.Value.Day == date.Day
|
||||||
// Model.Project_HSSEData_HiddenDangerDetail table = new Model.Project_HSSEData_HiddenDangerDetail
|
select x;
|
||||||
// {
|
var types = (from x in db.Technique_Rectify
|
||||||
// UnitId = BLL.Const.UnitId_CWCEC,
|
join y in list on x.RectifyId equals y.RectifyId
|
||||||
// CollCropCode = base_Unit.CollCropCode,
|
select new { x.RectifyId, x.RectifyName }).Distinct().ToList();
|
||||||
// UnitName = base_Unit.UnitName,
|
foreach (var type in types)
|
||||||
// ProjectId = projectid,
|
{
|
||||||
// ReportDate = DateTime.Now.Date,
|
Model.Project_HSSEData_HiddenDangerDetail table = new Model.Project_HSSEData_HiddenDangerDetail
|
||||||
// TypeName = type.RectifyName,
|
{
|
||||||
// TotalNum = list.Count(x => x.RectifyId == type.RectifyId),
|
UnitId = thisUnitId,
|
||||||
// NeedRectifyNum = list.Count(x => x.RectifyId == type.RectifyId && (x.IsRectify == null || x.IsRectify == false)),
|
CollCropCode = base_Unit.CollCropCode,
|
||||||
// };
|
UnitName = base_Unit.UnitName,
|
||||||
// if (IsReportByToday(projectid, type.RectifyName))
|
ProjectId = projectid,
|
||||||
// {
|
ReportDate = DateTime.Now.Date,
|
||||||
// table.Id = GetTodayModelByProjectAndType(projectid, type.RectifyName).Id;
|
TypeName = type.RectifyName,
|
||||||
// UpdateProject_HSSEData_HiddenDangerDetail(table);
|
TotalNum = list.Count(x => x.RectifyId == type.RectifyId),
|
||||||
// }
|
NeedRectifyNum = list.Count(x => x.RectifyId == type.RectifyId && (x.IsRectify == null || x.IsRectify == false)),
|
||||||
// else
|
};
|
||||||
// {
|
if (IsReportByToday(projectid, type.RectifyName))
|
||||||
// table.Id = SQLHelper.GetNewID();
|
{
|
||||||
// AddProject_HSSEData_HiddenDangerDetail(table);
|
table.Id = GetTodayModelByProjectAndType(projectid, type.RectifyName).Id;
|
||||||
// }
|
UpdateProject_HSSEData_HiddenDangerDetail(table);
|
||||||
//}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
table.Id = SQLHelper.GetNewID();
|
||||||
|
AddProject_HSSEData_HiddenDangerDetail(table);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取类别名称
|
/// 获取类别名称
|
||||||
|
|
|
@ -297,7 +297,12 @@ namespace BLL
|
||||||
/// <param name="sYHSESDateType"></param>
|
/// <param name="sYHSESDateType"></param>
|
||||||
public static void StatisticalData(string projectid,SYHSESDateType sYHSESDateType)
|
public static void StatisticalData(string projectid,SYHSESDateType sYHSESDateType)
|
||||||
{
|
{
|
||||||
string thisUnitId = BLL.Const.UnitId_CWCEC;
|
string thisUnitId = string.Empty;
|
||||||
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
|
if (thisUnit != null)
|
||||||
|
{
|
||||||
|
thisUnitId = thisUnit;
|
||||||
|
}
|
||||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
Model.Project_SYHSEData_SYHSE table = new Model.Project_SYHSEData_SYHSE();
|
Model.Project_SYHSEData_SYHSE table = new Model.Project_SYHSEData_SYHSE();
|
||||||
if (IsReportByToday(projectid))
|
if (IsReportByToday(projectid))
|
||||||
|
|
|
@ -143,18 +143,19 @@ namespace BLL
|
||||||
};
|
};
|
||||||
APIDataList_Risk.Add(q);
|
APIDataList_Risk.Add(q);
|
||||||
}
|
}
|
||||||
|
var thisUnit = UnitService.GetUnitByUnitId(Const.UnitId_CWCEC);
|
||||||
|
|
||||||
NewSYHSEDataItem Item = new NewSYHSEDataItem();
|
NewSYHSEDataItem Item = new NewSYHSEDataItem();
|
||||||
Item.Id = data.Id;
|
Item.Id = data.Id;
|
||||||
Item.ReportDate=data.ReportDate.ToString();
|
Item.ReportDate=data.ReportDate.ToString();
|
||||||
Item.UnitId = Const.UnitId_CWCEC;
|
Item.UnitId = thisUnit.UnitId;
|
||||||
Item.CollCropCode = UnitService.GetUnitByUnitId(Const.UnitId_CWCEC).CollCropCode;
|
Item.CollCropCode = thisUnit.CollCropCode;
|
||||||
Item.UnitName= UnitService.GetUnitByUnitId(Const.UnitId_CWCEC).UnitName;
|
Item.UnitName= thisUnit.UnitName;
|
||||||
Item.FactoryId = data.FactoryId;
|
Item.FactoryId = data.FactoryId;
|
||||||
Item.FactoryCode = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).FactoryCode;
|
Item.FactoryCode = ProjectService.GetProjectByProjectId(data.FactoryId).ProjectCode;
|
||||||
Item.FactoryName = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).FactoryName;
|
Item.FactoryName = ProjectService.GetProjectByProjectId(data.FactoryId).ProjectName;
|
||||||
Item.Address = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).Address;
|
Item.Address = ProjectService.GetProjectByProjectId(data.FactoryId).ProjectAddress;
|
||||||
Item.MapCoordinates= BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).MapCoordinates;
|
Item.MapCoordinates= ProjectService.GetProjectByProjectId(data.FactoryId).MapCoordinates;
|
||||||
Item.SafetyMnaHours = data.SafetyMnaHours.HasValue ? data.SafetyMnaHours.Value : 0;
|
Item.SafetyMnaHours = data.SafetyMnaHours.HasValue ? data.SafetyMnaHours.Value : 0;
|
||||||
Item.GeneralRiskNum = data.GeneralRiskNum.HasValue ? data.GeneralRiskNum.Value : 0;
|
Item.GeneralRiskNum = data.GeneralRiskNum.HasValue ? data.GeneralRiskNum.Value : 0;
|
||||||
Item.LowRiskNum = data.LowRiskNum.HasValue ? data.LowRiskNum.Value : 0;
|
Item.LowRiskNum = data.LowRiskNum.HasValue ? data.LowRiskNum.Value : 0;
|
||||||
|
|
|
@ -87,12 +87,14 @@ namespace BLL
|
||||||
|
|
||||||
public static List<Model.SYHSEData_SYHSE> GetSYHSEData_SYHSEByModle(Model.SYHSEData_SYHSE table)
|
public static List<Model.SYHSEData_SYHSE> GetSYHSEData_SYHSEByModle(Model.SYHSEData_SYHSE table)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
var q = from x in db.SYHSEData_SYHSE
|
var q = from x in db.SYHSEData_SYHSE
|
||||||
where
|
where
|
||||||
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
|
||||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||||
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
(string.IsNullOrEmpty(table.CollCropCode) || x.CollCropCode.Contains(table.CollCropCode)) &&
|
||||||
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
|
(string.IsNullOrEmpty(table.UnitName) || x.UnitName.Contains(table.UnitName))
|
||||||
|
orderby x.ReportDate descending
|
||||||
select x
|
select x
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -102,6 +104,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void AddSYHSEData_SYHSE(Model.SYHSEData_SYHSE newtable)
|
public static void AddSYHSEData_SYHSE(Model.SYHSEData_SYHSE newtable)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.SYHSEData_SYHSE table = new Model.SYHSEData_SYHSE
|
Model.SYHSEData_SYHSE table = new Model.SYHSEData_SYHSE
|
||||||
{
|
{
|
||||||
Id = newtable.Id,
|
Id = newtable.Id,
|
||||||
|
@ -153,6 +156,7 @@ namespace BLL
|
||||||
|
|
||||||
public static void DeleteSYHSEData_SYHSEById(string Id)
|
public static void DeleteSYHSEData_SYHSEById(string Id)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.SYHSEData_SYHSE table = db.SYHSEData_SYHSE.FirstOrDefault(x => x.Id == Id);
|
Model.SYHSEData_SYHSE table = db.SYHSEData_SYHSE.FirstOrDefault(x => x.Id == Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
@ -269,6 +273,7 @@ namespace BLL
|
||||||
|
|
||||||
public static Model.SYHSEData_SYHSE GetSYHSEData_SYHSEById(string Id)
|
public static Model.SYHSEData_SYHSE GetSYHSEData_SYHSEById(string Id)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
return db.SYHSEData_SYHSE.FirstOrDefault(x => x.Id == Id);
|
return db.SYHSEData_SYHSE.FirstOrDefault(x => x.Id == Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,7 +349,13 @@ namespace BLL
|
||||||
|
|
||||||
public static SYHSEData StatisticalData()
|
public static SYHSEData StatisticalData()
|
||||||
{
|
{
|
||||||
var base_Unit = BLL.UnitService.GetUnitByUnitId(BLL.Const.UnitId_CWCEC);
|
string thisUnitId = string.Empty;
|
||||||
|
var thisUnit = Const.UnitId_CWCEC;
|
||||||
|
if (thisUnit != null)
|
||||||
|
{
|
||||||
|
thisUnitId = thisUnit;
|
||||||
|
}
|
||||||
|
var base_Unit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
||||||
var ProjectData = (from x in Funs.DB.Project_SYHSEData_SYHSE
|
var ProjectData = (from x in Funs.DB.Project_SYHSEData_SYHSE
|
||||||
where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date
|
where x.ReportDate < DateTime.Now.AddDays(1).Date && x.ReportDate >= DateTime.Now.Date
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
|
@ -352,7 +363,7 @@ namespace BLL
|
||||||
|
|
||||||
Model.SYHSEData_SYHSE table = new Model.SYHSEData_SYHSE
|
Model.SYHSEData_SYHSE table = new Model.SYHSEData_SYHSE
|
||||||
{
|
{
|
||||||
UnitId = BLL.Const.UnitId_CWCEC,
|
UnitId = thisUnitId,
|
||||||
CollCropCode = base_Unit.CollCropCode,
|
CollCropCode = base_Unit.CollCropCode,
|
||||||
UnitName = base_Unit.UnitName,
|
UnitName = base_Unit.UnitName,
|
||||||
ReportDate = DateTime.Now.Date,
|
ReportDate = DateTime.Now.Date,
|
||||||
|
@ -412,6 +423,7 @@ namespace BLL
|
||||||
}
|
}
|
||||||
public static void UpdateSYHSEData_SYHSE(Model.SYHSEData_SYHSE newtable)
|
public static void UpdateSYHSEData_SYHSE(Model.SYHSEData_SYHSE newtable)
|
||||||
{
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
Model.SYHSEData_SYHSE table = db.SYHSEData_SYHSE.FirstOrDefault(x => x.Id == newtable.Id);
|
Model.SYHSEData_SYHSE table = db.SYHSEData_SYHSE.FirstOrDefault(x => x.Id == newtable.Id);
|
||||||
if (table != null)
|
if (table != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,8 +20,7 @@ namespace BLL
|
||||||
var client = new RestClient(baseurl);
|
var client = new RestClient(baseurl);
|
||||||
client.Timeout = -1;
|
client.Timeout = -1;
|
||||||
var request = new RestRequest(Method.POST);
|
var request = new RestRequest(Method.POST);
|
||||||
var thisUnitId = BLL.Const.UnitId_CWCEC;
|
var thisUnit = UnitService.GetUnitByUnitId(Const.UnitId_CWCEC);
|
||||||
var thisUnit = BLL.UnitService.GetUnitByUnitId(thisUnitId);
|
|
||||||
request.AddParameter("UnitName", thisUnit.UnitName);
|
request.AddParameter("UnitName", thisUnit.UnitName);
|
||||||
request.AddParameter("CollCropCode", thisUnit.CollCropCode);
|
request.AddParameter("CollCropCode", thisUnit.CollCropCode);
|
||||||
//request.AddJsonBody(JsonBody);
|
//request.AddJsonBody(JsonBody);
|
||||||
|
@ -59,7 +58,7 @@ namespace BLL
|
||||||
request.AddHeader("token", tokenItem.Token);
|
request.AddHeader("token", tokenItem.Token);
|
||||||
request.AddJsonBody(JsonBody);
|
request.AddJsonBody(JsonBody);
|
||||||
IRestResponse response = client.Execute(request);
|
IRestResponse response = client.Execute(request);
|
||||||
Console.WriteLine(response.Content);
|
APICommonService.SaveSysHttpLog("api_Out", baseurl, response.Content);
|
||||||
var returnData = JsonConvert.DeserializeObject<Model.ResponeData>(response.Content.ToString());
|
var returnData = JsonConvert.DeserializeObject<Model.ResponeData>(response.Content.ToString());
|
||||||
if (returnData.code == 0)
|
if (returnData.code == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace BLL
|
||||||
}
|
}
|
||||||
///本单位
|
///本单位
|
||||||
string thisUnitId = BLL.Const.UnitId_CWCEC;
|
string thisUnitId = BLL.Const.UnitId_CWCEC;
|
||||||
//var unitThis = BLL.CommonService.GetIsThisUnit();
|
//var unitThis = BLL.Const.UnitId_CWCEC;
|
||||||
//if (unitThis != null)
|
//if (unitThis != null)
|
||||||
//{
|
//{
|
||||||
// thisUnitId = unitThis.UnitId;
|
// thisUnitId = unitThis.UnitId;
|
||||||
|
|
|
@ -1064,6 +1064,9 @@ namespace Model
|
||||||
partial void InsertInformation_DrillPlanHalfYearReportItem(Information_DrillPlanHalfYearReportItem instance);
|
partial void InsertInformation_DrillPlanHalfYearReportItem(Information_DrillPlanHalfYearReportItem instance);
|
||||||
partial void UpdateInformation_DrillPlanHalfYearReportItem(Information_DrillPlanHalfYearReportItem instance);
|
partial void UpdateInformation_DrillPlanHalfYearReportItem(Information_DrillPlanHalfYearReportItem instance);
|
||||||
partial void DeleteInformation_DrillPlanHalfYearReportItem(Information_DrillPlanHalfYearReportItem instance);
|
partial void DeleteInformation_DrillPlanHalfYearReportItem(Information_DrillPlanHalfYearReportItem instance);
|
||||||
|
partial void InsertInformation_EnvironmentalData(Information_EnvironmentalData instance);
|
||||||
|
partial void UpdateInformation_EnvironmentalData(Information_EnvironmentalData instance);
|
||||||
|
partial void DeleteInformation_EnvironmentalData(Information_EnvironmentalData instance);
|
||||||
partial void InsertInformation_EPSummaryReport(Information_EPSummaryReport instance);
|
partial void InsertInformation_EPSummaryReport(Information_EPSummaryReport instance);
|
||||||
partial void UpdateInformation_EPSummaryReport(Information_EPSummaryReport instance);
|
partial void UpdateInformation_EPSummaryReport(Information_EPSummaryReport instance);
|
||||||
partial void DeleteInformation_EPSummaryReport(Information_EPSummaryReport instance);
|
partial void DeleteInformation_EPSummaryReport(Information_EPSummaryReport instance);
|
||||||
|
@ -5091,6 +5094,14 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public System.Data.Linq.Table<Information_EnvironmentalData> Information_EnvironmentalData
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.GetTable<Information_EnvironmentalData>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public System.Data.Linq.Table<Information_EPSummaryReport> Information_EPSummaryReport
|
public System.Data.Linq.Table<Information_EPSummaryReport> Information_EPSummaryReport
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -10031,6 +10042,8 @@ namespace Model
|
||||||
|
|
||||||
private string _States;
|
private string _States;
|
||||||
|
|
||||||
|
private string _IsAttempt;
|
||||||
|
|
||||||
private EntityRef<Base_AccidentType> _Base_AccidentType;
|
private EntityRef<Base_AccidentType> _Base_AccidentType;
|
||||||
|
|
||||||
private EntityRef<Base_Project> _Base_Project;
|
private EntityRef<Base_Project> _Base_Project;
|
||||||
|
@ -10077,6 +10090,8 @@ namespace Model
|
||||||
partial void OnCompileDateChanged();
|
partial void OnCompileDateChanged();
|
||||||
partial void OnStatesChanging(string value);
|
partial void OnStatesChanging(string value);
|
||||||
partial void OnStatesChanged();
|
partial void OnStatesChanged();
|
||||||
|
partial void OnIsAttemptChanging(string value);
|
||||||
|
partial void OnIsAttemptChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Accident_AccidentPersonRecord()
|
public Accident_AccidentPersonRecord()
|
||||||
|
@ -10429,6 +10444,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAttempt", DbType="Char(1)")]
|
||||||
|
public string IsAttempt
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._IsAttempt;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._IsAttempt != value))
|
||||||
|
{
|
||||||
|
this.OnIsAttemptChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._IsAttempt = value;
|
||||||
|
this.SendPropertyChanged("IsAttempt");
|
||||||
|
this.OnIsAttemptChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentPersonRecord_Base_AccidentType", Storage="_Base_AccidentType", ThisKey="AccidentTypeId", OtherKey="AccidentTypeId", IsForeignKey=true)]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentPersonRecord_Base_AccidentType", Storage="_Base_AccidentType", ThisKey="AccidentTypeId", OtherKey="AccidentTypeId", IsForeignKey=true)]
|
||||||
public Base_AccidentType Base_AccidentType
|
public Base_AccidentType Base_AccidentType
|
||||||
{
|
{
|
||||||
|
@ -10684,6 +10719,8 @@ namespace Model
|
||||||
|
|
||||||
private System.Nullable<bool> _NotConfirmed;
|
private System.Nullable<bool> _NotConfirmed;
|
||||||
|
|
||||||
|
private string _AccidentDegree;
|
||||||
|
|
||||||
private EntityRef<Base_Project> _Base_Project;
|
private EntityRef<Base_Project> _Base_Project;
|
||||||
|
|
||||||
private EntityRef<Base_Unit> _Base_Unit;
|
private EntityRef<Base_Unit> _Base_Unit;
|
||||||
|
@ -10754,6 +10791,8 @@ namespace Model
|
||||||
partial void OnNotConfirmEconomicOtherLossChanged();
|
partial void OnNotConfirmEconomicOtherLossChanged();
|
||||||
partial void OnNotConfirmedChanging(System.Nullable<bool> value);
|
partial void OnNotConfirmedChanging(System.Nullable<bool> value);
|
||||||
partial void OnNotConfirmedChanged();
|
partial void OnNotConfirmedChanged();
|
||||||
|
partial void OnAccidentDegreeChanging(string value);
|
||||||
|
partial void OnAccidentDegreeChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Accident_AccidentReport()
|
public Accident_AccidentReport()
|
||||||
|
@ -11361,6 +11400,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentDegree", DbType="Char(1)")]
|
||||||
|
public string AccidentDegree
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._AccidentDegree;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._AccidentDegree != value))
|
||||||
|
{
|
||||||
|
this.OnAccidentDegreeChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._AccidentDegree = value;
|
||||||
|
this.SendPropertyChanged("AccidentDegree");
|
||||||
|
this.OnAccidentDegreeChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentReport_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentReport_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||||
public Base_Project Base_Project
|
public Base_Project Base_Project
|
||||||
{
|
{
|
||||||
|
@ -35381,6 +35440,8 @@ namespace Model
|
||||||
|
|
||||||
private System.Nullable<bool> _IsRepeat;
|
private System.Nullable<bool> _IsRepeat;
|
||||||
|
|
||||||
|
private string _TrainType;
|
||||||
|
|
||||||
private EntitySet<Base_TrainTypeItem> _Base_TrainTypeItem;
|
private EntitySet<Base_TrainTypeItem> _Base_TrainTypeItem;
|
||||||
|
|
||||||
private EntitySet<EduTrain_TrainRecord> _EduTrain_TrainRecord;
|
private EntitySet<EduTrain_TrainRecord> _EduTrain_TrainRecord;
|
||||||
|
@ -35405,6 +35466,8 @@ namespace Model
|
||||||
partial void OnIsAboutSendCardChanged();
|
partial void OnIsAboutSendCardChanged();
|
||||||
partial void OnIsRepeatChanging(System.Nullable<bool> value);
|
partial void OnIsRepeatChanging(System.Nullable<bool> value);
|
||||||
partial void OnIsRepeatChanged();
|
partial void OnIsRepeatChanged();
|
||||||
|
partial void OnTrainTypeChanging(string value);
|
||||||
|
partial void OnTrainTypeChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Base_TrainType()
|
public Base_TrainType()
|
||||||
|
@ -35536,6 +35599,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainType", DbType="NVarChar(50)")]
|
||||||
|
public string TrainType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._TrainType;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._TrainType != value))
|
||||||
|
{
|
||||||
|
this.OnTrainTypeChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._TrainType = value;
|
||||||
|
this.SendPropertyChanged("TrainType");
|
||||||
|
this.OnTrainTypeChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Base_TrainTypeItem_Base_TrainType", Storage="_Base_TrainTypeItem", ThisKey="TrainTypeId", OtherKey="TrainTypeId", DeleteRule="NO ACTION")]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Base_TrainTypeItem_Base_TrainType", Storage="_Base_TrainTypeItem", ThisKey="TrainTypeId", OtherKey="TrainTypeId", DeleteRule="NO ACTION")]
|
||||||
public EntitySet<Base_TrainTypeItem> Base_TrainTypeItem
|
public EntitySet<Base_TrainTypeItem> Base_TrainTypeItem
|
||||||
{
|
{
|
||||||
|
@ -71157,6 +71240,8 @@ namespace Model
|
||||||
|
|
||||||
private System.Nullable<bool> _IsRectify;
|
private System.Nullable<bool> _IsRectify;
|
||||||
|
|
||||||
|
private string _RectifyId;
|
||||||
|
|
||||||
private EntityRef<Check_RectifyNotices> _Check_RectifyNotices;
|
private EntityRef<Check_RectifyNotices> _Check_RectifyNotices;
|
||||||
|
|
||||||
#region 可扩展性方法定义
|
#region 可扩展性方法定义
|
||||||
|
@ -71177,6 +71262,8 @@ namespace Model
|
||||||
partial void OnRectifyResultsChanged();
|
partial void OnRectifyResultsChanged();
|
||||||
partial void OnIsRectifyChanging(System.Nullable<bool> value);
|
partial void OnIsRectifyChanging(System.Nullable<bool> value);
|
||||||
partial void OnIsRectifyChanged();
|
partial void OnIsRectifyChanged();
|
||||||
|
partial void OnRectifyIdChanging(string value);
|
||||||
|
partial void OnRectifyIdChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Check_RectifyNoticesItem()
|
public Check_RectifyNoticesItem()
|
||||||
|
@ -71329,6 +71416,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectifyId", DbType="NVarChar(50)")]
|
||||||
|
public string RectifyId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._RectifyId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._RectifyId != value))
|
||||||
|
{
|
||||||
|
this.OnRectifyIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._RectifyId = value;
|
||||||
|
this.SendPropertyChanged("RectifyId");
|
||||||
|
this.OnRectifyIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_RectifyNoticesItem_Check_RectifyNotices", Storage="_Check_RectifyNotices", ThisKey="RectifyNoticesId", OtherKey="RectifyNoticesId", IsForeignKey=true)]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_RectifyNoticesItem_Check_RectifyNotices", Storage="_Check_RectifyNotices", ThisKey="RectifyNoticesId", OtherKey="RectifyNoticesId", IsForeignKey=true)]
|
||||||
public Check_RectifyNotices Check_RectifyNotices
|
public Check_RectifyNotices Check_RectifyNotices
|
||||||
{
|
{
|
||||||
|
@ -170216,6 +170323,236 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Information_EnvironmentalData")]
|
||||||
|
public partial class Information_EnvironmentalData : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
|
||||||
|
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||||
|
|
||||||
|
private string _Id;
|
||||||
|
|
||||||
|
private string _UnitId;
|
||||||
|
|
||||||
|
private System.Nullable<int> _TotalEnergyConsumption;
|
||||||
|
|
||||||
|
private System.Nullable<int> _IncomeComprehensiveEnergyConsumption;
|
||||||
|
|
||||||
|
private System.Nullable<int> _NewWaterConsumption;
|
||||||
|
|
||||||
|
private System.Nullable<System.DateTime> _ReportDate;
|
||||||
|
|
||||||
|
private string _CreateMan;
|
||||||
|
|
||||||
|
private System.Nullable<System.DateTime> _CreateDate;
|
||||||
|
|
||||||
|
#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 OnUnitIdChanging(string value);
|
||||||
|
partial void OnUnitIdChanged();
|
||||||
|
partial void OnTotalEnergyConsumptionChanging(System.Nullable<int> value);
|
||||||
|
partial void OnTotalEnergyConsumptionChanged();
|
||||||
|
partial void OnIncomeComprehensiveEnergyConsumptionChanging(System.Nullable<int> value);
|
||||||
|
partial void OnIncomeComprehensiveEnergyConsumptionChanged();
|
||||||
|
partial void OnNewWaterConsumptionChanging(System.Nullable<int> value);
|
||||||
|
partial void OnNewWaterConsumptionChanged();
|
||||||
|
partial void OnReportDateChanging(System.Nullable<System.DateTime> value);
|
||||||
|
partial void OnReportDateChanged();
|
||||||
|
partial void OnCreateManChanging(string value);
|
||||||
|
partial void OnCreateManChanged();
|
||||||
|
partial void OnCreateDateChanging(System.Nullable<System.DateTime> value);
|
||||||
|
partial void OnCreateDateChanged();
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Information_EnvironmentalData()
|
||||||
|
{
|
||||||
|
OnCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="VarChar(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="_UnitId", DbType="VarChar(50)")]
|
||||||
|
public string UnitId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._UnitId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._UnitId != value))
|
||||||
|
{
|
||||||
|
this.OnUnitIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._UnitId = value;
|
||||||
|
this.SendPropertyChanged("UnitId");
|
||||||
|
this.OnUnitIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalEnergyConsumption", DbType="Int")]
|
||||||
|
public System.Nullable<int> TotalEnergyConsumption
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._TotalEnergyConsumption;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._TotalEnergyConsumption != value))
|
||||||
|
{
|
||||||
|
this.OnTotalEnergyConsumptionChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._TotalEnergyConsumption = value;
|
||||||
|
this.SendPropertyChanged("TotalEnergyConsumption");
|
||||||
|
this.OnTotalEnergyConsumptionChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IncomeComprehensiveEnergyConsumption", DbType="Int")]
|
||||||
|
public System.Nullable<int> IncomeComprehensiveEnergyConsumption
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._IncomeComprehensiveEnergyConsumption;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._IncomeComprehensiveEnergyConsumption != value))
|
||||||
|
{
|
||||||
|
this.OnIncomeComprehensiveEnergyConsumptionChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._IncomeComprehensiveEnergyConsumption = value;
|
||||||
|
this.SendPropertyChanged("IncomeComprehensiveEnergyConsumption");
|
||||||
|
this.OnIncomeComprehensiveEnergyConsumptionChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NewWaterConsumption", DbType="Int")]
|
||||||
|
public System.Nullable<int> NewWaterConsumption
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._NewWaterConsumption;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._NewWaterConsumption != value))
|
||||||
|
{
|
||||||
|
this.OnNewWaterConsumptionChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._NewWaterConsumption = value;
|
||||||
|
this.SendPropertyChanged("NewWaterConsumption");
|
||||||
|
this.OnNewWaterConsumptionChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="Date")]
|
||||||
|
public System.Nullable<System.DateTime> ReportDate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._ReportDate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._ReportDate != value))
|
||||||
|
{
|
||||||
|
this.OnReportDateChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._ReportDate = value;
|
||||||
|
this.SendPropertyChanged("ReportDate");
|
||||||
|
this.OnReportDateChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateMan", DbType="VarChar(50)")]
|
||||||
|
public string CreateMan
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._CreateMan;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._CreateMan != value))
|
||||||
|
{
|
||||||
|
this.OnCreateManChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._CreateMan = value;
|
||||||
|
this.SendPropertyChanged("CreateMan");
|
||||||
|
this.OnCreateManChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime")]
|
||||||
|
public System.Nullable<System.DateTime> CreateDate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._CreateDate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._CreateDate != value))
|
||||||
|
{
|
||||||
|
this.OnCreateDateChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._CreateDate = value;
|
||||||
|
this.SendPropertyChanged("CreateDate");
|
||||||
|
this.OnCreateDateChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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.Information_EPSummaryReport")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Information_EPSummaryReport")]
|
||||||
public partial class Information_EPSummaryReport : INotifyPropertyChanging, INotifyPropertyChanged
|
public partial class Information_EPSummaryReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
|
@ -203877,6 +204214,8 @@ namespace Model
|
||||||
|
|
||||||
private string _CNProfessionalId;
|
private string _CNProfessionalId;
|
||||||
|
|
||||||
|
private System.Nullable<bool> _IsHighRisk;
|
||||||
|
|
||||||
private EntityRef<Base_LicenseType> _Base_LicenseType;
|
private EntityRef<Base_LicenseType> _Base_LicenseType;
|
||||||
|
|
||||||
private EntityRef<Base_Project> _Base_Project;
|
private EntityRef<Base_Project> _Base_Project;
|
||||||
|
@ -203921,6 +204260,8 @@ namespace Model
|
||||||
partial void OnWorkStatesChanged();
|
partial void OnWorkStatesChanged();
|
||||||
partial void OnCNProfessionalIdChanging(string value);
|
partial void OnCNProfessionalIdChanging(string value);
|
||||||
partial void OnCNProfessionalIdChanged();
|
partial void OnCNProfessionalIdChanged();
|
||||||
|
partial void OnIsHighRiskChanging(System.Nullable<bool> value);
|
||||||
|
partial void OnIsHighRiskChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public License_LicenseManager()
|
public License_LicenseManager()
|
||||||
|
@ -204268,6 +204609,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsHighRisk", DbType="Bit")]
|
||||||
|
public System.Nullable<bool> IsHighRisk
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._IsHighRisk;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._IsHighRisk != value))
|
||||||
|
{
|
||||||
|
this.OnIsHighRiskChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._IsHighRisk = value;
|
||||||
|
this.SendPropertyChanged("IsHighRisk");
|
||||||
|
this.OnIsHighRiskChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_License_LicenseManager_Base_LicenseType", Storage="_Base_LicenseType", ThisKey="LicenseTypeId", OtherKey="LicenseTypeId", IsForeignKey=true)]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_License_LicenseManager_Base_LicenseType", Storage="_Base_LicenseType", ThisKey="LicenseTypeId", OtherKey="LicenseTypeId", IsForeignKey=true)]
|
||||||
public Base_LicenseType Base_LicenseType
|
public Base_LicenseType Base_LicenseType
|
||||||
{
|
{
|
||||||
|
@ -294682,6 +295043,8 @@ namespace Model
|
||||||
|
|
||||||
private string _RawPassword;
|
private string _RawPassword;
|
||||||
|
|
||||||
|
private System.Nullable<bool> _IsSafetyMonitoring;
|
||||||
|
|
||||||
private EntitySet<Accident_AccidentPersonRecord> _Accident_AccidentPersonRecord;
|
private EntitySet<Accident_AccidentPersonRecord> _Accident_AccidentPersonRecord;
|
||||||
|
|
||||||
private EntitySet<Accident_AccidentReportOtherItem> _Accident_AccidentReportOtherItem;
|
private EntitySet<Accident_AccidentReportOtherItem> _Accident_AccidentReportOtherItem;
|
||||||
|
@ -294864,6 +295227,8 @@ namespace Model
|
||||||
partial void OnIsCardNoOKChanged();
|
partial void OnIsCardNoOKChanged();
|
||||||
partial void OnRawPasswordChanging(string value);
|
partial void OnRawPasswordChanging(string value);
|
||||||
partial void OnRawPasswordChanged();
|
partial void OnRawPasswordChanged();
|
||||||
|
partial void OnIsSafetyMonitoringChanging(System.Nullable<bool> value);
|
||||||
|
partial void OnIsSafetyMonitoringChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public SitePerson_Person()
|
public SitePerson_Person()
|
||||||
|
@ -296132,6 +296497,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSafetyMonitoring", DbType="Bit")]
|
||||||
|
public System.Nullable<bool> IsSafetyMonitoring
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._IsSafetyMonitoring;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._IsSafetyMonitoring != value))
|
||||||
|
{
|
||||||
|
this.OnIsSafetyMonitoringChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._IsSafetyMonitoring = value;
|
||||||
|
this.SendPropertyChanged("IsSafetyMonitoring");
|
||||||
|
this.OnIsSafetyMonitoringChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentPersonRecord_SitePerson_Person", Storage="_Accident_AccidentPersonRecord", ThisKey="PersonId", OtherKey="PersonId", DeleteRule="NO ACTION")]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentPersonRecord_SitePerson_Person", Storage="_Accident_AccidentPersonRecord", ThisKey="PersonId", OtherKey="PersonId", DeleteRule="NO ACTION")]
|
||||||
public EntitySet<Accident_AccidentPersonRecord> Accident_AccidentPersonRecord
|
public EntitySet<Accident_AccidentPersonRecord> Accident_AccidentPersonRecord
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue