提交代码
This commit is contained in:
@@ -237,7 +237,7 @@ namespace BLL
|
||||
|
||||
CheckItemDetailSetId = x.CheckItemSetId,
|
||||
CheckItemDetailContent = x.CheckItemSetContent,
|
||||
Rectification_Date = x.Rectification_Date
|
||||
Rectification_Date = string.Format("{0:yyyy-MM-dd}", x.Rectification_Date),
|
||||
};
|
||||
return getInfo.ToList();
|
||||
}
|
||||
@@ -289,7 +289,7 @@ namespace BLL
|
||||
|
||||
CheckItemDetailSetId=x.CheckItemSetId,
|
||||
CheckItemDetailContent=x.CheckItemSetContent,
|
||||
Rectification_Date=x.Rectification_Date
|
||||
Rectification_Date= string.Format("{0:yyyy-MM-dd}", x.Rectification_Date),
|
||||
};
|
||||
return getInfo.First();
|
||||
}
|
||||
@@ -328,7 +328,7 @@ namespace BLL
|
||||
//整改日期、检查内容、检查内容id
|
||||
CheckItemSetId= newDetail.CheckItemDetailSetId,
|
||||
CheckItemSetContent= newDetail.CheckItemDetailContent,
|
||||
Rectification_Date=newDetail.Rectification_Date
|
||||
Rectification_Date = Funs.GetNewDateTime(newDetail.Rectification_Date)
|
||||
};
|
||||
if (newCheckSpecialDetail.CompleteStatus == false && newCheckSpecialDetail.HandleStep.Contains("1") && string.IsNullOrEmpty(newCheckSpecialDetail.HiddenHazardType))
|
||||
{
|
||||
@@ -374,7 +374,7 @@ namespace BLL
|
||||
//整改日期、检查内容、检查内容id
|
||||
updateDetail.CheckItemSetId = newDetail.CheckItemDetailSetId;
|
||||
updateDetail.CheckItemSetContent = newDetail.CheckItemDetailContent;
|
||||
updateDetail.Rectification_Date = newDetail.Rectification_Date;
|
||||
updateDetail.Rectification_Date = Funs.GetNewDateTime(newDetail.Rectification_Date);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
////保存附件
|
||||
|
||||
@@ -58,6 +58,11 @@ namespace BLL
|
||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.FireWorkId).AttachUrl.Replace('\\', '/'),
|
||||
States = x.States,
|
||||
OldLicenseId = x.OldLicenseId,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireLevel = x.FireLevel
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
@@ -96,6 +101,14 @@ namespace BLL
|
||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.HeightWorkId).AttachUrl.Replace('\\', '/'),
|
||||
States = x.States,
|
||||
OldLicenseId = x.OldLicenseId,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
WorkHeight = x.WorkHeight,
|
||||
HeightLevel = x.HeightLevel,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
WorkLeaderName = x.WorkLeaderName,
|
||||
WorkLeaderTel = x.WorkLeaderTel,
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
@@ -134,6 +147,16 @@ namespace BLL
|
||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.LimitedSpaceId).AttachUrl.Replace('\\', '/'),
|
||||
States = x.States,
|
||||
OldLicenseId = x.OldLicenseId,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
LimitedDescribe = x.LimitedDescribe,
|
||||
IsBoolOther = x.IsBoolOther,
|
||||
IsBoolHarmfulGas = x.IsBoolHarmfulGas,
|
||||
TestResult = x.TestResult,
|
||||
TestDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.TestDate),
|
||||
TestPerson = x.TestPerson,
|
||||
VenStep = x.VenStep,
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
@@ -177,6 +200,9 @@ namespace BLL
|
||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.RadialWorkId).AttachUrl.Replace('\\', '/'),
|
||||
States = x.States,
|
||||
OldLicenseId = x.OldLicenseId,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
@@ -215,6 +241,11 @@ namespace BLL
|
||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.OpenCircuitId).AttachUrl.Replace('\\', '/'),
|
||||
States = x.States,
|
||||
OldLicenseId = x.OldLicenseId,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
@@ -252,6 +283,11 @@ namespace BLL
|
||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.BreakGroundId).AttachUrl.Replace('\\', '/'),
|
||||
States = x.States,
|
||||
OldLicenseId = x.OldLicenseId,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
@@ -332,6 +368,60 @@ namespace BLL
|
||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.LiftingWorkId).AttachUrl.Replace('\\', '/'),
|
||||
States = x.States,
|
||||
OldLicenseId = x.OldLicenseId,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
LiftingHeight = x.LiftingHeight,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
WorkLeaderName = x.WorkLeaderName,
|
||||
WorkLeaderTel = x.WorkLeaderTel,
|
||||
QzgName = x.QzgName,
|
||||
QzgPhone = x.QzgPhone,
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 临时用电作业票
|
||||
if (strMenuId == Const.ProjectElectricityMenuId)
|
||||
{
|
||||
getInfo = (from x in db.License_Electricity
|
||||
where x.ElectricityId == id
|
||||
select new Model.LicenseDataItem
|
||||
{
|
||||
LicenseId = x.ElectricityId,
|
||||
MenuId = strMenuId,
|
||||
ProjectId = x.ProjectId,
|
||||
LicenseCode = x.LicenseCode,
|
||||
ApplyUnitId = x.ApplyUnitId,
|
||||
ApplyUnitName = db.Base_Unit.First(u => u.UnitId == x.ApplyUnitId).UnitName,
|
||||
ApplyManId = x.ApplyManId,
|
||||
ApplyManName = db.Sys_User.First(u => u.UserId == x.ApplyManId).UserName,
|
||||
ApplyDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.ApplyDate),
|
||||
WorkPalce = x.WorkPalce,
|
||||
WorkDepth = x.WorkDepth,
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
WorkMeasures = x.WorkMeasures,
|
||||
CancelManId = x.CancelManId,
|
||||
CancelManName = db.Sys_User.First(u => u.UserId == x.CancelManId).UserName,
|
||||
CancelReasons = x.CancelReasons,
|
||||
CancelTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CancelTime),
|
||||
CloseManId = x.CloseManId,
|
||||
CloseManName = db.Sys_User.First(u => u.UserId == x.CloseManId).UserName,
|
||||
CloseReasons = x.CloseReasons,
|
||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||
NextManId = x.NextManId,
|
||||
NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName,
|
||||
AttachUrl = db.AttachFile.First(z => z.ToKeyId == x.ElectricityId).AttachUrl.Replace('\\', '/'),
|
||||
States = x.States,
|
||||
OldLicenseId = x.OldLicenseId,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
WorkLeaderName=x.WorkLeaderName,
|
||||
WorkLeaderTel=x.WorkLeaderTel
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
@@ -419,6 +509,11 @@ namespace BLL
|
||||
CloseReasons = x.CloseReasons,
|
||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason=x.Reason,
|
||||
FireLevel=x.FireLevel
|
||||
}).ToList();
|
||||
}
|
||||
#endregion
|
||||
@@ -455,6 +550,15 @@ namespace BLL
|
||||
CloseReasons = x.CloseReasons,
|
||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
WorkHeight=x.WorkHeight,
|
||||
HeightLevel=x.HeightLevel,
|
||||
FireWatchManName=x.FireWatchManName,
|
||||
WorkLeaderName=x.WorkLeaderName,
|
||||
WorkLeaderTel=x.WorkLeaderTel,
|
||||
|
||||
}).ToList();
|
||||
}
|
||||
#endregion
|
||||
@@ -491,6 +595,20 @@ namespace BLL
|
||||
CloseReasons = x.CloseReasons,
|
||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
LimitedDescribe=x.LimitedDescribe,
|
||||
IsBoolOther=x.IsBoolOther,
|
||||
IsBoolHarmfulGas=x.IsBoolHarmfulGas,
|
||||
TestResult=x.TestResult,
|
||||
TestDate= string.Format("{0:yyyy-MM-dd HH:mm}", x.TestDate),
|
||||
TestPerson=x.TestPerson,
|
||||
VenStep=x.VenStep,
|
||||
|
||||
|
||||
|
||||
|
||||
}).ToList();
|
||||
}
|
||||
#endregion
|
||||
@@ -534,6 +652,10 @@ namespace BLL
|
||||
NextManId = x.NextManId,
|
||||
NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName,
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
|
||||
}).ToList();
|
||||
}
|
||||
#endregion
|
||||
@@ -570,6 +692,12 @@ namespace BLL
|
||||
CloseReasons = x.CloseReasons,
|
||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason=x.Reason,
|
||||
FireWatchManName=x.FireWatchManName,
|
||||
|
||||
}).ToList();
|
||||
}
|
||||
#endregion
|
||||
@@ -605,6 +733,12 @@ namespace BLL
|
||||
CloseReasons = x.CloseReasons,
|
||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason=x.Reason,
|
||||
FireWatchManName=x.FireWatchManName,
|
||||
|
||||
}).ToList();
|
||||
}
|
||||
#endregion
|
||||
@@ -685,6 +819,60 @@ namespace BLL
|
||||
NextManId = x.NextManId,
|
||||
NextManName = db.Sys_User.First(u => u.UserId == x.NextManId).UserName,
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
LiftingHeight=x.LiftingHeight,
|
||||
FireWatchManName=x.FireWatchManName,
|
||||
WorkLeaderName=x.WorkLeaderName,
|
||||
WorkLeaderTel=x.WorkLeaderTel,
|
||||
QzgName=x.QzgName,
|
||||
QzgPhone=x.QzgPhone,
|
||||
|
||||
}).ToList();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 临时用电作业票
|
||||
if (strMenuId == Const.ProjectElectricityMenuId)
|
||||
{
|
||||
getInfoList = (from x in db.License_Electricity
|
||||
where x.ProjectId == projectId && (x.ApplyUnitId == unitId || unitId == null)
|
||||
&& (states == null || x.States == states)
|
||||
orderby x.LicenseCode descending
|
||||
select new Model.LicenseDataItem
|
||||
{
|
||||
LicenseId = x.ElectricityId,
|
||||
MenuId = strMenuId,
|
||||
ProjectId = x.ProjectId,
|
||||
LicenseCode = x.LicenseCode,
|
||||
ApplyUnitId = x.ApplyUnitId,
|
||||
ApplyUnitName = db.Base_Unit.First(u => u.UnitId == x.ApplyUnitId).UnitName,
|
||||
ApplyManId = x.ApplyManId,
|
||||
ApplyManName = db.Sys_User.First(u => u.UserId == x.ApplyManId).UserName,
|
||||
ApplyDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.ApplyDate),
|
||||
WorkPalce = x.WorkPalce,
|
||||
WorkDepth = x.WorkDepth,
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
WorkMeasures = x.WorkMeasures,
|
||||
CancelManId = x.CancelManId,
|
||||
CancelManName = db.Sys_User.First(u => u.UserId == x.CancelManId).UserName,
|
||||
CancelReasons = x.CancelReasons,
|
||||
CancelTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CancelTime),
|
||||
CloseManId = x.CloseManId,
|
||||
CloseManName = db.Sys_User.First(u => u.UserId == x.CloseManId).UserName,
|
||||
CloseReasons = x.CloseReasons,
|
||||
CloseTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.CloseTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
WorkLeaderName=x.WorkLeaderName,
|
||||
WorkLeaderTel=x.WorkLeaderTel,
|
||||
|
||||
}).ToList();
|
||||
}
|
||||
#endregion
|
||||
@@ -760,6 +948,11 @@ namespace BLL
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireLevel = x.FireLevel
|
||||
}).ToList();
|
||||
if (getFireWork.Count() > 0)
|
||||
{
|
||||
@@ -788,6 +981,14 @@ namespace BLL
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
WorkHeight = x.WorkHeight,
|
||||
HeightLevel = x.HeightLevel,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
WorkLeaderName = x.WorkLeaderName,
|
||||
WorkLeaderTel = x.WorkLeaderTel,
|
||||
}).ToList();
|
||||
if (getHeightWork.Count() > 0)
|
||||
{
|
||||
@@ -815,6 +1016,17 @@ namespace BLL
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
LimitedDescribe = x.LimitedDescribe,
|
||||
IsBoolOther = x.IsBoolOther,
|
||||
IsBoolHarmfulGas = x.IsBoolHarmfulGas,
|
||||
TestResult = x.TestResult,
|
||||
TestDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.TestDate),
|
||||
TestPerson = x.TestPerson,
|
||||
VenStep = x.VenStep,
|
||||
|
||||
}).ToList();
|
||||
if (getLimitedSpace.Count() > 0)
|
||||
{
|
||||
@@ -843,6 +1055,9 @@ namespace BLL
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
WorkPalce = x.WorkPalce,
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
}).ToList();
|
||||
if (getRadialWork.Count() > 0)
|
||||
{
|
||||
@@ -871,6 +1086,11 @@ namespace BLL
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
RoadName = x.RoadName,
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
}).ToList();
|
||||
if (getOpenCircuit.Count() > 0)
|
||||
{
|
||||
@@ -899,6 +1119,11 @@ namespace BLL
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
}).ToList();
|
||||
if (getBreakGround.Count() > 0)
|
||||
{
|
||||
@@ -954,6 +1179,15 @@ namespace BLL
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
LiftingHeight = x.LiftingHeight,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
WorkLeaderName = x.WorkLeaderName,
|
||||
WorkLeaderTel = x.WorkLeaderTel,
|
||||
QzgName = x.QzgName,
|
||||
QzgPhone = x.QzgPhone,
|
||||
}).ToList();
|
||||
if (getLiftingWork.Count() > 0)
|
||||
{
|
||||
@@ -961,6 +1195,41 @@ namespace BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 临时用电作业票
|
||||
var getElectricity = (from x in db.License_Electricity
|
||||
where x.ProjectId == projectId && (x.ApplyUnitId == unitId || unitId == null)
|
||||
&& (states == null || x.States == states)
|
||||
select new Model.LicenseDataItem
|
||||
{
|
||||
LicenseId = x.ElectricityId,
|
||||
MenuId = Const.ProjectElectricityMenuId,
|
||||
MenuName = "临时用电",
|
||||
ProjectId = x.ProjectId,
|
||||
LicenseCode = x.LicenseCode,
|
||||
ApplyUnitId = x.ApplyUnitId,
|
||||
ApplyUnitName = db.Base_Unit.First(u => u.UnitId == x.ApplyUnitId).UnitName,
|
||||
ApplyManId = x.ApplyManId,
|
||||
ApplyManName = db.Sys_User.First(u => u.UserId == x.ApplyManId).UserName,
|
||||
ApplyDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.ApplyDate),
|
||||
WorkPalce = x.WorkPalce,
|
||||
WorkDepth = x.WorkDepth,
|
||||
ValidityStartTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityStartTime),
|
||||
ValidityEndTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ValidityEndTime),
|
||||
States = x.States,
|
||||
|
||||
WorkAreaId = x.WorkAreaId,
|
||||
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
|
||||
Reason = x.Reason,
|
||||
FireWatchManName = x.FireWatchManName,
|
||||
WorkLeaderName=x.WorkLeaderName,
|
||||
WorkLeaderTel=x.WorkLeaderTel,
|
||||
}).ToList();
|
||||
if (getElectricity.Count() > 0)
|
||||
{
|
||||
getInfoList.AddRange(getElectricity);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 作业票【定稿 】"待开工"="1";"作业中"="2";"已关闭"="3";"已取消"="-1"
|
||||
var getLicenseManager = (from x in db.License_LicenseManager
|
||||
where x.ProjectId == projectId && (x.UnitId == unitId || unitId == null)
|
||||
@@ -1106,6 +1375,10 @@ namespace BLL
|
||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||
NextManId = newItem.NextManId,
|
||||
States = newItem.States,
|
||||
|
||||
WorkAreaId=newItem.WorkAreaId,
|
||||
Reason=newItem.Reason,
|
||||
FireLevel=newItem.FireLevel
|
||||
};
|
||||
|
||||
if (newItem.States == Const.State_0)
|
||||
@@ -1156,6 +1429,10 @@ namespace BLL
|
||||
updateFireWork.WorkMeasures = newFireWork.WorkMeasures;
|
||||
updateFireWork.NextManId = newFireWork.NextManId;
|
||||
updateFireWork.States = newFireWork.States;
|
||||
|
||||
updateFireWork.WorkAreaId = newItem.WorkAreaId;
|
||||
updateFireWork.Reason = newItem.Reason;
|
||||
updateFireWork.FireLevel = newItem.FireLevel;
|
||||
}
|
||||
updateFireWork.States = newFireWork.States;
|
||||
}
|
||||
@@ -1186,6 +1463,15 @@ namespace BLL
|
||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||
NextManId = newItem.NextManId,
|
||||
States = newItem.States,
|
||||
|
||||
WorkAreaId=newItem.WorkAreaId,
|
||||
WorkHeight=newItem.WorkHeight,
|
||||
HeightLevel=newItem.HeightLevel,
|
||||
FireWatchManName=newItem.FireWatchManName,
|
||||
WorkLeaderName=newItem.WorkLeaderName,
|
||||
WorkLeaderTel=newItem.WorkLeaderTel,
|
||||
|
||||
|
||||
};
|
||||
if (newItem.States == Const.State_0)
|
||||
{
|
||||
@@ -1236,6 +1522,12 @@ namespace BLL
|
||||
updateHeightWork.EquipmentTools = newHeightWork.EquipmentTools;
|
||||
updateHeightWork.NextManId = newHeightWork.NextManId;
|
||||
updateHeightWork.States = newHeightWork.States;
|
||||
updateHeightWork.WorkAreaId = newItem.WorkAreaId;
|
||||
updateHeightWork.WorkHeight = newItem.WorkHeight;
|
||||
updateHeightWork.HeightLevel = newItem.HeightLevel;
|
||||
updateHeightWork.FireWatchManName = newItem.FireWatchManName;
|
||||
updateHeightWork.WorkLeaderName = newItem.WorkLeaderName;
|
||||
updateHeightWork.WorkLeaderTel = newItem.WorkLeaderTel;
|
||||
}
|
||||
updateHeightWork.States = newHeightWork.States;
|
||||
}
|
||||
@@ -1266,6 +1558,14 @@ namespace BLL
|
||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||
NextManId = newItem.NextManId,
|
||||
States = newItem.States,
|
||||
|
||||
LimitedDescribe=newItem.LimitedDescribe,
|
||||
IsBoolOther=newItem.IsBoolOther,
|
||||
IsBoolHarmfulGas=newItem.IsBoolHarmfulGas,
|
||||
TestResult=newItem.TestResult,
|
||||
TestDate= Funs.GetNewDateTime(newItem.TestDate),
|
||||
TestPerson=newItem.TestPerson,
|
||||
VenStep=newItem.VenStep
|
||||
};
|
||||
if (newItem.States == Const.State_0)
|
||||
{
|
||||
@@ -1315,6 +1615,14 @@ namespace BLL
|
||||
updateLimitedSpace.WorkMeasures = newLimitedSpace.WorkMeasures;
|
||||
updateLimitedSpace.NextManId = newLimitedSpace.NextManId;
|
||||
updateLimitedSpace.States = newLimitedSpace.States;
|
||||
|
||||
updateLimitedSpace.LimitedDescribe = newItem.LimitedDescribe;
|
||||
updateLimitedSpace.IsBoolOther = newItem.IsBoolOther;
|
||||
updateLimitedSpace.IsBoolHarmfulGas = newItem.IsBoolHarmfulGas;
|
||||
updateLimitedSpace.TestResult = newItem.TestResult;
|
||||
updateLimitedSpace.TestDate = Funs.GetNewDateTime(newItem.TestDate);
|
||||
updateLimitedSpace.TestPerson = newItem.TestPerson;
|
||||
updateLimitedSpace.VenStep = newItem.VenStep;
|
||||
}
|
||||
updateLimitedSpace.States = newLimitedSpace.States;
|
||||
}
|
||||
@@ -1348,6 +1656,8 @@ namespace BLL
|
||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||
NextManId = newItem.NextManId,
|
||||
States = newItem.States,
|
||||
|
||||
WorkAreaId=newItem.WorkAreaId
|
||||
};
|
||||
if (newItem.States == Const.State_0)
|
||||
{
|
||||
@@ -1400,6 +1710,7 @@ namespace BLL
|
||||
updateRadialWork.WatchManContact = newRadialWork.WatchManContact;
|
||||
updateRadialWork.NextManId = newRadialWork.NextManId;
|
||||
updateRadialWork.States = newRadialWork.States;
|
||||
updateRadialWork.WorkAreaId = newItem.WorkAreaId;
|
||||
}
|
||||
updateRadialWork.States = newRadialWork.States;
|
||||
}
|
||||
@@ -1430,6 +1741,11 @@ namespace BLL
|
||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||
NextManId = newItem.NextManId,
|
||||
States = newItem.States,
|
||||
|
||||
WorkAreaId=newItem.WorkAreaId,
|
||||
Reason=newItem.Reason,
|
||||
FireWatchManName=newItem.FireWatchManName,
|
||||
|
||||
};
|
||||
if (newItem.States == Const.State_0)
|
||||
{
|
||||
@@ -1479,6 +1795,10 @@ namespace BLL
|
||||
updateOpenCircuit.SafeMeasures = newOpenCircuit.SafeMeasures;
|
||||
updateOpenCircuit.NextManId = newOpenCircuit.NextManId;
|
||||
updateOpenCircuit.States = newOpenCircuit.States;
|
||||
|
||||
updateOpenCircuit.WorkAreaId = newItem.WorkAreaId;
|
||||
updateOpenCircuit.Reason = newItem.Reason;
|
||||
updateOpenCircuit.FireWatchManName = newItem.FireWatchManName;
|
||||
}
|
||||
updateOpenCircuit.States = newOpenCircuit.States;
|
||||
}
|
||||
@@ -1508,6 +1828,10 @@ namespace BLL
|
||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||
NextManId = newItem.NextManId,
|
||||
States = newItem.States,
|
||||
|
||||
WorkAreaId=newItem.WorkAreaId,
|
||||
Reason=newItem.Reason,
|
||||
FireWatchManName=newItem.FireWatchManName
|
||||
};
|
||||
if (newItem.States == Const.State_0)
|
||||
{
|
||||
@@ -1556,6 +1880,10 @@ namespace BLL
|
||||
updateBreakGround.WorkMeasures = newBreakGround.WorkMeasures;
|
||||
updateBreakGround.NextManId = newBreakGround.NextManId;
|
||||
updateBreakGround.States = newBreakGround.States;
|
||||
|
||||
updateBreakGround.WorkAreaId = newItem.WorkAreaId;
|
||||
updateBreakGround.Reason = newItem.Reason;
|
||||
updateBreakGround.FireWatchManName = newItem.FireWatchManName;
|
||||
}
|
||||
updateBreakGround.States = newBreakGround.States;
|
||||
}
|
||||
@@ -1669,6 +1997,15 @@ namespace BLL
|
||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||
NextManId = newItem.NextManId,
|
||||
States = newItem.States,
|
||||
|
||||
WorkAreaId=newItem.WorkAreaId,
|
||||
LiftingHeight=newItem.LiftingHeight,
|
||||
FireWatchManName=newItem.FireWatchManName,
|
||||
WorkLeaderName=newItem.WorkLeaderName,
|
||||
WorkLeaderTel=newItem.WorkLeaderTel,
|
||||
QzgName=newItem.QzgName,
|
||||
QzgPhone=newItem.QzgPhone,
|
||||
|
||||
};
|
||||
if (newItem.States == Const.State_0)
|
||||
{
|
||||
@@ -1718,12 +2055,112 @@ namespace BLL
|
||||
updateLiftingWork.CraneCapacity = newLiftingWork.CraneCapacity;
|
||||
updateLiftingWork.NextManId = newLiftingWork.NextManId;
|
||||
updateLiftingWork.States = newLiftingWork.States;
|
||||
|
||||
updateLiftingWork.WorkAreaId = newItem.WorkAreaId;
|
||||
updateLiftingWork.LiftingHeight = newItem.LiftingHeight;
|
||||
updateLiftingWork.FireWatchManName = newItem.FireWatchManName;
|
||||
updateLiftingWork.WorkLeaderName = newItem.WorkLeaderName;
|
||||
updateLiftingWork.WorkLeaderTel = newItem.WorkLeaderTel;
|
||||
updateLiftingWork.QzgName = newItem.QzgName;
|
||||
updateLiftingWork.QzgPhone = newItem.QzgPhone;
|
||||
}
|
||||
updateLiftingWork.States = newLiftingWork.States;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 临时用电作业票
|
||||
if (newItem.MenuId == Const.ProjectElectricityMenuId)
|
||||
{
|
||||
Model.License_Electricity newElectricity = new Model.License_Electricity
|
||||
{
|
||||
ElectricityId = strLicenseId,
|
||||
ProjectId = projectId,
|
||||
LicenseCode = newItem.LicenseCode,
|
||||
ApplyUnitId = newItem.ApplyUnitId,
|
||||
ApplyManId = newItem.ApplyManId,
|
||||
ApplyDate = Funs.GetNewDateTime(newItem.ApplyDate),
|
||||
WorkPalce = newItem.WorkPalce,
|
||||
WorkDepth = newItem.WorkDepth,
|
||||
ValidityStartTime = Funs.GetNewDateTime(newItem.ValidityStartTime),
|
||||
ValidityEndTime = Funs.GetNewDateTime(newItem.ValidityEndTime),
|
||||
WorkMeasures = newItem.WorkMeasures,
|
||||
CancelManId = newItem.CancelManId,
|
||||
CancelReasons = newItem.CancelReasons,
|
||||
CancelTime = Funs.GetNewDateTime(newItem.CancelTime),
|
||||
CloseManId = newItem.CloseManId,
|
||||
CloseReasons = newItem.CloseReasons,
|
||||
CloseTime = Funs.GetNewDateTime(newItem.CloseTime),
|
||||
NextManId = newItem.NextManId,
|
||||
States = newItem.States,
|
||||
|
||||
WorkAreaId = newItem.WorkAreaId,
|
||||
Reason = newItem.Reason,
|
||||
FireWatchManName = newItem.FireWatchManName,
|
||||
WorkLeaderName= newItem.WorkLeaderName,
|
||||
WorkLeaderTel = newItem.WorkLeaderTel
|
||||
};
|
||||
if (newItem.States == Const.State_0)
|
||||
{
|
||||
newElectricity.NextManId = newItem.ApplyManId;
|
||||
}
|
||||
////保存
|
||||
var updateElectricity = db.License_Electricity.FirstOrDefault(x => x.ElectricityId == strLicenseId);
|
||||
if (updateElectricity == null)
|
||||
{
|
||||
newElectricity.ApplyDate = DateTime.Now;
|
||||
strLicenseId = newElectricity.ElectricityId = SQLHelper.GetNewID();
|
||||
newElectricity.OldLicenseId = newItem.OldLicenseId;
|
||||
newItem.LicenseCode = newElectricity.LicenseCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectElectricityMenuId, newElectricity.ProjectId, newElectricity.ApplyUnitId);
|
||||
db.License_Electricity.InsertOnSubmit(newElectricity);
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectElectricityMenuId, newElectricity.ProjectId, newElectricity.ApplyUnitId, newElectricity.ElectricityId, newElectricity.ApplyDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (newItem.States == Const.State_3)
|
||||
{
|
||||
updateElectricity.CloseManId = newElectricity.CloseManId;
|
||||
updateElectricity.CloseReasons = newElectricity.CloseReasons;
|
||||
updateElectricity.CloseTime = DateTime.Now;
|
||||
if (newElectricity.ValidityEndTime.HasValue && newElectricity.ValidityEndTime < DateTime.Now)
|
||||
{
|
||||
updateElectricity.CloseTime = newElectricity.ValidityEndTime;
|
||||
}
|
||||
}
|
||||
else if (newItem.States == Const.State_R)
|
||||
{
|
||||
updateElectricity.CancelManId = newElectricity.CancelManId;
|
||||
updateElectricity.CancelReasons = newElectricity.CancelReasons;
|
||||
updateElectricity.CancelTime = DateTime.Now;
|
||||
if (newElectricity.ValidityEndTime.HasValue && newElectricity.ValidityEndTime < DateTime.Now)
|
||||
{
|
||||
updateElectricity.CancelTime = newElectricity.ValidityEndTime;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
updateElectricity.WorkPalce = newElectricity.WorkPalce;
|
||||
updateElectricity.WorkDepth = newElectricity.WorkDepth;
|
||||
updateElectricity.ValidityStartTime = newElectricity.ValidityStartTime;
|
||||
updateElectricity.ValidityEndTime = newElectricity.ValidityEndTime;
|
||||
updateElectricity.WorkMeasures = newElectricity.WorkMeasures;
|
||||
updateElectricity.NextManId = newElectricity.NextManId;
|
||||
updateElectricity.States = newElectricity.States;
|
||||
|
||||
updateElectricity.WorkAreaId = newItem.WorkAreaId;
|
||||
updateElectricity.Reason = newItem.Reason;
|
||||
updateElectricity.FireWatchManName = newItem.FireWatchManName;
|
||||
updateElectricity.WorkLeaderName = newItem.WorkLeaderName;
|
||||
updateElectricity.WorkLeaderTel = newItem.WorkLeaderTel;
|
||||
|
||||
|
||||
}
|
||||
updateElectricity.States = newElectricity.States;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 作业票【定稿】
|
||||
if (newItem.MenuId == Const.ProjectLicenseManagerMenuId)
|
||||
{
|
||||
@@ -1880,23 +2317,26 @@ namespace BLL
|
||||
#region 新增下一步审核记录
|
||||
if (newItem.IsAgree == true)
|
||||
{
|
||||
var getCloseAllOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId && (!x.IsClosed.HasValue || x.IsClosed == false) && (!x.IsFlowEnd.HasValue || x.IsFlowEnd == false));
|
||||
if (getCloseAllOperate == null)
|
||||
{
|
||||
var getNextFlowOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId && x.IsFlowEnd == true);
|
||||
////判断审核步骤是否结束
|
||||
if (getNextFlowOperate != null)
|
||||
{
|
||||
/////最后一步是关闭所有 步骤
|
||||
getNextFlowOperate.IsClosed = true;
|
||||
//修改只需要一个人审批直接通过
|
||||
|
||||
//var getCloseAllOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId && (!x.IsClosed.HasValue || x.IsClosed == false) && (!x.IsFlowEnd.HasValue || x.IsFlowEnd == false));
|
||||
//if (getCloseAllOperate == null)
|
||||
//{
|
||||
//var getNextFlowOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId && x.IsFlowEnd == true);
|
||||
var getNextFlowOperate = db.License_FlowOperate.FirstOrDefault(x => x.DataId == updateFlowOperate.DataId);
|
||||
// ////判断审核步骤是否结束
|
||||
// if (getNextFlowOperate != null)
|
||||
// {
|
||||
/////最后一步是关闭所有 步骤
|
||||
getNextFlowOperate.IsClosed = true;
|
||||
getNextFlowOperate.OperaterTime = DateTime.Now;
|
||||
getNextFlowOperate.IsAgree = true;
|
||||
getNextFlowOperate.OperaterId = newItem.OperaterId;
|
||||
getNextFlowOperate.Opinion = "审核完成!";
|
||||
boolIsFlowEnd = true;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
// }
|
||||
//}
|
||||
|
||||
#region 动火作业票
|
||||
if (strMenuId == Const.ProjectFireWorkMenuId)
|
||||
@@ -2163,6 +2603,39 @@ namespace BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 临时用电作业票
|
||||
if (strMenuId == Const.ProjectElectricityMenuId)
|
||||
{
|
||||
var getElectricity = db.License_Electricity.FirstOrDefault(x => x.ElectricityId == updateFlowOperate.DataId);
|
||||
if (getElectricity != null)
|
||||
{
|
||||
getElectricity.NextManId = newItem.NextOperaterId;
|
||||
if (newItem.IsAgree == true)
|
||||
{
|
||||
if (boolIsFlowEnd == true)
|
||||
{
|
||||
getElectricity.NextManId = null;
|
||||
getElectricity.States = Const.State_2;
|
||||
if (getElectricity.ValidityStartTime.HasValue && getElectricity.ValidityStartTime < DateTime.Now)
|
||||
{
|
||||
int days = 7;
|
||||
if (getElectricity.ValidityEndTime.HasValue)
|
||||
{
|
||||
days = Convert.ToInt32((getElectricity.ValidityEndTime - getElectricity.ValidityStartTime).Value.TotalDays);
|
||||
}
|
||||
getElectricity.ValidityStartTime = DateTime.Now;
|
||||
getElectricity.ValidityEndTime = DateTime.Now.AddDays(days);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
getElectricity.States = Const.State_0;
|
||||
}
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
if (!boolIsFlowEnd && !string.IsNullOrEmpty(newItem.NextOperaterId))
|
||||
{
|
||||
List<string> getUserIds = Funs.GetStrListByStr(newItem.NextOperaterId, ',');
|
||||
@@ -2291,6 +2764,7 @@ namespace BLL
|
||||
var getAllFlows = from x in db.License_FlowOperate
|
||||
where x.DataId == licenseInfo.LicenseId && (!x.IsFlowEnd.HasValue || x.IsFlowEnd == false)
|
||||
select x;
|
||||
|
||||
if (licenseInfo == null || string.IsNullOrEmpty(licenseInfo.LicenseId) || getAllFlows.Count() == 0)
|
||||
{
|
||||
getFlowOperate = (from x in db.Sys_MenuFlowOperate
|
||||
@@ -2617,6 +3091,17 @@ namespace BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 临时用电作业票
|
||||
else if (newItem.MenuId == Const.ProjectElectricityMenuId)
|
||||
{
|
||||
var updateElectricity = db.License_Electricity.FirstOrDefault(x => x.ElectricityId == strLicenseId);
|
||||
if (updateElectricity == null)
|
||||
{
|
||||
updateElectricity.NextManId = null;
|
||||
updateElectricity.States = Const.State_C;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
@@ -291,6 +291,11 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static string WorkPost_SafetyManager = "e426e560-9906-4aba-843e-2daef9ebeb05";
|
||||
|
||||
/// <summary>
|
||||
/// HSE副经理岗位Id
|
||||
/// </summary>
|
||||
public static string WorkPost_SafetyManagerFu = "46AA7960-1D35-4D5B-8C8F-AA4C874D63C8";
|
||||
|
||||
/// <summary>
|
||||
/// 无损检测工岗位Id
|
||||
/// </summary>
|
||||
@@ -1946,6 +1951,10 @@ namespace BLL
|
||||
/// 吊装作业票
|
||||
/// </summary>
|
||||
public const string ProjectLiftingWorkMenuId = "A1BE3AB6-9D4A-41E7-8870-E73423165451";
|
||||
/// <summary>
|
||||
/// 临时用电作业票
|
||||
/// </summary>
|
||||
public const string ProjectElectricityMenuId = "48F64E0F-38B2-4BDC-9B61-6200BD02CBF5";
|
||||
#endregion
|
||||
|
||||
#region HSSE检查管理
|
||||
|
||||
@@ -76,6 +76,11 @@ namespace BLL
|
||||
CloseTime = fireWork.CloseTime,
|
||||
NextManId=fireWork.NextManId,
|
||||
States = fireWork.States,
|
||||
|
||||
WorkAreaId=fireWork.WorkAreaId,
|
||||
Reason=fireWork.Reason,
|
||||
FireLevel=fireWork.FireLevel,
|
||||
|
||||
};
|
||||
db.License_FireWork.InsertOnSubmit(newFireWork);
|
||||
db.SubmitChanges();
|
||||
@@ -105,7 +110,11 @@ namespace BLL
|
||||
newFireWork.CloseReasons = fireWork.CloseReasons;
|
||||
newFireWork.CloseTime = fireWork.CloseTime;
|
||||
newFireWork.NextManId = fireWork.NextManId;
|
||||
newFireWork.States = fireWork.States;
|
||||
newFireWork.States = fireWork.States;
|
||||
|
||||
newFireWork.WorkAreaId = fireWork.WorkAreaId;
|
||||
newFireWork.Reason = fireWork.Reason;
|
||||
newFireWork.FireLevel = fireWork.FireLevel;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
@@ -172,6 +181,14 @@ namespace BLL
|
||||
CloseTime = heightWork.CloseTime,
|
||||
NextManId = heightWork.NextManId,
|
||||
States = heightWork.States,
|
||||
|
||||
WorkAreaId=heightWork.WorkAreaId,
|
||||
WorkHeight=heightWork.WorkHeight,
|
||||
HeightLevel=heightWork.HeightLevel,
|
||||
FireWatchManName=heightWork.FireWatchManName,
|
||||
WorkLeaderName=heightWork.WorkLeaderName,
|
||||
WorkLeaderTel= heightWork.WorkLeaderTel,
|
||||
|
||||
};
|
||||
db.License_HeightWork.InsertOnSubmit(newHeightWork);
|
||||
db.SubmitChanges();
|
||||
@@ -203,6 +220,13 @@ namespace BLL
|
||||
newHeightWork.CloseTime = heightWork.CloseTime;
|
||||
newHeightWork.NextManId = heightWork.NextManId;
|
||||
newHeightWork.States = heightWork.States;
|
||||
|
||||
newHeightWork.WorkAreaId = heightWork.WorkAreaId;
|
||||
newHeightWork.WorkHeight = heightWork.WorkHeight;
|
||||
newHeightWork.HeightLevel = heightWork.HeightLevel;
|
||||
newHeightWork.FireWatchManName = heightWork.FireWatchManName;
|
||||
newHeightWork.WorkLeaderName = heightWork.WorkLeaderName;
|
||||
newHeightWork.WorkLeaderTel = heightWork.WorkLeaderTel;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
@@ -269,6 +293,16 @@ namespace BLL
|
||||
CloseTime = limitedSpace.CloseTime,
|
||||
NextManId = limitedSpace.NextManId,
|
||||
States = limitedSpace.States,
|
||||
|
||||
WorkAreaId=limitedSpace.WorkAreaId,
|
||||
LimitedDescribe=limitedSpace.LimitedDescribe,
|
||||
IsBoolOther=limitedSpace.IsBoolOther,
|
||||
IsBoolHarmfulGas=limitedSpace.IsBoolHarmfulGas,
|
||||
TestResult=limitedSpace.TestResult,
|
||||
TestDate=limitedSpace.TestDate,
|
||||
TestPerson=limitedSpace.TestPerson,
|
||||
VenStep=limitedSpace.VenStep,
|
||||
|
||||
};
|
||||
db.License_LimitedSpace.InsertOnSubmit(newLimitedSpace);
|
||||
db.SubmitChanges();
|
||||
@@ -299,6 +333,15 @@ namespace BLL
|
||||
newLimitedSpace.CloseTime = limitedSpace.CloseTime;
|
||||
newLimitedSpace.NextManId = limitedSpace.NextManId;
|
||||
newLimitedSpace.States = limitedSpace.States;
|
||||
|
||||
newLimitedSpace.WorkAreaId = limitedSpace.WorkAreaId;
|
||||
newLimitedSpace.LimitedDescribe = limitedSpace.LimitedDescribe;
|
||||
newLimitedSpace.IsBoolOther = limitedSpace.IsBoolOther;
|
||||
newLimitedSpace.IsBoolHarmfulGas = limitedSpace.IsBoolHarmfulGas;
|
||||
newLimitedSpace.TestResult = limitedSpace.TestResult;
|
||||
newLimitedSpace.TestDate = limitedSpace.TestDate;
|
||||
newLimitedSpace.TestPerson = limitedSpace.TestPerson;
|
||||
newLimitedSpace.VenStep = limitedSpace.VenStep;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
@@ -368,6 +411,9 @@ namespace BLL
|
||||
CloseTime = radialWork.CloseTime,
|
||||
NextManId = radialWork.NextManId,
|
||||
States = radialWork.States,
|
||||
|
||||
WorkAreaId=radialWork.WorkAreaId,
|
||||
|
||||
};
|
||||
db.License_RadialWork.InsertOnSubmit(newRadialWork);
|
||||
db.SubmitChanges();
|
||||
@@ -408,6 +454,8 @@ namespace BLL
|
||||
newRadialWork.CloseTime = radialWork.CloseTime;
|
||||
newRadialWork.NextManId = radialWork.NextManId;
|
||||
newRadialWork.States = radialWork.States;
|
||||
|
||||
newRadialWork.WorkAreaId = radialWork.WorkAreaId;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
@@ -476,6 +524,11 @@ namespace BLL
|
||||
CloseTime = openCircuit.CloseTime,
|
||||
NextManId = openCircuit.NextManId,
|
||||
States = openCircuit.States,
|
||||
|
||||
WorkAreaId=openCircuit.WorkAreaId,
|
||||
Reason=openCircuit.Reason,
|
||||
FireWatchManName=openCircuit.FireWatchManName,
|
||||
|
||||
};
|
||||
db.License_OpenCircuit.InsertOnSubmit(newOpenCircuit);
|
||||
db.SubmitChanges();
|
||||
@@ -507,6 +560,10 @@ namespace BLL
|
||||
newOpenCircuit.CloseTime = openCircuit.CloseTime;
|
||||
newOpenCircuit.NextManId = openCircuit.NextManId;
|
||||
newOpenCircuit.States = openCircuit.States;
|
||||
|
||||
newOpenCircuit.WorkAreaId = openCircuit.WorkAreaId;
|
||||
newOpenCircuit.Reason = openCircuit.Reason;
|
||||
newOpenCircuit.FireWatchManName = openCircuit.FireWatchManName;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
@@ -572,6 +629,11 @@ namespace BLL
|
||||
CloseTime = breakGround.CloseTime,
|
||||
NextManId = breakGround.NextManId,
|
||||
States = breakGround.States,
|
||||
|
||||
WorkAreaId=breakGround.WorkAreaId,
|
||||
Reason=breakGround.Reason,
|
||||
FireWatchManName=breakGround.FireWatchManName,
|
||||
|
||||
};
|
||||
db.License_BreakGround.InsertOnSubmit(newBreakGround);
|
||||
db.SubmitChanges();
|
||||
@@ -602,6 +664,10 @@ namespace BLL
|
||||
newBreakGround.CloseTime = breakGround.CloseTime;
|
||||
newBreakGround.NextManId = breakGround.NextManId;
|
||||
newBreakGround.States = breakGround.States;
|
||||
|
||||
newBreakGround.WorkAreaId = breakGround.WorkAreaId;
|
||||
newBreakGround.Reason = breakGround.Reason;
|
||||
newBreakGround.FireWatchManName = breakGround.FireWatchManName;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
@@ -771,6 +837,15 @@ namespace BLL
|
||||
CloseTime = liftingWork.CloseTime,
|
||||
NextManId = liftingWork.NextManId,
|
||||
States = liftingWork.States,
|
||||
|
||||
WorkAreaId=liftingWork.WorkAreaId,
|
||||
LiftingHeight=liftingWork.LiftingHeight,
|
||||
FireWatchManName=liftingWork.FireWatchManName,
|
||||
WorkLeaderName=liftingWork.WorkLeaderName,
|
||||
WorkLeaderTel=liftingWork.WorkLeaderTel,
|
||||
QzgName=liftingWork.QzgName,
|
||||
QzgPhone=liftingWork.QzgPhone,
|
||||
|
||||
};
|
||||
db.License_LiftingWork.InsertOnSubmit(newLiftingWork);
|
||||
db.SubmitChanges();
|
||||
@@ -802,6 +877,14 @@ namespace BLL
|
||||
newLiftingWork.CloseTime = liftingWork.CloseTime;
|
||||
newLiftingWork.NextManId = liftingWork.NextManId;
|
||||
newLiftingWork.States = liftingWork.States;
|
||||
|
||||
newLiftingWork.WorkAreaId = liftingWork.WorkAreaId;
|
||||
newLiftingWork.LiftingHeight = liftingWork.LiftingHeight;
|
||||
newLiftingWork.FireWatchManName = liftingWork.FireWatchManName;
|
||||
newLiftingWork.WorkLeaderName = liftingWork.WorkLeaderName;
|
||||
newLiftingWork.WorkLeaderTel = liftingWork.WorkLeaderTel;
|
||||
newLiftingWork.QzgName = liftingWork.QzgName;
|
||||
newLiftingWork.QzgPhone = liftingWork.QzgPhone;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
@@ -828,6 +911,117 @@ namespace BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 临时用电作业票
|
||||
/// <summary>
|
||||
/// 根据主键获取临时用电作业票
|
||||
/// </summary>
|
||||
/// <param name="ElectricityId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.License_Electricity GetElectricityById(string ElectricityId)
|
||||
{
|
||||
return Funs.DB.License_Electricity.FirstOrDefault(e => e.ElectricityId == ElectricityId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加临时用电作业票
|
||||
/// </summary>
|
||||
/// <param name="Electricity"></param>
|
||||
public static void AddElectricity(Model.License_Electricity Electricity)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.License_Electricity newElectricity = new Model.License_Electricity
|
||||
{
|
||||
ElectricityId = Electricity.ElectricityId,
|
||||
ProjectId = Electricity.ProjectId,
|
||||
LicenseCode = Electricity.LicenseCode,
|
||||
ApplyUnitId = Electricity.ApplyUnitId,
|
||||
ApplyManId = Electricity.ApplyManId,
|
||||
ApplyDate = Electricity.ApplyDate,
|
||||
WorkPalce = Electricity.WorkPalce,
|
||||
WorkDepth = Electricity.WorkDepth,
|
||||
ValidityStartTime = Electricity.ValidityStartTime,
|
||||
ValidityEndTime = Electricity.ValidityEndTime,
|
||||
WorkMeasures = Electricity.WorkMeasures,
|
||||
CancelManId = Electricity.CancelManId,
|
||||
CancelReasons = Electricity.CancelReasons,
|
||||
CancelTime = Electricity.CancelTime,
|
||||
CloseManId = Electricity.CloseManId,
|
||||
CloseReasons = Electricity.CloseReasons,
|
||||
CloseTime = Electricity.CloseTime,
|
||||
NextManId = Electricity.NextManId,
|
||||
States = Electricity.States,
|
||||
|
||||
WorkAreaId= Electricity.WorkAreaId,
|
||||
Reason = Electricity.Reason,
|
||||
FireWatchManName = Electricity.FireWatchManName,
|
||||
WorkLeaderName = Electricity.WorkLeaderName,
|
||||
WorkLeaderTel = Electricity.WorkLeaderTel,
|
||||
|
||||
|
||||
};
|
||||
db.License_Electricity.InsertOnSubmit(newElectricity);
|
||||
db.SubmitChanges();
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectElectricityMenuId, Electricity.ProjectId, Electricity.ApplyUnitId, Electricity.ElectricityId, Electricity.ApplyDate);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改临时用电作业票
|
||||
/// </summary>
|
||||
/// <param name="Electricity"></param>
|
||||
public static void UpdateElectricity(Model.License_Electricity Electricity)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.License_Electricity newElectricity = db.License_Electricity.FirstOrDefault(e => e.ElectricityId == Electricity.ElectricityId);
|
||||
if (newElectricity != null)
|
||||
{
|
||||
newElectricity.WorkPalce = Electricity.WorkPalce;
|
||||
newElectricity.WorkDepth = Electricity.WorkDepth;
|
||||
newElectricity.ValidityStartTime = Electricity.ValidityStartTime;
|
||||
newElectricity.ValidityEndTime = Electricity.ValidityEndTime;
|
||||
newElectricity.WorkMeasures = Electricity.WorkMeasures;
|
||||
newElectricity.CancelManId = Electricity.CancelManId;
|
||||
newElectricity.CancelReasons = Electricity.CancelReasons;
|
||||
newElectricity.CancelTime = Electricity.CancelTime;
|
||||
newElectricity.CloseManId = Electricity.CloseManId;
|
||||
newElectricity.CloseReasons = Electricity.CloseReasons;
|
||||
newElectricity.CloseTime = Electricity.CloseTime;
|
||||
newElectricity.NextManId = Electricity.NextManId;
|
||||
newElectricity.States = Electricity.States;
|
||||
|
||||
newElectricity.WorkAreaId = Electricity.WorkAreaId;
|
||||
newElectricity.Reason = Electricity.Reason;
|
||||
newElectricity.FireWatchManName = Electricity.FireWatchManName;
|
||||
newElectricity.WorkLeaderName = Electricity.WorkLeaderName;
|
||||
newElectricity.WorkLeaderTel = Electricity.WorkLeaderTel;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除临时用电作业票
|
||||
/// </summary>
|
||||
/// <param name="ElectricityId"></param>
|
||||
public static void DeleteElectricityById(string ElectricityId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.License_Electricity Electricity = db.License_Electricity.FirstOrDefault(e => e.ElectricityId == ElectricityId);
|
||||
if (Electricity != null)
|
||||
{
|
||||
///删除编码表记录
|
||||
CodeRecordsService.DeleteCodeRecordsByDataId(ElectricityId);
|
||||
////删除附件
|
||||
CommonService.DeleteAttachFileById(ElectricityId);
|
||||
///删除-安全措施
|
||||
DeleteLicenseItemByDataId(ElectricityId);
|
||||
///删除作业票审核信息
|
||||
DeleteFlowOperateByDataId(ElectricityId);
|
||||
db.License_Electricity.DeleteOnSubmit(Electricity);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region 作业票-安全措施
|
||||
|
||||
@@ -397,7 +397,10 @@ namespace BLL
|
||||
/// <returns>HSE人员的数量</returns>
|
||||
public static int GetHSEPersonCountByUnitId(string unitId, string projectId)
|
||||
{
|
||||
var q = (from x in Funs.DB.SitePerson_Person where x.UnitId == unitId && x.ProjectId == projectId && (x.WorkPostId == BLL.Const.WorkPost_HSSEEngineer || x.WorkPostId == BLL.Const.WorkPost_SafetyManager) && x.IsUsed == true select x).ToList();
|
||||
var q = (from x in Funs.DB.SitePerson_Person
|
||||
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||
where x.UnitId == unitId && x.ProjectId == projectId && y.IsHsse==true && x.IsUsed == true select x).ToList();
|
||||
//var q = (from x in Funs.DB.SitePerson_Person where x.UnitId == unitId && x.ProjectId == projectId && (x.WorkPostId == BLL.Const.WorkPost_HSSEEngineer || x.WorkPostId == BLL.Const.WorkPost_SafetyManager) && x.IsUsed == true select x).ToList();
|
||||
return q.Count();
|
||||
}
|
||||
|
||||
|
||||
@@ -1062,6 +1062,8 @@
|
||||
<Content Include="HSSE\Law\RulesRegulationsSelectCloumn.aspx" />
|
||||
<Content Include="HSSE\License\BreakGround.aspx" />
|
||||
<Content Include="HSSE\License\BreakGroundView.aspx" />
|
||||
<Content Include="HSSE\License\Electricity.aspx" />
|
||||
<Content Include="HSSE\License\ElectricityView.aspx" />
|
||||
<Content Include="HSSE\License\EquipmentSafetyList.aspx" />
|
||||
<Content Include="HSSE\License\EquipmentSafetyListEdit.aspx" />
|
||||
<Content Include="HSSE\License\EquipmentSafetyListView.aspx" />
|
||||
@@ -11599,6 +11601,20 @@
|
||||
<Compile Include="HSSE\License\BreakGroundView.aspx.designer.cs">
|
||||
<DependentUpon>BreakGroundView.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\License\Electricity.aspx.cs">
|
||||
<DependentUpon>Electricity.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\License\Electricity.aspx.designer.cs">
|
||||
<DependentUpon>Electricity.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\License\ElectricityView.aspx.cs">
|
||||
<DependentUpon>ElectricityView.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\License\ElectricityView.aspx.designer.cs">
|
||||
<DependentUpon>ElectricityView.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HSSE\License\EquipmentSafetyList.aspx.cs">
|
||||
<DependentUpon>EquipmentSafetyList.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Electricity.aspx.cs" Inherits="FineUIPro.Web.HSSE.License.Electricity" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>临时用电作业票</title>
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="临时用电作业票" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="ElectricityId" DataIDField="ElectricityId" AllowSorting="true"
|
||||
SortField="ApplyDate" SortDirection="DESC" EnableColumnLines="true" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" ForceFit="true"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" runat="server" Label="申请单位" Width="350px" LabelWidth="80px"
|
||||
EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>
|
||||
<f:ToolbarSeparator runat="server"></f:ToolbarSeparator>
|
||||
<f:RadioButtonList ID="drpStates" runat="server" Width="450px"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:RadioButtonList>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="90px" ColumnID="LicenseCode" DataField="LicenseCode"
|
||||
SortField="LicenseCode" FieldType="String" HeaderText="编号" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="ApplyUnitName" DataField="ApplyUnitName" SortField="ApplyUnitName"
|
||||
FieldType="String" HeaderText="申请单位" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WorkPalce" DataField="WorkPalce" SortField="WorkPalce"
|
||||
FieldType="String" HeaderText="作业地点" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="WorkLeaderName" DataField="WorkLeaderName" SortField="WorkLeaderName"
|
||||
FieldType="String" HeaderText="安装人姓名" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="ApplyDate" DataField="ApplyDate" SortField="ApplyDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm" HeaderText="申请日期"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="ValidityStartTime" DataField="ValidityStartTime" SortField="ValidityStartTime"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm" HeaderText="有效期开始时间"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="ValidityEndTime" DataField="ValidityEndTime" SortField="ValidityEndTime"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm" HeaderText="有效期结束时间"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="WorkMeasures" DataField="WorkMeasures"
|
||||
SortField="WorkMeasures" FieldType="String" HeaderText="作业内容、机具及安全措施" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="临时用电票" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1000px" Height="640px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuView" OnClick="btnMenuView_Click" EnablePostBack="true"
|
||||
runat="server" Text="查看" Icon="Find">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnPrinter" EnablePostBack="true" runat="server"
|
||||
Text="导出" Icon="Printer" OnClick="btnPrinter_Click" EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
|
||||
Text="删除">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,179 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.License
|
||||
{
|
||||
|
||||
|
||||
public partial class Electricity
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// drpStates 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList drpStates;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuView 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuView;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrinter 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnPrinter;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectricityView.aspx.cs" Inherits="FineUIPro.Web.HSSE.License.ElectricityView" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>临时用电作业票</title>
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
.formtitle .f-field-body {
|
||||
text-align: center;
|
||||
margin: 10px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" TitleAlign="Center"
|
||||
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" EnableTableStyle="true">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbLicenseCode" runat="server" Label="编号" LabelWidth="140px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbImageUrl" runat="server" Label="临时用电需附简图" LabelWidth="140px" Text="见附件。">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtApplyUnit" runat="server" Label="申请单位" Readonly="true" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtApplyManName" runat="server" Label="申请人" Readonly="true" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtWorkPalce" runat="server" Label="作业地点" Readonly="true" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtReason" runat="server" Label="作业原因" Readonly="true" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtWorkDate" runat="server" Label="有效期限" Readonly="true" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtWorkMeasures" runat="server" Label="作业内容、机具及安全措施" Readonly="true" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="检查措施" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="LicenseItemId" EnableColumnLines="true"
|
||||
DataIDField="LicenseItemId" AllowSorting="true" SortField="SortIndex"
|
||||
SortDirection="ASC" AllowPaging="false" >
|
||||
<Columns>
|
||||
<f:RenderField Width="90px" ColumnID="SortIndex" DataField="SortIndex" FieldType="Int"
|
||||
HeaderText="序号" HeaderTextAlign="Center" TextAlign="Left" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="SafetyMeasures" DataField="SafetyMeasures" FieldType="String"
|
||||
HeaderText="检查单" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="ConfirmManName" DataField="ConfirmManName" FieldType="String"
|
||||
HeaderText="确认执行" HeaderTextAlign="Center" TextAlign="Left" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="NoUsedName" DataField="NoUsedName" FieldType="String"
|
||||
HeaderText="不适用" HeaderTextAlign="Center" TextAlign="Left" >
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Form ID="txtForm1" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="施工单位安全人员意见:">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOpinion1" runat="server" Readonly="true" Height="50px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow >
|
||||
<Items>
|
||||
<f:Label ID="Label6" runat="server" >
|
||||
</f:Label>
|
||||
<f:Label ID="txtName1" runat="server" Label="签字" LabelWidth="60px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtTime1" runat="server" Text="年月日时分">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<f:Form ID="txtForm2" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位安全人员意见:">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOpinion2" runat="server" Readonly="true" Height="50px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow >
|
||||
<Items>
|
||||
<f:Label ID="Label1" runat="server" >
|
||||
</f:Label>
|
||||
<f:Label ID="txtName2" runat="server" Label="签字" LabelWidth="60px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtTime2" runat="server" Text="年月日时分">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Form ID="txtForm3" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位专业工程师意见:">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOpinion3" runat="server" Readonly="true" Height="50px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow >
|
||||
<Items>
|
||||
<f:Label ID="Label2" runat="server" >
|
||||
</f:Label>
|
||||
<f:Label ID="txtName3" runat="server" Label="签字" LabelWidth="60px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtTime3" runat="server" Text="年月日时分">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<f:Form ID="txtForm4" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="总包单位施工经理意见:">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOpinion4" runat="server" Readonly="true" Height="50px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow >
|
||||
<Items>
|
||||
<f:Label ID="Label5" runat="server" >
|
||||
</f:Label>
|
||||
<f:Label ID="txtName4" runat="server" Label="签字" LabelWidth="60px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtTime4" runat="server" Text="年月日时分">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Form ID="txtForm5" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="监理单位意见:">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOpinion5" runat="server" Readonly="true" Height="50px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow >
|
||||
<Items>
|
||||
<f:Label ID="Label9" runat="server" >
|
||||
</f:Label>
|
||||
<f:Label ID="txtName5" runat="server" Label="签字" LabelWidth="60px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtTime5" runat="server" Text="年月日时分">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<f:Form ID="txtForm6" ShowBorder="true" ShowHeader="true" AutoScroll="true" TitleAlign="Left"
|
||||
BodyPadding="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="业主单位意见:">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOpinion6" runat="server" Readonly="true" Height="50px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow >
|
||||
<Items>
|
||||
<f:Label ID="Label12" runat="server" >
|
||||
</f:Label>
|
||||
<f:Label ID="txtName6" runat="server" Label="签字" LabelWidth="60px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtTime6" runat="server" Text="年月日时分">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCance" runat="server" Label="取消" Readonly="true" LabelWidth="90px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtClose" runat="server" Label="关闭" Readonly="true" LabelWidth="90px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttachUrl" Text="临时用电作业需附简图" ToolTip="临时用电作业需附简图查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose" MarginRight="10px">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="附件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,242 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.License
|
||||
{
|
||||
public partial class ElectricityView : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string ElectricityId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ElectricityId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ElectricityId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.SimpleForm1.Title = UnitService.GetUnitNameByUnitId(Const.UnitId_CWCEC) + this.Title;
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.ElectricityId = Request.Params["ElectricityId"];
|
||||
if (!string.IsNullOrEmpty(this.ElectricityId))
|
||||
{
|
||||
var getElectricity = LicensePublicService.GetElectricityById(this.ElectricityId);
|
||||
if (getElectricity != null)
|
||||
{
|
||||
this.lbLicenseCode.Text = getElectricity.LicenseCode;
|
||||
this.txtApplyUnit.Text = UnitService.GetUnitNameByUnitId(getElectricity.ApplyUnitId);
|
||||
this.txtApplyManName.Text = UserService.GetUserNameByUserId(getElectricity.ApplyManId);
|
||||
this.txtWorkPalce.Text = getElectricity.WorkPalce;
|
||||
this.txtReason.Text = getElectricity.Reason;
|
||||
if (getElectricity.ValidityStartTime.HasValue)
|
||||
{
|
||||
this.txtWorkDate.Text = getElectricity.ValidityStartTime.Value.ToString("f") + " 至 ";
|
||||
if (getElectricity.ValidityEndTime.HasValue)
|
||||
{
|
||||
this.txtWorkDate.Text += getElectricity.ValidityEndTime.Value.ToString("f");
|
||||
}
|
||||
}
|
||||
this.txtWorkMeasures.Text = getElectricity.WorkMeasures;
|
||||
if (!string.IsNullOrEmpty(getElectricity.CancelManId))
|
||||
{
|
||||
this.txtCance.Text = UserService.GetUserNameByUserId(getElectricity.CancelManId) + ";取消时间:"
|
||||
+ string.Format("{0:yyyy-MM-dd HH:mm}", getElectricity.CancelTime) + ";原因:" + getElectricity.CancelReasons + "。";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getElectricity.CloseManId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(getElectricity.CloseReasons))
|
||||
{
|
||||
this.txtClose.Text = getElectricity.CloseReasons + " 关闭时间:"
|
||||
+ string.Format("{0:yyyy-MM-dd HH:mm}", getElectricity.CloseTime) + "。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtClose.Text = UserService.GetUserNameByUserId(getElectricity.CloseManId) + ";关闭时间:"
|
||||
+ string.Format("{0:yyyy-MM-dd HH:mm}", getElectricity.CloseTime) + "。";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
this.SetFlow();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取审核记录信息
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
private void SetFlow()
|
||||
{
|
||||
var getFlows = LicensePublicService.GetFlowOperateListByDataId(this.ElectricityId);
|
||||
if (getFlows.Count() > 0)
|
||||
{
|
||||
var getF1 = getFlows.FirstOrDefault(x => x.SortIndex == 1);
|
||||
if (getF1 != null)
|
||||
{
|
||||
this.txtForm1.Title = getF1.AuditFlowName + ":";
|
||||
if (getF1.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF1.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion1.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion1.Text = getF1.Opinion;
|
||||
}
|
||||
this.txtName1.Text = UserService.GetUserNameByUserId(getF1.OperaterId);
|
||||
this.txtTime1.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF1.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF2 = getFlows.FirstOrDefault(x => x.SortIndex == 2);
|
||||
if (getF2 != null)
|
||||
{
|
||||
this.txtForm2.Title = getF2.AuditFlowName + ":";
|
||||
if (getF2.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF2.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion2.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion2.Text = getF2.Opinion;
|
||||
}
|
||||
this.txtName2.Text = UserService.GetUserNameByUserId(getF2.OperaterId);
|
||||
this.txtTime2.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF2.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF3 = getFlows.FirstOrDefault(x => x.SortIndex == 3);
|
||||
if (getF3 != null)
|
||||
{
|
||||
this.txtForm3.Title = getF3.AuditFlowName + ":";
|
||||
if (getF3.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF3.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion3.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion3.Text = getF3.Opinion;
|
||||
}
|
||||
this.txtName3.Text = UserService.GetUserNameByUserId(getF3.OperaterId);
|
||||
this.txtTime3.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF3.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
|
||||
if (getF4 != null)
|
||||
{
|
||||
this.txtForm4.Title = getF4.AuditFlowName + ":";
|
||||
if (getF4.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF4.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion4.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion4.Text = getF4.Opinion;
|
||||
}
|
||||
this.txtName4.Text = UserService.GetUserNameByUserId(getF4.OperaterId);
|
||||
this.txtTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF5 = getFlows.FirstOrDefault(x => x.SortIndex == 5);
|
||||
if (getF5 != null)
|
||||
{
|
||||
this.txtForm5.Title = getF5.AuditFlowName + ":";
|
||||
if (getF5.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF5.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion5.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion5.Text = getF5.Opinion;
|
||||
}
|
||||
this.txtName5.Text = UserService.GetUserNameByUserId(getF5.OperaterId);
|
||||
this.txtTime5.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF5.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF6 = getFlows.FirstOrDefault(x => x.SortIndex == 6);
|
||||
if (getF6 != null)
|
||||
{
|
||||
this.txtForm6.Title = getF6.AuditFlowName + ":";
|
||||
if (getF6.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF6.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion6.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion6.Text = getF6.Opinion;
|
||||
}
|
||||
this.txtName6.Text = UserService.GetUserNameByUserId(getF6.OperaterId);
|
||||
this.txtTime6.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF6.OperaterTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT LicenseItemId,DataId,SortIndex,SafetyMeasures,(CASE WHEN IsUsed = 1 THEN '适用' ELSE '不适用' END) AS NoUsedName,ConfirmManId,U.UserName AS ConfirmManName"
|
||||
+ @" FROM License_LicenseItem AS L "
|
||||
+ @" LEFT JOIN Sys_User AS U ON L.ConfirmManId =U.UserId"
|
||||
+ @" WHERE L.DataId ='" + this.ElectricityId + "'";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
#region 附件查看
|
||||
/// <summary>
|
||||
/// 附件查看
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.ElectricityId))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&menuId={1}&type=-1", this.ElectricityId, Const.ProjectElectricityMenuId)));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,467 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.License
|
||||
{
|
||||
|
||||
|
||||
public partial class ElectricityView
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// lbLicenseCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbLicenseCode;
|
||||
|
||||
/// <summary>
|
||||
/// lbImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// txtApplyUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtApplyUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtApplyManName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtApplyManName;
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkPalce 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkPalce;
|
||||
|
||||
/// <summary>
|
||||
/// txtReason 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtReason;
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkMeasures 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkMeasures;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// txtForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form txtForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpinion1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtOpinion1;
|
||||
|
||||
/// <summary>
|
||||
/// Label6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label6;
|
||||
|
||||
/// <summary>
|
||||
/// txtName1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtName1;
|
||||
|
||||
/// <summary>
|
||||
/// txtTime1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTime1;
|
||||
|
||||
/// <summary>
|
||||
/// txtForm2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form txtForm2;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpinion2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtOpinion2;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtName2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtName2;
|
||||
|
||||
/// <summary>
|
||||
/// txtTime2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTime2;
|
||||
|
||||
/// <summary>
|
||||
/// txtForm3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form txtForm3;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpinion3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtOpinion3;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// txtName3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtName3;
|
||||
|
||||
/// <summary>
|
||||
/// txtTime3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTime3;
|
||||
|
||||
/// <summary>
|
||||
/// txtForm4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form txtForm4;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpinion4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtOpinion4;
|
||||
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label5;
|
||||
|
||||
/// <summary>
|
||||
/// txtName4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtName4;
|
||||
|
||||
/// <summary>
|
||||
/// txtTime4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTime4;
|
||||
|
||||
/// <summary>
|
||||
/// txtForm5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form txtForm5;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpinion5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtOpinion5;
|
||||
|
||||
/// <summary>
|
||||
/// Label9 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label9;
|
||||
|
||||
/// <summary>
|
||||
/// txtName5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtName5;
|
||||
|
||||
/// <summary>
|
||||
/// txtTime5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTime5;
|
||||
|
||||
/// <summary>
|
||||
/// txtForm6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form txtForm6;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpinion6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtOpinion6;
|
||||
|
||||
/// <summary>
|
||||
/// Label12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label12;
|
||||
|
||||
/// <summary>
|
||||
/// txtName6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtName6;
|
||||
|
||||
/// <summary>
|
||||
/// txtTime6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTime6;
|
||||
|
||||
/// <summary>
|
||||
/// txtCance 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCance;
|
||||
|
||||
/// <summary>
|
||||
/// txtClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtClose;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// lbTemp 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTemp;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -201,7 +201,7 @@ namespace Model
|
||||
/// <summary>
|
||||
/// 整改期限
|
||||
/// </summary>
|
||||
public DateTime? Rectification_Date { get; set; }
|
||||
public string Rectification_Date { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -277,7 +277,7 @@ namespace Model
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 作业负责人名字(射线、夜间)
|
||||
/// 作业负责人名字(射线、夜间、高处)
|
||||
/// </summary>
|
||||
public string WorkLeaderName
|
||||
{
|
||||
@@ -285,7 +285,7 @@ namespace Model
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 作业负责人电话(射线、夜间)
|
||||
/// 作业负责人电话(射线、夜间、高处)
|
||||
/// </summary>
|
||||
public string WorkLeaderTel
|
||||
{
|
||||
@@ -389,5 +389,114 @@ namespace Model
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
//新增
|
||||
public string WorkAreaName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 区域
|
||||
/// </summary>
|
||||
public string WorkAreaId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 原因
|
||||
/// </summary>
|
||||
public string Reason
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 动火作业级别
|
||||
/// </summary>
|
||||
public string FireLevel
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 空间内介质描述
|
||||
/// </summary>
|
||||
public string LimitedDescribe
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在其它介质
|
||||
/// </summary>
|
||||
public bool? IsBoolOther
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 作业是否耗氧或产生其它有毒有害气体
|
||||
/// </summary>
|
||||
public bool? IsBoolHarmfulGas
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 氧含量测试结果
|
||||
/// </summary>
|
||||
public string TestResult
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测试时间
|
||||
/// </summary>
|
||||
public string TestDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 测试人
|
||||
/// </summary>
|
||||
public string TestPerson { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通风措施
|
||||
/// </summary>
|
||||
public string VenStep { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作业点高度
|
||||
/// </summary>
|
||||
public string WorkHeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 高处作业级别
|
||||
/// </summary>
|
||||
public string HeightLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 吊装高度
|
||||
/// </summary>
|
||||
public string LiftingHeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 起重工姓名
|
||||
/// </summary>
|
||||
public string QzgName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 起重工电话
|
||||
/// </summary>
|
||||
public string QzgPhone { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user