WMS
dengjunjie
2024-10-25 bd33ae847fc0b0e1a07a21a57fb0a0d13a38c1c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using Castle.Components.DictionaryAdapter.Xml;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.Enums;
using WIDESEA_IBasicRepository;
using WIDESEA_Model.Models;
 
namespace WIDESEA_BasicRepository
{
    public class MaterielInfoRepository : RepositoryBase<Dt_MaterielInfo>, IMaterielInfoRepository
    {
        public MaterielInfoRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage)
        {
        }
        WebResponseContent content = new WebResponseContent().OK();
        public WebResponseContent Getmaterianame(SaveModel saveModel)
        {
            try
            {
                var material = QueryData(x => x.MaterielCode == saveModel.Extra.ToString()).FirstOrDefault();
                content.Data = material;
            }
            catch (Exception ex)
            {
                content.Error(ex.Message);
            }
            return content;
        }
    }
}