质量资料收发文调整

This commit is contained in:
2025-12-04 15:38:55 +08:00
parent 07b7d8426a
commit 2b61bbe138
21 changed files with 1388 additions and 206 deletions
@@ -323,6 +323,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
select x;
var cns = from x in Funs.DB.Base_CNProfessional select x;
var docType = from x in Funs.DB.Base_ReceivingDocType select x;
var dataInTemp = from x in Funs.DB.Sys_CQMS_DataInTemp
where x.ProjectId == LoginProjectId && x.UserId == UserId && x.Type == "DataReceivingDoc"
@@ -370,7 +371,17 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
if (!string.IsNullOrEmpty(tempData.Value4.Trim()))
{
Ins.FileType = tempData.Value4.Trim();
//Ins.FileType = tempData.Value4.Trim();
var dType = docType.Where(x => x.TypeName == tempData.Value4.Trim()).FirstOrDefault();
if (dType == null)
{
errInfo += "文件类别[" + tempData.Value4.Trim() + "]不存在;";
}
else
{
Ins.FileType = dType.TypeName;
}
}
else
{