using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Web;
using System.Web.Http;
using System.Collections.Concurrent;
using Newtonsoft.Json.Linq;
using System.Threading;
using SlMesDbIterface;
using PLMTEST;
using System.Net;
using System.Net.Http.Headers;
using System.IO;
using ExternalDataSync;
/////http://127.0.0.1:9981/api/IOrder/InsertOrder
///
///
///
namespace WebApi
{
///
///
///
[RoutePrefix("api/IOrder")]
public class IOrderController : ApiController
{
readonly string headUrl = "Project/";
///
/// 上传测试接收
///
///
///
[HttpPost]
public HttpResponseMessage test([FromBody] JObject jobj)
{
string JsonStr = jobj.ToString();
return new HttpResponseMessage
{
Content = new StringContent(AnalysisMsg.ProductionCalendarData(headUrl + System.Reflection.MethodBase.GetCurrentMethod().Name, jobj.ToString()), Encoding.GetEncoding("UTF-8"), "application/json")
};
}
///
/// 生产建模基础数据
///
///
///
[HttpPost]
public HttpResponseMessage productCalendar([FromBody] JObject jobj)
{
return new HttpResponseMessage
{
Content = new StringContent(AnalysisMsg.ProductionCalendarData(headUrl + System.Reflection.MethodBase.GetCurrentMethod().Name, jobj.ToString()), Encoding.GetEncoding("UTF-8"), "application/json")
};
}
}
}