Beispiel #1
0
        public static string GamesInfoXml()
        {
            StringBuilder      sbText    = new StringBuilder("<?xml version='1.0' encoding='UTF-8'?><root>");
            List <ObjectThree> otLObject = GameInfoBLL.GameInfoSelC();

            foreach (ObjectThree otObject in otLObject)
            {
                sbText.AppendFormat("<game name='{0}' abbre='{1}'>", otObject.second, otObject.third.TrimEnd());
                int iGameID = int.Parse(otObject.first);
                List <ObjectFour> ofLObject = ServerBLL.ServerSelByGID(iGameID);
                foreach (ObjectFour ofObject in ofLObject)
                {
                    sbText.AppendFormat("<server id='{0}' abbre='{1}' begintime='{2}'>{3}</server>",
                                        ofObject.first, ofObject.second.TrimEnd(), ofObject.Fourth, ofObject.third);
                }
                sbText.Append("</game>");
            }
            sbText.Append("</root>");
            return(sbText.ToString());
        }
Beispiel #2
0
        public static string GamePay(string sGameAbbre, int iUserID, string sUserName, int iPayPoints, string sPhone, int iGUserID)
        {
            string sReturn = string.Empty;
            string sGame   = GameInfoBLL.GameInfoAbbreSel(sGameAbbre).TrimEnd();

            switch (sGame)
            {
            case "sssg":
                sReturn = sssgGame.sssgPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "sxd":
                sReturn = sxdGame.sxdPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "lj":
                sReturn = ljGame.LJPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "dxz":
                sReturn = dxzGame.dxzPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "djj":
                sReturn = djjGame.djjPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "txj":
                sReturn = txjGame.txjPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "sjsg":
                sReturn = sjsgGame.sjsgPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "tzcq":
                sReturn = tzcqGame.tzcqPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "by":
                sReturn = byGame.byPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "swjt":
                sReturn = swjtGame.swjtPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "gcld":
                sReturn = gcldGame.gcldPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "khbd":
                sReturn = khbdGame.khbdPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "hyjft":
                sReturn = hyjftGame.hyjftPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "nslm":
                sReturn = nslmGame.nslmPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "yjxy":
                sReturn = yjxyGame.yjxyPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "dtgzt":
                sReturn = tgztGame.tgztPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "mhxy":
                sReturn = mhxyGame.mhxyPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "qxz":
                sReturn = qxzGame.qxzPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "qszg":
                sReturn = qszgGame.qszgPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "wwsg":
                sReturn = wwsgGame.wwsgPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "dntg":
                sReturn = dntgGame.dntgPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "jy":
                sReturn = jyGame.jyPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "sskc":
                sReturn = sskcGame.jyPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "ktpd":
                sReturn = ktpdGame.ktpdPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "mhtj":
                sReturn = mhtjGame.mhtjPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "jjp":
                sReturn = jjpGame.jjpPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "sgyjz":
                sReturn = sgyjzGame.sgyjzPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "dtgzter":
                sReturn = tgzt2Game.tgztPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;

            case "zwx":
                sReturn = zwxGame.zwxPay(sGameAbbre, iUserID, sUserName, iPayPoints, sPhone, iGUserID);
                break;
            }
            return(sReturn);
        }
Beispiel #3
0
        public static string ValUserLoginGame(string sGameAbbre, string sUserID)
        {
            string sReturn = string.Empty;
            string sGame   = GameInfoBLL.GameInfoAbbreSel(sGameAbbre).TrimEnd();

            switch (sGame)
            {
            case "sssg":
                sReturn = sssgGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "sxd":
                sReturn = sxdGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "lj":
                sReturn = ljGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "dxz":
                sReturn = dxzGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "djj":
                sReturn = djjGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "txj":
                sReturn = txjGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "tzcq":
                sReturn = tzcqGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "by":
                sReturn = byGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "swjt":
                sReturn = swjtGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "khbd":
                sReturn = khbdGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "hyjft":
                sReturn = hyjftGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "nslm":
                sReturn = nslmGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "yjxy":
                sReturn = yjxyGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "dtgzt":
                sReturn = tgztGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "mhxy":
                sReturn = mhxyGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "qxz":
                sReturn = qxzGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "qszg":
                sReturn = qszgGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "wwsg":
                sReturn = wwsgGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "dntg":
                sReturn = dntgGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "jy":
                sReturn = jyGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "sskc":
                sReturn = sskcGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "ktpd":
                sReturn = ktpdGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "mhtj":
                sReturn = mhtjGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "jjp":
                sReturn = jjpGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "sgyjz":
                sReturn = sgyjzGame.GameisLogin(sUserID, sGameAbbre);
                break;

            case "dtgzter":
                sReturn = tgzt2Game.GameisLogin(sUserID, sGameAbbre);
                break;

            case "zwx":
                sReturn = zwxGame.GameisLogin(sUserID, sGameAbbre);
                break;
            }
            return(sReturn);
        }
Beispiel #4
0
        public static string GameQuickPay(string sGameAbbre, string sUserName, decimal dPirce, string sTranID)
        {
            if (!TransGBLL.TranIDVal(sTranID))
            {
                return("traniderr");
            }
            int iState = TransGBLL.TranIDStateSel(sTranID);

            if (iState == 1)
            {
                return("0");
            }
            else if (iState != 0)
            {
                return(string.Format("state:{0}", iState));
            }
            string sReturn = string.Empty;
            string sGame   = GameInfoBLL.GameInfoAbbreSel(sGameAbbre).TrimEnd();

            switch (sGame)
            {
            case "sssg":
                sReturn = sssgGame.sssgQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "sxd":
                sReturn = sxdGame.sxdQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "lj":
                sReturn = ljGame.LJQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "dxz":
                sReturn = dxzGame.dxzQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "djj":
                sReturn = djjGame.djjQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "txj":
                sReturn = txjGame.txjQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "sjsg":
                sReturn = sjsgGame.sjsgQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "tzcq":
                sReturn = tzcqGame.tzcqQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "by":
                sReturn = byGame.byQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "swjt":
                sReturn = swjtGame.swjtQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "gcld":
                sReturn = gcldGame.gcldQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "khbd":
                sReturn = khbdGame.khbdQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "hyjft":
                sReturn = hyjftGame.hyjftQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "nslm":
                sReturn = nslmGame.nslmQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "yjxy":
                sReturn = yjxyGame.yjxyQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "dtgzt":
                sReturn = tgztGame.tgztQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "mhxy":
                sReturn = mhxyGame.mhxyQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "qxz":
                sReturn = qxzGame.qxzQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "qszg":
                sReturn = qszgGame.qszgQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "wwsg":
                sReturn = wwsgGame.wwsgQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "dntg":
                sReturn = dntgGame.dntgQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "jy":
                sReturn = jyGame.jyQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "sskc":
                sReturn = sskcGame.jyQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "ktpd":
                sReturn = ktpdGame.ktpdQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "mhtj":
                sReturn = mhtjGame.mhtjQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "jjp":
                sReturn = jjpGame.jjpQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "sgyjz":
                sReturn = sgyjzGame.sgyjzQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "dtgzter":
                sReturn = tgzt2Game.tgztQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;

            case "zwx":
                sReturn = zwxGame.zwxQucikPay(sGameAbbre, sUserName, dPirce, sTranID);
                break;
            }
            return(sReturn);
        }