/// <summary> /// 顺序练习执行[ln_learnsx]存储过程 /// </summary> /// <param name="m"></param> /// <returns></returns> public static string exeLearnsx(Models.learnsx m) { using (DAL.learn.learnsxDAL dal = new DAL.learn.learnsxDAL()) { using (Common.JsonParse jp = new Common.JsonParse()) { return(jp.convert(dal.exeLearnsx(m))); } } }
/// <summary> /// 顺序练习执行[ln_learnsx]存储过程 /// </summary> /// <param name="m"></param> /// <returns></returns> public DataTable exeLearnsx(Models.learnsx m) { SqlParameter[] pars = { new SqlParameter("@lid", m.lid), new SqlParameter("@sid", m.sid), new SqlParameter("@stype", m.stype), new SqlParameter("@fx", m.fx), new SqlParameter("@row", m.row) }; return(SqlHelper.RunProcedure("[ln_learnsx]", pars)); }
public void ProcessRequest(HttpContext context) { try { context.Response.Clear(); context.Response.ContentType = "application/json"; Models.learnsx m = new Models.learnsx { lid = Convert.ToInt32(context.Request.QueryString["lid"]), sid = Convert.ToInt32(context.Request.QueryString["sid"]), stype = context.Request.QueryString["stype"], fx = Convert.ToInt32(context.Request.QueryString["fx"]), row = Convert.ToInt32(context.Request.QueryString["row"]) }; if (Utility.employeeLogin.isLogin) { string data = BLL.learn.learnsxBLL.exeLearnsx(m); if (string.IsNullOrEmpty(data)) { context.Response.Write("null"); } else { context.Response.Write(data); } } else { throw new Exception(JsonConvert.SerializeObject(new { state = 4001, msg = "没有访问权限" })); } } catch (Exception m) { context.Response.Write(m.Message); } finally { context.Response.End(); } }