Ejemplo n.º 1
0
 public Entity.Items GetSingleItem(int ItemID)
 {
     DataRowView drv = helper.GetTableValue("select * from Items where IID=" + ItemID + "");
     Entity.Items item = new Entity.Items();
     item.setItemID(ItemID);
     item.setProductID(int.Parse(drv["ProductID"].ToString()));
     item.setBrandID( int.Parse(drv["BrandID"].ToString()));
     item.setName(drv["Name"].ToString());
     item.setAgoraPrice(drv["AgoraPrice"].ToString());
     item.setSeckillPrice(drv["SeckillPrice"].ToString());
     item.setMemberPrice(drv["MemberPrice"].ToString());
     item.setArea(drv["Area"].ToString());
     item.setDetails(drv["Details"].ToString());
     item.setVipPrice(drv["VipPrice"].ToString());
     item.setDays(drv["Days"].ToString());
     item.setHours(drv["Hours"].ToString());
     item.setMinutes(drv["Minutes"].ToString());
     item.setSeconds(drv["Seconds"].ToString());
     item.setIsSecondKill(drv["IsSecondKill"].ToString()); 
     return item;  
 }
Ejemplo n.º 2
0
        public Entity.Items GetSingleItem(int ItemID)
        {
            DataRowView drv = helper.GetTableValue("select * from Items where IID=" + ItemID + "");

            Entity.Items item = new Entity.Items();
            item.setItemID(ItemID);
            item.setProductID(int.Parse(drv["ProductID"].ToString()));
            item.setBrandID(int.Parse(drv["BrandID"].ToString()));
            item.setName(drv["Name"].ToString());
            item.setAgoraPrice(drv["AgoraPrice"].ToString());
            item.setSeckillPrice(drv["SeckillPrice"].ToString());
            item.setMemberPrice(drv["MemberPrice"].ToString());
            item.setArea(drv["Area"].ToString());
            item.setDetails(drv["Details"].ToString());
            item.setVipPrice(drv["VipPrice"].ToString());
            item.setDays(drv["Days"].ToString());
            item.setHours(drv["Hours"].ToString());
            item.setMinutes(drv["Minutes"].ToString());
            item.setSeconds(drv["Seconds"].ToString());
            item.setIsSecondKill(drv["IsSecondKill"].ToString());
            return(item);
        }