| | |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly IVV_ContainerInfo_EmptyPalletRepository _repository;//è®¿é®æ°æ®åº |
| | | |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public VV_ContainerInfo_EmptyPalletService( |
| | | IVV_ContainerInfo_EmptyPalletRepository dbRepository, |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | public override WebResponseContent Update(SaveModel saveModel) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | IDt_container_headRepository detailRepository = Dt_container_headRepository.Instance; |
| | | Guid detID = saveModel.MainData["containerhead_id"].ToGuid(); |
| | | string testResult = saveModel.MainData["containerdtl_text1"].ToString(); |
| | | Dt_container_head container_Detail = detailRepository.FindFirst(x => x.containerhead_id == detID); |
| | | container_Detail.containerhead_palletweight = testResult; |
| | | detailRepository.Update(container_Detail, true); |
| | | return content.OK("ä¿®æ¹æå"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error($"ä¿®æ¹å¤±è´¥ï¼åå ï¼{ex.Message}"); |
| | | throw; |
| | | } |
| | | } |
| | | |
| | | |
| | | public override WebResponseContent Del(object[] keys, bool delList = true) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |