public ActionResult AddacceptReporting(int orderid, string reason, string title, string text) { MemberInfoModel logmember = Session[AppContent.SESSION_WEB_LOGIN] as MemberInfoModel; if (logmember == null) { return(RedirectToAction("Index", "Login", new { area = "WebFrontArea" })); } OrderReportingModel model = new OrderReportingModel(); model.OrderID = orderid; model.MemberID = logmember.ID; model.MemberName = logmember.TruethName; model.MemberPhone = logmember.MobileNum; model.Title = title; model.ReportingText = text; model.ReasonType = reason; int row = reportbll.AddReportForAcceptDetail(model); if (row > 0) { return(Json("1")); } else { return(Json("0")); } }
public ActionResult orderreportinglist(OrderReportingModel searchmodel, int page = 1) { OrderReportingListViewModel model = new OrderReportingListViewModel(); int totalrowcount = 0; OrderReportingModel seach = new OrderReportingModel(); seach.PageIndex = page; seach.PageSize = PageSize; seach.OrderCode = searchmodel.OrderCode; seach.MemberPhone = searchmodel.MemberPhone; List <OrderReportingModel> list = reportbll.GetOrderReportListByPage(seach, out totalrowcount); PagedList <OrderReportingModel> pagelist = null; if (list.Count > 0) { pagelist = new PagedList <OrderReportingModel>(list, page, PageSize, totalrowcount); } model.currentpage = page; model.list = pagelist; model.pagesize = PageSize; model.totalcount = totalrowcount; ViewBag.PageTitle = "举报列表"; this.ViewData["searchmodel.RStatus"] = GetRStatusListItem(0); return(View(model)); }
/// <summary> /// 添加举报信息 /// </summary> /// <param name="model"></param> /// <returns></returns> public int AddReportForAcceptDetail(OrderReportingModel model) { HelpeOrderModel help = HelpeOrderDAL.GetHelpOrderInfo(model.OrderID); model.OrderCode = help.OrderCode; model.RStatus = 1; model.OrderType = 1; return(OrderReportingDAL.AddOrderReporting(model)); }
/// <summary> /// 添加举报信息 /// </summary> /// <param name="model"></param> /// <returns></returns> public int AddReportForHelperDetail(OrderReportingModel model) { AcceptHelpOrderModel accept = AcceptHelpOrderDAL.GetAcceptOrderInfo(model.OrderID); model.OrderCode = accept.OrderCode; model.RStatus = 1; model.OrderType = 2; return(OrderReportingDAL.AddOrderReporting(model)); }
/// <summary> /// 按页查询数据 /// </summary> /// <param name="model"></param> /// <param name="totalrowcount"></param> /// <returns></returns> public List <OrderReportingModel> GetOrderReportListByPage(OrderReportingModel model, out int totalrowcount) { return(OrderReportingDAL.GetAllOrderReportingForPage(model, out totalrowcount)); }