Esempio n. 1
0
        public GameWinNumber_Info QueryWinNumber(string issuseNumber)
        {
            var manager = new HC1_GameWinNumberManager();
            var entity  = manager.QueryWinNumber(issuseNumber);

            if (entity == null)
            {
                return(new GameWinNumber_Info());
            }
            var info = new GameWinNumber_Info();

            ObjectConvert.ConverEntityToInfo <HC1_GameWinNumber, GameWinNumber_Info>(entity, ref info);
            return(info);
        }
Esempio n. 2
0
        public void Add_GameWinNumber(string issuseNumber, string winNumber)
        {
            new KJGameIssuseBusiness().IssusePrize(this.CurrentGameCode, issuseNumber, winNumber);
            var manager = new HC1_GameWinNumberManager();
            var exist   = manager.QueryWinNumber(issuseNumber);

            if (exist != null)
            {
                return;
            }

            manager.AddHC1_GameWinNumber(new HC1_GameWinNumber
            {
                GameCode     = "HC1",
                IssuseNumber = issuseNumber,
                WinNumber    = winNumber,
                CreateTime   = DateTime.Now,
            });
        }