提交代码

This commit is contained in:
高飞 2024-04-09 10:35:27 +08:00
parent fac653cd8d
commit bfb7065085
14 changed files with 168 additions and 168 deletions

View File

@ -220,12 +220,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
dataDistribution.DataDistributionId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataDistribution)); dataDistribution.DataDistributionId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataDistribution));
this.hdAttachUrl.Text = dataDistribution.DataDistributionId; this.hdAttachUrl.Text = dataDistribution.DataDistributionId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataDistribution.DataDistributionId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataDistribution.DataDistributionId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
dataDistribution.CompileMan = this.CurrUser.UserId; dataDistribution.CompileMan = this.CurrUser.UserId;
dataDistribution.CompileDate = DateTime.Now; dataDistribution.CompileDate = DateTime.Now;
dataDistribution.Status = BLL.Const.Comprehensive_Compile; dataDistribution.Status = BLL.Const.Comprehensive_Compile;
@ -246,12 +246,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{ {
dataDistribution.Status = BLL.Const.Comprehensive_Compile; dataDistribution.Status = BLL.Const.Comprehensive_Compile;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataDistributionId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataDistributionId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
BLL.DataDistributionService.UpdateDataDistribution(dataDistribution); BLL.DataDistributionService.UpdateDataDistribution(dataDistribution);
} }
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());

View File

@ -274,12 +274,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc)); dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId; this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
dataReceivingDoc.CompileMan = this.CurrUser.UserId; dataReceivingDoc.CompileMan = this.CurrUser.UserId;
dataReceivingDoc.CompileDate = DateTime.Now; dataReceivingDoc.CompileDate = DateTime.Now;
dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile; dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
@ -298,12 +298,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{ {
dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile; dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
BLL.DataReceivingDocService.UpdateDataReceivingDoc(dataReceivingDoc); BLL.DataReceivingDocService.UpdateDataReceivingDoc(dataReceivingDoc);
} }
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());

View File

@ -208,12 +208,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
dataReceiving.DataReceivingId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceiving)); dataReceiving.DataReceivingId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceiving));
this.hdAttachUrl.Text = dataReceiving.DataReceivingId; this.hdAttachUrl.Text = dataReceiving.DataReceivingId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceiving.DataReceivingId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceiving.DataReceivingId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
dataReceiving.CompileMan = this.CurrUser.UserId; dataReceiving.CompileMan = this.CurrUser.UserId;
dataReceiving.CompileDate = DateTime.Now; dataReceiving.CompileDate = DateTime.Now;
dataReceiving.Status = BLL.Const.Comprehensive_Audit; dataReceiving.Status = BLL.Const.Comprehensive_Audit;
@ -222,12 +222,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
dataReceiving.DataReceivingId = this.DataReceivingId; dataReceiving.DataReceivingId = this.DataReceivingId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
dataReceiving.Status = BLL.Const.Comprehensive_Audit; dataReceiving.Status = BLL.Const.Comprehensive_Audit;
var model = Funs.DB.Comprehensive_DataReceiving.Where(u => u.DataReceivingId == this.DataReceivingId).FirstOrDefault(); var model = Funs.DB.Comprehensive_DataReceiving.Where(u => u.DataReceivingId == this.DataReceivingId).FirstOrDefault();

View File

