示例#1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string ID = context.Request.Params["ID"];
            string type = context.Request.Params["type"];
            bool b = false;
            if (type == "st")//服务种类
            {
                ServType st = new ServType();
                st.ServTypeID = int.Parse(ID);
                b = ServTypeBLL.Remove(st);
            }
            else//服务区域
            {
                ServArea sa = new ServArea();
                sa.ServAreaID = int.Parse(ID);
                b = ServAreaBLL.Remove(sa);
            }

            context.Response.Write(b.ToString().ToLower());
        }
示例#2
0
 /// <summary>
 /// 是否已存在该服务种类
 /// </summary>
 /// <param name="area"></param>
 /// <returns></returns>
 public static List<ServType> GetIsExistType(ServType type)
 {
     return Repository.Business.ServTypeDAL.GetIsExistType(type);
 }