|
|
@@ -1,6 +1,7 @@ |
|
|
|
using Learun.Application.OA; |
|
|
|
using Learun.Application.TwoDevelopment.LR_Desktop; |
|
|
|
using Learun.Util; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Configuration; |
|
|
@@ -117,9 +118,7 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers |
|
|
|
|
|
|
|
#endregion |
|
|
|
#region 修改审核状态 |
|
|
|
JavaScriptSerializer Jss = new JavaScriptSerializer(); |
|
|
|
Dictionary<string, object> DicText = (Dictionary<string, object>)Jss.DeserializeObject(responses); |
|
|
|
string Nid = DicText["id"].ToString(); |
|
|
|
string Nid = JsonConvert.DeserializeObject<Root>(responses).value.id; |
|
|
|
AuditList AList = new AuditList(); |
|
|
|
if (Nid != null) |
|
|
|
{ |
|
|
@@ -132,7 +131,6 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers |
|
|
|
listCon.Add(con); |
|
|
|
AList.contents = listCon; |
|
|
|
//AList.reasons = "终审通过"; |
|
|
|
//Util.HttpMethods.HttpPosts("http://192.168.50.127:8007/api/v1/contents/actions/check", AList.ToJson(), ApiId); |
|
|
|
Util.HttpMethods.HttpPosts("http://192.168.50.127:8007/api/v1/contents/check", AList.ToJson(), ApiId); |
|
|
|
} |
|
|
|
#endregion |
|
|
@@ -158,4 +156,13 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers |
|
|
|
#endregion |
|
|
|
|
|
|
|
} |
|
|
|
public class Root |
|
|
|
{ |
|
|
|
public RootValue value { get; set; } |
|
|
|
} |
|
|
|
|
|
|
|
public class RootValue |
|
|
|
{ |
|
|
|
public string id { get; set; } |
|
|
|
} |
|
|
|
} |