|
|
@@ -162,9 +162,9 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem |
|
|
|
} |
|
|
|
public string SaveCode(string Code, string keyValue) |
|
|
|
{ |
|
|
|
var result = ""; |
|
|
|
var result = Code; |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
strSql.Append(@"select * from FundsApply where 1= 1 and ApplyTime >= '" + DateTime.Now.Date + " and Encode = '" + Code + "''"); |
|
|
|
strSql.Append(@"select * from FundsApply where 1= 1 and ApplyTime >= '" + DateTime.Now.Date + "' and Encode = '" + Code + "'"); |
|
|
|
var data = this.BaseRepository("CollegeMIS").FindList<FundsApplyEntity>(strSql.ToString()).FirstOrDefault(); |
|
|
|
var Codes = "JFKZ_" + CommonHelper.StringTime(); |
|
|
|
if (data != null && !string.IsNullOrEmpty(data.EnCode)) |
|
|
@@ -173,7 +173,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem |
|
|
|
{ |
|
|
|
if (data.Id == keyValue) |
|
|
|
{ |
|
|
|
result = Code; |
|
|
|
return result; |
|
|
|
} |
|
|
|
else if (data.Id != keyValue && Code != data.EnCode) |
|
|
|
{ |
|
|
|