Beispiel #1
0
 public static void Add(PrintRecordItem pst)
 {
     if (_ht.Contains(pst.GetHashKey()))
     {
         PrintRecordItem pri = (PrintRecordItem)_ht[pst.GetHashKey()];
         //是否在此更新数据
     }
     else
     {
         _ht.Add(pst.GetHashKey(), pst);
     }
 }
Beispiel #2
0
 public static PrintRecordItem Query(PrintRecordItem pst)
 {
     if (_ht.Contains(pst.GetHashKey()))
     {
         Object o = _ht[pst.GetHashKey()];
         if (o.GetType() == typeof(PrintRecordItem))
         {
             return((PrintRecordItem)o);
         }
         else
         {
             return(null);
         }
     }
     else
     {
         return(null);
     }
 }
Beispiel #3
0
 public static void  Remove(PrintRecordItem pst)
 {
     _ht.Remove(pst.GetHashKey());
 }