| | |
| | | *ç¨æ·ä¿¡æ¯ãæéãè§è²ç使ç¨UserContext.Currentæä½ |
| | | *Dt_materielinfoService对å¢ãå ãæ¹æ¥ã导å
¥ã导åºãå®¡æ ¸ä¸å¡ä»£ç æ©å±åç
§ServiceFunFilter |
| | | */ |
| | | using WIDESEA.Core.BaseProvider; |
| | | using WIDESEA.Core.Extensions.AutofacManager; |
| | | using WIDESEA.Entity.DomainModels; |
| | | using System.Linq; |
| | | using WIDESEA.Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | using WIDESEA.Core.Extensions; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Google.Protobuf.WellKnownTypes; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA.Services.IRepositories; |
| | | using System; |
| | | using WIDESEA.Core.ManageUser; |
| | | using WIDESEA.Core.Enums; |
| | | using WIDESEA.Core.Services; |
| | | using System.Threading.Tasks; |
| | | using Newtonsoft.Json; |
| | | using System.Collections.Generic; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.Extensions.Caching.Memory; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Linq.Expressions; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA.Core.BaseProvider; |
| | | using WIDESEA.Core.Enums; |
| | | using WIDESEA.Core.Extensions; |
| | | using WIDESEA.Core.Extensions.AutofacManager; |
| | | using WIDESEA.Core.Filters; |
| | | using WIDESEA.Core.ManageUser; |
| | | using WIDESEA.Core.Services; |
| | | using WIDESEA.Core.Utilities; |
| | | using WIDESEA.Entity.DomainModels; |
| | | using WIDESEA.Services.IRepositories; |
| | | using WIDESEA.Services.Repositories; |
| | | using WIDESEA_Common.LogEnum; |
| | | |
| | |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | |
| | | // éåä¸ä¸ªå¯¼å
¥çåè½ |
| | | |
| | | ///// <summary> |
| | | ///// 导å
¥è¡¨æ°æ®Excel |
| | | ///// </summary> |
| | | ///// <param name="fileInput"></param> |
| | | ///// <returns></returns> |
| | | //[HttpPost, Route("Import")] |
| | | ////[ApiExplorerSettings(IgnoreApi = true)] |
| | | //public override WebResponseContent Import(List<IFormFile> fileInput) |
| | | //{ |
| | | // WebResponseContent content = new WebResponseContent(); |
| | | // return content.OK("æå"); |
| | | //} |
| | | |
| | | public override WebResponseContent Add(SaveModel saveDataModel) |
| | | { |
| | |
| | | saveModel.MainData["EmptyPallet_modifier"] = UserContext.Current.UserTrueName; |
| | | saveModel.MainData["EmptyPallet_modifiertime"] = DateTime.Now; |
| | | content = base.Update(saveModel); |
| | | //LogRecord.WriteLog((int)LogEnum.OutBound, $"{UserContext.Current.UserTrueName}è½´æ¿éé
åºåºï¼åæ°:{saveModel.Serialize()},è¿ååæ°:{content.Serialize()}"); |
| | | } |
| | | finally |
| | | { |
| | | if (content.Status) |
| | | { |
| | | content.OK("ä¿®æ¹æçä¿¡æ¯æå."); |
| | | Logger.AddLog(LoggerType.Add, saveModel, $"{DateTime.Now}ä¿®æ¹æç管ççä¿¡æ¯è®°å½-æå", content); |
| | | } |
| | | else |
| | | { |
| | | content.Error("ä¿®æ¹æçä¿¡æ¯å¤±è´¥:" + content.Message); |
| | | Logger.AddLog(LoggerType.Add, saveModel, $"{DateTime.Now}ä¿®æ¹æç管ççä¿¡æ¯è®°å½-失败", content); |
| | | } |
| | | } |
| | | return content; |
| | | } |