public DataSet GetDataSet(int APPID, int FUNCID, string Params) { if (APPID == 0) { throw new ArgumentException("必须指定APPID"); } if (FUNCID == 0) { throw new ArgumentException("必须指定FUNCID"); } IList <SqlParameter> Parameters = PrepareParameters(Params); PetShop.BLL.GeneralQuery gen = new PetShop.BLL.GeneralQuery(); return(gen.GetDataSet(APPID, FUNCID, Parameters.ToArray())); }
public string GetString(int APPID, int FUNCID, string Params) { if (APPID == 0) { throw new ArgumentException("必须指定APPID"); } if (FUNCID == 0) { throw new ArgumentException("必须指定FUNCID"); } IList <SqlParameter> Parameters = PrepareParameters(Params); PetShop.BLL.GeneralQuery gen = new PetShop.BLL.GeneralQuery(); string strRet = gen.GetString(APPID, FUNCID, Parameters.ToArray()); //Context.Response.Write(strRet); return(strRet); }