质量资料收发文调整
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user