Ejemplo n.º 1
0
        public void DeleteIssuseData(string gameCode, string[] issuseArray)
        {
            if (issuseArray.Length <= 0)
            {
                return;
            }
            //开启事务
            LottertDataDB.Begin();
            var manager = new KJGameIssuseManager();
            var count   = 1;

            if (issuseArray.Length >= 500)
            {
                count = issuseArray.Length / 500;
                if (issuseArray.Length % 500 > 0)
                {
                    count++;
                }
            }
            for (int i = 0; i < count; i++)
            {
                var array = issuseArray.Skip(500 * i).Take(500).ToArray();
                manager.DeleteIssuseData(gameCode, array);
            }
            LottertDataDB.Commit();
        }
Ejemplo n.º 2
0
        public void ImportWinNumber(string issuseNumber, string winNumber)
        {
            if (string.IsNullOrEmpty(issuseNumber))
            {
                return;
            }
            if (string.IsNullOrEmpty(winNumber))
            {
                return;
            }

            //var msg = string.Empty;
            //AnalyzerFactory.GetWinNumberAnalyzer(this.CurrentGameCode).CheckWinNumber(winNumber, out msg);
            //if (!string.IsNullOrEmpty(msg))
            //    throw new Exception(msg);


            //开启事务
            using (LottertDataDB)
            {
                LottertDataDB.Begin();
                this.ClearGameChartCache("QueryHC1_JBZS");
                this.ClearGameChartCache("QueryHC1_SXJJFWZS");
                this.ClearNewWinNumberCache("QueryHC1_GameWinNumber");

                AddHC1_SXJJFWZS(issuseNumber, winNumber);
                AddHC1_JBZS(issuseNumber, winNumber);
                Add_GameWinNumber(issuseNumber, winNumber);

                LottertDataDB.Commit();
            }
        }
Ejemplo n.º 3
0
        public void ImportWinNumber(string issuseNumber, string winNumber)
        {
            if (string.IsNullOrEmpty(issuseNumber))
            {
                return;
            }
            if (string.IsNullOrEmpty(winNumber))
            {
                return;
            }


            var msg = string.Empty;

            AnalyzerFactory.GetWinNumberAnalyzer(this.CurrentGameCode).CheckWinNumber(winNumber, out msg);
            if (!string.IsNullOrEmpty(msg))
            {
                throw new Exception(msg);
            }

            //开启事务
            using (LottertDataDB)
            {
                LottertDataDB.Begin();

                this.ClearGameChartCache("QueryDLT_JiBenZouSi_Info");
                this.ClearGameChartCache("QueryDLT_DX_Info");
                this.ClearGameChartCache("QueryDLT_JiOu_Info");
                this.ClearGameChartCache("QueryDLT_ZhiHe_Info");
                this.ClearGameChartCache("QueryDLT_HeZhi_Info");
                this.ClearGameChartCache("QueryDLT_Chu3_Info");
                this.ClearGameChartCache("QueryDLT_KuaDu_SW_Info");
                this.ClearGameChartCache("QueryDLT_KuaDu_12_Info");
                this.ClearGameChartCache("QueryDLT_KuaDu_23_Info");
                this.ClearGameChartCache("QueryDLT_KuaDu_34_Info");
                this.ClearGameChartCache("QueryDLT_KuaDu_45_Info");
                this.ClearNewWinNumberCache("QueryDLT_GameWinNumber");

                Import_JBZS(issuseNumber, winNumber);
                Import_DX(issuseNumber, winNumber);
                Import_JiOu(issuseNumber, winNumber);
                Import_ZhiHe(issuseNumber, winNumber);
                Import_DLT_HeZhi(issuseNumber, winNumber);
                Import_DLT_Chu3(issuseNumber, winNumber);
                Import_DLT_KuaDu_SW(issuseNumber, winNumber);
                Import_DLT_KuaDu_12(issuseNumber, winNumber);
                Import_DLT_KuaDu_23(issuseNumber, winNumber);
                Import_DLT_KuaDu_34(issuseNumber, winNumber);
                Import_DLT_KuaDu_45(issuseNumber, winNumber);
                Add_GameWinNumber(issuseNumber, winNumber);

                LottertDataDB.Commit();
            }
        }
