123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using Microsoft.AspNetCore.Mvc;
- using Microsoft.AspNetCore.Http;
- using Microsoft.Extensions.Logging;
- using Microsoft.Extensions.Options;
- using Microsoft.AspNetCore.Authorization;
- using System.Web;
- using MySystem.MainModels;
- using LitJson;
- using Library;
- using System.Data;
- namespace MySystem.Areas.Api.Controllers.v1
- {
- [Area("Api")]
- [Route("Api/v1/[controller]/[action]")]
- public class ConsumerOrdersController : BaseController
- {
- public ConsumerOrdersController(IHttpContextAccessor accessor, ILogger<BaseController> logger, IOptions<Setting> setting) : base(accessor, logger, setting)
- {
- }
- #region 商户-经营数据(日)
- [Authorize]
- public JsonResult ByDate(string value)
- {
- value = DesDecrypt(value);
- JsonData data = JsonMapper.ToObject(value);
- List<Dictionary<string, object>> dataList = ByDateDo(value);
- return Json(new AppResultJson() { Status = "1", Info = "", Data = dataList });
- }
- public List<Dictionary<string, object>> ByDateDo(string value)
- {
- JsonData data = JsonMapper.ToObject(value);
- int MerchantId = int.Parse(function.CheckInt(data["MerchantId"].ToString())); //商户
- string Month = data["Month"].ToString(); //月份
- int PageSize = int.Parse(function.CheckInt(data["PageSize"].ToString()));
- int PageNum = int.Parse(function.CheckInt(data["PageNum"].ToString()));
- List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
- DataTable dt = MerchantAmountSummary.Instance.GetTradeListByDate(MerchantId, Month, PageNum, PageSize);
- foreach (DataRow dr in dt.Rows)
- {
- string TradeDate = dr["TradeDate"].ToString();
- Dictionary<string, object> curData = new Dictionary<string, object>();
- curData.Add("Date", TradeDate.Substring(0, 4) + "-" + TradeDate.Substring(4, 2) + "-" + TradeDate.Substring(6, 2)); //日期
- curData.Add("TotalAmount", dr[5].ToString()); //营收金额
- curData.Add("TotalActual", dr[3].ToString()); //实收金额
- curData.Add("WeChatAmount", dr[2].ToString()); //微信实收
- curData.Add("AlipayAmount", dr[1].ToString()); //支付宝实收
- curData.Add("OrderCount", dr[4].ToString()); //订单数
- curData.Add("AddCount", 0); //新增会员
- dataList.Add(curData);
- }
- return dataList;
- }
- #endregion
- #region 商户-经营数据(月)
- [Authorize]
- public JsonResult ByMonth(string value)
- {
- value = DesDecrypt(value);
- JsonData data = JsonMapper.ToObject(value);
- List<Dictionary<string, object>> dataList = ByMonthDo(value);
- return Json(new AppResultJson() { Status = "1", Info = "", Data = dataList });
- }
- public List<Dictionary<string, object>> ByMonthDo(string value)
- {
- JsonData data = JsonMapper.ToObject(value);
- int MerchantId = int.Parse(function.CheckInt(data["MerchantId"].ToString())); //商户
- int PageSize = int.Parse(function.CheckInt(data["PageSize"].ToString()));
- int PageNum = int.Parse(function.CheckInt(data["PageNum"].ToString()));
- List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
- DataTable dt = MerchantAmountSummary.Instance.GetTradeListByMonth(MerchantId, PageNum, PageSize);
- foreach (DataRow dr in dt.Rows)
- {
- string TradeDate = dr["TradeMonth"].ToString();
- Dictionary<string, object> curData = new Dictionary<string, object>();
- curData.Add("Date", TradeDate.Substring(0, 4) + "-" + TradeDate.Substring(4, 2)); //日期
- curData.Add("TotalAmount", dr[5].ToString()); //营收金额
- curData.Add("TotalActual", dr[3].ToString()); //实收金额
- curData.Add("WeChatAmount", dr[2].ToString()); //微信实收
- curData.Add("AlipayAmount", dr[1].ToString()); //支付宝实收
- curData.Add("OrderCount", dr[4].ToString()); //订单数
- curData.Add("AddCount", 0); //新增会员
- dataList.Add(curData);
- }
- return dataList;
- }
- #endregion
- #region 商户-经营数据-按月
- [Authorize]
- public JsonResult BussinessRecordForMonth(string value)
- {
- value = DesDecrypt(value);
- JsonData data = JsonMapper.ToObject(value);
- List<Dictionary<string, object>> dataList = BussinessRecordForMonthDo(value);
- return Json(new AppResultJson() { Status = "1", Info = "", Data = dataList });
- }
- public List<Dictionary<string, object>> BussinessRecordForMonthDo(string value)
- {
- JsonData data = JsonMapper.ToObject(value);
- int MerchantId = int.Parse(function.CheckInt(data["MerchantId"].ToString())); //商户
- string Month = data["Month"].ToString(); //月份
- int PageSize = int.Parse(function.CheckInt(data["PageSize"].ToString()));
- int PageNum = int.Parse(function.CheckInt(data["PageNum"].ToString()));
- List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
- DataTable dt = MerchantAmountSummary.Instance.GetTradeListByDate(MerchantId, Month, PageNum, PageSize);
- foreach (DataRow dr in dt.Rows)
- {
- string TradeDate = dr["TradeDate"].ToString();
- Dictionary<string, object> curData = new Dictionary<string, object>();
- curData.Add("Date", TradeDate.Substring(0, 4) + "-" + TradeDate.Substring(4, 2) + "-" + TradeDate.Substring(6, 2)); //日期
- curData.Add("TotalAmount", dr[5].ToString()); //营收金额
- curData.Add("TotalActual", dr[3].ToString()); //实收金额
- curData.Add("WeChatAmount", dr[2].ToString()); //微信实收
- curData.Add("AlipayAmount", dr[1].ToString()); //支付宝实收
- curData.Add("OrderCount", dr[4].ToString()); //订单数
- curData.Add("AddCount", 0); //新增会员
- dataList.Add(curData);
- }
- return dataList;
- }
- #endregion
- #region 商户-订单列表
- [Authorize]
- public JsonResult ForMer(string value)
- {
- value = DesDecrypt(value);
- JsonData data = JsonMapper.ToObject(value);
- List<Dictionary<string, object>> dataList = ForMerDo(value);
- return Json(new AppResultJson() { Status = "1", Info = "", Data = dataList });
- }
- public List<Dictionary<string, object>> ForMerDo(string value)
- {
- JsonData data = JsonMapper.ToObject(value);
- int MerchantId = int.Parse(function.CheckInt(data["MerchantId"].ToString())); //商户
- string OrderNo = data["OrderNo"].ToString(); //订单号
- string Date = data["Date"].ToString(); //日期
- int PageSize = int.Parse(function.CheckInt(data["PageSize"].ToString()));
- int PageNum = int.Parse(function.CheckInt(data["PageNum"].ToString()));
- List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
- string condition = "";
- if (!string.IsNullOrEmpty(data["MerchantId"].ToString()))
- {
- condition += " and MerchantId=" + MerchantId;
- }
- if (!string.IsNullOrEmpty(data["OrderNo"].ToString()))
- {
- condition += " and OrderNo='" + OrderNo + "'";
- }
- List<Dictionary<string, object>> query = new ConsumerOrdersService().List(new List<FieldItem>(), condition, PageNum, PageSize);
- foreach (var subdata in query)
- {
- Dictionary<string, object> curData = new Dictionary<string, object>();
- curData.Add("OrderNo", subdata["OrderNo"].ToString()); //订单号
- curData.Add("PayMode", subdata["PayMode"].ToString()); //支付方式
- curData.Add("PayMoney", subdata["PayMoney"].ToString()); //支付金额
- curData.Add("ReturnMoney", subdata["ReturnMoney"].ToString()); //已返金额
- curData.Add("SnNo", subdata["SnNo"].ToString()); //SN号
- curData.Add("Id", subdata["Id"].ToString()); //Id
- curData.Add("Status", subdata["Status"].ToString()); //Status
- curData.Add("CreateDate", subdata["CreateDate"].ToString()); //CreateDate
- curData.Add("MerchantName", ""); //门店信息
- dataList.Add(curData);
- }
- return dataList;
- }
- #endregion
- #region 消费者-我的订单
- [Authorize]
- public JsonResult List(string value)
- {
- value = DesDecrypt(value);
- JsonData data = JsonMapper.ToObject(value);
- List<Dictionary<string, object>> dataList = ListDo(value);
- return Json(new AppResultJson() { Status = "1", Info = "", Data = dataList });
- }
- public List<Dictionary<string, object>> ListDo(string value)
- {
- JsonData data = JsonMapper.ToObject(value);
- int ConsumerId = int.Parse(function.CheckInt(data["ConsumerId"].ToString())); //消费者
- int PageSize = int.Parse(function.CheckInt(data["PageSize"].ToString()));
- int PageNum = int.Parse(function.CheckInt(data["PageNum"].ToString()));
- List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
- List<Dictionary<string, object>> query = new ConsumerOrdersService().List(new List<FieldItem>(), " and ConsumerId=" + ConsumerId + " and Status>0", PageNum, PageSize);
- foreach (Dictionary<string, object> subdata in query)
- {
- MerchantInfo merchant = MerchantInfoDbconn.Instance.Get(int.Parse(subdata["MerchantId"].ToString())) ?? new MerchantInfo();
- Dictionary<string, object> curData = new Dictionary<string, object>();
- curData.Add("OrderNo", subdata["OrderNo"].ToString()); //订单号
- curData.Add("PayMoney", subdata["PayMoney"].ToString()); //支付金额
- curData.Add("ReturnMoney", subdata["ReturnMoney"].ToString()); //已返金额
- curData.Add("Id", subdata["Id"].ToString()); //Id
- curData.Add("Status", subdata["Status"].ToString()); //Status
- curData.Add("CreateDate", subdata["CreateDate"].ToString()); //CreateDate
- curData.Add("MerchantName", merchant.Name); //商户名称
- dataList.Add(curData);
- }
- return dataList;
- }
- #endregion
- #region 消费者-支付接口
- [Authorize]
- public JsonResult Pay(string value)
- {
- if (string.IsNullOrEmpty(value))
- {
- System.IO.StreamReader sr = new System.IO.StreamReader(Request.Body);
- value = sr.ReadToEnd();
- value = value.Split('=')[1];
- }
- value = DesDecrypt(value);
- JsonData data = JsonMapper.ToObject(value);
- AppResultJson result = PayDo(value);
- return Json(new AppResultJson() { Status = result.Status, Info = result.Info, Data = result.Data });
- }
- public AppResultJson PayDo(string value)
- {
- JsonData data = JsonMapper.ToObject(value);
- string SnNo = data["Sn"].ToString(); //码牌SN
- // string Machine = data["Machine"].ToString();
- if (SnNo.Length > 20)
- {
- SnNo = System.Web.HttpUtility.UrlDecode(SnNo);
- if (!SnNo.EndsWith("="))
- {
- SnNo += "=";
- }
- SnNo = dbconn.Decrypt3DES(SnNo, "l2k0b2#3");
- SnNo = SnNo.TrimEnd('\0');
- SnNo = SnNo.Substring(0, 20);
- }
- int PayMode = int.Parse(function.CheckInt(data["PayMode"].ToString())); //支付方式
- decimal PayMoney = decimal.Parse(function.CheckNum(data["PayMoney"].ToString())); //支付金额
- string Code = data["Code"].ToString();
- if (string.IsNullOrEmpty(data["PayMode"].ToString()))
- {
- return new AppResultJson() { Status = "-1", Info = "请填写支付方式" };
- }
- if (string.IsNullOrEmpty(data["PayMoney"].ToString()))
- {
- return new AppResultJson() { Status = "-1", Info = "请填写支付金额" };
- }
- if (!function.IsNum(data["PayMoney"].ToString()))
- {
- return new AppResultJson() { Status = "-1", Info = "请填写正确的支付金额" };
- }
- Dictionary<string, object> Obj = new Dictionary<string, object>();
- MerchantQrCode qrcode = MerchantQrCodeDbconn.Instance.Get(SnNo) ?? new MerchantQrCode();
- PosMachinesTwo pos = PosMachinesTwoDbconn.Instance.Get(SnNo) ?? new PosMachinesTwo();
- // PosMachines machine = PosMachinesDbconn.Instance.Get(qrcode.SnId) ?? new PosMachines();
- // if (machine.BindMerchantId == 0) machine.BindMerchantId = 1; // TODO: 需要绑定二维码
- if (pos.OpId == 1)
- {
- MerchantInfo merchant = MerchantInfoDbconn.Instance.Get(qrcode.MerchantId) ?? new MerchantInfo();
- //商户未激活也能支付(365服务费)
- // if (merchant.IsAct == 0)
- // {
- // return Json(new AppResultJson() { Status = "-1", Info = "支付失败,商户尚未激活,请前往来客吧商户版激活后使用" });
- // }
- MerchantAddInfo merchantAdd = MerchantAddInfoDbconn.Instance.Get(qrcode.MerchantId) ?? new MerchantAddInfo();
- MerchantParamSet merchantset = MerchantParamSetDbconn.Instance.Get(qrcode.MerchantId) ?? new MerchantParamSet();
- string openid = "";
- if (PayMode == 1)
- {
- openid = new AlipayFunction(_accessor.HttpContext).GetAlipayUserId(Code);
- if (openid.Contains("|"))
- {
- openid = openid.Split('|')[0];
- }
- }
- else
- {
- string result = function.GetWebRequest("https://api.weixin.qq.com/sns/jscode2session?appid=" + new WeChatFunction().AppId + "&secret=" + new WeChatFunction().AppSecret + "&js_code=" + Code + "&grant_type=authorization_code");
- function.WriteLog(DateTime.Now.ToString() + "\n" + result, "微信小程序获取openid");
- JsonData jsonObj = JsonMapper.ToObject(result);
- openid = jsonObj["openid"].ToString();
- }
- int ConsumerId = 0;
- Consumers check = maindb.Consumers.FirstOrDefault(m => m.WechatOpenId == openid);
- if (check == null)
- {
- // ConsumerId = PublicFunction.MakeConsumerId();
- Consumers consumer = maindb.Consumers.Add(new Consumers()
- {
- Id = ConsumerId,
- CreateDate = DateTime.Now,
- WechatOpenId = openid,
- }).Entity;
- maindb.SaveChanges();
- ConsumerId = consumer.Id;
- }
- else
- {
- ConsumerId = check.Id;
- }
- maindb.SaveChanges();
- string OrderNo = DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
- bool ActFlag = merchantset.IsAll == 1 ? false : true;
- if (PayMoney < merchantset.MinPayMoney) //支付金额小于活动最小金额,则不分账
- {
- ActFlag = false;
- }
- if (merchant.IsAct == 0) ActFlag = false;
- ConsumerOrders order = maindb.ConsumerOrders.Add(new ConsumerOrders()
- {
- // Id = PublicFunction.MakeConsumerOrderId(),
- CreateDate = DateTime.Now, //创建时间
- MerchantId = qrcode.MerchantId, //商户
- ConsumerId = ConsumerId, //消费者
- UserId = merchant.UserId, //创客
- PayMode = PayMode, //支付方式
- PayMoney = PayMoney, //支付金额
- SnNo = SnNo, //SN号
- OrderNo = OrderNo,
- MaxDivi = ActFlag ? PayMoney * merchantset.DiviPercent / 100 : 0,
- IsAct = ActFlag ? 1u : 0u,
- MerchantActualAmount = ActFlag ? PayMoney * merchantset.GetPercent / 100 : PayMoney,
- SeoDescription = Newtonsoft.Json.JsonConvert.SerializeObject(merchantset),
- SetRecordId = merchantset.Version, //活动参记录数Id
- }).Entity;
- maindb.SaveChanges();
- maindb.ConsumerOrderForNo.Add(new ConsumerOrderForNo()
- {
- OrderNo = OrderNo,
- OrderIds = order.Id,
- });
- maindb.SaveChanges();
- if (PayMode == 1)
- {
- string backString = new AlipayFunction(_accessor.HttpContext).CreateTrade(OrderNo, merchant.Name, PayMoney, openid, merchantAdd.AlipayAuthToken, SpHost + "/api/alipay/notice");
- JsonData obj = JsonMapper.ToObject(backString);
- if (obj["alipay_trade_create_response"]["code"].ToString() == "10000")
- {
- string tradeNo = obj["alipay_trade_create_response"]["trade_no"].ToString();
- Obj.Add("respCode", obj["alipay_trade_create_response"]["code"].ToString());
- Obj.Add("tradeNo", tradeNo);
- }
- else
- {
- Obj.Add("respCode", obj["alipay_trade_create_response"]["code"].ToString());
- Obj.Add("tradeNo", "");
- return new AppResultJson() { Status = "-1", Info = obj["alipay_trade_create_response"]["sub_msg"].ToString(), Data = Obj };
- }
- }
- else if (PayMode == 2)
- {
- string SubMchId = merchantAdd.SubMchid;
- string Description = merchant.Name;
- string OpenId = openid;
- string Key = AppConfig.WeChatParam.AesGemKey;
- string NotifyUrl = SpHost + "/api/wechat/notice";
- Dictionary<string, string> dic = new WeChatFunction(_accessor.HttpContext).Pay(SubMchId, PayMoney, OrderNo, Description, OpenId, Key, NotifyUrl, ActFlag);
- Obj.Add("appId", dic["appId"]); //微信小程序appid
- Obj.Add("timeStamp", dic["timeStamp"]); //时间戳
- Obj.Add("nonceStr", dic["nonceStr"]); //随机字符串
- Obj.Add("package", dic["package"]); //统一支付接口返回的prepayid参数值
- Obj.Add("paySign", dic["paySign"]); //支付签名
- Obj.Add("ConsumerId", ConsumerId);
- }
- }
- else
- {
- string result = function.PostWebRequest(AppConfig.Base.Host2 + "api/v1/consumerorders/pay", "value=" + value);
- return Newtonsoft.Json.JsonConvert.DeserializeObject<AppResultJson>(result);
- }
- return new AppResultJson() { Status = "1", Info = "", Data = Obj };
- }
- #endregion
- #region 经营数据-统计数据-经营详情-取消返现
- [Authorize]
- public JsonResult CancelDivi(string value)
- {
- value = DesDecrypt(value);
- JsonData data = JsonMapper.ToObject(value);
- AppResultJson result = CancelDiviDo(value);
- return Json(new AppResultJson() { Status = result.Status, Info = result.Info, Data = result.Data });
- }
- private AppResultJson CancelDiviDo(string value)
- {
- JsonData data = JsonMapper.ToObject(value);
- Dictionary<string, object> Obj = new Dictionary<string, object>();
- int Id = int.Parse(function.CheckInt(data["id"].ToString()));
- ConsumerOrders order = maindb.ConsumerOrders.FirstOrDefault(m => m.Id == Id);
- if (order != null)
- {
- List<ConsumerOrders> suborders = RedisDbconn.Instance.GetList<ConsumerOrders>("ConsumerOrders:Divi:" + order.PayMode + ":" + order.MerchantId, 1, 999999);
- if (suborders.Count > 0)
- {
- ConsumerOrders suborder = suborders.FirstOrDefault(m => m.Id == Id);
- if (suborder != null)
- {
- order.CurDivi = suborder.CurDivi;
- maindb.SaveChanges();
- RedisDbconn.Instance.RemoveFromList("ConsumerOrders:Divi:" + order.PayMode + ":" + order.MerchantId, suborder);
- function.WriteLog(DateTime.Now.ToString() + "\r\n" + "订单Id:" + Id + "\r\n\r\n", "直连订单取消返现");
- order.ReturnFlag = 0;
- maindb.SaveChanges();
- return new AppResultJson() { Status = "1", Info = "", Data = Obj };
- }
- }
- }
- return new AppResultJson() { Status = "-1", Info = "取消失败", Data = Obj };
- }
- #endregion
- #region 经营数据-统计数据-经营详情-恢复返现
- [Authorize]
- public JsonResult RestoreDivi(string value)
- {
- value = DesDecrypt(value);
- JsonData data = JsonMapper.ToObject(value);
- AppResultJson result = RestoreDiviDo(value);
- return Json(new AppResultJson() { Status = result.Status, Info = result.Info, Data = result.Data });
- }
- private AppResultJson RestoreDiviDo(string value)
- {
- JsonData data = JsonMapper.ToObject(value);
- Dictionary<string, object> Obj = new Dictionary<string, object>();
- int Id = int.Parse(function.CheckInt(data["id"].ToString()));
- ConsumerOrders order = maindb.ConsumerOrders.FirstOrDefault(m => m.Id == Id);
- if (order != null)
- {
- JsonData ProfitInfo = JsonMapper.ToObject(order.SeoDescription);
- int ProfitDays = int.Parse(function.CheckInt(ProfitInfo["ProfitDays"].ToString())); //活动有效时间
- if (order.IsAct == 0) return new AppResultJson() { Status = "-1", Info = "恢复失败,非活动订单不能进行该操作", Data = Obj };
- if (DateTime.Parse(order.UpdateDate.ToString()).AddMinutes(10) >= DateTime.Now) return new AppResultJson() { Status = "-1", Info = "恢复失败,订单完成支付10分钟内不能进行该操作", Data = Obj };
- if (order.MaxDivi == order.CurDivi) return new AppResultJson() { Status = "-1", Info = "恢复失败,订单已完成所有返现", Data = Obj };
- if (DateTime.Parse(order.UpdateDate.ToString()).AddDays(ProfitDays) < DateTime.Now) return new AppResultJson() { Status = "-1", Info = "恢复失败,非活动订单不能进行该操作", Data = Obj };
- List<ConsumerOrders> suborders = RedisDbconn.Instance.GetList<ConsumerOrders>("ConsumerOrders:Divi:" + order.PayMode + ":" + order.MerchantId);
- if (suborders.Count > 0)
- {
- ConsumerOrders suborder = suborders.FirstOrDefault(m => m.Id == Id);
- if (suborder == null)
- {
- RedisDbconn.Instance.AddRightList("ConsumerOrders:Divi:" + order.PayMode + ":" + order.MerchantId, order);
- function.WriteLog(DateTime.Now.ToString() + "\r\n" + "订单Id:" + Id + "\r\n\r\n", "直连订单恢复返现");
- order.ReturnFlag = 1;
- maindb.SaveChanges();
- }
- return new AppResultJson() { Status = "1", Info = "", Data = Obj };
- }
- }
- return new AppResultJson() { Status = "-1", Info = "恢复失败", Data = Obj };
- }
- #endregion
- #region 检查签名是否合法,合法返回1,不合法返回提示信息
- /// <summary>
- /// 检查签名是否合法,合法返回1,不合法返回提示信息
- /// </summary>
- /// <param name="value">请求的参数(json字符串)</param>
- /// <param name="signField">要签名的字段</param>
- /// <returns></returns>
- private string CheckSign(string value, string[] signField)
- {
- JsonData json = JsonMapper.ToObject(value);
- Dictionary<string, string> dic = new Dictionary<string, string>();
- for (int i = 0; i < signField.Length; i++)
- {
- dic.Add(signField[i], json[signField[i]].ToString());
- }
- string sign = json["sign"].ToString(); //客户端签名字符串
- return new Sign().sign(dic, sign);
- }
- #endregion
- }
- }
|