コード例 #1
0
        public Entity.Items getSeckillItem(int id)
        {
            Entity.Items i   = new Entity.Items();
            DataRowView  drv = helper.GetTableValue("select  IID,ProductID,AgoraPrice,Days,Hours,Minutes,Seconds from Items,Images Where IID=" + id + "");

            i.setDays(drv["Days"].ToString());
            i.setHours(drv["Hours"].ToString());
            i.setMinutes(drv["Minutes"].ToString());
            i.setSeconds(drv["Seconds"].ToString());
            return(i);
        }
コード例 #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;  
 }
コード例 #3
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);
        }
コード例 #4
0
 public Entity.Items getSeckillItem(int id) {
     Entity.Items i= new Entity.Items();
     DataRowView drv = helper.GetTableValue("select  IID,ProductID,AgoraPrice,Days,Hours,Minutes,Seconds from Items,Images Where IID=" + id + "");
     i.setDays(drv["Days"].ToString());
     i.setHours(drv["Hours"].ToString());
     i.setMinutes(drv["Minutes"].ToString());
     i.setSeconds(drv["Seconds"].ToString());
     return i;
 }