This commit is contained in:
李鹏飞 2024-05-12 20:12:40 +08:00
commit 65e85ce21b
7 changed files with 49 additions and 22 deletions

View File

@ -79,19 +79,21 @@ namespace BLL
/// <param name="WPQ"></param>
public static void UpdateTestPlanDetail(Model.Welder_TestPlanDetail TestPlanDetail)
{
Model.SGGLDB db = Funs.DB;
Model.Welder_TestPlanDetail newTestPlanDetail = db.Welder_TestPlanDetail.FirstOrDefault(e => e.TestPlanDetailId == TestPlanDetail.TestPlanDetailId);
if (newTestPlanDetail != null)
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
newTestPlanDetail.PersonId = TestPlanDetail.PersonId;
newTestPlanDetail.QualifiedItem = TestPlanDetail.QualifiedItem;
newTestPlanDetail.TestItem = TestPlanDetail.TestItem;
newTestPlanDetail.IsAppearanceOK = TestPlanDetail.IsAppearanceOK;
newTestPlanDetail.CheckMan = TestPlanDetail.CheckMan;
newTestPlanDetail.NDTResult = TestPlanDetail.NDTResult;
newTestPlanDetail.CheckUnit = TestPlanDetail.CheckUnit;
newTestPlanDetail.State = TestPlanDetail.State;
db.SubmitChanges();
Model.Welder_TestPlanDetail newTestPlanDetail = db.Welder_TestPlanDetail.FirstOrDefault(e => e.TestPlanDetailId == TestPlanDetail.TestPlanDetailId);
if (newTestPlanDetail != null)
{
newTestPlanDetail.PersonId = TestPlanDetail.PersonId;
newTestPlanDetail.QualifiedItem = TestPlanDetail.QualifiedItem;
newTestPlanDetail.TestItem = TestPlanDetail.TestItem;
newTestPlanDetail.IsAppearanceOK = TestPlanDetail.IsAppearanceOK;
newTestPlanDetail.CheckMan = TestPlanDetail.CheckMan;
newTestPlanDetail.NDTResult = TestPlanDetail.NDTResult;
newTestPlanDetail.CheckUnit = TestPlanDetail.CheckUnit;
newTestPlanDetail.State = TestPlanDetail.State;
db.SubmitChanges();
}
}
}

View File

@ -205,11 +205,11 @@ namespace FineUIPro.Web.CQMS.PersonManage
{
err += "检查人不能为空!";
}
if (string.IsNullOrEmpty(NDTResult))
if (string.IsNullOrEmpty(NDTResult) && IsAppearanceOK == "是")
{
err += "无损检测结果不能为空!";
}
if (string.IsNullOrEmpty(CheckUnit))
if (string.IsNullOrEmpty(CheckUnit) && IsAppearanceOK == "是")
{
err += "检测单位不能为空!";
}
@ -251,13 +251,27 @@ namespace FineUIPro.Web.CQMS.PersonManage
{
detail.CheckMan = person.PersonId;
}
detail.NDTResult = NDTResult == "合格" ? true : false;
if (NDTResult == "合格")
{
detail.NDTResult = true;
}
else if (NDTResult == "不合格")
{
detail.NDTResult = false;
}
var unit = units.FirstOrDefault(x => x.UnitName == CheckUnit);
if (unit != null)
{
detail.CheckUnit = unit.UnitId;
}
detail.State = State == "合格" ? true : false;
if (State == "合格")
{
detail.State = true;
}
else if (State == "不合格")
{
detail.State = false;
}
details.Add(detail);
}
return details;

View File

@ -1,7 +1,8 @@
安全隐患整改反馈单
项目名称: 合格:
项目名称:
合格:
|受检单位名称| |单位工程名称 | |
|检查人员 | |
|检查日期 | |

View File

@ -1,25 +0,0 @@
安全隐患整改通知单
项目名称阿拉善盟沪蒙能源实业有限公司300万吨/年焦化项目
编号0005
|受检单位名称|中国化学工程第六建设|单位工程名称 |2号煤棚(建筑) |
| |有限公司 | | |
|检查人员 |程克勤 |
|检查日期 |2021-06-02 |
|隐患类别 |√一般 □较大 □重大 |
|贵公司存在的安全隐患及整改要求如下: |
|1.精煤棚木工加工场一灭火器失效,整改要求:按要求更换,整改期限2021-06-05|
|总包单位项目安全经理:程克勤 |
|日期2021-06-02 |
|抄送 |☒专业工程师:蒋子清 |日期2021-06-05 |
| |☐施工经理: |日期: |
| |☐项目经理: |日期: |
|接收人 | 吴唯佳 |接收日期2021-06-05 |
|注1.本表由总包单位项目安全经理签发,一般隐患抄送专业工程师监督;较大隐|
|患抄送施工经理监督;重大隐患需要由项目经理签字并报公司施工管理部备案。 |
|2.本表一式2份签发单位和接收单位各一份。 |
附图:
|整改前的照片 |
|无 |

View File

@ -1,38 +0,0 @@
安全隐患整改通知单
项目名称阿拉善盟沪蒙能源实业有限公司300万吨/年焦化项目 编号:
0005
受检单位名称 中国化学工程第六建设有 单位工程名称 2号煤棚(建筑)
限公司
检查人员 程克勤
检查日期 2021-06-02
隐患类别 √一般 □较大 □重大
贵公司存在的安全隐患及整改要求如下:
1.精煤棚木工加工场一灭火器失效,整改要求:按要求更换,整改期限2021-06-05
总包单位项目安全经理:程克勤
日期2021-06-02
☒专业工程师:蒋子清 日期2021-06-05
抄送 ☐施工经理: 日期:
☐项目经理: 日期:
接收人 吴唯佳 接收日期2021-06-05
1.本表由总包单位项目安全经理签发,一般隐患抄送专业工程师监督;较大隐患抄送施工经理
监督;重大隐患需要由项目经理签字并报公司施工管理部备案。
2.本表一式2份签发单位和接收单位各一份。
附图:
整改前的照片

View File

@ -14454,6 +14454,15 @@
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="Microsoft.Office.Interop.Excel">
<Guid>{00020813-0000-0000-C000-000000000046}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>6</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="Microsoft.Office.Interop.Word">
<Guid>{00020905-0000-0000-C000-000000000046}</Guid>
<VersionMajor>8</VersionMajor>
@ -14483,7 +14492,7 @@
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:6233/</IISUrl>
<IISUrl>http://localhost:3001/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>

View File

@ -765,13 +765,15 @@ namespace FineUIPro.Web.HSSE.Check
bookmarkProjectName.Text = BLL.ProjectService.GetProjectNameByProjectId(getRectify.ProjectId);
}
Bookmark IsRectify = doc.Range.Bookmarks["IsRectify"];
if (IsRectify != null)
var RectifyNoticesItem = Funs.DB.Check_RectifyNoticesItem.FirstOrDefault(x => x.RectifyNoticesId == getRectify.RectifyNoticesId && (x.IsRectify == false || x.IsRectify == null));
if (RectifyNoticesItem == null)
{
if (getRectify.IsRectify?.ToString() == "True")
IsRectify.Text = "合格";
else
IsRectify.Text = "不合格";
IsRectify.Text = "合格";
}
else
{ IsRectify.Text = "不合格"; }
Bookmark bookmarkRectifyNoticesCode = doc.Range.Bookmarks["RectifyNoticesCode"];
if (bookmarkRectifyNoticesCode != null)
{