示例#1
0
        private string getDishSize(HttpContext context)
        {
            int           dish_id  = int.Parse(context.Request.Params["dish_id"]);
            StringBuilder sb       = new StringBuilder();
            DataSet       ds       = new DataSet();
            StringBuilder strWhere = new StringBuilder();

            strWhere.Append(" is_delete != 1");
            strWhere.AppendFormat(" and dish_id = {0}", dish_id);
            WK.BLL.bus_dish_size bll = new WK.BLL.bus_dish_size();
            ds = bll.GetList(strWhere.ToString());
            return(Newtonsoft.Json.JsonConvert.SerializeObject(ds.Tables[0]));
        }