| | |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_WCS.IRepositories; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_WCS.JobsPart.Common; |
| | | using WIDESEA_Core.ManageUser; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | } |
| | | public WebResponseContent FinishWorkOrder(SaveModel model) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | VOLContext context = new VOLContext(); |
| | | try |
| | | { |
| | | string compeletor = UserContext.Current.UserName; |
| | | foreach (var Key in model.DelKeys) |
| | | { |
| | | var mes_head = _repository.Find(x => x.mes_id.ToString() == Key.ToString()).FirstOrDefault(); |
| | | if (mes_head != null) |
| | | { |
| | | AutoUpdateWork.AddHtyMesWork(mes_head, _repository, compeletor, "æå¨å®æ"); |
| | | } |
| | | } |
| | | content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | } |
| | | return content; |
| | | } |
| | | } |
| | | } |