Ejemplo n.º 4
0
        public void ImportWinNumber(string issuseNumber, string winNumber)
        {
            if (string.IsNullOrEmpty(issuseNumber))
            {
                return;
            }
            if (string.IsNullOrEmpty(winNumber))
            {
                return;
            }

            var msg = string.Empty;

            AnalyzerFactory.GetWinNumberAnalyzer(this.CurrentGameCode).CheckWinNumber(winNumber, out msg);
            if (!string.IsNullOrEmpty(msg))
            {
                throw new Exception(msg);
            }

            //开启事务
            using (LottertDataDB)
            {
                LottertDataDB.Begin();

                this.ClearGameChartCache("QuerySDKLPK3_JBZS_Info");
                this.ClearGameChartCache("QuerySDKLPK3_ZHXZS_Info");
                this.ClearGameChartCache("QuerySDKLPK3_HSZS_Info");
                this.ClearGameChartCache("QuerySDKLPK3_DXZS_Info");
                this.ClearGameChartCache("QuerySDKLPK3_JOZS_Info");
                this.ClearGameChartCache("QuerySDKLPK3_ZHZS_Info");
                this.ClearGameChartCache("QuerySDKLPK3_C3YZS_Info");
                this.ClearGameChartCache("QuerySDKLPK3_HZZS_Info");
                this.ClearGameChartCache("QuerySDKLPK3_LXZS_Info");
                this.ClearNewWinNumberCache("QuerySDKLPK3_GameWinNumber");

                Import_JBZS(issuseNumber, winNumber);
                Import_ZHXZS(issuseNumber, winNumber);
                Import_HSZS(issuseNumber, winNumber);
                Import_DXZS(issuseNumber, winNumber);
                Import_JOZS(issuseNumber, winNumber);
                Import_ZHZS(issuseNumber, winNumber);
                Import_C3YZS(issuseNumber, winNumber);
                Import_HZZS(issuseNumber, winNumber);
                Import_LXZS(issuseNumber, winNumber);
                Add_GameWinNumber(issuseNumber, winNumber);

                LottertDataDB.Commit();
            }
        }
Ejemplo n.º 5
0
        public void ImportWinNumber(string issuseNumber, string winNumber)
        {
            if (string.IsNullOrEmpty(issuseNumber))
            {
                return;
            }
            if (string.IsNullOrEmpty(winNumber))
            {
                return;
            }

            var msg = string.Empty;

            AnalyzerFactory.AnalyzerFactory.GetWinNumberAnalyzer(this.CurrentGameCode).CheckWinNumber(winNumber, out msg);
            if (!string.IsNullOrEmpty(msg))
            {
                throw new Exception(msg);
            }

            //开启事务
            using (LottertDataDB)
            {
                LottertDataDB.Begin();

                this.ClearGameChartCache("QuerySDQYH_RXJO_Info");
                this.ClearGameChartCache("QuerySDQYH_RXZH_Info");
                this.ClearGameChartCache("QuerySDQYH_RXDX_Info");
                this.ClearGameChartCache("QuerySDQYH_Chu3_Info");
                this.ClearGameChartCache("QuerySDQYH_SX1_Info");
                this.ClearGameChartCache("QuerySDQYH_SX2_Info");
                this.ClearGameChartCache("QuerySDQYH_SX3_Info");
                this.ClearNewWinNumberCache("QuerySDQYH_GameWinNumber");

                Import_RXJO(issuseNumber, winNumber);
                Import_RXZH(issuseNumber, winNumber);
                Import_RXDX(issuseNumber, winNumber);
                Import_RXChu3(issuseNumber, winNumber);
                Import_SX1(issuseNumber, winNumber);
                Import_SX2(issuseNumber, winNumber);
                Import_SX3(issuseNumber, winNumber);
                Add_GameWinNumber(issuseNumber, winNumber);

                LottertDataDB.Commit();
            }
        }
Ejemplo n.º 6
0
        public void ImportWinNumber(string issuseNumber, string winNumber)
        {
            if (string.IsNullOrEmpty(issuseNumber))
            {
                return;
            }
            if (string.IsNullOrEmpty(winNumber))
            {
                return;
            }

            var msg = string.Empty;

            AnalyzerFactory.GetWinNumberAnalyzer(this.CurrentGameCode).CheckWinNumber(winNumber, out msg);
            if (!string.IsNullOrEmpty(msg))
            {
                throw new Exception(msg);
            }

            //开启事务
            using (LottertDataDB)
            {
                LottertDataDB.Begin();

                this.ClearGameChartCache("QueryPL5_JBZS");
                this.ClearGameChartCache("QueryPL5_DX");
                this.ClearGameChartCache("QueryPL5_JO");
                this.ClearGameChartCache("QueryPL5_ZH");
                this.ClearGameChartCache("QueryPL5_Chu3");
                this.ClearGameChartCache("QueryPL5_HZ");
                this.ClearNewWinNumberCache("QueryPL5_GameWinNumber");

                Import_JBZS(issuseNumber, winNumber);
                Import_DX(issuseNumber, winNumber);
                Import_JO(issuseNumber, winNumber);
                Import_ZH(issuseNumber, winNumber);
                Import_Chu3(issuseNumber, winNumber);
                Import_HZ(issuseNumber, winNumber);
                Add_GameWinNumber(issuseNumber, winNumber);

                LottertDataDB.Commit();
            }
        }