Admin
7 小时以前 1cd9280bbecf557f8978ad3839f14827ff9f4d34
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ContainerInfoEmptyPallet/Partial/VV_ContainerInfo_EmptyPalletService.cs
@@ -36,6 +36,7 @@
        private readonly IHttpContextAccessor _httpContextAccessor;
        private readonly IVV_ContainerInfo_EmptyPalletRepository _repository;//访问数据库
        [ActivatorUtilitiesConstructor]
        public VV_ContainerInfo_EmptyPalletService(
            IVV_ContainerInfo_EmptyPalletRepository dbRepository,
@@ -184,6 +185,28 @@
        }
        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();