|
|
@@ -73,13 +73,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
dp.Add("RTitle", "%" + queryParam["RTitle"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND t.RTitle Like @RTitle "); |
|
|
|
} |
|
|
|
var list= this.BaseRepository().FindList<Sys_ReceiveDocumentEntity>(strSql.ToString(), dp, pagination); |
|
|
|
var list = this.BaseRepository().FindList<Sys_ReceiveDocumentEntity>(strSql.ToString(), dp, pagination); |
|
|
|
foreach (var item in list) |
|
|
|
{ |
|
|
|
if(!item.RSendFlag.Equals("4")) |
|
|
|
if (!item.RSendFlag.Equals("4")) |
|
|
|
{ |
|
|
|
var listentity=this.BaseRepository().FindList<Sys_ReceiveFileEntity>(a => a.SFileId == item.RID && a.RStatus==0).Count(); |
|
|
|
if(listentity>0) |
|
|
|
var listentity = this.BaseRepository().FindList<Sys_ReceiveFileEntity>(a => a.SFileId == item.RID && a.RStatus == 0).Count(); |
|
|
|
if (listentity > 0) |
|
|
|
{ |
|
|
|
item.HasDispose = 1; |
|
|
|
} |
|
|
@@ -165,12 +165,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
/// <returns></returns> |
|
|
|
public void DeleteEntity(string keyValue) |
|
|
|
{ |
|
|
|
var db = this.BaseRepository().BeginTrans(); |
|
|
|
try |
|
|
|
{ |
|
|
|
this.BaseRepository().Delete<Sys_ReceiveDocumentEntity>(t => t.RID == keyValue); |
|
|
|
db.Delete<Sys_ReceiveDocumentEntity>(t => t.RID == keyValue); |
|
|
|
db.Delete<Sys_ReceiveFileEntity>(a => a.SFileId == keyValue); |
|
|
|
db.Commit(); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
db.Rollback(); |
|
|
|
if (ex is ExceptionEx) |
|
|
|
{ |
|
|
|
throw; |
|
|
|