/// <summary> /// 设置剩余人数 /// </summary> private void SetTourRemnantNumber() { if (!IsGrantUpdate) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的帐号没有权限执行该操作!'}]"); Response.End(); } EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); string ItemTourID = Utils.GetQueryStringValue("SingleTourID"); int RemnantNumber = Utils.GetInt(Utils.GetQueryStringValue("RemnantNumber")); bool isTrue = Ibll.SetTourRemnantNumber(ItemTourID, RemnantNumber); Ibll = null; if (isTrue) { Response.Clear(); Response.Write("[{isSuccess:true,ErrorMessage:'操作成功!'}]"); Response.End(); } else { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'操作失败!'}]"); Response.End(); } }