提交代码
This commit is contained in:
@@ -251,12 +251,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
designDrawings.Id = this.Id;
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.Id);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
|
||||
var model = Funs.DB.Comprehensive_ReviewDrawings.Where(u => u.Id == this.Id).FirstOrDefault();
|
||||
if (model != null)
|
||||
@@ -278,12 +272,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.hdAttachUrl.Text = designDrawings.Id;
|
||||
}
|
||||
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designDrawings.DesignDrawingsId);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
designDrawings.Status = BLL.Const.Comprehensive_Compile;
|
||||
BLL.ReviewDrawingsService.Insert(designDrawings);
|
||||
}
|
||||
@@ -337,12 +325,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
designDrawings.Id = this.Id;
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.Id);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
//BLL.DesignDrawingsService.UpdateDesignDrawings(designDrawings);
|
||||
var oldDesignDrawings = Funs.DB.Comprehensive_ReviewDrawings.Where(u => u.Id == this.Id).FirstOrDefault();
|
||||
if (oldDesignDrawings == null) //数据库没有记录 直接点提交 当前状态为 审核状态
|
||||
@@ -390,12 +372,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.hdAttachUrl.Text = designDrawings.Id;
|
||||
}
|
||||
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designDrawings.DesignDrawingsId);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
designDrawings.Status = BLL.Const.Comprehensive_Audit;
|
||||
BLL.ReviewDrawingsService.Insert(designDrawings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user