Esempio n. 1
0
    public string GetLottery(long SiteID, string ValidCode)
    {
        if (!CheckValidCode(ValidCode))
        {
            return("");
        }

        string UseLotteryList = new Sites()[SiteID].UseLotteryList;

        DataTable dt = new DAL.Views.V_SchemeCount().Open("*", "[ID] in (select [ID] from T_Lotteries where [ID] in (" + UseLotteryList + ") and PrintOutType = 0)", "[Order]");

        if (dt == null)
        {
            return("");
        }

        DataSet ds = new DataSet();

        dt.TableName = "Lottery";
        ds.Tables.Add(dt);

        return(ds.GetXml());
    }
Esempio n. 2
0
    public string GetLottery(long SiteID, string ValidCode)
    {
        if (!CheckValidCode(ValidCode))
        {
            return "";
        }

        string UseLotteryList = new Sites()[SiteID].UseLotteryList;

        DataTable dt = new DAL.Views.V_SchemeCount().Open("*", "[ID] in (select [ID] from T_Lotteries where [ID] in (" + UseLotteryList + ") and PrintOutType = 0)", "[Order]");

        if (dt == null)
        {
            return "";
        }

        DataSet ds = new DataSet();
        dt.TableName = "Lottery";
        ds.Tables.Add(dt);

        return ds.GetXml();
    }