Пример #1
0
        public List<Model.VO.PkgItemVO> GetItemsByPkgID(int pkgID)
        {
            PkgItemsData pkgItemsData = new PkgItemsData();
            List<PkgItemVO> pkgItemVOList = new List<PkgItemVO>();

            DataSet ds = pkgItemsData.GetItemsByPkgID(pkgID);

            List<PackageItemMappingPO> pkgItemMappingPOList = ds.GetEntity<List<PackageItemMappingPO>>();
            if(pkgItemMappingPOList!=null)
            pkgItemMappingPOList.ForEach(i =>
            {
                pkgItemVOList.Add(Mapper.Map<PackageItemMappingPO, PkgItemVO>(i));
            });

            return pkgItemVOList;
        }
Пример #2
0
 public void DelPkgItem(int id)
 {
     PkgItemsData pkgItemsData = new PkgItemsData();
     pkgItemsData.DelPkgItem(id);
 }
Пример #3
0
 public void EditPkgItem(Model.VO.PkgItemVO pkgItem)
 {
     PkgItemsData pkgItemsData = new PkgItemsData();
     pkgItemsData.EditPkgItem(Mapper.Map<PkgItemVO, PackageItemMappingPO>(pkgItem));
 }
Пример #4
0
 public void AddPkgItems(List<Model.VO.PkgItemVO> list)
 {
     PkgItemsData pkgItemsData = new PkgItemsData();
     pkgItemsData.AddPkgItems(Mapper.Map<List<PkgItemVO>, List<PackageItemMappingPO>>(list));
 }