| | |
| | | *ç¨æ·ä¿¡æ¯ãæéãè§è²ç使ç¨UserContext.Currentæä½ |
| | | *Dt_container_size_info_htyService对å¢ãå ãæ¹æ¥ã导å
¥ã导åºãå®¡æ ¸ä¸å¡ä»£ç æ©å±åç
§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.AspNetCore.Http; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Linq.Expressions; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA.Core.BaseProvider; |
| | | using WIDESEA.Core.Extensions; |
| | | using WIDESEA.Core.Extensions.AutofacManager; |
| | | using WIDESEA.Core.Utilities; |
| | | using WIDESEA.Entity.DomainModels; |
| | | using WIDESEA.Services.IRepositories; |
| | | |
| | | namespace WIDESEA.Services.Services |
| | |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | } |
| | | public async Task<WebResponseContent> Get_csize_Data(SaveModel saveModel) |
| | | { |
| | | try |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | string barcode = saveModel.MainData["Bearing_code"].ToString(); |
| | | Dt_container_size_info_hty temp_list = _repository.Find(x => x.csize_barcode == barcode).ToList().LastOrDefault(); |
| | | Dictionary<string, string> data = new Dictionary<string, string>(); |
| | | if (temp_list != null) |
| | | { |
| | | data["csize_four_result"] = temp_list.csize_four_result; |
| | | data["csize_four_3"] = temp_list.csize_four_3; |
| | | data["csize_in_value"] = temp_list.csize_in_value; |
| | | data["csize_in_result"] = temp_list.csize_in_result; |
| | | } |
| | | // 2. è¿åç»æï¼åç°æä»£ç çè¿åæ ¼å¼ä¿æä¸è´ï¼ |
| | | return new WebResponseContent |
| | | { |
| | | Status = true, |
| | | Data = data // ç´æ¥è¿ååæ°æ®å表 |
| | | }; |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | |
| | | throw ; |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |