Пример #1
0
        //C
        public IList <GoodsListVO> GetGoodsList
        (
            string AuthKey,
            string serviceURL,
            int page,
            int rowCount,
            string good_name,
            string good_subName,
            string good_NickName,
            string good_maker
        )
        {
            if (!securityManager.CheckSecurityToken(AuthKey))
            {
                throw new Exception("인증된 사용자가 아닙니다");
            }
            IList <GoodsListVO> GoodsVOList = new List <GoodsListVO>();
            //쿼리 작성
            string Query = new GoodsQuery().SelectGoodsList(page, rowCount, good_name, good_subName, good_NickName, good_maker);
            //데이터 구하기
            DataTable dt = DBController.getInstance().GetData(serviceURL, Query);

            //구한 데이터 가공하기
            foreach (DataRow dr in dt.Rows)
            {
                GoodsListVO goodsVO = new GoodsListVO();
                foreach (var prop in typeof(GoodsListVO).GetProperties())
                {
                    if (prop.Name == "Item")
                    {
                        continue;
                    }
                    goodsVO[prop.Name] = dr[prop.Name];
                }
                GoodsVOList.Add(goodsVO);
            }
            return(GoodsVOList);
        }
Пример #2
0
 public GoodsListProxyVO()
 {
     this.GoodsListVO = new GoodsListVO();
 }