Ver código fonte

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

临城职教中职
ndbs 2 anos atrás
pai
commit
ac769d2609
2 arquivos alterados com 19 adições e 1 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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();
}


Carregando…
Cancelar
Salvar