Преглед изворни кода

教材库存管理 提交记录到入库单

临城职教中职
ndbs пре 2 година
родитељ
комит
ac769d2609
2 измењених фајлова са 19 додато и 1 уклоњено
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TextbookInOutController.cs
  2. +18
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextbookInOut/TextbookInOutService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TextbookInOutController.cs Прегледај датотеку

@@ -184,7 +184,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public ActionResult SubmitForm(string keyValue)
{
textbookInOutIBLL.SubmitEntity(keyValue);
return Success("删除成功!");
return Success("提交成功!");
}
#endregion



+ 18
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TextbookInOut/TextbookInOutService.cs Прегледај датотеку

@@ -264,6 +264,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
var entity = BaseRepository("CollegeMIS").FindEntity<TextbookInOutEntity>(x => x.ID == item);
entity.IsSubmit = 1;
db.Update(entity);
TextBookInEntity InEntity = new TextBookInEntity
{
ID = Guid.NewGuid().ToString(),
BookCode = "RK" + DateTime.Now.ToString("yyyyMMddHHmmss"),
InOutCode = entity.BookCode,
LessonNo = entity.LessonNo,
PublishNo = entity.PublishNo,
TextBookNo = entity.TextBookNo,
TextBookName = entity.TextBookName,
FirstAuthor = entity.FirstAuthor,
OtherAuthor = entity.OtherAuthor,
Pubdate = entity.Pubdate,
Publisher = entity.Publisher,
Edition = entity.Edition,
Impression = entity.Impression,
variate = entity.FinallyNum
};
db.Insert(InEntity);
}
db.Commit();
}


Loading…
Откажи
Сачувај