public override bool Equals(object obj)
 {
     if (obj == null) return false;
     if (obj == this) return true;
     var o = obj as DataCollectitem;
     return o != null && Itemid.Equals(o.Itemid) && Count.Equals(o.Count);
 }
示例#2
0
 protected void drop()
 {
     JumbotOA.BLL.COMDLL com = new JumbotOA.BLL.COMDLL();
     Itemid.DataSource     = com.COM_Select("OA_ItemTB", "typeid", "parentid", "1", "0", 8);
     Itemid.DataTextField  = "titlename";
     Itemid.DataValueField = "Id";
     Itemid.DataBind();
 }
示例#3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (obj == this)
            {
                return(true);
            }
            var o = obj as DataLootitem;

            return(o != null && Lootid.Equals(o.Lootid) && Itemid.Equals(o.Itemid));
        }
 public override int GetHashCode()
 {
     return Itemid.GetHashCode() + Count.GetHashCode();
 }
示例#5
0
        }                                         // 数量上限

        public override int GetHashCode()
        {
            return(Lootid.GetHashCode() + Itemid.GetHashCode());
        }