Ejemplo n.º 1
0
        /// <summary>등록상품 뷰 모델 Convert DataTable -> BmItemVw</summary>
        private List<BmItemVw> ConvertToBmVwItemMgmt(DataTable dt)
        {
            List<BmItemVw> bmItemVwList = new List<BmItemVw>();

            foreach (DataRow dr in dt.Rows)
            {
                BmItemVw data = new BmItemVw();

                data.Seq = (int)dr["Seq"];
                data.ItemId = dr["ItemId"].ToString();
                data.ItemProductSeq = (int)dr["ItemProductSeq"];
                data.ItemProductId = dr["ItemProductId"].ToString();
                data.ItemProductName = dr["ItemProductName"].ToString();
                data.CategorySeq = (int)dr["CategorySeq"];
                data.ItemName = dr["ItemName"].ToString();
                data.Descript = dr["Descript"].ToString();
                data.State = (int)dr["State"];
                data.Price = Convert.ToDouble(dr["Price"].ToString());
                data.TotalQuantity = (int)dr["TotalQuantity"];
                data.SalesCount = (int)dr["SalesCount"];
                data.Registrant = dr["Registrant"].ToString();
                data.RegDt = (DateTime)dr["RegDt"];
                data.Modifyer = dr["Modifyer"].ToString();
                data.ModifyDt = string.IsNullOrEmpty(dr["ModifyDt"].ToString()) ? null : (DateTime?)dr["ModifyDt"];

                bmItemVwList.Add(data);
            }

            return bmItemVwList;
        }
Ejemplo n.º 2
0
 public BmItemVwPagingRq()
 {
     Item = new BmItemVw();
     Paging = new BmPaging();
 }