Himall.Web/Areas/Web/Controllers/OrderRefundController.cs

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using Himall.Core;
using Himall.IServices;
using Himall.IServices.QueryModel;
using Himall.Model;
using Himall.Web.Framework;
using Microsoft.CSharp.RuntimeBinder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Web.Mvc;

namespace Himall.Web.Areas.Web.Controllers
{
	public class OrderRefundController : BaseMemberController
	{
		public OrderRefundController()
		{
		}

		public ActionResult Detail(long id)
		{
			OrderRefundInfo orderRefund = ServiceHelper.Create<IRefundService>().GetOrderRefund(id, base.CurrentUser.Id);
			ViewBag.UserName = base.CurrentUser.UserName;
			return View(orderRefund);
		}

		[HttpGet]
		public JsonResult GetShopInfo(long shopId)
		{
			ShopInfo shop = ServiceHelper.Create<IShopService>().GetShop(shopId, false);
			var variable = new { SenderAddress = shop.SenderAddress, SenderPhone = shop.SenderPhone, SenderName = shop.SenderName };
			return Json(variable, JsonRequestBehavior.AllowGet);
		}

		public static string HTMLEncode(string txt)
		{
			if (string.IsNullOrEmpty(txt))
			{
				return string.Empty;
			}
			string str = txt.Replace(" ", "&nbsp;");
			str = str.Replace("<", "&lt;");
			str = str.Replace(">", "&gt;");
			str = str.Replace("\"", "&quot;");
			return str.Replace("'", "&#39;").Replace("\n", "<br>");
		}

		[ValidateInput(false)]
		public ActionResult Index(string orderDate, string keywords, int pageNo = 1, int pageSize = 10)
		{
			DateTime? nullable = null;
			DateTime? nullable1 = null;
			if (!string.IsNullOrEmpty(orderDate) && orderDate.ToLower() != "all")
			{
				string lower = orderDate.ToLower();
				string str = lower;
				if (lower != null)
				{
					if (str == "threemonth")
后面还有 285 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。