/// <summary> /// 获取一个新订单编号和日期的JSON数据 /// </summary> /// <param name="context">上下文对象</param> public void GetOrderNoandDate(HttpContext context) { BLL.Order bll = new BLL.Order(); StringBuilder sb = new StringBuilder(); string username = context.User.Identity.Name; int DealerId = 0; Common.SysUserEntity model = new BLL.sysUser().GetSysUserByLoginName(username); DealerId = model.DealerId; sb.Append("{\"OrderNo\":"); sb.Append(string.Format("\"{0}\"", bll.GetNewOrdersNo(DealerId))); sb.Append(",\"DateNow\":"); sb.Append(string.Format("\"{0}\"}}", CommonFunction.GetDateString())); context.Response.Write(sb.ToString()); }