|
|
@@ -136,13 +136,14 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
try |
|
|
|
{ |
|
|
|
List<TextbookInOutEntity> returnList = new List<TextbookInOutEntity>(); |
|
|
|
TextbookInOutEntity InOutList = new TextbookInOutEntity(); |
|
|
|
//TextbookInOutEntity InOutList = new TextbookInOutEntity(); |
|
|
|
List<TextBookInEntity> InEntity = this.BaseRepository("CollegeMIS").FindList<TextBookInEntity>(x => x.InOutCode == keyValue).ToList(); |
|
|
|
List<TextBookOutEntity> OutEntity = this.BaseRepository("CollegeMIS").FindList<TextBookOutEntity>(x => x.InOutCode == keyValue).ToList(); |
|
|
|
if (InEntity.Count() > 0 || OutEntity.Count() > 0) |
|
|
|
{ |
|
|
|
for (int i = 0; i < InEntity.Count(); i++) |
|
|
|
{ |
|
|
|
TextbookInOutEntity InOutList = new TextbookInOutEntity(); |
|
|
|
InOutList.CKORRK = "入库"; |
|
|
|
InOutList.InorOut = InEntity[i].InOutCode; |
|
|
|
InOutList.BookCode = InEntity[i].BookCode; |
|
|
@@ -154,6 +155,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
} |
|
|
|
for (int j = 0; j < OutEntity.Count(); j++) |
|
|
|
{ |
|
|
|
TextbookInOutEntity InOutList = new TextbookInOutEntity(); |
|
|
|
InOutList.CKORRK = "出库"; |
|
|
|
InOutList.InorOut = OutEntity[j].InOutCode; |
|
|
|
InOutList.BookCode = OutEntity[j].BookCode; |
|
|
@@ -163,7 +165,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
InOutList.Remark = OutEntity[j].Remark; |
|
|
|
returnList.Add(InOutList); |
|
|
|
} |
|
|
|
returnList.OrderBy(x => x.CreateTime); |
|
|
|
} |
|
|
|
return returnList; |
|
|
|
} |
|
|
|