public JsonResult Order_TD(string str) { BLL.OrderInfoBLL _BLL = new OrderInfoBLL(); retValue ret = new retValue(); JObject o = null; PMS.Models.UserModel userModel = Session["UserModel"] as PMS.Models.UserModel; int userid = userModel._ID; if (!string.IsNullOrEmpty(str)) { o = JObject.Parse(str); string ids = o["ID"]._ToStrTrim(); int Month = o["Month"]._ToInt32(); int OrderNum = o["OrderNum"]._ToInt32(); int Group_Type = o["Group_Type"]._ToInt32(); //1全退,2部分退 if (Group_Type == 1) { Month = 0; OrderNum = 0; } ret = _BLL.TD(ids.Remove(ids.Length - 1), userid, Group_Type, Month, OrderNum); } var js = JsonConvert.SerializeObject(ret); return(Json(js, JsonRequestBehavior.AllowGet)); }