@ -232,12 +232,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = designChangeOrder.DesignChangeOrderId; this.hdAttachUrl.Text = designChangeOrder.DesignChangeOrderId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designChangeOrder.DesignChangeOrderId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designChangeOrder.DesignChangeOrderId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
designChangeOrder.CompileMan = this.CurrUser.UserId; designChangeOrder.CompileMan = this.CurrUser.UserId;
designChangeOrder.CompileDate = DateTime.Now; designChangeOrder.CompileDate = DateTime.Now;
@ -247,12 +247,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
designChangeOrder.DesignChangeOrderId = this.DesignChangeOrderId; designChangeOrder.DesignChangeOrderId = this.DesignChangeOrderId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designChangeOrder.DesignChangeOrderId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designChangeOrder.DesignChangeOrderId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_DesignChangeOrder.Where(u => u.DesignChangeOrderId == this.DesignChangeOrderId).FirstOrDefault(); var model = Funs.DB.Comprehensive_DesignChangeOrder.Where(u => u.DesignChangeOrderId == this.DesignChangeOrderId).FirstOrDefault();
if (model != null) if (model != null)
{ {

View File

@ -226,12 +226,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = designDetails.DesignDetailsId; this.hdAttachUrl.Text = designDetails.DesignDetailsId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designDetails.DesignDetailsId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designDetails.DesignDetailsId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
designDetails.CompileMan = this.CurrUser.UserId; designDetails.CompileMan = this.CurrUser.UserId;
designDetails.CompileDate = DateTime.Now; designDetails.CompileDate = DateTime.Now;
designDetails.Status = BLL.Const.Comprehensive_Compile; designDetails.Status = BLL.Const.Comprehensive_Compile;
@ -240,12 +240,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
designDetails.DesignDetailsId = this.DesignDetailsId; designDetails.DesignDetailsId = this.DesignDetailsId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DesignDetailsId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DesignDetailsId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_DesignDetails.Where(u => u.DesignDetailsId == this.DesignDetailsId).FirstOrDefault(); var model = Funs.DB.Comprehensive_DesignDetails.Where(u => u.DesignDetailsId == this.DesignDetailsId).FirstOrDefault();
if (model != null) if (model != null)
{ {

View File

@ -215,12 +215,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
if (!string.IsNullOrEmpty(this.DesignDrawingsId)) if (!string.IsNullOrEmpty(this.DesignDrawingsId))
{ {
designDrawings.DesignDrawingsId = this.DesignDrawingsId; designDrawings.DesignDrawingsId = this.DesignDrawingsId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DesignDrawingsId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DesignDrawingsId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_DesignDrawings.Where(u => u.DesignDrawingsId == this.DesignDrawingsId).FirstOrDefault(); var model = Funs.DB.Comprehensive_DesignDrawings.Where(u => u.DesignDrawingsId == this.DesignDrawingsId).FirstOrDefault();
if (model != null) if (model != null)
@ -242,12 +242,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = designDrawings.DesignDrawingsId; this.hdAttachUrl.Text = designDrawings.DesignDrawingsId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designDrawings.DesignDrawingsId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designDrawings.DesignDrawingsId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
designDrawings.Status = BLL.Const.Comprehensive_Compile; designDrawings.Status = BLL.Const.Comprehensive_Compile;
BLL.DesignDrawingsService.AddDesignDrawings(designDrawings); BLL.DesignDrawingsService.AddDesignDrawings(designDrawings);
} }

View File

@ -413,23 +413,23 @@ namespace FineUIPro.Web.CQMS.Comprehensive
newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit;
newInspectionEquipment.InspectionEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionPerson)); newInspectionEquipment.InspectionEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionPerson));
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == newInspectionEquipment.InspectionEquipmentId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == newInspectionEquipment.InspectionEquipmentId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
BLL.InspectionEquipmentService.AddInspectionEquipment(newInspectionEquipment); BLL.InspectionEquipmentService.AddInspectionEquipment(newInspectionEquipment);
} }
else else
{ {
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionEquipmentId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionEquipmentId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
newInspectionEquipment.InspectionEquipmentId = this.InspectionEquipmentId; newInspectionEquipment.InspectionEquipmentId = this.InspectionEquipmentId;
var oldInspectionEquipment = Funs.DB.Comprehensive_InspectionEquipment.Where(u => u.InspectionEquipmentId == this.InspectionEquipmentId).FirstOrDefault(); var oldInspectionEquipment = Funs.DB.Comprehensive_InspectionEquipment.Where(u => u.InspectionEquipmentId == this.InspectionEquipmentId).FirstOrDefault();
if (oldInspectionEquipment == null) //数据库没有记录 直接点提交 当前状态为 审核状态 if (oldInspectionEquipment == null) //数据库没有记录 直接点提交 当前状态为 审核状态

View File

@ -229,12 +229,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = inspectionMachone.InspectionMachineId; this.hdAttachUrl.Text = inspectionMachone.InspectionMachineId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionMachone.InspectionMachineId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionMachone.InspectionMachineId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
inspectionMachone.CompileMan = this.CurrUser.UserId; inspectionMachone.CompileMan = this.CurrUser.UserId;
inspectionMachone.CompileDate = DateTime.Now; inspectionMachone.CompileDate = DateTime.Now;
inspectionMachone.Status = BLL.Const.Comprehensive_Compile; inspectionMachone.Status = BLL.Const.Comprehensive_Compile;
@ -243,12 +243,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
inspectionMachone.InspectionMachineId = this.InspectionMachineId; inspectionMachone.InspectionMachineId = this.InspectionMachineId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionMachineId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionMachineId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_InspectionMachine.Where(u => u.InspectionMachineId == this.InspectionMachineId).FirstOrDefault(); var model = Funs.DB.Comprehensive_InspectionMachine.Where(u => u.InspectionMachineId == this.InspectionMachineId).FirstOrDefault();
if (model != null) if (model != null)

View File

@ -333,12 +333,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = inspectionPerson.InspectionPersonId; this.hdAttachUrl.Text = inspectionPerson.InspectionPersonId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionPerson.InspectionPersonId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionPerson.InspectionPersonId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
// 人员报验 // 人员报验
BLL.InspectionPersonService.AddInspectionPerson(inspectionPerson); BLL.InspectionPersonService.AddInspectionPerson(inspectionPerson);
@ -363,12 +363,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{ {
inspectionPerson.Status = BLL.Const.Comprehensive_Compile; inspectionPerson.Status = BLL.Const.Comprehensive_Compile;
inspectionPerson.InspectionPersonId = this.InspectionPersonId; inspectionPerson.InspectionPersonId = this.InspectionPersonId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionPersonId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionPersonId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_InspectionPerson.Where(u => u.InspectionPersonId == this.InspectionPersonId).FirstOrDefault(); var model = Funs.DB.Comprehensive_InspectionPerson.Where(u => u.InspectionPersonId == this.InspectionPersonId).FirstOrDefault();
if (model != null) if (model != null)
{ {

View File

@ -273,12 +273,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
nCRManagement.NCRManagementId = SQLHelper.GetNewID(typeof(Model.Comprehensive_NCRManagement)); nCRManagement.NCRManagementId = SQLHelper.GetNewID(typeof(Model.Comprehensive_NCRManagement));
this.hdAttachUrl.Text = nCRManagement.NCRManagementId; this.hdAttachUrl.Text = nCRManagement.NCRManagementId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == nCRManagement.NCRManagementId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == nCRManagement.NCRManagementId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
nCRManagement.CompileMan = this.CurrUser.UserId; nCRManagement.CompileMan = this.CurrUser.UserId;
nCRManagement.Status = BLL.Const.Comprehensive_Compile; nCRManagement.Status = BLL.Const.Comprehensive_Compile;
BLL.NCRManagementService.AddNCRManagement(nCRManagement); BLL.NCRManagementService.AddNCRManagement(nCRManagement);
@ -286,12 +286,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
nCRManagement.NCRManagementId = this.NCRManagementId; nCRManagement.NCRManagementId = this.NCRManagementId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.NCRManagementId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.NCRManagementId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_NCRManagement.Where(u => u.NCRManagementId == this.NCRManagementId).FirstOrDefault(); var model = Funs.DB.Comprehensive_NCRManagement.Where(u => u.NCRManagementId == this.NCRManagementId).FirstOrDefault();
if (model != null) if (model != null)
{ {

View File

@ -213,12 +213,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
pressurePipe.PressurePipeId = SQLHelper.GetNewID(typeof(Model.Comprehensive_PressurePipe)); pressurePipe.PressurePipeId = SQLHelper.GetNewID(typeof(Model.Comprehensive_PressurePipe));
this.hdAttachUrl.Text = pressurePipe.PressurePipeId; this.hdAttachUrl.Text = pressurePipe.PressurePipeId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == pressurePipe.PressurePipeId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == pressurePipe.PressurePipeId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
pressurePipe.CompileMan = this.CurrUser.UserId; pressurePipe.CompileMan = this.CurrUser.UserId;
pressurePipe.Status = BLL.Const.Comprehensive_Compile; pressurePipe.Status = BLL.Const.Comprehensive_Compile;
@ -227,12 +227,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
pressurePipe.PressurePipeId = this.PressurePipeId; pressurePipe.PressurePipeId = this.PressurePipeId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.PressurePipeId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.PressurePipeId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_PressurePipe.Where(u => u.PressurePipeId == this.PressurePipeId).FirstOrDefault(); var model = Funs.DB.Comprehensive_PressurePipe.Where(u => u.PressurePipeId == this.PressurePipeId).FirstOrDefault();
if (model != null) if (model != null)

View File

@ -193,12 +193,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
pressurePipe.QualityAccidentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_QualityAccident)); pressurePipe.QualityAccidentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_QualityAccident));
this.hdAttachUrl.Text = pressurePipe.QualityAccidentId; this.hdAttachUrl.Text = pressurePipe.QualityAccidentId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == pressurePipe.QualityAccidentId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == pressurePipe.QualityAccidentId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
pressurePipe.CompileMan = this.CurrUser.UserId; pressurePipe.CompileMan = this.CurrUser.UserId;
pressurePipe.CompileDate = DateTime.Now; pressurePipe.CompileDate = DateTime.Now;
pressurePipe.Status = BLL.Const.Comprehensive_Compile; pressurePipe.Status = BLL.Const.Comprehensive_Compile;
@ -207,12 +207,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
pressurePipe.QualityAccidentId = this.QualityAccidentId; pressurePipe.QualityAccidentId = this.QualityAccidentId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.QualityAccidentId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.QualityAccidentId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_QualityAccident.Where(u => u.QualityAccidentId == this.QualityAccidentId).FirstOrDefault(); var model = Funs.DB.Comprehensive_QualityAccident.Where(u => u.QualityAccidentId == this.QualityAccidentId).FirstOrDefault();
if (model != null) if (model != null)

View File

@ -211,12 +211,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
siteVisaManagement.VisaId = SQLHelper.GetNewID(typeof(Model.Comprehensive_SiteVisaManagement)); siteVisaManagement.VisaId = SQLHelper.GetNewID(typeof(Model.Comprehensive_SiteVisaManagement));
this.hdAttachUrl.Text = siteVisaManagement.VisaId; this.hdAttachUrl.Text = siteVisaManagement.VisaId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == siteVisaManagement.VisaId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == siteVisaManagement.VisaId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
siteVisaManagement.CompileMan = this.CurrUser.UserId; siteVisaManagement.CompileMan = this.CurrUser.UserId;
siteVisaManagement.Status = BLL.Const.Comprehensive_Compile; siteVisaManagement.Status = BLL.Const.Comprehensive_Compile;
BLL.SiteVisaManagementService.AddSiteVisaManagement(siteVisaManagement); BLL.SiteVisaManagementService.AddSiteVisaManagement(siteVisaManagement);
@ -224,12 +224,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
siteVisaManagement.VisaId = this.VisaId; siteVisaManagement.VisaId = this.VisaId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.VisaId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.VisaId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_SiteVisaManagement.Where(u => u.VisaId == this.VisaId).FirstOrDefault(); var model = Funs.DB.Comprehensive_SiteVisaManagement.Where(u => u.VisaId == this.VisaId).FirstOrDefault();
if (model != null) if (model != null)
{ {

View File

@ -211,12 +211,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
specialEquipment.SpecialEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_SpecialEquipment)); specialEquipment.SpecialEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_SpecialEquipment));
this.hdAttachUrl.Text = specialEquipment.SpecialEquipmentId; this.hdAttachUrl.Text = specialEquipment.SpecialEquipmentId;
} }
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == specialEquipment.SpecialEquipmentId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == specialEquipment.SpecialEquipmentId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
specialEquipment.CompileMan = this.CurrUser.UserId; specialEquipment.CompileMan = this.CurrUser.UserId;
specialEquipment.Status = BLL.Const.Comprehensive_Compile; specialEquipment.Status = BLL.Const.Comprehensive_Compile;
BLL.SpecialEquipmentServices.AddEquipment(specialEquipment); BLL.SpecialEquipmentServices.AddEquipment(specialEquipment);
@ -224,12 +224,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else else
{ {
specialEquipment.SpecialEquipmentId = this.SpecialEquipmentId; specialEquipment.SpecialEquipmentId = this.SpecialEquipmentId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.SpecialEquipmentId); //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.SpecialEquipmentId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{ //{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return; // return;
} //}
var model = Funs.DB.Comprehensive_SpecialEquipment.Where(u => u.SpecialEquipmentId == this.SpecialEquipmentId).FirstOrDefault(); var model = Funs.DB.Comprehensive_SpecialEquipment.Where(u => u.SpecialEquipmentId == this.SpecialEquipmentId).FirstOrDefault();
if (model != null) if (model != null)
{ {