Exemplo n.º 1
0
 /// <summary>
 /// ��ȡ�û�����
 /// </summary>
 /// <param name="UserID"></param>
 /// <param name="OrderID"></param>
 /// <param name="userOrder"></param>
 /// <returns></returns>
 public bool GetUserOrder(int UserID, int OrderID, out UserOrders userOrder)
 {
     userOrder = new UserOrders(); userOrder.Initialize();
     try
     {
         if (UserID <= 0 || OrderID <= 0 || mapUserOrders == null
             || !mapUserOrders.ContainsKey(OrderID))
             return false;
         if (!mapUserFund.ContainsKey(UserID))
             return false;
         if (mapUserOrders[OrderID].UserID != UserID)
             return false;
         userOrder = mapUserOrders[OrderID];
         return true;
     }
     catch
     {
         return false;
     }
 }