20240428 修改资料收发文登记记录导入导出
This commit is contained in:
@@ -19,18 +19,7 @@ namespace BLL
|
||||
public static Model.Comprehensive_DataReceivingDoc GetDataReceivingDocById(string dataReceivingDocId)
|
||||
{
|
||||
return Funs.DB.Comprehensive_DataReceivingDoc.FirstOrDefault(e => e.DataReceivingDocId == dataReceivingDocId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据编号和名称获取资料收发文登记记录
|
||||
/// </summary>
|
||||
/// <param name="fileCode"></param>
|
||||
/// <param name="fileName"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Comprehensive_DataReceivingDoc GetDataReceivingDocByCodeAndName(string fileCode, string fileName)
|
||||
{
|
||||
return Funs.DB.Comprehensive_DataReceivingDoc.FirstOrDefault(e => e.FileCode == fileCode && e.FileName == fileName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加资料收发文登记记录
|
||||
@@ -103,6 +92,7 @@ namespace BLL
|
||||
newDoc.CompileDate = doc.CompileDate;
|
||||
newDoc.Status = doc.Status;
|
||||
newDoc.AuditMan = doc.AuditMan;
|
||||
newDoc.RemarkCode = doc.RemarkCode;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user