提交代码

This commit is contained in:
2023-07-24 17:41:50 +08:00
parent cdf073a097
commit 055a8a1e40
10 changed files with 674 additions and 26 deletions
@@ -373,5 +373,21 @@ namespace BLL
{
return Funs.DB.View_InspectionManagement.FirstOrDefault(e => e.InspectionId == inspectionManagementId);
}
/// <summary>
/// 根据id修改验收日期和是否一次合格
/// </summary>
public static void UpdateByInspectionManagementId(Model.ProcessControl_InspectionManagement inspectionManagement) {
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.ProcessControl_InspectionManagement newInspectionManagement = db.ProcessControl_InspectionManagement.FirstOrDefault(e => e.InspectionId == inspectionManagement.InspectionId);
if (newInspectionManagement != null)
{
newInspectionManagement.InspectionDate = inspectionManagement.InspectionDate;
newInspectionManagement.IsOnceQualified = inspectionManagement.IsOnceQualified;
db.SubmitChanges();
}
}
}
}
}
+4
View File
@@ -2978,6 +2978,10 @@ namespace BLL
/// </summary>
public const string CheckColligationTemplateUrl = "File\\Excel\\DataIn\\综合检查导入模板.xls";
/// <summary>
/// 共检通知单模板
/// </summary>
public const string InspectionTemplateUrl = "File\\Word\\HSSE\\共检申请单.doc";
/// <summary>
/// 开工前检查导入模板
/// </summary>
public const string CheckWorkTemplateUrl = "File\\Excel\\DataIn\\开工前检查导入模板.xls";