Exemple #1
0
        /// <summary>
        /// 删除团队
        /// </summary>
        private void Delete()
        {
            if (!IsGrantDelete)
            {
                Response.Clear();
                Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的帐号没有权限执行该操作!'}]");
                Response.End();
            }
            string TourID = Utils.GetQueryStringValue("TourID").Trim(',');

            if (!string.IsNullOrEmpty(TourID))
            {
                EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
                bool isTrue = Ibll.DeleteByVirtual(TourID);
                Ibll = null;
                if (isTrue)
                {
                    Response.Clear();
                    Response.Write("[{isSuccess:true,ErrorMessage:'操作成功!'}]");
                    Response.End();
                }
                else
                {
                    Response.Clear();
                    Response.Write("[{isSuccess:false,ErrorMessage:'操作失败!'}]");
                    Response.End();
                }
            }
        }
Exemple #2
0
 /// <summary>
 /// 出发子团队删除
 /// </summary>
 private void Delete()
 {
     //出发团队删除
     if (Request.QueryString["TourID"] != null && !string.IsNullOrEmpty(Request.QueryString["TourID"]))
     {
         string TourID = Utils.InputText(Request.QueryString["TourID"]);
         EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
         bool isTrue = Ibll.DeleteByVirtual(TourID);
         Ibll = null;
         if (isTrue)
         {
             Response.Clear();
             Response.Write("1");
             Response.End();
         }
     }
 }