| | |
| | | using System.Security.Cryptography; |
| | | |
| | | namespace HStation.Service |
| | | namespace HStation.Service |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | /// <summary> |
| | | /// 插入拓展 |
| | | /// </summary> |
| | | public long InsertEx(Model.PumpMain main, Model.PumpGroupAndMainMap map, Model.PumpPartMain part, List<Model.PumpPropContent> content, Model.PumpMainAndPartMap partmap) |
| | | public long InsertEx(Model.PumpMain main, Model.PumpGroupAndMainMap map) |
| | | { |
| | | if (main == null) |
| | | { |
| | |
| | | var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMain>(); |
| | | var mainEntity = Model2Entity(main); |
| | | var groupMapEntity = PumpGroupAndMainMap.Model2Entity(map); |
| | | var partEntity = PumpPartMain.Model2Entity(part); |
| | | var contentEntity = PumpPropContent.Model2Entities(content); |
| | | var partmapEntity = PumpMainAndPartMap.Model2Entity(partmap); |
| | | var id = dal.InsertsEx(mainEntity, groupMapEntity, partEntity, contentEntity, partmapEntity); |
| | | var id = dal.InsertsEx(mainEntity, groupMapEntity); |
| | | if (id > 0) |
| | | { |
| | | UpdateCache(id); |
| | | PumpGroupAndMainMap.UpdateCacheByMainID(id); |
| | | // PumpPartMain.Entity2Model |
| | | } |
| | | return id; |
| | | } |