private void SetDay() { if (setday) { day = Utils.GetInt(Utils.GetFormValue("num"), 1); bool res = csBll.SetLeaveTourReminderDays(CurrentUserCompanyID, day); Response.Clear(); Response.Write("{\"ret\":" + (res ? "1" : "-1") + "}"); Response.End(); } else { Response.Clear(); Response.Write("{\"ret\":-2}"); Response.End(); } }