Beispiel #1
0
        /// <summary>
        /// 二星定位胆
        /// </summary>
        /// <param name="type"></param>
        /// <param name="date"></param>
        /// <returns></returns>
        public JsonResult PostDwdData(int type, string date)
        {
            date = date.Replace("-", "");
            TendencyDwdModel tmDwd = new TendencyDwdModel();

            if (type == 1)
            {
                var lt_TenThousand = XscpMysqlBLL.QueryTendency1(Tendency1Enum.TenThousand, date, 1);  //万位
                var lt_Thousand    = XscpMysqlBLL.QueryTendency1(Tendency1Enum.Thousand, date, 1);     //千位
                if (lt_TenThousand != null && lt_TenThousand.Count > 0)
                {
                    tmDwd = GetTendencyDwdValue(lt_TenThousand[0], lt_Thousand[0]);
                }
                tmDwd.Sno = "前定";
            }
            else
            {
                var lt_Ten = XscpMysqlBLL.QueryTendency1(Tendency1Enum.Ten, date, 1); //十位
                var lt_One = XscpMysqlBLL.QueryTendency1(Tendency1Enum.One, date, 1); //个位
                if (lt_Ten != null && lt_Ten.Count > 0)
                {
                    tmDwd = GetTendencyDwdValue(lt_Ten[0], lt_One[0]);
                }
                tmDwd.Sno = "后定";
            }

            return(Json(tmDwd, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public static TendencyDwdModel GetTendencyDwdValue(TendencyModel tm1, TendencyModel tm2)
        {
            if (tm1 == null || tm2 == null)
            {
                return(null);
            }
            TendencyDwdModel tmResult = new TendencyDwdModel();

            tmResult.Lottery  = tm1.Lottery;
            tmResult.Big      = tm1.Big + "|" + tm2.Big;
            tmResult.Small    = tm1.Small + "|" + tm2.Small;
            tmResult.BigSmall = tm1.Big + "|" + tm2.Small;
            tmResult.SmallBig = tm1.Small + "|" + tm2.Big;
            tmResult.Odd      = tm1.Odd + "|" + tm2.Odd;
            tmResult.Pair     = tm1.Pair + "|" + tm2.Pair;
            tmResult.OddPair  = tm1.Odd + "|" + tm2.Pair;
            tmResult.PairOdd  = tm1.Pair + "|" + tm2.Odd;
            tmResult.Dbl      = "-";
            tmResult.Dtime    = tm1.Dtime;
            return(tmResult);
        }