@@ -263,6 +263,12 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers | |||||
FinaChargeStuYearEntity entity = strEntity.ToObject<FinaChargeStuYearEntity>(); | FinaChargeStuYearEntity entity = strEntity.ToObject<FinaChargeStuYearEntity>(); | ||||
List<FinaChargeStuOrderDetailEntity> list = detailList.ToObject<List<FinaChargeStuOrderDetailEntity>>(); | List<FinaChargeStuOrderDetailEntity> list = detailList.ToObject<List<FinaChargeStuOrderDetailEntity>>(); | ||||
var imgUrl = ""; | var imgUrl = ""; | ||||
Random ran = new Random(); | |||||
string orderid = DateTime.Now.ToString("yyyyMMddHHmmssffffff") + ran.Next(0, 100000); | |||||
if (finaChargeStuOrderIbll.GetEntityByorderid(orderid) != null) | |||||
{ | |||||
return Fail("请刷新页面重试!"); | |||||
} | |||||
//访问学校财务服务器 | //访问学校财务服务器 | ||||
string payresulturl = Config.GetValue("payresulturl"); | string payresulturl = Config.GetValue("payresulturl"); | ||||
@@ -283,11 +289,9 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers | |||||
try | try | ||||
{ | { | ||||
Random ran = new Random(); | |||||
string merchantid = "105000082201406";//商户号 | string merchantid = "105000082201406";//商户号 | ||||
string posid = "043724806";//商户柜台代码 | string posid = "043724806";//商户柜台代码 | ||||
string branchid = "510000000";//分行代码 | string branchid = "510000000";//分行代码 | ||||
string orderid = DateTime.Now.ToString("yyyyMMddhhmmss") + ran.Next(0, 100000); | |||||
string payment = entity.PayMoney.ToString(); | string payment = entity.PayMoney.ToString(); | ||||
string curcode = "01"; | string curcode = "01"; | ||||
string txcode = "530550"; | string txcode = "530550"; | ||||
@@ -67,6 +67,30 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 获取FinaChargeStuOrder表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public FinaChargeStuOrderEntity GetEntityByorderid(string orderid) | |||||
{ | |||||
try | |||||
{ | |||||
return finaChargeStuOrderService.GetEntityByorderid(orderid); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
#region 提交数据 | #region 提交数据 | ||||
@@ -27,6 +27,13 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
FinaChargeStuOrderEntity GetFinaChargeStuOrderEntity(string keyValue); | FinaChargeStuOrderEntity GetFinaChargeStuOrderEntity(string keyValue); | ||||
/// <summary> | |||||
/// 获取FinaChargeStuOrder表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
FinaChargeStuOrderEntity GetEntityByorderid(string orderid); | |||||
#endregion | #endregion | ||||
#region 提交数据 | #region 提交数据 | ||||
@@ -138,6 +138,30 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 获取FinaChargeStuOrder表实体数据 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
public FinaChargeStuOrderEntity GetEntityByorderid(string orderid) | |||||
{ | |||||
try | |||||
{ | |||||
return this.BaseRepository("CollegeMIS").FindEntity<FinaChargeStuOrderEntity>(x => x.orderid == orderid); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
#region 提交数据 | #region 提交数据 | ||||