Example #1
0
 public Int32 UpdatePuzzle(Puzzle puzzle)
 {
     _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
     try
     {
         int rs = _admin.UpdatePuzzle(puzzle);
         _admin.Close();
         return(rs);
     }
     catch (Exception ex)
     {
         _admin.CloseCatch(ex, "UpdatePuzzle 更新宝箱礼包信息失败");
         return(0);
     }
 }
Example #2
0
 public Int64 UpdateExchangePacket(ExchangePacket exchangePacket)
 {
     _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
     try
     {
         long rs = _admin.UpdateExchangePacket(exchangePacket);
         _admin.Close();
         return(rs);
     }
     catch (Exception ex)
     {
         _admin.CloseCatch(ex, "UpdateExchangePacket 更新宝箱礼包信息失败");
         return(0);
     }
 }
Example #3
0
 public Int32 SubmitPuzzlePacketRate(int PuzzlePacketTypeID)
 {
     _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
     try
     {
         int rs = _admin.SubmitPuzzlePacketRate(PuzzlePacketTypeID);
         _admin.Close();
         return(rs);
     }
     catch (Exception ex)
     {
         _admin.CloseCatch(ex, "SubmitPuzzlePacketRate 更新宝箱礼包信息失败");
         return(0);
     }
 }
Example #4
0
 public Int32 importCSVtoDB(DataSet ds, string TableName)
 {
     _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
     try
     {
         int rs = _admin.importCSVtoDB(ds, TableName);
         _admin.Close();
         return(rs);
     }
     catch (Exception ex)
     {
         _admin.CloseCatch(ex, "importCSVtoDB导入失败");
         return(-1);
     }
 }
Example #5
0
 public Int64 UpdateUserPuzzleNode(UserPuzzleNode userPuzzleNode)
 {
     _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
     try
     {
         long rs = _admin.UpdateUserPuzzleNode(userPuzzleNode);
         _admin.Close();
         return(rs);
     }
     catch (Exception ex)
     {
         _admin.CloseCatch(ex, "UpdateUserPuzzleNode 更新宝箱礼包信息失败");
         return(0);
     }
 }
Example #6
0
        public Puzzle GetPuzzle(Puzzle searchPuzzle)
        {
            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            Puzzle lists = new Puzzle();

            try
            {
                lists = _admin.GetPuzzle(searchPuzzle);
                _admin.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetPuzzle 获取拼图列表失败");
                return(lists);
            }
        }
Example #7
0
        public ExchangePacket GetExchangePacket(ExchangePacket searchExchangePacket)
        {
            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            ExchangePacket lists = new ExchangePacket();

            try
            {
                lists = _admin.GetExchangePacket(searchExchangePacket);
                _admin.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetExchangePacket 获取拼图列表失败");
                return(lists);
            }
        }
Example #8
0
        public List <ExchangePacketReceive> GetExchangePacketReceiveList(ref DataPage dp, ExchangePacketReceive searchExchangePacketReceive)
        {
            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            List <ExchangePacketReceive> lists = new List <ExchangePacketReceive>();

            try
            {
                lists = _admin.GetExchangePacketReceiveList(ref dp, searchExchangePacketReceive);
                _admin.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetExchangePacketReceiveList 获取拼图列表失败");
                return(lists);
            }
        }
Example #9
0
        public List <PiecesPacketDetails> GetPiecesPacketDetailsList(ref DataPage dp, PiecesPacketDetails searchPiecesPacketDetails)
        {
            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            List <PiecesPacketDetails> lists = new List <PiecesPacketDetails>();

            try
            {
                lists = _admin.GetPiecesPacketDetailsList(ref dp, searchPiecesPacketDetails);
                _admin.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetPiecesPacketDetailsList 获取拼图列表失败");
                return(lists);
            }
        }
Example #10
0
        public List <PacketQueueLog> GetPacketQueueLogList(ref DataPage dp, PacketQueueLog searchPacketQueueLog)
        {
            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            List <PacketQueueLog> lists = new List <PacketQueueLog>();

            try
            {
                lists = _admin.GetPacketQueueLogList(ref dp, searchPacketQueueLog);
                _admin.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetPacketQueueLogList 获取拼图列表失败");
                return(lists);
            }
        }
Example #11
0
        public List <UserPiecesTotal> GetUserPiecesTotalList(ref DataPage dp, UserPiecesTotal searchUserPiecesTotal)
        {
            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            List <UserPiecesTotal> lists = new List <UserPiecesTotal>();

            try
            {
                lists = _admin.GetUserPiecesTotalList(ref dp, searchUserPiecesTotal);
                _admin.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetUserPiecesTotalList 获取拼图列表失败");
                return(lists);
            }
        }
Example #12
0
        public UserPuzzleNode GetUserPuzzleNode(UserPuzzleNode searchUserPuzzleNode)
        {
            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            UserPuzzleNode lists = new UserPuzzleNode();

            try
            {
                lists = _admin.GetUserPuzzleNode(searchUserPuzzleNode);
                _admin.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetUserPuzzleNode 获取拼图列表失败");
                return(lists);
            }
        }
Example #13
0
        public List <Puzzle> GetPuzzleList(ref DataPage dp, Puzzle searchPuzzle)
        {
            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            List <Puzzle> lists = new List <Puzzle>();

            try
            {
                lists = _admin.GetPuzzleList(ref dp, searchPuzzle);
                _admin.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetPuzzleList 获取拼图列表失败");
                return(lists);
            }
        }
Example #14
0
        public List <Wallet> GetWalletList(ref DataPage dp, Wallet searchWallet)
        {
            List <Wallet> list = new List <Wallet>();

            _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
            try
            {
                list = _admin.GetWalletList(ref dp, searchWallet);
                _admin.Close();
                return(list);
            }
            catch (Exception ex)
            {
                _admin.CloseCatch(ex, "GetWalletList 失败");
                return(list);
            }
        }
Example #15
0
 public long AddWallet(Wallet wallet)
 {
     _admin = new PuzzleEventAdminService.PuzzleEventAdminServiceClient();
     return(LogBLLV2.CallWCF.InvokeAndClose(_admin, a => a.AddWallet(wallet)));
 }