提交代码
This commit is contained in:
@@ -333,12 +333,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.hdAttachUrl.Text = inspectionPerson.InspectionPersonId;
|
||||
}
|
||||
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionPerson.InspectionPersonId);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
|
||||
// 人员报验
|
||||
BLL.InspectionPersonService.AddInspectionPerson(inspectionPerson);
|
||||
@@ -363,12 +357,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
inspectionPerson.Status = BLL.Const.Comprehensive_Compile;
|
||||
inspectionPerson.InspectionPersonId = this.InspectionPersonId;
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionPersonId);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
var model = Funs.DB.Comprehensive_InspectionPerson.Where(u => u.InspectionPersonId == this.InspectionPersonId).FirstOrDefault();
|
||||
if (model != null)
|
||||
{
|
||||
@@ -523,12 +511,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.hdAttachUrl.Text = inspectionPerson.InspectionPersonId;
|
||||
}
|
||||
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionPerson.InspectionPersonId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
inspectionPerson.Status = BLL.Const.Comprehensive_Audit;
|
||||
// 人员报验
|
||||
BLL.InspectionPersonService.AddInspectionPerson(inspectionPerson);
|
||||
@@ -551,12 +533,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
else
|
||||
{
|
||||
inspectionPerson.InspectionPersonId = this.InspectionPersonId;
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionPersonId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
// BLL.InspectionPersonService.UpdateInspectionPerson(inspectionPerson);
|
||||
var oldInspectionPerson = Funs.DB.Comprehensive_InspectionPerson.Where(u => u.InspectionPersonId == this.InspectionPersonId).FirstOrDefault();
|
||||
if (oldInspectionPerson == null) //数据库没有记录 直接点提交 当前状态为 审核状态
|
||||
|
||||
Reference in New Issue
Block a user